@ctzy-web-client/plugin-component-vue 1.0.22 → 1.0.24

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.
Files changed (132) hide show
  1. package/es/advance-select/advance-operation.mjs +51 -37
  2. package/es/advance-select/advance-option.mjs +167 -97
  3. package/es/advance-select/advance-option.vue_vue_type_style_index_0_scoped_bc8f5626_lang.mjs +7 -0
  4. package/es/advance-select/advance-select.mjs +368 -310
  5. package/es/advance-select/index.mjs +5 -5
  6. package/es/application-slot/breadcrumb-item.mjs +20 -17
  7. package/es/application-slot/header-tools-item.mjs +20 -17
  8. package/es/breadcrumb-select/breadcrumb-select.mjs +134 -112
  9. package/es/contextmenu/contextmenu-item.mjs +19 -15
  10. package/es/contextmenu/contextmenu.mjs +72 -56
  11. package/es/data-form/data-form-item.mjs +48 -30
  12. package/es/data-form/data-form.mjs +213 -166
  13. package/es/data-form/form-components/bwa-date-picker.mjs +51 -39
  14. package/es/data-form/form-components/bwa-date-time-picker.mjs +56 -44
  15. package/es/data-form/form-components/bwa-input-float.mjs +48 -37
  16. package/es/data-form/form-components/bwa-input-integer.mjs +68 -50
  17. package/es/data-form/form-components/bwa-input.mjs +43 -32
  18. package/es/data-form/form-components/bwa-multi-select.mjs +40 -29
  19. package/es/data-form/form-components/bwa-rich-text-tinymce.mjs +554 -218
  20. package/es/data-form/form-components/bwa-rich-text.mjs +404 -316
  21. package/es/data-form/form-components/bwa-select.mjs +84 -70
  22. package/es/data-form/form-components/bwa-textarea.mjs +38 -27
  23. package/es/data-form/form-components/bwa-upload.mjs +172 -148
  24. package/es/data-form/form-components/bwa-user-multi-select.mjs +35 -24
  25. package/es/data-form/form-components/bwa-user-select.mjs +86 -61
  26. package/es/data-table/data-column-view.mjs +146 -115
  27. package/es/data-table/data-table-card.mjs +48 -40
  28. package/es/data-table/data-table-column.mjs +58 -45
  29. package/es/data-table/data-table.mjs +402 -316
  30. package/es/datatable-settings/datatable-settings.mjs +329 -254
  31. package/es/date-range/date-picker.mjs +130 -116
  32. package/es/date-range/date-range.mjs +215 -168
  33. package/es/drag-list/drag-item.mjs +56 -42
  34. package/es/drag-list/drag-list.mjs +60 -47
  35. package/es/dragable/dragable-item.mjs +23 -18
  36. package/es/dragable/dragable-operation.mjs +32 -24
  37. package/es/dragable/dragable.mjs +32 -23
  38. package/es/filter-panel/conditions/date-range-condition.mjs +50 -40
  39. package/es/filter-panel/conditions/department-condition/department-condition.mjs +99 -72
  40. package/es/filter-panel/conditions/department-condition/department-node.mjs +73 -59
  41. package/es/filter-panel/conditions/input-condition.mjs +90 -76
  42. package/es/filter-panel/conditions/multi-user-condition.mjs +67 -57
  43. package/es/filter-panel/conditions/multiple-menu-condition.mjs +54 -35
  44. package/es/filter-panel/conditions/single-menu-condition.mjs +65 -60
  45. package/es/filter-panel/conditions/single-user-condition.mjs +67 -57
  46. package/es/filter-panel/filter-panel-item.mjs +54 -39
  47. package/es/filter-panel/filter-panel.mjs +153 -135
  48. package/es/layout/layout.mjs +85 -78
  49. package/es/menu/menu-item.mjs +67 -52
  50. package/es/menu/menu.mjs +70 -53
  51. package/es/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.mjs +28 -0
  52. package/es/panel/panel.mjs +53 -40
  53. package/es/pct-filter-panel/pct-compents/pct-Input-condition.mjs +74 -63
  54. package/es/pct-filter-panel/pct-compents/pct-date-range-condition.mjs +76 -67
  55. package/es/pct-filter-panel/pct-compents/pct-multiple-menu-condition.mjs +406 -178
  56. package/es/pct-filter-panel/pct-compents/pct-multiple-menu-condition2.mjs +153 -138
  57. package/es/pct-filter-panel/pct-filter-panel-item.mjs +55 -40
  58. package/es/pct-filter-panel/pct-filter-panel.mjs +247 -227
  59. package/es/progress/progress-item.mjs +81 -61
  60. package/es/progress/progress.mjs +78 -64
  61. package/es/where-filter-panel/where-filter-panel.mjs +15 -12
  62. package/lib/advance-select/advance-operation.js +50 -36
  63. package/lib/advance-select/advance-option.js +166 -96
  64. package/lib/advance-select/advance-option.vue_vue_type_style_index_0_scoped_bc8f5626_lang.js +12 -0
  65. package/lib/advance-select/advance-select.js +366 -308
  66. package/lib/application-slot/breadcrumb-item.js +19 -16
  67. package/lib/application-slot/header-tools-item.js +19 -16
  68. package/lib/breadcrumb-select/breadcrumb-select.js +133 -111
  69. package/lib/contextmenu/contextmenu-item.js +18 -14
  70. package/lib/contextmenu/contextmenu.js +71 -55
  71. package/lib/data-form/data-form-item.js +47 -29
  72. package/lib/data-form/data-form.js +212 -165
  73. package/lib/data-form/form-components/bwa-date-picker.js +50 -38
  74. package/lib/data-form/form-components/bwa-date-time-picker.js +55 -43
  75. package/lib/data-form/form-components/bwa-input-float.js +47 -36
  76. package/lib/data-form/form-components/bwa-input-integer.js +67 -49
  77. package/lib/data-form/form-components/bwa-input.js +42 -31
  78. package/lib/data-form/form-components/bwa-multi-select.js +39 -28
  79. package/lib/data-form/form-components/bwa-rich-text-tinymce.js +553 -217
  80. package/lib/data-form/form-components/bwa-rich-text.js +403 -315
  81. package/lib/data-form/form-components/bwa-select.js +83 -69
  82. package/lib/data-form/form-components/bwa-textarea.js +37 -26
  83. package/lib/data-form/form-components/bwa-upload.js +171 -147
  84. package/lib/data-form/form-components/bwa-user-multi-select.js +34 -23
  85. package/lib/data-form/form-components/bwa-user-select.js +85 -60
  86. package/lib/data-table/data-column-view.js +146 -115
  87. package/lib/data-table/data-table-card.js +48 -40
  88. package/lib/data-table/data-table-column.js +57 -44
  89. package/lib/data-table/data-table.js +401 -315
  90. package/lib/datatable-settings/datatable-settings.js +328 -253
  91. package/lib/date-range/date-picker.js +129 -115
  92. package/lib/date-range/date-range.js +213 -170
  93. package/lib/drag-list/drag-item.js +55 -41
  94. package/lib/drag-list/drag-list.js +59 -46
  95. package/lib/dragable/dragable-item.js +22 -17
  96. package/lib/dragable/dragable-operation.js +31 -23
  97. package/lib/dragable/dragable.js +31 -22
  98. package/lib/filter-panel/conditions/date-range-condition.js +49 -39
  99. package/lib/filter-panel/conditions/department-condition/department-condition.js +98 -71
  100. package/lib/filter-panel/conditions/department-condition/department-node.js +72 -58
  101. package/lib/filter-panel/conditions/input-condition.js +89 -75
  102. package/lib/filter-panel/conditions/multi-user-condition.js +66 -56
  103. package/lib/filter-panel/conditions/multiple-menu-condition.js +53 -34
  104. package/lib/filter-panel/conditions/single-menu-condition.js +64 -59
  105. package/lib/filter-panel/conditions/single-user-condition.js +66 -56
  106. package/lib/filter-panel/filter-panel-item.js +53 -38
  107. package/lib/filter-panel/filter-panel.js +152 -134
  108. package/lib/layout/layout.js +84 -77
  109. package/lib/menu/menu-item.js +66 -51
  110. package/lib/menu/menu.js +69 -52
  111. package/lib/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js +32 -0
  112. package/lib/panel/panel.js +52 -39
  113. package/lib/pct-filter-panel/pct-compents/pct-Input-condition.js +73 -62
  114. package/lib/pct-filter-panel/pct-compents/pct-date-range-condition.js +75 -66
  115. package/lib/pct-filter-panel/pct-compents/pct-multiple-menu-condition.js +405 -177
  116. package/lib/pct-filter-panel/pct-compents/pct-multiple-menu-condition2.js +152 -137
  117. package/lib/pct-filter-panel/pct-filter-panel-item.js +54 -39
  118. package/lib/pct-filter-panel/pct-filter-panel.js +246 -226
  119. package/lib/progress/progress-item.js +80 -60
  120. package/lib/progress/progress.js +77 -63
  121. package/lib/where-filter-panel/where-filter-panel.js +14 -11
  122. package/package.json +2 -1
  123. package/src/advance-select/advance-option.vue +64 -13
  124. package/src/data-form/form-components/bwa-rich-text-tinymce.vue +1 -1
  125. package/src/datatable-settings/datatable-settings.vue +33 -3
  126. package/src/date-range/date-picker.vue +1 -1
  127. package/src/date-range/date-range.vue +3 -3
  128. package/src/filter-panel/filter-panel.vue +2 -2
  129. package/src/pct-filter-panel/pct-compents/pct-Input-condition.vue +64 -64
  130. package/src/pct-filter-panel/pct-compents/pct-date-range-condition.vue +61 -61
  131. package/src/pct-filter-panel/pct-compents/pct-multiple-menu-condition.vue +302 -178
  132. package/src/pct-filter-panel/pct-filter-panel.vue +4 -4
