@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
|
@@ -1,74 +1,73 @@
|
|
|
1
|
-
import { useAttrs, ref, unref, onMounted, openBlock, createBlock, mergeProps, withCtx, renderSlot, createElementBlock, Fragment, renderList } from 'vue';
|
|
1
|
+
import { defineComponent, useAttrs, ref, unref, onMounted, openBlock, createBlock, mergeProps, withCtx, renderSlot, createElementBlock, Fragment, renderList } from 'vue';
|
|
2
2
|
import { useService } from '@ctzy-web-client/web-base-client-vue';
|
|
3
3
|
import { BwaAdvanceSelect, BwaAdvanceOption } from '../../advance-select/index.mjs';
|
|
4
4
|
import _export_sfc from '../../_virtual/_plugin-vue_export-helper.mjs';
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
const attrs = useAttrs();
|
|
17
|
-
const userService = useService('UserService');
|
|
18
|
-
|
|
19
|
-
const userList = ref([]);
|
|
20
|
-
|
|
21
|
-
const loadUserList = async (name = '') => {
|
|
22
|
-
if (!unref(userService)) {
|
|
23
|
-
return;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
const userListResult = await unref(userService).getUserList({ name });
|
|
27
|
-
|
|
28
|
-
if (userListResult.code != 0) {
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
userList.value = userListResult.data || [];
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
onMounted(loadUserList);
|
|
36
|
-
|
|
37
|
-
return (_ctx, _cache) => {
|
|
38
|
-
return (openBlock(), createBlock(unref(BwaAdvanceSelect), mergeProps(unref(attrs), {
|
|
39
|
-
multiple: true,
|
|
40
|
-
onSearch: loadUserList
|
|
41
|
-
}), {
|
|
42
|
-
operation: withCtx(() => [
|
|
43
|
-
renderSlot(_ctx.$slots, "operation")
|
|
44
|
-
]),
|
|
45
|
-
empy: withCtx(() => [
|
|
46
|
-
renderSlot(_ctx.$slots, "empy")
|
|
47
|
-
]),
|
|
48
|
-
label: withCtx(({ selectedValue, column }) => [
|
|
49
|
-
renderSlot(_ctx.$slots, "label", {
|
|
50
|
-
selectedValue: selectedValue,
|
|
51
|
-
column: column
|
|
52
|
-
})
|
|
53
|
-
]),
|
|
54
|
-
value: withCtx(() => [
|
|
55
|
-
renderSlot(_ctx.$slots, "value")
|
|
56
|
-
]),
|
|
57
|
-
default: withCtx(() => [
|
|
58
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(userList.value, (item) => {
|
|
59
|
-
return (openBlock(), createBlock(unref(BwaAdvanceOption), {
|
|
60
|
-
key: item.value,
|
|
61
|
-
value: item.value,
|
|
62
|
-
label: item.label
|
|
63
|
-
}, null, 8 /* PROPS */, ["value", "label"]))
|
|
64
|
-
}), 128 /* KEYED_FRAGMENT */))
|
|
65
|
-
]),
|
|
66
|
-
_: 3 /* FORWARDED */
|
|
67
|
-
}, 16 /* FULL_PROPS */))
|
|
68
|
-
}
|
|
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
|
+
}
|
|
69
14
|
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
15
|
+
const __default__ = defineComponent({
|
|
16
|
+
name: "BwaMultiUserCondition",
|
|
17
|
+
__conditionTitle__: "\u591A\u9009\u7528\u6237",
|
|
18
|
+
__conditionDefault__: () => []
|
|
19
|
+
});
|
|
20
|
+
const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
21
|
+
setup(__props) {
|
|
22
|
+
;
|
|
23
|
+
const attrs = useAttrs();
|
|
24
|
+
const userService = useService("UserService");
|
|
25
|
+
const userList = ref([]);
|
|
26
|
+
const loadUserList = async (name = "") => {
|
|
27
|
+
if (!unref(userService)) {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
const userListResult = await unref(userService).getUserList({ name });
|
|
31
|
+
if (userListResult.code != 0) {
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
userList.value = userListResult.data || [];
|
|
35
|
+
};
|
|
36
|
+
onMounted(loadUserList);
|
|
37
|
+
return (_ctx, _cache) => {
|
|
38
|
+
return openBlock(), createBlock(unref(BwaAdvanceSelect), mergeProps(unref(attrs), {
|
|
39
|
+
multiple: true,
|
|
40
|
+
onSearch: loadUserList
|
|
41
|
+
}), {
|
|
42
|
+
operation: withCtx(() => [
|
|
43
|
+
renderSlot(_ctx.$slots, "operation")
|
|
44
|
+
]),
|
|
45
|
+
empy: withCtx(() => [
|
|
46
|
+
renderSlot(_ctx.$slots, "empy")
|
|
47
|
+
]),
|
|
48
|
+
label: withCtx(({ selectedValue, column }) => [
|
|
49
|
+
renderSlot(_ctx.$slots, "label", {
|
|
50
|
+
selectedValue,
|
|
51
|
+
column
|
|
52
|
+
})
|
|
53
|
+
]),
|
|
54
|
+
value: withCtx(() => [
|
|
55
|
+
renderSlot(_ctx.$slots, "value")
|
|
56
|
+
]),
|
|
57
|
+
default: withCtx(() => [
|
|
58
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(userList.value, (item) => {
|
|
59
|
+
return openBlock(), createBlock(unref(BwaAdvanceOption), {
|
|
60
|
+
key: item.value,
|
|
61
|
+
value: item.value,
|
|
62
|
+
label: item.label
|
|
63
|
+
}, null, 8, ["value", "label"]);
|
|
64
|
+
}), 128))
|
|
65
|
+
]),
|
|
66
|
+
_: 3
|
|
67
|
+
}, 16);
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
var MultiUserCondition = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "multi-user-condition.vue"]]);
|
|
73
72
|
|
|
74
73
|
export { MultiUserCondition as default };
|
|
@@ -1,60 +1,50 @@
|
|
|
1
|
-
import { useAttrs, openBlock, createBlock, unref, mergeProps, withCtx, renderSlot } from 'vue';
|
|
1
|
+
import { defineComponent, useAttrs, openBlock, createBlock, unref, mergeProps, withCtx, renderSlot } from 'vue';
|
|
2
2
|
import { BwaAdvanceSelect } from '../../advance-select/index.mjs';
|
|
3
3
|
import _export_sfc from '../../_virtual/_plugin-vue_export-helper.mjs';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
const attrs = useAttrs();
|
|
16
|
-
|
|
17
|
-
// const props = defineProps({
|
|
18
|
-
// modelValue: {
|
|
19
|
-
// type: null,
|
|
20
|
-
// },
|
|
21
|
-
// });
|
|
22
|
-
|
|
23
|
-
// const emit = defineEmits(['update:modelValue']);
|
|
24
|
-
|
|
25
|
-
// const value = computed({
|
|
26
|
-
// get: () => props.modelValue,
|
|
27
|
-
// set: (v) => {
|
|
28
|
-
// emit('update:modelValue', v);
|
|
29
|
-
// },
|
|
30
|
-
// });
|
|
31
|
-
|
|
32
|
-
return (_ctx, _cache) => {
|
|
33
|
-
return (openBlock(), createBlock(unref(BwaAdvanceSelect), mergeProps(unref(attrs), { multiple: true }), {
|
|
34
|
-
operation: withCtx(() => [
|
|
35
|
-
renderSlot(_ctx.$slots, "operation")
|
|
36
|
-
]),
|
|
37
|
-
empy: withCtx(() => [
|
|
38
|
-
renderSlot(_ctx.$slots, "empy")
|
|
39
|
-
]),
|
|
40
|
-
label: withCtx(({ selectedValue, column }) => [
|
|
41
|
-
renderSlot(_ctx.$slots, "label", {
|
|
42
|
-
selectedValue: selectedValue,
|
|
43
|
-
column: column
|
|
44
|
-
})
|
|
45
|
-
]),
|
|
46
|
-
value: withCtx(() => [
|
|
47
|
-
renderSlot(_ctx.$slots, "value")
|
|
48
|
-
]),
|
|
49
|
-
default: withCtx(() => [
|
|
50
|
-
renderSlot(_ctx.$slots, "default")
|
|
51
|
-
]),
|
|
52
|
-
_: 3 /* FORWARDED */
|
|
53
|
-
}, 16 /* FULL_PROPS */))
|
|
54
|
-
}
|
|
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
|
+
}
|
|
55
13
|
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
14
|
+
const __default__ = defineComponent({
|
|
15
|
+
name: "BwaMultipleMenuCondition",
|
|
16
|
+
__conditionTitle__: "\u591A\u9009\u5217\u8868",
|
|
17
|
+
__conditionDefault__: () => []
|
|
18
|
+
});
|
|
19
|
+
const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
20
|
+
setup(__props) {
|
|
21
|
+
;
|
|
22
|
+
const attrs = useAttrs();
|
|
23
|
+
return (_ctx, _cache) => {
|
|
24
|
+
return openBlock(), createBlock(unref(BwaAdvanceSelect), mergeProps(unref(attrs), { multiple: true }), {
|
|
25
|
+
operation: withCtx(() => [
|
|
26
|
+
renderSlot(_ctx.$slots, "operation")
|
|
27
|
+
]),
|
|
28
|
+
empy: withCtx(() => [
|
|
29
|
+
renderSlot(_ctx.$slots, "empy")
|
|
30
|
+
]),
|
|
31
|
+
label: withCtx(({ selectedValue, column }) => [
|
|
32
|
+
renderSlot(_ctx.$slots, "label", {
|
|
33
|
+
selectedValue,
|
|
34
|
+
column
|
|
35
|
+
})
|
|
36
|
+
]),
|
|
37
|
+
value: withCtx(() => [
|
|
38
|
+
renderSlot(_ctx.$slots, "value")
|
|
39
|
+
]),
|
|
40
|
+
default: withCtx(() => [
|
|
41
|
+
renderSlot(_ctx.$slots, "default")
|
|
42
|
+
]),
|
|
43
|
+
_: 3
|
|
44
|
+
}, 16);
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
var MultipleMenuCondition = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "multiple-menu-condition.vue"]]);
|
|
59
49
|
|
|
60
50
|
export { MultipleMenuCondition as default };
|
|
@@ -1,73 +1,79 @@
|
|
|
1
|
-
import { computed, useAttrs, openBlock, createBlock, unref, mergeProps,
|
|
1
|
+
import { defineComponent, computed, useAttrs, openBlock, createBlock, unref, mergeProps, withCtx, createCommentVNode, renderSlot } from 'vue';
|
|
2
2
|
import { useNamespace } from '@ctzy-web-client/web-base-client-vue';
|
|
3
3
|
import { BwaAdvanceSelect } from '../../advance-select/index.mjs';
|
|
4
4
|
import 'element-plus';
|
|
5
5
|
import _export_sfc from '../../_virtual/_plugin-vue_export-helper.mjs';
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
const props = __props;
|
|
16
|
-
|
|
17
|
-
defineOptions({
|
|
18
|
-
name: 'BwaSingleMenuCondition',
|
|
19
|
-
__conditionTitle__: '单选列表',
|
|
20
|
-
__conditionDefault__: '',
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
const value = computed({
|
|
28
|
-
get: () => props.modelValue,
|
|
29
|
-
set: (v) => emit('update:modelValue', v),
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
const ns = useNamespace('single-menu');
|
|
33
|
-
|
|
34
|
-
const attrs = useAttrs();
|
|
35
|
-
|
|
36
|
-
const handleClear = () => {
|
|
37
|
-
value.value = '';
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
return (_ctx, _cache) => {
|
|
41
|
-
return (openBlock(), createBlock(unref(BwaAdvanceSelect), mergeProps(unref(attrs), {
|
|
42
|
-
modelValue: unref(value),
|
|
43
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (isRef(value) ? (value).value = $event : null)),
|
|
44
|
-
multiple: false
|
|
45
|
-
}), {
|
|
46
|
-
operation: withCtx(() => [
|
|
47
|
-
createCommentVNode(" <BwaAdvanceOperation class=\"is-border\">\r\n <ElButton\r\n :class=\"ns.e('clear')\"\r\n style=\"width: 100%\"\r\n @click=\"handleClear\"\r\n >\r\n 清除已选择项\r\n </ElButton>\r\n </BwaAdvanceOperation> "),
|
|
48
|
-
renderSlot(_ctx.$slots, "operation")
|
|
49
|
-
]),
|
|
50
|
-
empy: withCtx(() => [
|
|
51
|
-
renderSlot(_ctx.$slots, "empy")
|
|
52
|
-
]),
|
|
53
|
-
label: withCtx(({ selectedValue, column }) => [
|
|
54
|
-
renderSlot(_ctx.$slots, "label", {
|
|
55
|
-
selectedValue: selectedValue,
|
|
56
|
-
column: column
|
|
57
|
-
})
|
|
58
|
-
]),
|
|
59
|
-
value: withCtx(({selected}) => [
|
|
60
|
-
renderSlot(_ctx.$slots, "value", { selected: selected })
|
|
61
|
-
]),
|
|
62
|
-
default: withCtx(() => [
|
|
63
|
-
renderSlot(_ctx.$slots, "default")
|
|
64
|
-
]),
|
|
65
|
-
_: 3 /* FORWARDED */
|
|
66
|
-
}, 16 /* FULL_PROPS */, ["modelValue"]))
|
|
7
|
+
// Inject __name helper
|
|
8
|
+
if (typeof __name === 'undefined') {
|
|
9
|
+
function __name(obj, name) {
|
|
10
|
+
Object.defineProperty(obj, "name", {
|
|
11
|
+
value: name,
|
|
12
|
+
configurable: true
|
|
13
|
+
});
|
|
14
|
+
}
|
|
67
15
|
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
16
|
+
const __default__ = defineComponent({
|
|
17
|
+
name: "BwaSingleMenuCondition",
|
|
18
|
+
__conditionTitle__: "\u5355\u9009\u5217\u8868",
|
|
19
|
+
__conditionDefault__: ""
|
|
20
|
+
});
|
|
21
|
+
const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
22
|
+
props: {
|
|
23
|
+
modelValue: null
|
|
24
|
+
},
|
|
25
|
+
emits: ["update:modelValue"],
|
|
26
|
+
setup(__props, { emit: __emit }) {
|
|
27
|
+
;
|
|
28
|
+
const props = __props;
|
|
29
|
+
const emit = __emit;
|
|
30
|
+
const value = computed({
|
|
31
|
+
get: () => props.modelValue,
|
|
32
|
+
set: (v) => emit("update:modelValue", v)
|
|
33
|
+
});
|
|
34
|
+
const ns = useNamespace("single-menu");
|
|
35
|
+
const attrs = useAttrs();
|
|
36
|
+
const handleClear = () => {
|
|
37
|
+
value.value = "";
|
|
38
|
+
};
|
|
39
|
+
return (_ctx, _cache) => {
|
|
40
|
+
return openBlock(), createBlock(unref(BwaAdvanceSelect), mergeProps(unref(attrs), {
|
|
41
|
+
modelValue: value.value,
|
|
42
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
|
|
43
|
+
multiple: false
|
|
44
|
+
}), {
|
|
45
|
+
operation: withCtx(() => [
|
|
46
|
+
createCommentVNode(` <BwaAdvanceOperation class="is-border">\r
|
|
47
|
+
<ElButton\r
|
|
48
|
+
:class="ns.e('clear')"\r
|
|
49
|
+
style="width: 100%"\r
|
|
50
|
+
@click="handleClear"\r
|
|
51
|
+
>\r
|
|
52
|
+
\u6E05\u9664\u5DF2\u9009\u62E9\u9879\r
|
|
53
|
+
</ElButton>\r
|
|
54
|
+
</BwaAdvanceOperation> `),
|
|
55
|
+
renderSlot(_ctx.$slots, "operation")
|
|
56
|
+
]),
|
|
57
|
+
empy: withCtx(() => [
|
|
58
|
+
renderSlot(_ctx.$slots, "empy")
|
|
59
|
+
]),
|
|
60
|
+
label: withCtx(({ selectedValue, column }) => [
|
|
61
|
+
renderSlot(_ctx.$slots, "label", {
|
|
62
|
+
selectedValue,
|
|
63
|
+
column
|
|
64
|
+
})
|
|
65
|
+
]),
|
|
66
|
+
value: withCtx(({ selected }) => [
|
|
67
|
+
renderSlot(_ctx.$slots, "value", { selected })
|
|
68
|
+
]),
|
|
69
|
+
default: withCtx(() => [
|
|
70
|
+
renderSlot(_ctx.$slots, "default")
|
|
71
|
+
]),
|
|
72
|
+
_: 3
|
|
73
|
+
}, 16, ["modelValue"]);
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
var SingleMenuCondition = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "single-menu-condition.vue"]]);
|
|
72
78
|
|
|
73
79
|
export { SingleMenuCondition as default };
|
|
@@ -1,74 +1,73 @@
|
|
|
1
|
-
import { useAttrs, ref, unref, onMounted, openBlock, createBlock, mergeProps, withCtx, renderSlot, createElementBlock, Fragment, renderList } from 'vue';
|
|
1
|
+
import { defineComponent, useAttrs, ref, unref, onMounted, openBlock, createBlock, mergeProps, withCtx, renderSlot, createElementBlock, Fragment, renderList } from 'vue';
|
|
2
2
|
import { useService } from '@ctzy-web-client/web-base-client-vue';
|
|
3
3
|
import { BwaAdvanceSelect, BwaAdvanceOption } from '../../advance-select/index.mjs';
|
|
4
4
|
import _export_sfc from '../../_virtual/_plugin-vue_export-helper.mjs';
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
const attrs = useAttrs();
|
|
17
|
-
const userService = useService('UserService');
|
|
18
|
-
|
|
19
|
-
const userList = ref([]);
|
|
20
|
-
|
|
21
|
-
const loadUserList = async (name = '') => {
|
|
22
|
-
if (!unref(userService)) {
|
|
23
|
-
return;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
const userListResult = await unref(userService).getUserList({ name });
|
|
27
|
-
|
|
28
|
-
if (userListResult.code != 0) {
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
userList.value = userListResult.data || [];
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
onMounted(loadUserList);
|
|
36
|
-
|
|
37
|
-
return (_ctx, _cache) => {
|
|
38
|
-
return (openBlock(), createBlock(unref(BwaAdvanceSelect), mergeProps(unref(attrs), {
|
|
39
|
-
multiple: false,
|
|
40
|
-
onSearch: loadUserList
|
|
41
|
-
}), {
|
|
42
|
-
operation: withCtx(() => [
|
|
43
|
-
renderSlot(_ctx.$slots, "operation")
|
|
44
|
-
]),
|
|
45
|
-
empy: withCtx(() => [
|
|
46
|
-
renderSlot(_ctx.$slots, "empy")
|
|
47
|
-
]),
|
|
48
|
-
label: withCtx(({ selectedValue, column }) => [
|
|
49
|
-
renderSlot(_ctx.$slots, "label", {
|
|
50
|
-
selectedValue: selectedValue,
|
|
51
|
-
column: column
|
|
52
|
-
})
|
|
53
|
-
]),
|
|
54
|
-
value: withCtx(() => [
|
|
55
|
-
renderSlot(_ctx.$slots, "value")
|
|
56
|
-
]),
|
|
57
|
-
default: withCtx(() => [
|
|
58
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(userList.value, (item) => {
|
|
59
|
-
return (openBlock(), createBlock(unref(BwaAdvanceOption), {
|
|
60
|
-
key: item.value,
|
|
61
|
-
value: item.value,
|
|
62
|
-
label: item.label
|
|
63
|
-
}, null, 8 /* PROPS */, ["value", "label"]))
|
|
64
|
-
}), 128 /* KEYED_FRAGMENT */))
|
|
65
|
-
]),
|
|
66
|
-
_: 3 /* FORWARDED */
|
|
67
|
-
}, 16 /* FULL_PROPS */))
|
|
68
|
-
}
|
|
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
|
+
}
|
|
69
14
|
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
15
|
+
const __default__ = defineComponent({
|
|
16
|
+
name: "BwaSingleUserCondition",
|
|
17
|
+
__conditionTitle__: "\u5355\u9009\u7528\u6237",
|
|
18
|
+
__conditionDefault__: () => []
|
|
19
|
+
});
|
|
20
|
+
const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
21
|
+
setup(__props) {
|
|
22
|
+
;
|
|
23
|
+
const attrs = useAttrs();
|
|
24
|
+
const userService = useService("UserService");
|
|
25
|
+
const userList = ref([]);
|
|
26
|
+
const loadUserList = async (name = "") => {
|
|
27
|
+
if (!unref(userService)) {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
const userListResult = await unref(userService).getUserList({ name });
|
|
31
|
+
if (userListResult.code != 0) {
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
userList.value = userListResult.data || [];
|
|
35
|
+
};
|
|
36
|
+
onMounted(loadUserList);
|
|
37
|
+
return (_ctx, _cache) => {
|
|
38
|
+
return openBlock(), createBlock(unref(BwaAdvanceSelect), mergeProps(unref(attrs), {
|
|
39
|
+
multiple: false,
|
|
40
|
+
onSearch: loadUserList
|
|
41
|
+
}), {
|
|
42
|
+
operation: withCtx(() => [
|
|
43
|
+
renderSlot(_ctx.$slots, "operation")
|
|
44
|
+
]),
|
|
45
|
+
empy: withCtx(() => [
|
|
46
|
+
renderSlot(_ctx.$slots, "empy")
|
|
47
|
+
]),
|
|
48
|
+
label: withCtx(({ selectedValue, column }) => [
|
|
49
|
+
renderSlot(_ctx.$slots, "label", {
|
|
50
|
+
selectedValue,
|
|
51
|
+
column
|
|
52
|
+
})
|
|
53
|
+
]),
|
|
54
|
+
value: withCtx(() => [
|
|
55
|
+
renderSlot(_ctx.$slots, "value")
|
|
56
|
+
]),
|
|
57
|
+
default: withCtx(() => [
|
|
58
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(userList.value, (item) => {
|
|
59
|
+
return openBlock(), createBlock(unref(BwaAdvanceOption), {
|
|
60
|
+
key: item.value,
|
|
61
|
+
value: item.value,
|
|
62
|
+
label: item.label
|
|
63
|
+
}, null, 8, ["value", "label"]);
|
|
64
|
+
}), 128))
|
|
65
|
+
]),
|
|
66
|
+
_: 3
|
|
67
|
+
}, 16);
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
var SingleUserCondition = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "single-user-condition.vue"]]);
|
|
73
72
|
|
|
74
73
|
export { SingleUserCondition as default };
|
|
@@ -1,62 +1,58 @@
|
|
|
1
|
-
import { reactive, provide, openBlock, createElementBlock, normalizeClass, unref, renderSlot, createCommentVNode } from 'vue';
|
|
1
|
+
import { defineComponent, reactive, provide, openBlock, createElementBlock, normalizeClass, unref, renderSlot, createCommentVNode } from 'vue';
|
|
2
2
|
import { useNamespace, filterPanelItemKey } from '@ctzy-web-client/web-base-client-vue';
|
|
3
3
|
import { useFilterPanelItem } from './use-filter-panel-item.mjs';
|
|
4
4
|
import _export_sfc from '../_virtual/_plugin-vue_export-helper.mjs';
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
default: false,
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
emits: ['close'],
|
|
18
|
-
setup(__props, { emit }) {
|
|
19
|
-
|
|
20
|
-
const props = __props;
|
|
21
|
-
|
|
22
|
-
defineOptions({
|
|
23
|
-
name: 'BwaFilterPanelItem',
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
const ns = useNamespace('filterpanel');
|
|
31
|
-
|
|
32
|
-
const { value, column, allowClose, closeHandle } = useFilterPanelItem(props);
|
|
33
|
-
|
|
34
|
-
const data = reactive({ value });
|
|
35
|
-
|
|
36
|
-
provide(
|
|
37
|
-
filterPanelItemKey,
|
|
38
|
-
reactive({
|
|
39
|
-
column,
|
|
40
|
-
})
|
|
41
|
-
);
|
|
42
|
-
|
|
43
|
-
return (_ctx, _cache) => {
|
|
44
|
-
return (openBlock(), createElementBlock("div", {
|
|
45
|
-
class: normalizeClass(unref(ns).b('item'))
|
|
46
|
-
}, [
|
|
47
|
-
renderSlot(_ctx.$slots, "default", { data: data }),
|
|
48
|
-
(unref(allowClose))
|
|
49
|
-
? (openBlock(), createElementBlock("i", {
|
|
50
|
-
key: 0,
|
|
51
|
-
class: normalizeClass(['ptp-icon', 'ptp-close', unref(ns).be('item', 'close')]),
|
|
52
|
-
onClick: _cache[0] || (_cache[0] = (...args) => (unref(closeHandle) && unref(closeHandle)(...args)))
|
|
53
|
-
}, null, 2 /* CLASS */))
|
|
54
|
-
: createCommentVNode("v-if", true)
|
|
55
|
-
], 2 /* CLASS */))
|
|
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
|
+
}
|
|
56
14
|
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
};
|
|
60
|
-
|
|
15
|
+
const __default__ = defineComponent({
|
|
16
|
+
name: "BwaFilterPanelItem"
|
|
17
|
+
});
|
|
18
|
+
const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
19
|
+
props: {
|
|
20
|
+
prop: {
|
|
21
|
+
type: String
|
|
22
|
+
},
|
|
23
|
+
close: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: false
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
emits: ["close"],
|
|
29
|
+
setup(__props, { emit: __emit }) {
|
|
30
|
+
;
|
|
31
|
+
const props = __props;
|
|
32
|
+
const emit = __emit;
|
|
33
|
+
const ns = useNamespace("filterpanel");
|
|
34
|
+
const { value, column, allowClose, closeHandle } = useFilterPanelItem(props);
|
|
35
|
+
const data = reactive({ value });
|
|
36
|
+
provide(
|
|
37
|
+
filterPanelItemKey,
|
|
38
|
+
reactive({
|
|
39
|
+
column
|
|
40
|
+
})
|
|
41
|
+
);
|
|
42
|
+
return (_ctx, _cache) => {
|
|
43
|
+
return openBlock(), createElementBlock("div", {
|
|
44
|
+
class: normalizeClass(unref(ns).b("item"))
|
|
45
|
+
}, [
|
|
46
|
+
renderSlot(_ctx.$slots, "default", { data }),
|
|
47
|
+
unref(allowClose) ? (openBlock(), createElementBlock("i", {
|
|
48
|
+
key: 0,
|
|
49
|
+
class: normalizeClass(["ptp-icon", "ptp-close", unref(ns).be("item", "close")]),
|
|
50
|
+
onClick: _cache[0] || (_cache[0] = (...args) => unref(closeHandle) && unref(closeHandle)(...args))
|
|
51
|
+
}, null, 2)) : createCommentVNode("v-if", true)
|
|
52
|
+
], 2);
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
var FilterPanelItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "filter-panel-item.vue"]]);
|
|
61
57
|
|
|
62
58
|
export { FilterPanelItem as default };
|