mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-30 18:13:23 +08:00
Convert select2 component to SFC for more standard handling -- this was requiring the vue runtime before...
This commit is contained in:
@@ -1,10 +1,16 @@
|
||||
<template>
|
||||
<select>
|
||||
<slot></slot>
|
||||
</select>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
// Based on https://vuejs.org/v2/examples/select2.html but adapted to handle list values
|
||||
// with "multiple: true" set.
|
||||
import $ from "jquery";
|
||||
|
||||
export default {
|
||||
props: ["options", "value", "placeholder", "containerClass", "enabled"],
|
||||
template: `<select><slot></slot></select>`,
|
||||
mounted: function () {
|
||||
const vm = this;
|
||||
// TODO: refactor property list to objects that allow defaults and types
|
||||
@@ -49,3 +55,4 @@ export default {
|
||||
$(this.$el).off().select2("destroy");
|
||||
},
|
||||
};
|
||||
</script>
|
||||
Reference in New Issue
Block a user