@@ -6,73 +6,87 @@ 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
- const __default__ = vue.defineComponent({
10
- name: "BwaDepartmentNode"
11
- });
12
- const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
13
- props: {
14
- item: {
15
- type: Object,
16
- required: true
17
- },
18
- level: {
19
- type: Number,
20
- default: 0
21
- }
22
- },
9
+ const _sfc_main = {
10
+ __name: 'department-node',
11
+ props: {
12
+ item: {
13
+ type: Object,
14
+ required: true,
15
+ },
16
+ level: {
17
+ type: Number,
18
+ default: 0,
19
+ },
20
+ },
23
21
  setup(__props) {
24
- const props = __props;
25
- const ns = webBaseClientVue.useNamespace("department-node");
26
- const isShowChildren = vue.ref(false);
27
- return (_ctx, _cache) => {
28
- const _component_CaretBottom = vue.resolveComponent("CaretBottom");
29
- const _component_ElIcon = vue.resolveComponent("ElIcon");
30
- const _component_BwaAdvanceOption = vue.resolveComponent("BwaAdvanceOption");
31
- const _component_BwaDepartmentNode = vue.resolveComponent("BwaDepartmentNode");
32
- const _component_ElCollapseTransition = vue.resolveComponent("ElCollapseTransition");
33
- return vue.openBlock(), vue.createElementBlock("div", {
34
- class: vue.normalizeClass(vue.unref(ns).b())
22
+
23
+ const props = __props;
24
+
25
+ defineOptions({
26
+ name: 'BwaDepartmentNode',
27
+ });
28
+
29
+
30
+
31
+ const ns = webBaseClientVue.useNamespace('department-node');
32
+
33
+ const isShowChildren = vue.ref(false);
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))
35
51
  }, [
36
- vue.createElementVNode("div", {
37
- class: vue.normalizeClass(vue.unref(ns).e("content"))
38
- }, [
39
- vue.createElementVNode("div", {
40
- class: vue.normalizeClass(vue.unref(ns).e("arrow-wrapper")),
41
- onClick: _cache[0] || (_cache[0] = ($event) => isShowChildren.value = !isShowChildren.value)
42
- }, [
43
- __props.item.children.length ? (vue.openBlock(), vue.createBlock(_component_ElIcon, {
52
+ (__props.item.children.length)
53
+ ? (vue.openBlock(), vue.createBlock(_component_ElIcon, {
44
54
  key: 0,
45
- class: vue.normalizeClass([vue.unref(ns).e("arrow"), vue.unref(ns).is("collpase", !isShowChildren.value)])
55
+ class: vue.normalizeClass([vue.unref(ns).e('arrow'), vue.unref(ns).is('collpase', !isShowChildren.value)])
46
56
  }, {
47
57
  default: vue.withCtx(() => [
48
58
  vue.createVNode(_component_CaretBottom)
49
59
  ]),
50
- _: 1
51
- }, 8, ["class"])) : vue.createCommentVNode("v-if", true)
52
- ], 2),
53
- vue.createVNode(_component_BwaAdvanceOption, {
54
- value: __props.item.id,
55
- label: __props.item.name
56
- }, null, 8, ["value", "label"])
57
- ], 2),
58
- vue.createVNode(_component_ElCollapseTransition, null, {
59
- default: vue.withCtx(() => [
60
- isShowChildren.value ? (vue.openBlock(), vue.createElementBlock("div", {
60
+ _: 1 /* STABLE */
61
+ }, 8 /* PROPS */, ["class"]))
62
+ : vue.createCommentVNode("v-if", true)
63
+ ], 2 /* CLASS */),
64
+ vue.createVNode(_component_BwaAdvanceOption, {
65
+ value: __props.item.id,
66
+ label: __props.item.name
67
+ }, null, 8 /* PROPS */, ["value", "label"])
68
+ ], 2 /* CLASS */),
69
+ vue.createVNode(_component_ElCollapseTransition, null, {
70
+ default: vue.withCtx(() => [
71
+ (isShowChildren.value)
72
+ ? (vue.openBlock(), vue.createElementBlock("div", {
61
73
  key: 0,
62
- class: vue.normalizeClass(vue.unref(ns).e("children")),
63
- style: vue.normalizeStyle({ paddingLeft: 22 + __props.level * 5 + "px" })
74
+ class: vue.normalizeClass(vue.unref(ns).e('children')),
75
+ style: vue.normalizeStyle({ paddingLeft: 22 + __props.level * 5 + 'px' })
64
76
  }, [
65
77
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.item.children, (child) => {
66
- return vue.openBlock(), vue.createBlock(_component_BwaDepartmentNode, { item: child }, null, 8, ["item"]);
67
- }), 256))
68
- ], 6)) : vue.createCommentVNode("v-if", true)
69
- ]),
70
- _: 1
71
- })
72
- ], 2);
73
- };
74
- }
75
- });
76
- var DepartmentNode = /* @__PURE__ */ _pluginVue_exportHelper["default"](_sfc_main, [["__file", "department-node.vue"]]);
78
+ return (vue.openBlock(), vue.createBlock(_component_BwaDepartmentNode, { item: child }, null, 8 /* PROPS */, ["item"]))
79
+ }), 256 /* UNKEYED_FRAGMENT */))
80
+ ], 6 /* CLASS, STYLE */))
81
+ : vue.createCommentVNode("v-if", true)
82
+ ]),
83
+ _: 1 /* STABLE */
84
+ })
85
+ ], 2 /* CLASS */))
86
+ }
87
+ }
88
+
89
+ };
90
+ var DepartmentNode = /*#__PURE__*/_pluginVue_exportHelper["default"](_sfc_main, [['__file',"department-node.vue"]]);
77
91
 
