@ctzy-web-client/plugin-component-vue 1.0.23 → 1.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/advance-select/advance-operation.mjs +51 -37
- package/es/advance-select/advance-option.mjs +167 -97
- package/es/advance-select/advance-option.vue_vue_type_style_index_0_scoped_bc8f5626_lang.mjs +7 -0
- package/es/advance-select/advance-select.mjs +368 -310
- package/es/advance-select/index.mjs +5 -5
- package/es/application-slot/breadcrumb-item.mjs +20 -17
- package/es/application-slot/header-tools-item.mjs +20 -17
- package/es/breadcrumb-select/breadcrumb-select.mjs +134 -112
- package/es/contextmenu/contextmenu-item.mjs +19 -15
- package/es/contextmenu/contextmenu.mjs +72 -56
- package/es/data-form/data-form-item.mjs +48 -30
- package/es/data-form/data-form.mjs +213 -166
- package/es/data-form/form-components/bwa-date-picker.mjs +51 -39
- package/es/data-form/form-components/bwa-date-time-picker.mjs +56 -44
- package/es/data-form/form-components/bwa-input-float.mjs +48 -37
- package/es/data-form/form-components/bwa-input-integer.mjs +68 -50
- package/es/data-form/form-components/bwa-input.mjs +43 -32
- package/es/data-form/form-components/bwa-multi-select.mjs +40 -29
- package/es/data-form/form-components/bwa-rich-text-tinymce.mjs +554 -218
- package/es/data-form/form-components/bwa-rich-text.mjs +404 -316
- package/es/data-form/form-components/bwa-select.mjs +84 -70
- package/es/data-form/form-components/bwa-textarea.mjs +38 -27
- package/es/data-form/form-components/bwa-upload.mjs +172 -148
- package/es/data-form/form-components/bwa-user-multi-select.mjs +35 -24
- package/es/data-form/form-components/bwa-user-select.mjs +86 -61
- package/es/data-table/data-column-view.mjs +146 -115
- package/es/data-table/data-table-card.mjs +48 -40
- package/es/data-table/data-table-column.mjs +58 -45
- package/es/data-table/data-table.mjs +402 -316
- package/es/datatable-settings/datatable-settings.mjs +329 -254
- package/es/date-range/date-picker.mjs +130 -116
- package/es/date-range/date-range.mjs +215 -161
- package/es/drag-list/drag-item.mjs +56 -42
- package/es/drag-list/drag-list.mjs +60 -47
- package/es/dragable/dragable-item.mjs +23 -18
- package/es/dragable/dragable-operation.mjs +32 -24
- package/es/dragable/dragable.mjs +32 -23
- package/es/filter-panel/conditions/date-range-condition.mjs +50 -40
- package/es/filter-panel/conditions/department-condition/department-condition.mjs +99 -72
- package/es/filter-panel/conditions/department-condition/department-node.mjs +73 -59
- package/es/filter-panel/conditions/input-condition.mjs +90 -76
- package/es/filter-panel/conditions/multi-user-condition.mjs +67 -57
- package/es/filter-panel/conditions/multiple-menu-condition.mjs +54 -35
- package/es/filter-panel/conditions/single-menu-condition.mjs +65 -60
- package/es/filter-panel/conditions/single-user-condition.mjs +67 -57
- package/es/filter-panel/filter-panel-item.mjs +54 -39
- package/es/filter-panel/filter-panel.mjs +153 -135
- package/es/layout/layout.mjs +85 -78
- package/es/menu/menu-item.mjs +67 -52
- package/es/menu/menu.mjs +70 -53
- package/es/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.mjs +28 -0
- package/es/panel/panel.mjs +53 -40
- package/es/pct-filter-panel/pct-compents/pct-Input-condition.mjs +74 -63
- package/es/pct-filter-panel/pct-compents/pct-date-range-condition.mjs +76 -67
- package/es/pct-filter-panel/pct-compents/pct-multiple-menu-condition.mjs +406 -178
- package/es/pct-filter-panel/pct-compents/pct-multiple-menu-condition2.mjs +153 -138
- package/es/pct-filter-panel/pct-filter-panel-item.mjs +55 -40
- package/es/pct-filter-panel/pct-filter-panel.mjs +247 -227
- package/es/progress/progress-item.mjs +81 -61
- package/es/progress/progress.mjs +78 -64
- package/es/where-filter-panel/where-filter-panel.mjs +15 -12
- package/lib/advance-select/advance-operation.js +50 -36
- package/lib/advance-select/advance-option.js +166 -96
- package/lib/advance-select/advance-option.vue_vue_type_style_index_0_scoped_bc8f5626_lang.js +12 -0
- package/lib/advance-select/advance-select.js +366 -308
- package/lib/application-slot/breadcrumb-item.js +19 -16
- package/lib/application-slot/header-tools-item.js +19 -16
- package/lib/breadcrumb-select/breadcrumb-select.js +133 -111
- package/lib/contextmenu/contextmenu-item.js +18 -14
- package/lib/contextmenu/contextmenu.js +71 -55
- package/lib/data-form/data-form-item.js +47 -29
- package/lib/data-form/data-form.js +212 -165
- package/lib/data-form/form-components/bwa-date-picker.js +50 -38
- package/lib/data-form/form-components/bwa-date-time-picker.js +55 -43
- package/lib/data-form/form-components/bwa-input-float.js +47 -36
- package/lib/data-form/form-components/bwa-input-integer.js +67 -49
- package/lib/data-form/form-components/bwa-input.js +42 -31
- package/lib/data-form/form-components/bwa-multi-select.js +39 -28
- package/lib/data-form/form-components/bwa-rich-text-tinymce.js +553 -217
- package/lib/data-form/form-components/bwa-rich-text.js +403 -315
- package/lib/data-form/form-components/bwa-select.js +83 -69
- package/lib/data-form/form-components/bwa-textarea.js +37 -26
- package/lib/data-form/form-components/bwa-upload.js +171 -147
- package/lib/data-form/form-components/bwa-user-multi-select.js +34 -23
- package/lib/data-form/form-components/bwa-user-select.js +85 -60
- package/lib/data-table/data-column-view.js +146 -115
- package/lib/data-table/data-table-card.js +48 -40
- package/lib/data-table/data-table-column.js +57 -44
- package/lib/data-table/data-table.js +401 -315
- package/lib/datatable-settings/datatable-settings.js +328 -253
- package/lib/date-range/date-picker.js +129 -115
- package/lib/date-range/date-range.js +214 -160
- package/lib/drag-list/drag-item.js +55 -41
- package/lib/drag-list/drag-list.js +59 -46
- package/lib/dragable/dragable-item.js +22 -17
- package/lib/dragable/dragable-operation.js +31 -23
- package/lib/dragable/dragable.js +31 -22
- package/lib/filter-panel/conditions/date-range-condition.js +49 -39
- package/lib/filter-panel/conditions/department-condition/department-condition.js +98 -71
- package/lib/filter-panel/conditions/department-condition/department-node.js +72 -58
- package/lib/filter-panel/conditions/input-condition.js +89 -75
- package/lib/filter-panel/conditions/multi-user-condition.js +66 -56
- package/lib/filter-panel/conditions/multiple-menu-condition.js +53 -34
- package/lib/filter-panel/conditions/single-menu-condition.js +64 -59
- package/lib/filter-panel/conditions/single-user-condition.js +66 -56
- package/lib/filter-panel/filter-panel-item.js +53 -38
- package/lib/filter-panel/filter-panel.js +152 -134
- package/lib/layout/layout.js +84 -77
- package/lib/menu/menu-item.js +66 -51
- package/lib/menu/menu.js +69 -52
- package/lib/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js +32 -0
- package/lib/panel/panel.js +52 -39
- package/lib/pct-filter-panel/pct-compents/pct-Input-condition.js +73 -62
- package/lib/pct-filter-panel/pct-compents/pct-date-range-condition.js +75 -66
- package/lib/pct-filter-panel/pct-compents/pct-multiple-menu-condition.js +405 -177
- package/lib/pct-filter-panel/pct-compents/pct-multiple-menu-condition2.js +152 -137
- package/lib/pct-filter-panel/pct-filter-panel-item.js +54 -39
- package/lib/pct-filter-panel/pct-filter-panel.js +246 -226
- package/lib/progress/progress-item.js +80 -60
- package/lib/progress/progress.js +77 -63
- package/lib/where-filter-panel/where-filter-panel.js +14 -11
- package/package.json +2 -1
- package/src/advance-select/advance-option.vue +64 -13
- package/src/data-form/form-components/bwa-rich-text-tinymce.vue +1 -1
- package/src/datatable-settings/datatable-settings.vue +33 -3
- package/src/date-range/date-picker.vue +1 -1
- package/src/filter-panel/filter-panel.vue +2 -2
- package/src/pct-filter-panel/pct-compents/pct-Input-condition.vue +64 -64
- package/src/pct-filter-panel/pct-compents/pct-date-range-condition.vue +61 -61
- package/src/pct-filter-panel/pct-compents/pct-multiple-menu-condition.vue +302 -178
- package/src/pct-filter-panel/pct-filter-panel.vue +4 -4
|
@@ -1,50 +1,62 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useAttrs, computed, openBlock, createBlock, unref, mergeProps, isRef } from 'vue';
|
|
2
2
|
import { dayjs, ElDatePicker } from 'element-plus';
|
|
3
3
|
import _export_sfc from '../../_virtual/_plugin-vue_export-helper.mjs';
|
|
4
4
|
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
},
|
|
19
|
-
emits: ["update:model-value"],
|
|
5
|
+
const _sfc_main = {
|
|
6
|
+
__name: 'bwa-date-time-picker',
|
|
7
|
+
props: {
|
|
8
|
+
modelValue: {
|
|
9
|
+
type: [String, Date],
|
|
10
|
+
default: null,
|
|
11
|
+
},
|
|
12
|
+
placeholder: {
|
|
13
|
+
type: String,
|
|
14
|
+
default: '请选择',
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
emits: ['update:model-value'],
|
|
20
18
|
setup(__props, { emit }) {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
|
|
19
|
+
|
|
20
|
+
const props = __props;
|
|
21
|
+
|
|
22
|
+
defineOptions({
|
|
23
|
+
name: 'BwaDateTimePicker',
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
const attrs = useAttrs();
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
const modelValue = computed({
|
|
33
|
+
get: () => props.modelValue,
|
|
34
|
+
set: (v) => {
|
|
35
|
+
if (!v) {
|
|
36
|
+
emit('update:model-value', '');
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
emit(
|
|
41
|
+
'update:model-value',
|
|
42
|
+
dayjs(new Date(v.getTime())).format('YYYY-MM-DD HH:mm:ss')
|
|
43
|
+
);
|
|
44
|
+
},
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
return (_ctx, _cache) => {
|
|
48
|
+
return (openBlock(), createBlock(unref(ElDatePicker), mergeProps(unref(attrs), {
|
|
49
|
+
modelValue: unref(modelValue),
|
|
50
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (isRef(modelValue) ? (modelValue).value = $event : null)),
|
|
51
|
+
type: "datetime",
|
|
52
|
+
placeholder: __props.placeholder,
|
|
53
|
+
teleported: false,
|
|
54
|
+
style: {"width":"100%"}
|
|
55
|
+
}), null, 16 /* FULL_PROPS */, ["modelValue", "placeholder"]))
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
};
|
|
60
|
+
var DateTimePicker = /*#__PURE__*/_export_sfc(_sfc_main, [['__file',"bwa-date-time-picker.vue"]]);
|
|
49
61
|
|
|
50
62
|
export { DateTimePicker as default };
|
|
@@ -1,43 +1,54 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useAttrs, computed, openBlock, createBlock, mergeProps, unref, isRef } from 'vue';
|
|
2
2
|
import InputInteger from './bwa-input-integer.mjs';
|
|
3
3
|
import _export_sfc from '../../_virtual/_plugin-vue_export-helper.mjs';
|
|
4
4
|
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
},
|
|
23
|
-
emits: ["update:model-value"],
|
|
5
|
+
const _sfc_main = {
|
|
6
|
+
__name: 'bwa-input-float',
|
|
7
|
+
props: {
|
|
8
|
+
modelValue: {
|
|
9
|
+
type: [String, Number],
|
|
10
|
+
default: 0,
|
|
11
|
+
},
|
|
12
|
+
precision: {
|
|
13
|
+
type: Number,
|
|
14
|
+
default: 1,
|
|
15
|
+
},
|
|
16
|
+
step: {
|
|
17
|
+
type: Number,
|
|
18
|
+
default: 0.1,
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
emits: ['update:model-value'],
|
|
24
22
|
setup(__props, { emit }) {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
23
|
+
|
|
24
|
+
const props = __props;
|
|
25
|
+
|
|
26
|
+
defineOptions({
|
|
27
|
+
name: 'BwaInputFloat',
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
const attrs = useAttrs();
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
const modelValue = computed({
|
|
37
|
+
get: () => props.modelValue,
|
|
38
|
+
set: (v) => emit('update:model-value', v),
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
return (_ctx, _cache) => {
|
|
42
|
+
return (openBlock(), createBlock(InputInteger, mergeProps(unref(attrs), {
|
|
43
|
+
modelValue: unref(modelValue),
|
|
44
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (isRef(modelValue) ? (modelValue).value = $event : null)),
|
|
45
|
+
precision: __props.precision,
|
|
46
|
+
step: __props.step
|
|
47
|
+
}), null, 16 /* FULL_PROPS */, ["modelValue", "precision", "step"]))
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
};
|
|
52
|
+
var InputFloat = /*#__PURE__*/_export_sfc(_sfc_main, [['__file',"bwa-input-float.vue"]]);
|
|
42
53
|
|
|
43
54
|
export { InputFloat as default };
|
|
@@ -1,56 +1,74 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useAttrs, computed, ref, watch, unref, openBlock, createBlock, mergeProps } from 'vue';
|
|
2
2
|
import { ElInputNumber } from 'element-plus';
|
|
3
3
|
import _export_sfc from '../../_virtual/_plugin-vue_export-helper.mjs';
|
|
4
4
|
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
},
|
|
15
|
-
emits: ["update:model-value"],
|
|
5
|
+
const _sfc_main = {
|
|
6
|
+
__name: 'bwa-input-integer',
|
|
7
|
+
props: {
|
|
8
|
+
modelValue: {
|
|
9
|
+
type: [String, Number],
|
|
10
|
+
default: 0,
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
emits: ['update:model-value'],
|
|
16
14
|
setup(__props, { emit }) {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
15
|
+
|
|
16
|
+
const props = __props;
|
|
17
|
+
|
|
18
|
+
defineOptions({
|
|
19
|
+
name: 'BwaInputInteger',
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
const attrs = useAttrs();
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
const modelValue = computed({
|
|
29
|
+
get: () => props.modelValue,
|
|
30
|
+
set: (v) => {
|
|
31
|
+
emit('update:model-value', v);
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
const value = ref(modelValue.value);
|
|
36
|
+
|
|
37
|
+
watch(value, (newValue) => {
|
|
38
|
+
if (newValue === unref(modelValue)) {
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
modelValue.value = newValue;
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
watch(
|
|
46
|
+
modelValue,
|
|
47
|
+
(newValue) => {
|
|
48
|
+
if (typeof newValue === 'string') {
|
|
49
|
+
newValue = Number.parseFloat(newValue);
|
|
50
|
+
|
|
51
|
+
newValue = Number.isNaN(newValue) ? 0 : newValue;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
if (value.value === newValue && value.value !== unref(modelValue)) {
|
|
55
|
+
modelValue.value = newValue;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
value.value = newValue;
|
|
59
|
+
},
|
|
60
|
+
{ immediate: true }
|
|
61
|
+
);
|
|
62
|
+
|
|
63
|
+
return (_ctx, _cache) => {
|
|
64
|
+
return (openBlock(), createBlock(unref(ElInputNumber), mergeProps(unref(attrs), {
|
|
65
|
+
modelValue: value.value,
|
|
66
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((value).value = $event))
|
|
67
|
+
}), null, 16 /* FULL_PROPS */, ["modelValue"]))
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
};
|
|
72
|
+
var InputInteger = /*#__PURE__*/_export_sfc(_sfc_main, [['__file',"bwa-input-integer.vue"]]);
|
|
55
73
|
|
|
56
74
|
export { InputInteger as default };
|
|
@@ -1,38 +1,49 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useAttrs, computed, openBlock, createBlock, unref, mergeProps, isRef } from 'vue';
|
|
2
2
|
import { ElInput } from 'element-plus';
|
|
3
3
|
import _export_sfc from '../../_virtual/_plugin-vue_export-helper.mjs';
|
|
4
4
|
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
},
|
|
19
|
-
emits: ["update:model-value"],
|
|
5
|
+
const _sfc_main = {
|
|
6
|
+
__name: 'bwa-input',
|
|
7
|
+
props: {
|
|
8
|
+
value: {
|
|
9
|
+
type: [String, Number],
|
|
10
|
+
default: '',
|
|
11
|
+
},
|
|
12
|
+
placeholder: {
|
|
13
|
+
type: String,
|
|
14
|
+
default: '请输入'
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
emits: ['update:model-value'],
|
|
20
18
|
setup(__props, { emit }) {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
19
|
+
|
|
20
|
+
const props = __props;
|
|
21
|
+
|
|
22
|
+
defineOptions({
|
|
23
|
+
name: 'BwaInput',
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
const attrs = useAttrs();
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
const modelValue = computed({
|
|
33
|
+
get: () => props.modelValue,
|
|
34
|
+
set: (v) => emit('update:model-value', v),
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
return (_ctx, _cache) => {
|
|
38
|
+
return (openBlock(), createBlock(unref(ElInput), mergeProps(unref(attrs), {
|
|
39
|
+
modelValue: unref(modelValue),
|
|
40
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (isRef(modelValue) ? (modelValue).value = $event : null)),
|
|
41
|
+
placeholder: __props.placeholder
|
|
42
|
+
}), null, 16 /* FULL_PROPS */, ["modelValue", "placeholder"]))
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
};
|
|
47
|
+
var Input = /*#__PURE__*/_export_sfc(_sfc_main, [['__file',"bwa-input.vue"]]);
|
|
37
48
|
|
|
38
49
|
export { Input as default };
|
|
@@ -1,35 +1,46 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { computed, useAttrs, openBlock, createBlock, mergeProps, unref, isRef, withCtx, renderSlot } from 'vue';
|
|
2
2
|
import Select from './bwa-select.mjs';
|
|
3
3
|
import _export_sfc from '../../_virtual/_plugin-vue_export-helper.mjs';
|
|
4
4
|
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
},
|
|
12
|
-
emits: ["update:model-value"],
|
|
5
|
+
const _sfc_main = {
|
|
6
|
+
__name: 'bwa-multi-select',
|
|
7
|
+
props: {
|
|
8
|
+
modelValue: null,
|
|
9
|
+
},
|
|
10
|
+
emits: ['update:model-value'],
|
|
13
11
|
setup(__props, { emit }) {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
12
|
+
|
|
13
|
+
const props = __props;
|
|
14
|
+
|
|
15
|
+
defineOptions({
|
|
16
|
+
name: 'BwaMultiSelect',
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
const modelValue = computed({
|
|
24
|
+
get: () => props.modelValue,
|
|
25
|
+
set: (v) => emit('update:model-value', v),
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
const attrs = useAttrs();
|
|
29
|
+
|
|
30
|
+
return (_ctx, _cache) => {
|
|
31
|
+
return (openBlock(), createBlock(Select, mergeProps({
|
|
32
|
+
modelValue: unref(modelValue),
|
|
33
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (isRef(modelValue) ? (modelValue).value = $event : null))
|
|
34
|
+
}, unref(attrs), { multiple: "" }), {
|
|
35
|
+
default: withCtx(() => [
|
|
36
|
+
renderSlot(_ctx.$slots, "default")
|
|
37
|
+
]),
|
|
38
|
+
_: 3 /* FORWARDED */
|
|
39
|
+
}, 16 /* FULL_PROPS */, ["modelValue"]))
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
};
|
|
44
|
+
var MultiSelect = /*#__PURE__*/_export_sfc(_sfc_main, [['__file',"bwa-multi-select.vue"]]);
|
|
34
45
|
|
|
35
46
|
export { MultiSelect as default };
|