@ctzy-web-client/plugin-component-vue 1.0.25 → 1.0.27
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 +128 -163
- package/es/advance-select/advance-option.vue_vue_type_style_index_0_scoped_bc8f5626_lang.mjs +11 -5
- package/es/advance-select/advance-select.mjs +323 -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 +345 -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.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.css +1 -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 +127 -162
- package/lib/advance-select/advance-option.vue_vue_type_style_index_0_scoped_bc8f5626_lang.js +11 -6
- package/lib/advance-select/advance-select.js +322 -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 +344 -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.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.css +1 -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/style/index.css +1 -1
- package/es/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.mjs +0 -28
- package/lib/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js +0 -32
|
@@ -8,105 +8,88 @@ var departmentNode = require('./department-node.js');
|
|
|
8
8
|
var webBaseClientVue = require('@ctzy-web-client/web-base-client-vue');
|
|
9
9
|
var _pluginVue_exportHelper = require('../../../_virtual/_plugin-vue_export-helper.js');
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
// Inject __name helper
|
|
12
|
+
if (typeof __name === 'undefined') {
|
|
13
|
+
function __name(obj, name) {
|
|
14
|
+
Object.defineProperty(obj, "name", {
|
|
15
|
+
value: name,
|
|
16
|
+
configurable: true
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
const __default__ = vue.defineComponent({
|
|
21
|
+
name: "BwaDepartmentCondition"
|
|
22
|
+
});
|
|
23
|
+
const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
13
24
|
props: {},
|
|
14
25
|
setup(__props) {
|
|
15
|
-
|
|
16
|
-
const props = __props;
|
|
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
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
data.value = departments;
|
|
84
|
-
} finally {
|
|
85
|
-
loading.value = false;
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
return (_ctx, _cache) => {
|
|
90
|
-
return (vue.openBlock(), vue.createBlock(singleMenuCondition["default"], {
|
|
91
|
-
multiple: true,
|
|
92
|
-
showSearch: false,
|
|
93
|
-
loading: loading.value,
|
|
94
|
-
onVisibleChange: handleVisibleChange
|
|
95
|
-
}, {
|
|
96
|
-
value: vue.withCtx(({ selected }) => [
|
|
97
|
-
vue.createTextVNode(vue.toDisplayString(formatValue(selected)), 1 /* TEXT */)
|
|
98
|
-
]),
|
|
99
|
-
default: vue.withCtx(() => [
|
|
100
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(data.value, (item) => {
|
|
101
|
-
return (vue.openBlock(), vue.createBlock(departmentNode["default"], { item: item }, null, 8 /* PROPS */, ["item"]))
|
|
102
|
-
}), 256 /* UNKEYED_FRAGMENT */))
|
|
103
|
-
]),
|
|
104
|
-
_: 1 /* STABLE */
|
|
105
|
-
}, 8 /* PROPS */, ["loading"]))
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
};
|
|
110
|
-
var DepartmentCondition = /*#__PURE__*/_pluginVue_exportHelper["default"](_sfc_main, [['__file',"department-condition.vue"]]);
|
|
26
|
+
;
|
|
27
|
+
const props = __props;
|
|
28
|
+
const departmentService = webBaseClientVue.useService("DepartmentService");
|
|
29
|
+
const data = vue.ref([]);
|
|
30
|
+
const loading = vue.ref(false);
|
|
31
|
+
const map = /* @__PURE__ */ new Map();
|
|
32
|
+
const formatValue = (selected) => {
|
|
33
|
+
selected = Array.isArray(selected) ? selected : selected ? [selected] : [];
|
|
34
|
+
selected = selected.map((item) => map.get(item.value + "")).filter(Boolean);
|
|
35
|
+
if (!selected.length) {
|
|
36
|
+
return "\u5168\u90E8";
|
|
37
|
+
}
|
|
38
|
+
return selected.map((item) => item.desc).join(",");
|
|
39
|
+
};
|
|
40
|
+
const handleVisibleChange = async (isShow) => {
|
|
41
|
+
if (!isShow || !vue.unref(departmentService)) {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
try {
|
|
45
|
+
loading.value = true;
|
|
46
|
+
const departmentsResult = await vue.unref(departmentService).getDepartments();
|
|
47
|
+
if (departmentsResult.code != 0) {
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
const departments = [];
|
|
51
|
+
for (let department of departmentsResult.data || []) {
|
|
52
|
+
department.children = [];
|
|
53
|
+
if (!department.pid) {
|
|
54
|
+
departments.push(department);
|
|
55
|
+
}
|
|
56
|
+
map.set(department.id + "", department);
|
|
57
|
+
}
|
|
58
|
+
for (const department of departmentsResult.data || []) {
|
|
59
|
+
if (!department.pid) {
|
|
60
|
+
continue;
|
|
61
|
+
}
|
|
62
|
+
const parent = map.get(department.pid + "");
|
|
63
|
+
if (!parent) {
|
|
64
|
+
continue;
|
|
65
|
+
}
|
|
66
|
+
parent.children.push(department);
|
|
67
|
+
}
|
|
68
|
+
data.value = departments;
|
|
69
|
+
} finally {
|
|
70
|
+
loading.value = false;
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
return (_ctx, _cache) => {
|
|
74
|
+
return vue.openBlock(), vue.createBlock(singleMenuCondition["default"], {
|
|
75
|
+
multiple: true,
|
|
76
|
+
showSearch: false,
|
|
77
|
+
loading: loading.value,
|
|
78
|
+
onVisibleChange: handleVisibleChange
|
|
79
|
+
}, {
|
|
80
|
+
value: vue.withCtx(({ selected }) => [
|
|
81
|
+
vue.createTextVNode(vue.toDisplayString(formatValue(selected)), 1)
|
|
82
|
+
]),
|
|
83
|
+
default: vue.withCtx(() => [
|
|
84
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(data.value, (item) => {
|
|
85
|
+
return vue.openBlock(), vue.createBlock(departmentNode["default"], { item }, null, 8, ["item"]);
|
|
86
|
+
}), 256))
|
|
87
|
+
]),
|
|
88
|
+
_: 1
|
|
89
|
+
}, 8, ["loading"]);
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
var DepartmentCondition = /* @__PURE__ */ _pluginVue_exportHelper["default"](_sfc_main, [["__file", "department-condition.vue"]]);
|
|
111
94
|
|
|
112
95
|
exports["default"] = DepartmentCondition;
|
|
@@ -6,87 +6,83 @@ var vue = require('vue');
|
|
|
6
6
|
var webBaseClientVue = require('@ctzy-web-client/web-base-client-vue');
|
|
7
7
|
var _pluginVue_exportHelper = require('../../../_virtual/_plugin-vue_export-helper.js');
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
9
|
+
// Inject __name helper
|
|
10
|
+
if (typeof __name === 'undefined') {
|
|
11
|
+
function __name(obj, name) {
|
|
12
|
+
Object.defineProperty(obj, "name", {
|
|
13
|
+
value: name,
|
|
14
|
+
configurable: true
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
const __default__ = vue.defineComponent({
|
|
19
|
+
name: "BwaDepartmentNode"
|
|
20
|
+
});
|
|
21
|
+
const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
22
|
+
props: {
|
|
23
|
+
item: {
|
|
24
|
+
type: Object,
|
|
25
|
+
required: true
|
|
26
|
+
},
|
|
27
|
+
level: {
|
|
28
|
+
type: Number,
|
|
29
|
+
default: 0
|
|
30
|
+
}
|
|
31
|
+
},
|
|
21
32
|
setup(__props) {
|
|
22
|
-
|
|
23
|
-
const props = __props;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
return (_ctx, _cache) => {
|
|
36
|
-
const _component_CaretBottom = vue.resolveComponent("CaretBottom");
|
|
37
|
-
const _component_ElIcon = vue.resolveComponent("ElIcon");
|
|
38
|
-
const _component_BwaAdvanceOption = vue.resolveComponent("BwaAdvanceOption");
|
|
39
|
-
const _component_BwaDepartmentNode = vue.resolveComponent("BwaDepartmentNode");
|
|
40
|
-
const _component_ElCollapseTransition = vue.resolveComponent("ElCollapseTransition");
|
|
41
|
-
|
|
42
|
-
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
43
|
-
class: vue.normalizeClass(vue.unref(ns).b())
|
|
44
|
-
}, [
|
|
45
|
-
vue.createElementVNode("div", {
|
|
46
|
-
class: vue.normalizeClass(vue.unref(ns).e('content'))
|
|
47
|
-
}, [
|
|
48
|
-
vue.createElementVNode("div", {
|
|
49
|
-
class: vue.normalizeClass(vue.unref(ns).e('arrow-wrapper')),
|
|
50
|
-
onClick: _cache[0] || (_cache[0] = $event => (isShowChildren.value = !isShowChildren.value))
|
|
33
|
+
;
|
|
34
|
+
const props = __props;
|
|
35
|
+
const ns = webBaseClientVue.useNamespace("department-node");
|
|
36
|
+
const isShowChildren = vue.ref(false);
|
|
37
|
+
return (_ctx, _cache) => {
|
|
38
|
+
const _component_CaretBottom = vue.resolveComponent("CaretBottom");
|
|
39
|
+
const _component_ElIcon = vue.resolveComponent("ElIcon");
|
|
40
|
+
const _component_BwaAdvanceOption = vue.resolveComponent("BwaAdvanceOption");
|
|
41
|
+
const _component_BwaDepartmentNode = vue.resolveComponent("BwaDepartmentNode");
|
|
42
|
+
const _component_ElCollapseTransition = vue.resolveComponent("ElCollapseTransition");
|
|
43
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
44
|
+
class: vue.normalizeClass(vue.unref(ns).b())
|
|
51
45
|
}, [
|
|
52
|
-
(
|
|
53
|
-
|
|
46
|
+
vue.createElementVNode("div", {
|
|
47
|
+
class: vue.normalizeClass(vue.unref(ns).e("content"))
|
|
48
|
+
}, [
|
|
49
|
+
vue.createElementVNode("div", {
|
|
50
|
+
class: vue.normalizeClass(vue.unref(ns).e("arrow-wrapper")),
|
|
51
|
+
onClick: _cache[0] || (_cache[0] = ($event) => isShowChildren.value = !isShowChildren.value)
|
|
52
|
+
}, [
|
|
53
|
+
__props.item.children.length ? (vue.openBlock(), vue.createBlock(_component_ElIcon, {
|
|
54
54
|
key: 0,
|
|
55
|
-
class: vue.normalizeClass([vue.unref(ns).e(
|
|
55
|
+
class: vue.normalizeClass([vue.unref(ns).e("arrow"), vue.unref(ns).is("collpase", !isShowChildren.value)])
|
|
56
56
|
}, {
|
|
57
57
|
default: vue.withCtx(() => [
|
|
58
58
|
vue.createVNode(_component_CaretBottom)
|
|
59
59
|
]),
|
|
60
|
-
_: 1
|
|
61
|
-
}, 8
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
(isShowChildren.value)
|
|
72
|
-
? (vue.openBlock(), vue.createElementBlock("div", {
|
|
60
|
+
_: 1
|
|
61
|
+
}, 8, ["class"])) : vue.createCommentVNode("v-if", true)
|
|
62
|
+
], 2),
|
|
63
|
+
vue.createVNode(_component_BwaAdvanceOption, {
|
|
64
|
+
value: __props.item.id,
|
|
65
|
+
label: __props.item.name
|
|
66
|
+
}, null, 8, ["value", "label"])
|
|
67
|
+
], 2),
|
|
68
|
+
vue.createVNode(_component_ElCollapseTransition, null, {
|
|
69
|
+
default: vue.withCtx(() => [
|
|
70
|
+
isShowChildren.value ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
73
71
|
key: 0,
|
|
74
|
-
class: vue.normalizeClass(vue.unref(ns).e(
|
|
75
|
-
style: vue.normalizeStyle({ paddingLeft: 22 + __props.level * 5 +
|
|
72
|
+
class: vue.normalizeClass(vue.unref(ns).e("children")),
|
|
73
|
+
style: vue.normalizeStyle({ paddingLeft: 22 + __props.level * 5 + "px" })
|
|
76
74
|
}, [
|
|
77
75
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.item.children, (child) => {
|
|
78
|
-
return
|
|
79
|
-
}), 256
|
|
80
|
-
], 6
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
};
|
|
90
|
-
var DepartmentNode = /*#__PURE__*/_pluginVue_exportHelper["default"](_sfc_main, [['__file',"department-node.vue"]]);
|
|
76
|
+
return vue.openBlock(), vue.createBlock(_component_BwaDepartmentNode, { item: child }, null, 8, ["item"]);
|
|
77
|
+
}), 256))
|
|
78
|
+
], 6)) : vue.createCommentVNode("v-if", true)
|
|
79
|
+
]),
|
|
80
|
+
_: 1
|
|
81
|
+
})
|
|
82
|
+
], 2);
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
var DepartmentNode = /* @__PURE__ */ _pluginVue_exportHelper["default"](_sfc_main, [["__file", "department-node.vue"]]);
|
|
91
87
|
|
|
92
88
|
exports["default"] = DepartmentNode;
|
|
@@ -12,6 +12,15 @@ var singleUserCondition = require('./single-user-condition.js');
|
|
|
12
12
|
var inputCondition = require('./input-condition.js');
|
|
13
13
|
var departmentCondition = require('./department-condition/department-condition.js');
|
|
14
14
|
|
|
15
|
+
// Inject __name helper
|
|
16
|
+
if (typeof __name === 'undefined') {
|
|
17
|
+
function __name(obj, name) {
|
|
18
|
+
Object.defineProperty(obj, "name", {
|
|
19
|
+
value: name,
|
|
20
|
+
configurable: true
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
}
|
|
15
24
|
const BwaCondition = install.withInstall(condition["default"], {
|
|
16
25
|
DateRangeCondition: dateRangeCondition["default"],
|
|
17
26
|
SingleMenuCondition: singleMenuCondition["default"],
|
|
@@ -6,96 +6,93 @@ var vue = require('vue');
|
|
|
6
6
|
var webBaseClientVue = require('@ctzy-web-client/web-base-client-vue');
|
|
7
7
|
var _pluginVue_exportHelper = require('../../_virtual/_plugin-vue_export-helper.js');
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
setup(__props, { emit }) {
|
|
18
|
-
|
|
19
|
-
const props = __props;
|
|
20
|
-
|
|
21
|
-
defineOptions({
|
|
22
|
-
name: 'BwaInputCondition',
|
|
23
|
-
__conditionTitle__: '输入框',
|
|
24
|
-
__conditionDefault__: '',
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
const ns = webBaseClientVue.useNamespace('input-condition');
|
|
32
|
-
|
|
33
|
-
if (typeof props.modelValue !== 'string') {
|
|
34
|
-
emit('update:modelValue', '');
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
const value = vue.computed({
|
|
38
|
-
get: () => props.modelValue || '',
|
|
39
|
-
set: emit.bind(null, 'update:modelValue'),
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
const filterPanelItem = vue.inject(webBaseClientVue.filterPanelItemKey, null);
|
|
43
|
-
const column = vue.computed(() => filterPanelItem?.column ?? null);
|
|
44
|
-
|
|
45
|
-
const visible = vue.ref(false);
|
|
46
|
-
|
|
47
|
-
return (_ctx, _cache) => {
|
|
48
|
-
const _component_ElInput = vue.resolveComponent("ElInput");
|
|
49
|
-
const _component_ElTooltip = vue.resolveComponent("ElTooltip");
|
|
50
|
-
|
|
51
|
-
return (vue.openBlock(), vue.createBlock(_component_ElTooltip, {
|
|
52
|
-
visible: visible.value,
|
|
53
|
-
"onUpdate:visible": _cache[1] || (_cache[1] = $event => ((visible).value = $event)),
|
|
54
|
-
pure: "",
|
|
55
|
-
teleported: "",
|
|
56
|
-
effect: "light",
|
|
57
|
-
role: "dialog",
|
|
58
|
-
transition: `el-zoom-in-top`,
|
|
59
|
-
"fallback-placements": ['bottom', 'top', 'right', 'left'],
|
|
60
|
-
"gpu-acceleration": false,
|
|
61
|
-
"show-arrow": false,
|
|
62
|
-
"stop-popper-mouse-event": false,
|
|
63
|
-
"hide-after": 0,
|
|
64
|
-
persistent: "",
|
|
65
|
-
trigger: "click"
|
|
66
|
-
}, {
|
|
67
|
-
content: vue.withCtx(() => [
|
|
68
|
-
vue.createElementVNode("div", {
|
|
69
|
-
class: vue.normalizeClass(vue.unref(ns).e('content'))
|
|
70
|
-
}, [
|
|
71
|
-
vue.createVNode(_component_ElInput, {
|
|
72
|
-
class: vue.normalizeClass(vue.unref(ns).e('input')),
|
|
73
|
-
modelValue: vue.unref(value),
|
|
74
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (vue.isRef(value) ? (value).value = $event : null)),
|
|
75
|
-
clearable: ""
|
|
76
|
-
}, null, 8 /* PROPS */, ["class", "modelValue"])
|
|
77
|
-
], 2 /* CLASS */)
|
|
78
|
-
]),
|
|
79
|
-
default: vue.withCtx(() => [
|
|
80
|
-
vue.createElementVNode("div", {
|
|
81
|
-
class: vue.normalizeClass([vue.unref(ns).b(), vue.unref(ns).is('active', visible.value)])
|
|
82
|
-
}, [
|
|
83
|
-
vue.renderSlot(_ctx.$slots, "label", {}, () => [
|
|
84
|
-
(vue.unref(column))
|
|
85
|
-
? (vue.openBlock(), vue.createElementBlock("span", {
|
|
86
|
-
key: 0,
|
|
87
|
-
class: vue.normalizeClass(vue.unref(ns).e('label'))
|
|
88
|
-
}, vue.toDisplayString(vue.unref(column).title), 3 /* TEXT, CLASS */))
|
|
89
|
-
: vue.createCommentVNode("v-if", true)
|
|
90
|
-
])
|
|
91
|
-
], 2 /* CLASS */)
|
|
92
|
-
]),
|
|
93
|
-
_: 3 /* FORWARDED */
|
|
94
|
-
}, 8 /* PROPS */, ["visible"]))
|
|
9
|
+
// Inject __name helper
|
|
10
|
+
if (typeof __name === 'undefined') {
|
|
11
|
+
function __name(obj, name) {
|
|
12
|
+
Object.defineProperty(obj, "name", {
|
|
13
|
+
value: name,
|
|
14
|
+
configurable: true
|
|
15
|
+
});
|
|
16
|
+
}
|
|
95
17
|
}
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
18
|
+
const __default__ = vue.defineComponent({
|
|
19
|
+
name: "BwaInputCondition",
|
|
20
|
+
__conditionTitle__: "\u8F93\u5165\u6846",
|
|
21
|
+
__conditionDefault__: ""
|
|
22
|
+
});
|
|
23
|
+
const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
24
|
+
props: {
|
|
25
|
+
modelValue: {
|
|
26
|
+
type: String
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
emits: ["update:modelValue"],
|
|
30
|
+
setup(__props, { emit: __emit }) {
|
|
31
|
+
;
|
|
32
|
+
const props = __props;
|
|
33
|
+
const emit = __emit;
|
|
34
|
+
const ns = webBaseClientVue.useNamespace("input-condition");
|
|
35
|
+
if (typeof props.modelValue !== "string") {
|
|
36
|
+
emit("update:modelValue", "");
|
|
37
|
+
}
|
|
38
|
+
const value = vue.computed({
|
|
39
|
+
get: () => props.modelValue || "",
|
|
40
|
+
set: emit.bind(null, "update:modelValue")
|
|
41
|
+
});
|
|
42
|
+
const filterPanelItem = vue.inject(webBaseClientVue.filterPanelItemKey, null);
|
|
43
|
+
const column = vue.computed(() => {
|
|
44
|
+
var _a;
|
|
45
|
+
return (_a = filterPanelItem == null ? void 0 : filterPanelItem.column) != null ? _a : null;
|
|
46
|
+
});
|
|
47
|
+
const visible = vue.ref(false);
|
|
48
|
+
return (_ctx, _cache) => {
|
|
49
|
+
const _component_ElInput = vue.resolveComponent("ElInput");
|
|
50
|
+
const _component_ElTooltip = vue.resolveComponent("ElTooltip");
|
|
51
|
+
return vue.openBlock(), vue.createBlock(_component_ElTooltip, {
|
|
52
|
+
visible: visible.value,
|
|
53
|
+
"onUpdate:visible": _cache[1] || (_cache[1] = ($event) => visible.value = $event),
|
|
54
|
+
pure: "",
|
|
55
|
+
teleported: "",
|
|
56
|
+
effect: "light",
|
|
57
|
+
role: "dialog",
|
|
58
|
+
transition: `el-zoom-in-top`,
|
|
59
|
+
"fallback-placements": ["bottom", "top", "right", "left"],
|
|
60
|
+
"gpu-acceleration": false,
|
|
61
|
+
"show-arrow": false,
|
|
62
|
+
"stop-popper-mouse-event": false,
|
|
63
|
+
"hide-after": 0,
|
|
64
|
+
persistent: "",
|
|
65
|
+
trigger: "click"
|
|
66
|
+
}, {
|
|
67
|
+
content: vue.withCtx(() => [
|
|
68
|
+
vue.createElementVNode("div", {
|
|
69
|
+
class: vue.normalizeClass(vue.unref(ns).e("content"))
|
|
70
|
+
}, [
|
|
71
|
+
vue.createVNode(_component_ElInput, {
|
|
72
|
+
class: vue.normalizeClass(vue.unref(ns).e("input")),
|
|
73
|
+
modelValue: value.value,
|
|
74
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
|
|
75
|
+
clearable: ""
|
|
76
|
+
}, null, 8, ["class", "modelValue"])
|
|
77
|
+
], 2)
|
|
78
|
+
]),
|
|
79
|
+
default: vue.withCtx(() => [
|
|
80
|
+
vue.createElementVNode("div", {
|
|
81
|
+
class: vue.normalizeClass([vue.unref(ns).b(), vue.unref(ns).is("active", visible.value)])
|
|
82
|
+
}, [
|
|
83
|
+
vue.renderSlot(_ctx.$slots, "label", {}, () => [
|
|
84
|
+
column.value ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
85
|
+
key: 0,
|
|
86
|
+
class: vue.normalizeClass(vue.unref(ns).e("label"))
|
|
87
|
+
}, vue.toDisplayString(column.value.title), 3)) : vue.createCommentVNode("v-if", true)
|
|
88
|
+
])
|
|
89
|
+
], 2)
|
|
90
|
+
]),
|
|
91
|
+
_: 3
|
|
92
|
+
}, 8, ["visible"]);
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
var InputCondition = /* @__PURE__ */ _pluginVue_exportHelper["default"](_sfc_main, [["__file", "input-condition.vue"]]);
|
|
100
97
|
|
|
101
98
|
exports["default"] = InputCondition;
|