78
92
  exports["default"] = DepartmentNode;
@@ -6,82 +6,96 @@ 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
- const __default__ = vue.defineComponent({
10
- name: "BwaInputCondition",
11
- __conditionTitle__: "\u8F93\u5165\u6846",
12
- __conditionDefault__: ""
13
- });
14
- const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
15
- props: {
16
- modelValue: {
17
- type: String
18
- }
19
- },
20
- emits: ["update:modelValue"],
9
+ const _sfc_main = {
10
+ __name: 'input-condition',
11
+ props: {
12
+ modelValue: {
13
+ type: String,
14
+ },
15
+ },
16
+ emits: ['update:modelValue'],
21
17
  setup(__props, { emit }) {
22
- const props = __props;
23
- const ns = webBaseClientVue.useNamespace("input-condition");
24
- if (typeof props.modelValue !== "string") {
25
- emit("update:modelValue", "");
26
- }
27
- const value = vue.computed({
28
- get: () => props.modelValue || "",
29
- set: emit.bind(null, "update:modelValue")
30
- });
31
- const filterPanelItem = vue.inject(webBaseClientVue.filterPanelItemKey, null);
32
- const column = vue.computed(() => {
33
- var _a;
34
- return (_a = filterPanelItem == null ? void 0 : filterPanelItem.column) != null ? _a : null;
35
- });
36
- const visible = vue.ref(false);
37
- return (_ctx, _cache) => {
38
- const _component_ElInput = vue.resolveComponent("ElInput");
39
- const _component_ElTooltip = vue.resolveComponent("ElTooltip");
40
- return vue.openBlock(), vue.createBlock(_component_ElTooltip, {
41
- visible: visible.value,
42
- "onUpdate:visible": _cache[1] || (_cache[1] = ($event) => visible.value = $event),
43
- pure: "",
44
- teleported: "",
45
- effect: "light",
46
- role: "dialog",
47
- transition: `el-zoom-in-top`,
48
- "fallback-placements": ["bottom", "top", "right", "left"],
49
- "gpu-acceleration": false,
50
- "show-arrow": false,
51
- "stop-popper-mouse-event": false,
52
- "hide-after": 0,
53
- persistent: "",
54
- trigger: "click"
55
- }, {
56
- content: vue.withCtx(() => [
57
- vue.createElementVNode("div", {
58
- class: vue.normalizeClass(vue.unref(ns).e("content"))
59
- }, [
60
- vue.createVNode(_component_ElInput, {
61
- class: vue.normalizeClass(vue.unref(ns).e("input")),
62
- modelValue: vue.unref(value),
63
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(value) ? value.value = $event : null),
64
- clearable: ""
65
- }, null, 8, ["class", "modelValue"])
66
- ], 2)
67
- ]),
68
- default: vue.withCtx(() => [
69
- vue.createElementVNode("div", {
70
- class: vue.normalizeClass([vue.unref(ns).b(), vue.unref(ns).is("active", visible.value)])
71
- }, [
72
- vue.renderSlot(_ctx.$slots, "label", {}, () => [
73
- vue.unref(column) ? (vue.openBlock(), vue.createElementBlock("span", {
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", {
74
86
  key: 0,
75
- class: vue.normalizeClass(vue.unref(ns).e("label"))
76
- }, vue.toDisplayString(vue.unref(column).title), 3)) : vue.createCommentVNode("v-if", true)
77
- ])
78
- ], 2)
79
- ]),
80
- _: 3
81
- }, 8, ["visible"]);
82
- };
83
- }
84
- });
85
- var InputCondition = /* @__PURE__ */ _pluginVue_exportHelper["default"](_sfc_main, [["__file", "input-condition.vue"]]);
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"]))
95
+ }
96
+ }
97
+
98
+ };
99
+ var InputCondition = /*#__PURE__*/_pluginVue_exportHelper["default"](_sfc_main, [['__file',"input-condition.vue"]]);
86
100
 
