@ctzy-web-client/plugin-component-vue 1.0.26 → 1.0.28
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/_virtual/_plugin-vue_export-helper.mjs +11 -0
- package/es/advance-select/advance-operation.mjs +48 -51
- package/es/advance-select/advance-option.mjs +134 -164
- package/es/advance-select/advance-option.vue_vue_type_style_index_0_scoped_daae7edd_lang.mjs +13 -0
- package/es/advance-select/advance-select.mjs +327 -370
- package/es/advance-select/events-helpers.mjs +9 -0
- package/es/advance-select/index.mjs +9 -0
- package/es/advance-select/use-advance-option.mjs +9 -0
- package/es/advance-select/use-advance-select.mjs +9 -0
- package/es/application-slot/application-slot.mjs +9 -0
- package/es/application-slot/breadcrumb-item.mjs +26 -20
- package/es/application-slot/header-tools-item.mjs +26 -20
- package/es/application-slot/index.mjs +9 -0
- package/es/breadcrumb-select/breadcrumb-select.mjs +123 -137
- package/es/breadcrumb-select/index.mjs +9 -0
- package/es/components.mjs +9 -0
- package/es/contextmenu/contextmenu-item.mjs +24 -19
- package/es/contextmenu/contextmenu.mjs +68 -73
- package/es/contextmenu/index.mjs +9 -0
- package/es/contextmenu/use-contextmenu.mjs +10 -1
- package/es/data-form/data-form-item.mjs +41 -49
- package/es/data-form/data-form.mjs +176 -213
- package/es/data-form/dynamic-component.mjs +9 -0
- package/es/data-form/form-components/Blots/AtBlot.mjs +9 -0
- package/es/data-form/form-components/bwa-date-picker.mjs +50 -51
- package/es/data-form/form-components/bwa-date-time-picker.mjs +55 -56
- package/es/data-form/form-components/bwa-input-float.mjs +48 -48
- package/es/data-form/form-components/bwa-input-integer.mjs +61 -68
- package/es/data-form/form-components/bwa-input.mjs +43 -43
- package/es/data-form/form-components/bwa-multi-select.mjs +40 -40
- package/es/data-form/form-components/bwa-rich-text-tinymce.mjs +230 -555
- package/es/data-form/form-components/bwa-rich-text.mjs +326 -404
- package/es/data-form/form-components/bwa-select.mjs +81 -84
- package/es/data-form/form-components/bwa-textarea.mjs +38 -38
- package/es/data-form/form-components/bwa-upload.mjs +160 -173
- package/es/data-form/form-components/bwa-user-multi-select.mjs +35 -35
- package/es/data-form/form-components/bwa-user-select.mjs +72 -86
- package/es/data-form/index.mjs +9 -0
- package/es/data-table/data-column-view.mjs +124 -146
- package/es/data-table/data-table-card.mjs +49 -48
- package/es/data-table/data-table-column.mjs +55 -58
- package/es/data-table/data-table.mjs +328 -404
- package/es/data-table/dynamic-component.mjs +9 -0
- package/es/data-table/index.mjs +9 -0
- package/es/data-table/use-datatable-drag.mjs +9 -0
- package/es/datatable-settings/datatable-settings.mjs +286 -328
- package/es/datatable-settings/index.mjs +9 -0
- package/es/date-range/date-picker.mjs +125 -131
- package/es/date-range/date-range.mjs +173 -216
- package/es/date-range/index.mjs +9 -0
- package/es/drag-list/constants.mjs +10 -0
- package/es/drag-list/drag-item.mjs +51 -56
- package/es/drag-list/drag-list.mjs +58 -60
- package/es/drag-list/index.mjs +9 -0
- package/es/drag-list/use-drag-list.mjs +10 -1
- package/es/dragable/constants.mjs +10 -0
- package/es/dragable/dragable-item.mjs +27 -23
- package/es/dragable/dragable-operation.mjs +33 -32
- package/es/dragable/dragable.mjs +33 -32
- package/es/dragable/index.mjs +9 -0
- package/es/dragable/use-dragable.mjs +9 -0
- package/es/filter-panel/conditions/condition.mjs +9 -0
- package/es/filter-panel/conditions/date-range-condition.mjs +51 -50
- package/es/filter-panel/conditions/department-condition/department-condition.mjs +82 -99
- package/es/filter-panel/conditions/department-condition/department-node.mjs +69 -73
- package/es/filter-panel/conditions/index.mjs +9 -0
- package/es/filter-panel/conditions/input-condition.mjs +88 -91
- package/es/filter-panel/conditions/multi-user-condition.mjs +66 -67
- package/es/filter-panel/conditions/multiple-menu-condition.mjs +44 -54
- package/es/filter-panel/conditions/single-menu-condition.mjs +71 -65
- package/es/filter-panel/conditions/single-user-condition.mjs +66 -67
- package/es/filter-panel/filter-panel-item.mjs +51 -55
- package/es/filter-panel/filter-panel.mjs +147 -156
- package/es/filter-panel/index.mjs +9 -0
- package/es/filter-panel/use-filter-panel-item.mjs +9 -0
- package/es/filter-panel/use-filter-panel.mjs +9 -0
- package/es/hooks/use-data/index.mjs +9 -0
- package/es/index.mjs +9 -0
- package/es/layout/index.mjs +9 -0
- package/es/layout/layout.mjs +87 -85
- package/es/make-installer.mjs +9 -0
- package/es/math/Rectangle.mjs +10 -0
- package/es/menu/index.mjs +9 -0
- package/es/menu/menu-item.mjs +65 -70
- package/es/menu/menu.mjs +64 -70
- package/es/node_modules/.pnpm/{@vueuse_core@9.6.0_vue@3.2.41 → @vueuse_core@9.13.0_vue@3.5.29_typescript@4.9.5_}/node_modules/@vueuse/core/index.mjs +680 -454
- package/es/node_modules/.pnpm/{@vueuse_shared@9.6.0_vue@3.2.41 → @vueuse_shared@9.13.0_vue@3.5.29_typescript@4.9.5_}/node_modules/@vueuse/shared/index.mjs +108 -46
- package/es/panel/index.mjs +9 -0
- package/es/panel/panel.mjs +49 -53
- package/es/panel-tabs/index.mjs +9 -0
- package/es/panel-tabs/panel-tabs.mjs +9 -0
- package/es/pct-filter-panel/index.mjs +9 -0
- package/es/pct-filter-panel/pct-compents/index.mjs +9 -0
- package/es/pct-filter-panel/pct-compents/pct-Input-condition.mjs +73 -75
- package/es/pct-filter-panel/pct-compents/pct-date-range-condition.mjs +77 -77
- package/es/pct-filter-panel/pct-compents/pct-multiple-menu-condition.mjs +357 -374
- package/es/pct-filter-panel/pct-compents/pct-multiple-menu-condition2.mjs +149 -154
- package/es/pct-filter-panel/pct-filter-panel-item.mjs +52 -56
- package/es/pct-filter-panel/pct-filter-panel.mjs +235 -248
- package/es/pct-filter-panel/use-filter-panel-item.mjs +9 -0
- package/es/pct-filter-panel/use-filter-panel.mjs +9 -0
- package/es/plugins.css +1 -0
- package/es/plugins.mjs +9 -0
- package/es/progress/index.mjs +9 -0
- package/es/progress/progress-item.mjs +71 -81
- package/es/progress/progress.mjs +74 -78
- package/es/progress/use-progress.mjs +9 -0
- package/es/utils/db.mjs +9 -0
- package/es/utils.mjs +9 -0
- package/es/where-filter-panel/index.mjs +9 -1
- package/es/where-filter-panel/use-where-filter-panel.mjs +9 -0
- package/es/where-filter-panel/where-filter-panel.mjs +21 -15
- package/lib/_virtual/_plugin-vue_export-helper.js +11 -0
- package/lib/advance-select/advance-operation.js +47 -50
- package/lib/advance-select/advance-option.js +133 -163
- package/lib/advance-select/advance-option.vue_vue_type_style_index_0_scoped_daae7edd_lang.js +17 -0
- package/lib/advance-select/advance-select.js +326 -369
- package/lib/advance-select/events-helpers.js +9 -0
- package/lib/advance-select/index.js +9 -0
- package/lib/advance-select/use-advance-option.js +9 -0
- package/lib/advance-select/use-advance-select.js +9 -0
- package/lib/application-slot/application-slot.js +9 -0
- package/lib/application-slot/breadcrumb-item.js +25 -19
- package/lib/application-slot/header-tools-item.js +25 -19
- package/lib/application-slot/index.js +9 -0
- package/lib/breadcrumb-select/breadcrumb-select.js +122 -136
- package/lib/breadcrumb-select/index.js +9 -0
- package/lib/components.js +9 -0
- package/lib/contextmenu/contextmenu-item.js +23 -18
- package/lib/contextmenu/contextmenu.js +67 -72
- package/lib/contextmenu/index.js +9 -0
- package/lib/contextmenu/use-contextmenu.js +10 -1
- package/lib/data-form/data-form-item.js +40 -48
- package/lib/data-form/data-form.js +175 -212
- package/lib/data-form/dynamic-component.js +9 -0
- package/lib/data-form/form-components/Blots/AtBlot.js +9 -0
- package/lib/data-form/form-components/bwa-date-picker.js +49 -50
- package/lib/data-form/form-components/bwa-date-time-picker.js +54 -55
- package/lib/data-form/form-components/bwa-input-float.js +47 -47
- package/lib/data-form/form-components/bwa-input-integer.js +60 -67
- package/lib/data-form/form-components/bwa-input.js +42 -42
- package/lib/data-form/form-components/bwa-multi-select.js +39 -39
- package/lib/data-form/form-components/bwa-rich-text-tinymce.js +229 -554
- package/lib/data-form/form-components/bwa-rich-text.js +325 -403
- package/lib/data-form/form-components/bwa-select.js +80 -83
- package/lib/data-form/form-components/bwa-textarea.js +37 -37
- package/lib/data-form/form-components/bwa-upload.js +159 -172
- package/lib/data-form/form-components/bwa-user-multi-select.js +34 -34
- package/lib/data-form/form-components/bwa-user-select.js +71 -85
- package/lib/data-form/index.js +9 -0
- package/lib/data-table/data-column-view.js +124 -146
- package/lib/data-table/data-table-card.js +49 -48
- package/lib/data-table/data-table-column.js +54 -57
- package/lib/data-table/data-table.js +327 -403
- package/lib/data-table/dynamic-component.js +9 -0
- package/lib/data-table/index.js +9 -0
- package/lib/data-table/use-datatable-drag.js +9 -0
- package/lib/datatable-settings/datatable-settings.js +285 -327
- package/lib/datatable-settings/index.js +9 -0
- package/lib/date-range/date-picker.js +124 -130
- package/lib/date-range/date-range.js +172 -215
- package/lib/date-range/index.js +9 -0
- package/lib/drag-list/constants.js +10 -0
- package/lib/drag-list/drag-item.js +50 -55
- package/lib/drag-list/drag-list.js +57 -59
- package/lib/drag-list/index.js +9 -0
- package/lib/drag-list/use-drag-list.js +10 -1
- package/lib/dragable/constants.js +10 -0
- package/lib/dragable/dragable-item.js +26 -22
- package/lib/dragable/dragable-operation.js +32 -31
- package/lib/dragable/dragable.js +32 -31
- package/lib/dragable/index.js +9 -0
- package/lib/dragable/use-dragable.js +9 -0
- package/lib/filter-panel/conditions/condition.js +9 -0
- package/lib/filter-panel/conditions/date-range-condition.js +50 -49
- package/lib/filter-panel/conditions/department-condition/department-condition.js +81 -98
- package/lib/filter-panel/conditions/department-condition/department-node.js +68 -72
- package/lib/filter-panel/conditions/index.js +9 -0
- package/lib/filter-panel/conditions/input-condition.js +87 -90
- package/lib/filter-panel/conditions/multi-user-condition.js +65 -66
- package/lib/filter-panel/conditions/multiple-menu-condition.js +43 -53
- package/lib/filter-panel/conditions/single-menu-condition.js +70 -64
- package/lib/filter-panel/conditions/single-user-condition.js +65 -66
- package/lib/filter-panel/filter-panel-item.js +50 -54
- package/lib/filter-panel/filter-panel.js +146 -155
- package/lib/filter-panel/index.js +9 -0
- package/lib/filter-panel/use-filter-panel-item.js +9 -0
- package/lib/filter-panel/use-filter-panel.js +9 -0
- package/lib/hooks/use-data/index.js +9 -0
- package/lib/index.js +9 -0
- package/lib/layout/index.js +9 -0
- package/lib/layout/layout.js +86 -84
- package/lib/make-installer.js +9 -0
- package/lib/math/Rectangle.js +10 -0
- package/lib/menu/index.js +9 -0
- package/lib/menu/menu-item.js +64 -69
- package/lib/menu/menu.js +63 -69
- package/lib/node_modules/.pnpm/{@vueuse_core@9.6.0_vue@3.2.41 → @vueuse_core@9.13.0_vue@3.5.29_typescript@4.9.5_}/node_modules/@vueuse/core/index.js +685 -451
- package/lib/node_modules/.pnpm/{@vueuse_shared@9.6.0_vue@3.2.41 → @vueuse_shared@9.13.0_vue@3.5.29_typescript@4.9.5_}/node_modules/@vueuse/shared/index.js +109 -44
- package/lib/panel/index.js +9 -0
- package/lib/panel/panel.js +48 -52
- package/lib/panel-tabs/index.js +9 -0
- package/lib/panel-tabs/panel-tabs.js +9 -0
- package/lib/pct-filter-panel/index.js +9 -0
- package/lib/pct-filter-panel/pct-compents/index.js +9 -0
- package/lib/pct-filter-panel/pct-compents/pct-Input-condition.js +72 -74
- package/lib/pct-filter-panel/pct-compents/pct-date-range-condition.js +76 -76
- package/lib/pct-filter-panel/pct-compents/pct-multiple-menu-condition.js +356 -373
- package/lib/pct-filter-panel/pct-compents/pct-multiple-menu-condition2.js +148 -153
- package/lib/pct-filter-panel/pct-filter-panel-item.js +51 -55
- package/lib/pct-filter-panel/pct-filter-panel.js +234 -247
- package/lib/pct-filter-panel/use-filter-panel-item.js +9 -0
- package/lib/pct-filter-panel/use-filter-panel.js +9 -0
- package/lib/plugins.css +1 -0
- package/lib/plugins.js +9 -0
- package/lib/progress/index.js +9 -0
- package/lib/progress/progress-item.js +70 -80
- package/lib/progress/progress.js +73 -77
- package/lib/progress/use-progress.js +9 -0
- package/lib/utils/db.js +9 -0
- package/lib/utils.js +9 -0
- package/lib/where-filter-panel/index.js +9 -0
- package/lib/where-filter-panel/use-where-filter-panel.js +9 -0
- package/lib/where-filter-panel/where-filter-panel.js +20 -14
- package/package.json +1 -1
- package/src/advance-select/advance-option.vue +13 -7
- package/src/advance-select/advance-select.vue +8 -1
- package/src/pct-filter-panel/pct-compents/pct-multiple-menu-condition.vue +10 -1
- package/style/index.css +1 -1
- package/es/advance-select/advance-option.vue_vue_type_style_index_0_scoped_bc8f5626_lang.mjs +0 -7
- package/es/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.mjs +0 -28
- package/lib/advance-select/advance-option.vue_vue_type_style_index_0_scoped_bc8f5626_lang.js +0 -12
- package/lib/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js +0 -32
|
@@ -3,6 +3,15 @@ import 'lodash/get';
|
|
|
3
3
|
import 'lodash/set';
|
|
4
4
|
import { useDynamicComponent } from '../utils.mjs';
|
|
5
5
|
|
|
6
|
+
// Inject __name helper
|
|
7
|
+
if (typeof __name === 'undefined') {
|
|
8
|
+
function __name(obj, name) {
|
|
9
|
+
Object.defineProperty(obj, "name", {
|
|
10
|
+
value: name,
|
|
11
|
+
configurable: true
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
}
|
|
6
15
|
var DynamicComponent = {
|
|
7
16
|
props: {
|
|
8
17
|
column: Object,
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import Quill from 'quill';
|
|
2
2
|
|
|
3
|
+
// Inject __name helper
|
|
4
|
+
if (typeof __name === 'undefined') {
|
|
5
|
+
function __name(obj, name) {
|
|
6
|
+
Object.defineProperty(obj, "name", {
|
|
7
|
+
value: name,
|
|
8
|
+
configurable: true
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
}
|
|
3
12
|
const Parchment = Quill.imports.parchment;
|
|
4
13
|
class AtBlot extends Parchment.Embed {
|
|
5
14
|
static create(options) {
|
|
@@ -1,57 +1,56 @@
|
|
|
1
|
-
import { useAttrs, computed, openBlock, createBlock, unref, mergeProps
|
|
1
|
+
import { defineComponent, useAttrs, computed, openBlock, createBlock, unref, mergeProps } 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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
type: String,
|
|
14
|
-
default: '请选择',
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
emits: ['update:model-value'],
|
|
18
|
-
setup(__props, { emit }) {
|
|
19
|
-
|
|
20
|
-
const props = __props;
|
|
21
|
-
|
|
22
|
-
defineOptions({
|
|
23
|
-
name: 'BwaDatePicker',
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const attrs = useAttrs();
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
const modelValue = computed({
|
|
33
|
-
get: () => props.modelValue,
|
|
34
|
-
set: (v) =>
|
|
35
|
-
emit(
|
|
36
|
-
'update:model-value',
|
|
37
|
-
v ? dayjs(new Date(v.getTime())).format('YYYY-MM-DD') : ''
|
|
38
|
-
),
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
return (_ctx, _cache) => {
|
|
42
|
-
return (openBlock(), createBlock(unref(ElDatePicker), mergeProps({
|
|
43
|
-
modelValue: unref(modelValue),
|
|
44
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (isRef(modelValue) ? (modelValue).value = $event : null)),
|
|
45
|
-
type: "date",
|
|
46
|
-
placeholder: __props.placeholder
|
|
47
|
-
}, unref(attrs), {
|
|
48
|
-
teleported: false,
|
|
49
|
-
style: {"width":"100%"}
|
|
50
|
-
}), null, 16 /* FULL_PROPS */, ["modelValue", "placeholder"]))
|
|
5
|
+
// Inject __name helper
|
|
6
|
+
if (typeof __name === 'undefined') {
|
|
7
|
+
function __name(obj, name) {
|
|
8
|
+
Object.defineProperty(obj, "name", {
|
|
9
|
+
value: name,
|
|
10
|
+
configurable: true
|
|
11
|
+
});
|
|
12
|
+
}
|
|
51
13
|
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
};
|
|
55
|
-
|
|
14
|
+
const __default__ = defineComponent({
|
|
15
|
+
name: "BwaDatePicker"
|
|
16
|
+
});
|
|
17
|
+
const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
18
|
+
props: {
|
|
19
|
+
modelValue: {
|
|
20
|
+
type: [String, Date],
|
|
21
|
+
default: null
|
|
22
|
+
},
|
|
23
|
+
placeholder: {
|
|
24
|
+
type: String,
|
|
25
|
+
default: "\u8BF7\u9009\u62E9"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
emits: ["update:model-value"],
|
|
29
|
+
setup(__props, { emit: __emit }) {
|
|
30
|
+
;
|
|
31
|
+
const props = __props;
|
|
32
|
+
const attrs = useAttrs();
|
|
33
|
+
const emit = __emit;
|
|
34
|
+
const modelValue = computed({
|
|
35
|
+
get: () => props.modelValue,
|
|
36
|
+
set: (v) => emit(
|
|
37
|
+
"update:model-value",
|
|
38
|
+
v ? dayjs(new Date(v.getTime())).format("YYYY-MM-DD") : ""
|
|
39
|
+
)
|
|
40
|
+
});
|
|
41
|
+
return (_ctx, _cache) => {
|
|
42
|
+
return openBlock(), createBlock(unref(ElDatePicker), mergeProps({
|
|
43
|
+
modelValue: modelValue.value,
|
|
44
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event),
|
|
45
|
+
type: "date",
|
|
46
|
+
placeholder: __props.placeholder
|
|
47
|
+
}, unref(attrs), {
|
|
48
|
+
teleported: false,
|
|
49
|
+
style: { "width": "100%" }
|
|
50
|
+
}), null, 16, ["modelValue", "placeholder"]);
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
var DatePicker = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "bwa-date-picker.vue"]]);
|
|
56
55
|
|
|
57
56
|
export { DatePicker as default };
|
|
@@ -1,62 +1,61 @@
|
|
|
1
|
-
import { useAttrs, computed, openBlock, createBlock, unref, mergeProps
|
|
1
|
+
import { defineComponent, useAttrs, computed, openBlock, createBlock, unref, mergeProps } 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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
type: String,
|
|
14
|
-
default: '请选择',
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
emits: ['update:model-value'],
|
|
18
|
-
setup(__props, { emit }) {
|
|
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"]))
|
|
5
|
+
// Inject __name helper
|
|
6
|
+
if (typeof __name === 'undefined') {
|
|
7
|
+
function __name(obj, name) {
|
|
8
|
+
Object.defineProperty(obj, "name", {
|
|
9
|
+
value: name,
|
|
10
|
+
configurable: true
|
|
11
|
+
});
|
|
12
|
+
}
|
|
56
13
|
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
};
|
|
60
|
-
|
|
14
|
+
const __default__ = defineComponent({
|
|
15
|
+
name: "BwaDateTimePicker"
|
|
16
|
+
});
|
|
17
|
+
const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
18
|
+
props: {
|
|
19
|
+
modelValue: {
|
|
20
|
+
type: [String, Date],
|
|
21
|
+
default: null
|
|
22
|
+
},
|
|
23
|
+
placeholder: {
|
|
24
|
+
type: String,
|
|
25
|
+
default: "\u8BF7\u9009\u62E9"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
emits: ["update:model-value"],
|
|
29
|
+
setup(__props, { emit: __emit }) {
|
|
30
|
+
;
|
|
31
|
+
const props = __props;
|
|
32
|
+
const attrs = useAttrs();
|
|
33
|
+
const emit = __emit;
|
|
34
|
+
const modelValue = computed({
|
|
35
|
+
get: () => props.modelValue,
|
|
36
|
+
set: (v) => {
|
|
37
|
+
if (!v) {
|
|
38
|
+
emit("update:model-value", "");
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
emit(
|
|
42
|
+
"update:model-value",
|
|
43
|
+
dayjs(new Date(v.getTime())).format("YYYY-MM-DD HH:mm:ss")
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
return (_ctx, _cache) => {
|
|
48
|
+
return openBlock(), createBlock(unref(ElDatePicker), mergeProps(unref(attrs), {
|
|
49
|
+
modelValue: modelValue.value,
|
|
50
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event),
|
|
51
|
+
type: "datetime",
|
|
52
|
+
placeholder: __props.placeholder,
|
|
53
|
+
teleported: false,
|
|
54
|
+
style: { "width": "100%" }
|
|
55
|
+
}), null, 16, ["modelValue", "placeholder"]);
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
var DateTimePicker = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "bwa-date-time-picker.vue"]]);
|
|
61
60
|
|
|
62
61
|
export { DateTimePicker as default };
|
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
import { useAttrs, computed, openBlock, createBlock, mergeProps, unref
|
|
1
|
+
import { defineComponent, useAttrs, computed, openBlock, createBlock, mergeProps, unref } 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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
type: Number,
|
|
14
|
-
default: 1,
|
|
15
|
-
},
|
|
16
|
-
step: {
|
|
17
|
-
type: Number,
|
|
18
|
-
default: 0.1,
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
emits: ['update:model-value'],
|
|
22
|
-
setup(__props, { emit }) {
|
|
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"]))
|
|
5
|
+
// Inject __name helper
|
|
6
|
+
if (typeof __name === 'undefined') {
|
|
7
|
+
function __name(obj, name) {
|
|
8
|
+
Object.defineProperty(obj, "name", {
|
|
9
|
+
value: name,
|
|
10
|
+
configurable: true
|
|
11
|
+
});
|
|
12
|
+
}
|
|
48
13
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
};
|
|
52
|
-
|
|
14
|
+
const __default__ = defineComponent({
|
|
15
|
+
name: "BwaInputFloat"
|
|
16
|
+
});
|
|
17
|
+
const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
18
|
+
props: {
|
|
19
|
+
modelValue: {
|
|
20
|
+
type: [String, Number],
|
|
21
|
+
default: 0
|
|
22
|
+
},
|
|
23
|
+
precision: {
|
|
24
|
+
type: Number,
|
|
25
|
+
default: 1
|
|
26
|
+
},
|
|
27
|
+
step: {
|
|
28
|
+
type: Number,
|
|
29
|
+
default: 0.1
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
emits: ["update:model-value"],
|
|
33
|
+
setup(__props, { emit: __emit }) {
|
|
34
|
+
;
|
|
35
|
+
const props = __props;
|
|
36
|
+
const attrs = useAttrs();
|
|
37
|
+
const emit = __emit;
|
|
38
|
+
const modelValue = computed({
|
|
39
|
+
get: () => props.modelValue,
|
|
40
|
+
set: (v) => emit("update:model-value", v)
|
|
41
|
+
});
|
|
42
|
+
return (_ctx, _cache) => {
|
|
43
|
+
return openBlock(), createBlock(InputInteger, mergeProps(unref(attrs), {
|
|
44
|
+
modelValue: modelValue.value,
|
|
45
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event),
|
|
46
|
+
precision: __props.precision,
|
|
47
|
+
step: __props.step
|
|
48
|
+
}), null, 16, ["modelValue", "precision", "step"]);
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
var InputFloat = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "bwa-input-float.vue"]]);
|
|
53
53
|
|
|
54
54
|
export { InputFloat as default };
|
|
@@ -1,74 +1,67 @@
|
|
|
1
|
-
import { useAttrs, computed, ref, watch, unref, openBlock, createBlock, mergeProps } from 'vue';
|
|
1
|
+
import { defineComponent, 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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
emits: ['update:model-value'],
|
|
14
|
-
setup(__props, { emit }) {
|
|
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"]))
|
|
5
|
+
// Inject __name helper
|
|
6
|
+
if (typeof __name === 'undefined') {
|
|
7
|
+
function __name(obj, name) {
|
|
8
|
+
Object.defineProperty(obj, "name", {
|
|
9
|
+
value: name,
|
|
10
|
+
configurable: true
|
|
11
|
+
});
|
|
12
|
+
}
|
|
68
13
|
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
};
|
|
72
|
-
|
|
14
|
+
const __default__ = defineComponent({
|
|
15
|
+
name: "BwaInputInteger"
|
|
16
|
+
});
|
|
17
|
+
const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
18
|
+
props: {
|
|
19
|
+
modelValue: {
|
|
20
|
+
type: [String, Number],
|
|
21
|
+
default: 0
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
emits: ["update:model-value"],
|
|
25
|
+
setup(__props, { emit: __emit }) {
|
|
26
|
+
;
|
|
27
|
+
const props = __props;
|
|
28
|
+
const attrs = useAttrs();
|
|
29
|
+
const emit = __emit;
|
|
30
|
+
const modelValue = computed({
|
|
31
|
+
get: () => props.modelValue,
|
|
32
|
+
set: (v) => {
|
|
33
|
+
emit("update:model-value", v);
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
const value = ref(modelValue.value);
|
|
37
|
+
watch(value, (newValue) => {
|
|
38
|
+
if (newValue === unref(modelValue)) {
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
modelValue.value = newValue;
|
|
42
|
+
});
|
|
43
|
+
watch(
|
|
44
|
+
modelValue,
|
|
45
|
+
(newValue) => {
|
|
46
|
+
if (typeof newValue === "string") {
|
|
47
|
+
newValue = Number.parseFloat(newValue);
|
|
48
|
+
newValue = Number.isNaN(newValue) ? 0 : newValue;
|
|
49
|
+
}
|
|
50
|
+
if (value.value === newValue && value.value !== unref(modelValue)) {
|
|
51
|
+
modelValue.value = newValue;
|
|
52
|
+
}
|
|
53
|
+
value.value = newValue;
|
|
54
|
+
},
|
|
55
|
+
{ immediate: true }
|
|
56
|
+
);
|
|
57
|
+
return (_ctx, _cache) => {
|
|
58
|
+
return openBlock(), createBlock(unref(ElInputNumber), mergeProps(unref(attrs), {
|
|
59
|
+
modelValue: value.value,
|
|
60
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event)
|
|
61
|
+
}), null, 16, ["modelValue"]);
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
var InputInteger = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "bwa-input-integer.vue"]]);
|
|
73
66
|
|
|
74
67
|
export { InputInteger as default };
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import { useAttrs, computed, openBlock, createBlock, unref, mergeProps
|
|
1
|
+
import { defineComponent, useAttrs, computed, openBlock, createBlock, unref, mergeProps } from 'vue';
|
|
2
2
|
import { ElInput } from 'element-plus';
|
|
3
3
|
import _export_sfc from '../../_virtual/_plugin-vue_export-helper.mjs';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
type: String,
|
|
14
|
-
default: '请输入'
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
emits: ['update:model-value'],
|
|
18
|
-
setup(__props, { emit }) {
|
|
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"]))
|
|
5
|
+
// Inject __name helper
|
|
6
|
+
if (typeof __name === 'undefined') {
|
|
7
|
+
function __name(obj, name) {
|
|
8
|
+
Object.defineProperty(obj, "name", {
|
|
9
|
+
value: name,
|
|
10
|
+
configurable: true
|
|
11
|
+
});
|
|
12
|
+
}
|
|
43
13
|
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
};
|
|
47
|
-
|
|
14
|
+
const __default__ = defineComponent({
|
|
15
|
+
name: "BwaInput"
|
|
16
|
+
});
|
|
17
|
+
const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
18
|
+
props: {
|
|
19
|
+
value: {
|
|
20
|
+
type: [String, Number],
|
|
21
|
+
default: ""
|
|
22
|
+
},
|
|
23
|
+
placeholder: {
|
|
24
|
+
type: String,
|
|
25
|
+
default: "\u8BF7\u8F93\u5165"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
emits: ["update:model-value"],
|
|
29
|
+
setup(__props, { emit: __emit }) {
|
|
30
|
+
;
|
|
31
|
+
const props = __props;
|
|
32
|
+
const attrs = useAttrs();
|
|
33
|
+
const emit = __emit;
|
|
34
|
+
const modelValue = computed({
|
|
35
|
+
get: () => props.modelValue,
|
|
36
|
+
set: (v) => emit("update:model-value", v)
|
|
37
|
+
});
|
|
38
|
+
return (_ctx, _cache) => {
|
|
39
|
+
return openBlock(), createBlock(unref(ElInput), mergeProps(unref(attrs), {
|
|
40
|
+
modelValue: modelValue.value,
|
|
41
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event),
|
|
42
|
+
placeholder: __props.placeholder
|
|
43
|
+
}), null, 16, ["modelValue", "placeholder"]);
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
var Input = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "bwa-input.vue"]]);
|
|
48
48
|
|
|
49
49
|
export { Input as default };
|
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import { computed, useAttrs, openBlock, createBlock, mergeProps, unref,
|
|
1
|
+
import { defineComponent, computed, useAttrs, openBlock, createBlock, mergeProps, unref, 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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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"]))
|
|
5
|
+
// Inject __name helper
|
|
6
|
+
if (typeof __name === 'undefined') {
|
|
7
|
+
function __name(obj, name) {
|
|
8
|
+
Object.defineProperty(obj, "name", {
|
|
9
|
+
value: name,
|
|
10
|
+
configurable: true
|
|
11
|
+
});
|
|
12
|
+
}
|
|
40
13
|
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
};
|
|
44
|
-
|
|
14
|
+
const __default__ = defineComponent({
|
|
15
|
+
name: "BwaMultiSelect"
|
|
16
|
+
});
|
|
17
|
+
const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
18
|
+
props: {
|
|
19
|
+
modelValue: null
|
|
20
|
+
},
|
|
21
|
+
emits: ["update:model-value"],
|
|
22
|
+
setup(__props, { emit: __emit }) {
|
|
23
|
+
;
|
|
24
|
+
const props = __props;
|
|
25
|
+
const emit = __emit;
|
|
26
|
+
const modelValue = computed({
|
|
27
|
+
get: () => props.modelValue,
|
|
28
|
+
set: (v) => emit("update:model-value", v)
|
|
29
|
+
});
|
|
30
|
+
const attrs = useAttrs();
|
|
31
|
+
return (_ctx, _cache) => {
|
|
32
|
+
return openBlock(), createBlock(Select, mergeProps({
|
|
33
|
+
modelValue: modelValue.value,
|
|
34
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event)
|
|
35
|
+
}, unref(attrs), { multiple: "" }), {
|
|
36
|
+
default: withCtx(() => [
|
|
37
|
+
renderSlot(_ctx.$slots, "default")
|
|
38
|
+
]),
|
|
39
|
+
_: 3
|
|
40
|
+
}, 16, ["modelValue"]);
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
var MultiSelect = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "bwa-multi-select.vue"]]);
|
|
45
45
|
|
|
46
46
|
export { MultiSelect as default };
|