87
101
  exports["default"] = InputCondition;
@@ -7,62 +7,72 @@ var webBaseClientVue = require('@ctzy-web-client/web-base-client-vue');
7
7
  var index = require('../../advance-select/index.js');
8
8
  var _pluginVue_exportHelper = require('../../_virtual/_plugin-vue_export-helper.js');
9
9
 
10
- const __default__ = vue.defineComponent({
11
- name: "BwaMultiUserCondition",
12
- __conditionTitle__: "\u591A\u9009\u7528\u6237",
13
- __conditionDefault__: () => []
14
- });
15
- const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
10
+ const _sfc_main = {
11
+ __name: 'multi-user-condition',
16
12
  setup(__props) {
17
- ;
18
- const attrs = vue.useAttrs();
19
- const userService = webBaseClientVue.useService("UserService");
20
- const userList = vue.ref([]);
21
- const loadUserList = async (name = "") => {
22
- if (!vue.unref(userService)) {
23
- return;
24
- }
25
- const userListResult = await vue.unref(userService).getUserList({ name });
26
- if (userListResult.code != 0) {
27
- return;
28
- }
29
- userList.value = userListResult.data || [];
30
- };
31
- vue.onMounted(loadUserList);
32
- return (_ctx, _cache) => {
33
- return vue.openBlock(), vue.createBlock(vue.unref(index.BwaAdvanceSelect), vue.mergeProps(vue.unref(attrs), {
34
- multiple: true,
35
- onSearch: loadUserList
36
- }), {
37
- operation: vue.withCtx(() => [
38
- vue.renderSlot(_ctx.$slots, "operation")
39
- ]),
40
- empy: vue.withCtx(() => [
41
- vue.renderSlot(_ctx.$slots, "empy")
42
- ]),
43
- label: vue.withCtx(({ selectedValue, column }) => [
44
- vue.renderSlot(_ctx.$slots, "label", {
45
- selectedValue,
46
- column
47
- })
48
- ]),
49
- value: vue.withCtx(() => [
50
- vue.renderSlot(_ctx.$slots, "value")
51
- ]),
52
- default: vue.withCtx(() => [
53
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(userList.value, (item) => {
54
- return vue.openBlock(), vue.createBlock(vue.unref(index.BwaAdvanceOption), {
55
- key: item.value,
56
- value: item.value,
57
- label: item.label
58
- }, null, 8, ["value", "label"]);
59
- }), 128))
60
- ]),
61
- _: 3
62
- }, 16);
63
- };
64
- }
65
- });
66
- var MultiUserCondition = /* @__PURE__ */ _pluginVue_exportHelper["default"](_sfc_main, [["__file", "multi-user-condition.vue"]]);
13
+
14
+ defineOptions({
15
+ name: 'BwaMultiUserCondition',
16
+ __conditionTitle__: '多选用户',
17
+ __conditionDefault__: () => [],
18
+ });
19
+
20
+ const attrs = vue.useAttrs();
21
+ const userService = webBaseClientVue.useService('UserService');
22
+
23
+ const userList = vue.ref([]);
24
+
25
+ const loadUserList = async (name = '') => {
26
+ if (!vue.unref(userService)) {
27
+ return;
28
+ }
29
+
30
+ const userListResult = await vue.unref(userService).getUserList({ name });
31
+
32
+ if (userListResult.code != 0) {
33
+ return;
34
+ }
35
+
36
+ userList.value = userListResult.data || [];
37
+ };
38
+
39
+ vue.onMounted(loadUserList);
40
+
41
+ return (_ctx, _cache) => {
42
+ return (vue.openBlock(), vue.createBlock(vue.unref(index.BwaAdvanceSelect), vue.mergeProps(vue.unref(attrs), {
43
+ multiple: true,
44
+ onSearch: loadUserList
45
+ }), {
46
+ operation: vue.withCtx(() => [
47
+ vue.renderSlot(_ctx.$slots, "operation")
48
+ ]),
49
+ empy: vue.withCtx(() => [
50
+ vue.renderSlot(_ctx.$slots, "empy")
51
+ ]),
52
+ label: vue.withCtx(({ selectedValue, column }) => [
53
+ vue.renderSlot(_ctx.$slots, "label", {
54
+ selectedValue: selectedValue,
55
+ column: column
56
+ })
57
+ ]),
58
+ value: vue.withCtx(() => [
59
+ vue.renderSlot(_ctx.$slots, "value")
60
+ ]),
61
+ default: vue.withCtx(() => [
62
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(userList.value, (item) => {
63
+ return (vue.openBlock(), vue.createBlock(vue.unref(index.BwaAdvanceOption), {
64
+ key: item.value,
65
+ value: item.value,
66
+ label: item.label
67
+ }, null, 8 /* PROPS */, ["value", "label"]))
68
+ }), 128 /* KEYED_FRAGMENT */))
69
+ ]),
70
+ _: 3 /* FORWARDED */
71
+ }, 16 /* FULL_PROPS */))
72
+ }
73
+ }
74
+
75
+ };
76
+ var MultiUserCondition = /*#__PURE__*/_pluginVue_exportHelper["default"](_sfc_main, [['__file',"multi-user-condition.vue"]]);
67
77
 
68
78
  exports["default"] = MultiUserCondition;
@@ -6,40 +6,59 @@ var vue = require('vue');
6
6
  var index = require('../../advance-select/index.js');
7
7
  var _pluginVue_exportHelper = require('../../_virtual/_plugin-vue_export-helper.js');
8
8
 
9
- const __default__ = vue.defineComponent({
10
- name: "BwaMultipleMenuCondition",
11
- __conditionTitle__: "\u591A\u9009\u5217\u8868",
12
- __conditionDefault__: () => []
13
- });
14
- const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
9
+ const _sfc_main = {
10
+ __name: 'multiple-menu-condition',
15
11
  setup(__props) {
16
- ;
17
- const attrs = vue.useAttrs();
18
- return (_ctx, _cache) => {
19
- return vue.openBlock(), vue.createBlock(vue.unref(index.BwaAdvanceSelect), vue.mergeProps(vue.unref(attrs), { multiple: true }), {
20
- operation: vue.withCtx(() => [
21
- vue.renderSlot(_ctx.$slots, "operation")
22
- ]),
23
- empy: vue.withCtx(() => [
24
- vue.renderSlot(_ctx.$slots, "empy")
25
- ]),
26
- label: vue.withCtx(({ selectedValue, column }) => [
27
- vue.renderSlot(_ctx.$slots, "label", {
28
- selectedValue,
29
- column
30
- })
31
- ]),
32
- value: vue.withCtx(() => [
33
- vue.renderSlot(_ctx.$slots, "value")
34
- ]),
35
- default: vue.withCtx(() => [
36
- vue.renderSlot(_ctx.$slots, "default")
37
- ]),
38
- _: 3
39
- }, 16);
40
- };
41
- }
42
- });
43
- var MultipleMenuCondition = /* @__PURE__ */ _pluginVue_exportHelper["default"](_sfc_main, [["__file", "multiple-menu-condition.vue"]]);
12
+
13
+ defineOptions({
14
+ name: 'BwaMultipleMenuCondition',
15
+ __conditionTitle__: '多选列表',
16
+ __conditionDefault__: () => [],
17
+ });
18
+
19
+ const attrs = vue.useAttrs();
20
+
21
+ // const props = defineProps({
22
+ // modelValue: {
23
+ // type: null,
24
+ // },
25
+ // });
26
+
27
+ // const emit = defineEmits(['update:modelValue']);
28
+
29
+ // const value = computed({
30
+ // get: () => props.modelValue,
31
+ // set: (v) => {
32
+ // emit('update:modelValue', v);
33
+ // },
34
+ // });
35
+
36
+ return (_ctx, _cache) => {
37
+ return (vue.openBlock(), vue.createBlock(vue.unref(index.BwaAdvanceSelect), vue.mergeProps(vue.unref(attrs), { multiple: true }), {
38
+ operation: vue.withCtx(() => [
39
+ vue.renderSlot(_ctx.$slots, "operation")
40
+ ]),
41
+ empy: vue.withCtx(() => [
42
+ vue.renderSlot(_ctx.$slots, "empy")
43
+ ]),
44
+ label: vue.withCtx(({ selectedValue, column }) => [
45
+ vue.renderSlot(_ctx.$slots, "label", {
46
+ selectedValue: selectedValue,
47
+ column: column
48
+ })
49
+ ]),
50
+ value: vue.withCtx(() => [
51
+ vue.renderSlot(_ctx.$slots, "value")
52
+ ]),
53
+ default: vue.withCtx(() => [
54
+ vue.renderSlot(_ctx.$slots, "default")
55
+ ]),
56
+ _: 3 /* FORWARDED */
57
+ }, 16 /* FULL_PROPS */))
58
+ }
59
+ }
60
+
61
+ };
62
+ var MultipleMenuCondition = /*#__PURE__*/_pluginVue_exportHelper["default"](_sfc_main, [['__file',"multiple-menu-condition.vue"]]);
44
63
 
45
64
  exports["default"] = MultipleMenuCondition;