@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
@@ -1,13 +1,13 @@
1
1
  import { withInstall } from 'element-plus/es/utils/vue/install';
2
- import AdvanceSelect from './advance-select.mjs';
3
- import AdvanceOption from './advance-option.mjs';
2
+ import BwaAdvanceSelect$1 from './advance-select.mjs';
3
+ import BwaAdvanceOption$1 from './advance-option.mjs';
4
4
  import AdvanceOperation from './advance-operation.mjs';
5
5
 
6
- const BwaAdvanceSelect = withInstall(AdvanceSelect, {
7
- AdvanceOption,
6
+ const BwaAdvanceSelect = withInstall(BwaAdvanceSelect$1, {
7
+ AdvanceOption: BwaAdvanceOption$1,
8
8
  AdvanceOperation
9
9
  });
10
- const BwaAdvanceOption = withInstall(AdvanceOption);
10
+ const BwaAdvanceOption = withInstall(BwaAdvanceOption$1);
11
11
  const BwaAdvanceOperation = withInstall(AdvanceOperation);
12
12
 
13
13
  export { BwaAdvanceOperation, BwaAdvanceOption, BwaAdvanceSelect, BwaAdvanceSelect as default };
@@ -1,23 +1,26 @@
1
- import { defineComponent, openBlock, createBlock, unref, withCtx, renderSlot } from 'vue';
1
+ import { openBlock, createBlock, unref, withCtx, renderSlot } from 'vue';
2
2
  import ApplicationSlot from './application-slot.mjs';
3
3
  import _export_sfc from '../_virtual/_plugin-vue_export-helper.mjs';
4
4
 
5
- const __default__ = defineComponent({
6
- name: "BwaBreadcrumbItem"
7
- });
8
- const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
5
+ const _sfc_main = {
6
+ __name: 'breadcrumb-item',
9
7
  setup(__props) {
10
- ;
11
- return (_ctx, _cache) => {
12
- return openBlock(), createBlock(unref(ApplicationSlot), { type: "breadcrumbItem" }, {
13
- default: withCtx(() => [
14
- renderSlot(_ctx.$slots, "default")
15
- ]),
16
- _: 3
17
- });
18
- };
19
- }
20
- });
21
- var BreadcrumbItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "breadcrumb-item.vue"]]);
8
+
9
+ defineOptions({
10
+ name: 'BwaBreadcrumbItem',
11
+ });
12
+
13
+ return (_ctx, _cache) => {
14
+ return (openBlock(), createBlock(unref(ApplicationSlot), { type: "breadcrumbItem" }, {
15
+ default: withCtx(() => [
16
+ renderSlot(_ctx.$slots, "default")
17
+ ]),
18
+ _: 3 /* FORWARDED */
19
+ }))
20
+ }
21
+ }
22
+
23
+ };
24
+ var BreadcrumbItem = /*#__PURE__*/_export_sfc(_sfc_main, [['__file',"breadcrumb-item.vue"]]);
22
25
 
23
26
  export { BreadcrumbItem as default };
@@ -1,23 +1,26 @@
1
- import { defineComponent, openBlock, createBlock, unref, withCtx, renderSlot } from 'vue';
1
+ import { openBlock, createBlock, unref, withCtx, renderSlot } from 'vue';
2
2
  import ApplicationSlot from './application-slot.mjs';
3
3
  import _export_sfc from '../_virtual/_plugin-vue_export-helper.mjs';
4
4
 
5
- const __default__ = defineComponent({
6
- name: "BwaHeaderToolsItem"
7
- });
8
- const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
5
+ const _sfc_main = {
6
+ __name: 'header-tools-item',
9
7
  setup(__props) {
10
- ;
11
- return (_ctx, _cache) => {
12
- return openBlock(), createBlock(unref(ApplicationSlot), { type: "headerToolItem" }, {
13
- default: withCtx(() => [
14
- renderSlot(_ctx.$slots, "default")
15
- ]),
16
- _: 3
17
- });
18
- };
19
- }
20
- });
21
- var HeaderToolsItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "header-tools-item.vue"]]);
8
+
9
+ defineOptions({
10
+ name: 'BwaHeaderToolsItem',
11
+ });
12
+
13
+ return (_ctx, _cache) => {
14
+ return (openBlock(), createBlock(unref(ApplicationSlot), { type: "headerToolItem" }, {
15
+ default: withCtx(() => [
16
+ renderSlot(_ctx.$slots, "default")
17
+ ]),
18
+ _: 3 /* FORWARDED */
19
+ }))
20
+ }
21
+ }
22
+
23
+ };
24
+ var HeaderToolsItem = /*#__PURE__*/_export_sfc(_sfc_main, [['__file',"header-tools-item.vue"]]);
22
25
 
23
26
  export { HeaderToolsItem as default };
@@ -1,155 +1,177 @@
1
- import { createElementVNode, defineComponent, useAttrs, resolveComponent, openBlock, createBlock, unref, mergeProps, createSlots, withCtx, normalizeClass, toDisplayString, createCommentVNode, createVNode, renderSlot } from 'vue';
1
+ import { createElementVNode, useAttrs, resolveComponent, openBlock, createBlock, unref, mergeProps, createSlots, withCtx, normalizeClass, toDisplayString, createCommentVNode, createVNode, renderSlot } from 'vue';
2
2
  import { ElIcon, ElButton } from 'element-plus';
3
3
  import { useNamespace } from '@ctzy-web-client/web-base-client-vue';
4
4
  import { BwaAdvanceSelect } from '../advance-select/index.mjs';
5
5
  import AdvanceOperation from '../advance-select/advance-operation.mjs';
6
6
  import _export_sfc from '../_virtual/_plugin-vue_export-helper.mjs';
7
7
 
8
- const _hoisted_1 = /* @__PURE__ */ createElementVNode("i", { class: "ptp-caozuo-chakan ptp-icon" }, null, -1);
9
- const _hoisted_2 = /* @__PURE__ */ createElementVNode("i", { class: "ptp-caozuo-chakan ptp-icon" }, null, -1);
10
- const _hoisted_3 = /* @__PURE__ */ createElementVNode("i", { class: "ptp-qiehuan ptp-icon" }, null, -1);
11
- const __default__ = defineComponent({ name: "BwaBreadcrumbSelect" });
12
- const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
13
- props: {
14
- defaultLabel: {
15
- type: String,
16
- default: "\u8BF7\u9009\u62E9"
17
- },
18
- recentEmptyDesc: {
19
- type: String,
20
- default: "\u6700\u8FD1\u8BBF\u95EE\u9879\u76EE"
21
- },
22
- searchPlaceholder: {
23
- type: String,
24
- default: "\u9879\u76EE\u540D\u79F0"
25
- },
26
- allDesc: {
27
- type: String,
28
- default: "\u5168\u90E8\u9879\u76EE"
29
- },
30
- allMine: {
31
- type: String,
32
- default: "\u6211\u7684\u9879\u76EE"
33
- },
34
- saveDesc: {
35
- type: String,
36
- default: "\u65B0\u589E\u9879\u76EE"
37
- },
38
- showSave: {
39
- type: Boolean,
40
- default: true
41
- },
42
- showMine: {
43
- type: Boolean,
44
- default: false
45
- },
46
- showAll: {
47
- type: Boolean,
48
- default: true
49
- }
50
- },
51
- emits: ["all", "mine", "save"],
8
+ const _hoisted_1 = /*#__PURE__*/createElementVNode("i", { class: "ptp-caozuo-chakan ptp-icon" }, null, -1 /* HOISTED */);
9
+ const _hoisted_2 = /*#__PURE__*/createElementVNode("i", { class: "ptp-caozuo-chakan ptp-icon" }, null, -1 /* HOISTED */);
10
+ const _hoisted_3 = /*#__PURE__*/createElementVNode("i", { class: "ptp-qiehuan ptp-icon" }, null, -1 /* HOISTED */);
11
+
12
+
13
+ const _sfc_main = {
14
+ __name: 'breadcrumb-select',
15
+ props: {
16
+ defaultLabel: {
17
+ type: String,
18
+ default: '请选择',
19
+ },
20
+ recentEmptyDesc: {
21
+ type: String,
22
+ default: '最近访问项目',
23
+ },
24
+ searchPlaceholder: {
25
+ type: String,
26
+ default: '项目名称',
27
+ },
28
+ allDesc: {
29
+ type: String,
30
+ default: '全部项目',
31
+ },
32
+ allMine: {
33
+ type: String,
34
+ default: '我的项目',
35
+ },
36
+ saveDesc: {
37
+ type: String,
38
+ default: '新增项目',
39
+ },
40
+ showSave: {
41
+ type: Boolean,
42
+ default: true,
43
+ },
44
+ showMine: {
45
+ type: Boolean,
46
+ default: false,
47
+ },
48
+ showAll: {
49
+ type: Boolean,
50
+ default: true
51
+ }
52
+ },
53
+ emits: ['all','mine', 'save'],
52
54
  setup(__props, { emit }) {
53
- const props = __props;
54
- const attrs = useAttrs();
55
- const ns = useNamespace("breadcrumb");
56
- return (_ctx, _cache) => {
57
- const _component_CirclePlus = resolveComponent("CirclePlus");
58
- const _component_ArrowDown = resolveComponent("ArrowDown");
59
- return openBlock(), createBlock(unref(BwaAdvanceSelect), mergeProps(unref(attrs), {
60
- showSelection: false,
61
- "search-placeholder": __props.searchPlaceholder,
62
- multiple: false
63
- }), createSlots({
64
- contentBottom: withCtx(() => [
65
- __props.showAll ? (openBlock(), createBlock(AdvanceOperation, {
55
+
56
+ const props = __props;
57
+
58
+ defineOptions({ name: 'BwaBreadcrumbSelect' });
59
+
60
+
61
+
62
+
63
+
64
+ const attrs = useAttrs();
65
+
66
+ const ns = useNamespace('breadcrumb');
67
+
68
+ return (_ctx, _cache) => {
69
+ const _component_CirclePlus = resolveComponent("CirclePlus");
70
+ const _component_ArrowDown = resolveComponent("ArrowDown");
71
+
72
+ return (openBlock(), createBlock(unref(BwaAdvanceSelect), mergeProps(unref(attrs), {
73
+ showSelection: false,
74
+ "search-placeholder": __props.searchPlaceholder,
75
+ multiple: false
76
+ }), createSlots({
77
+ contentBottom: withCtx(() => [
78
+ (__props.showAll)
79
+ ? (openBlock(), createBlock(AdvanceOperation, {
66
80
  key: 0,
67
- class: normalizeClass(unref(ns).be("item", "opt")),
68
- onClick: _cache[0] || (_cache[0] = ($event) => emit("all"))
81
+ class: normalizeClass(unref(ns).be('item', 'opt')),
82
+ onClick: _cache[0] || (_cache[0] = $event => (emit('all')))
69
83
  }, {
70
84
  default: withCtx(() => [
71
85
  _hoisted_1,
72
86
  createElementVNode("span", {
73
- class: normalizeClass(unref(ns).be("item", "opt-label"))
74
- }, toDisplayString(__props.allDesc), 3)
87
+ class: normalizeClass(unref(ns).be('item', 'opt-label'))
88
+ }, toDisplayString(__props.allDesc), 3 /* TEXT, CLASS */)
75
89
  ]),
76
- _: 1
77
- }, 8, ["class"])) : createCommentVNode("v-if", true),
78
- __props.showMine ? (openBlock(), createBlock(AdvanceOperation, {
90
+ _: 1 /* STABLE */
91
+ }, 8 /* PROPS */, ["class"]))
92
+ : createCommentVNode("v-if", true),
93
+ (__props.showMine)
94
+ ? (openBlock(), createBlock(AdvanceOperation, {
79
95
  key: 1,
80
- class: normalizeClass(unref(ns).be("item", "opt")),
81
- onClick: _cache[1] || (_cache[1] = ($event) => emit("mine"))
96
+ class: normalizeClass(unref(ns).be('item', 'opt')),
97
+ onClick: _cache[1] || (_cache[1] = $event => (emit('mine')))
82
98
  }, {
83
99
  default: withCtx(() => [
84
100
  _hoisted_2,
85
101
  createElementVNode("span", {
86
- class: normalizeClass(unref(ns).be("item", "opt-label"))
87
- }, toDisplayString(__props.allMine), 3)
102
+ class: normalizeClass(unref(ns).be('item', 'opt-label'))
103
+ }, toDisplayString(__props.allMine), 3 /* TEXT, CLASS */)
88
104
  ]),
89
- _: 1
90
- }, 8, ["class"])) : createCommentVNode("v-if", true),
91
- __props.showSave ? (openBlock(), createBlock(AdvanceOperation, {
105
+ _: 1 /* STABLE */
106
+ }, 8 /* PROPS */, ["class"]))
107
+ : createCommentVNode("v-if", true),
108
+ (__props.showSave)
109
+ ? (openBlock(), createBlock(AdvanceOperation, {
92
110
  key: 2,
93
- class: normalizeClass(unref(ns).be("item", "opt")),
94
- onClick: _cache[2] || (_cache[2] = ($event) => emit("save"))
111
+ class: normalizeClass(unref(ns).be('item', 'opt')),
112
+ onClick: _cache[2] || (_cache[2] = $event => (emit('save')))
95
113
  }, {
96
114
  default: withCtx(() => [
97
115
  createVNode(unref(ElIcon), null, {
98
116
  default: withCtx(() => [
99
117
  createVNode(_component_CirclePlus)
100
118
  ]),
101
- _: 1
119
+ _: 1 /* STABLE */
102
120
  }),
103
121
  createElementVNode("span", {
104
- class: normalizeClass(unref(ns).be("item", "opt-label"))
105
- }, toDisplayString(__props.saveDesc), 3)
122
+ class: normalizeClass(unref(ns).be('item', 'opt-label'))
123
+ }, toDisplayString(__props.saveDesc), 3 /* TEXT, CLASS */)
106
124
  ]),
107
- _: 1
108
- }, 8, ["class"])) : createCommentVNode("v-if", true)
109
- ]),
110
- reference: withCtx(({ label }) => [
111
- createVNode(unref(ElButton), {
112
- class: normalizeClass(unref(ns).be("item", "dropdown"))
113
- }, {
125
+ _: 1 /* STABLE */
126
+ }, 8 /* PROPS */, ["class"]))
127
+ : createCommentVNode("v-if", true)
128
+ ]),
129
+ reference: withCtx(({ label }) => [
130
+ createVNode(unref(ElButton), {
131
+ class: normalizeClass(unref(ns).be('item', 'dropdown'))
132
+ }, {
133
+ default: withCtx(() => [
134
+ _hoisted_3,
135
+ createElementVNode("span", {
136
+ class: normalizeClass(unref(ns).be('item', 'content'))
137
+ }, toDisplayString(label || __props.defaultLabel), 3 /* TEXT, CLASS */),
138
+ createVNode(unref(ElIcon), null, {
114
139
  default: withCtx(() => [
115
- _hoisted_3,
116
- createElementVNode("span", {
117
- class: normalizeClass(unref(ns).be("item", "content"))
118
- }, toDisplayString(label || __props.defaultLabel), 3),
119
- createVNode(unref(ElIcon), null, {
120
- default: withCtx(() => [
121
- createVNode(_component_ArrowDown)
122
- ]),
123
- _: 1
124
- })
140
+ createVNode(_component_ArrowDown)
125
141
  ]),
126
- _: 2
127
- }, 1032, ["class"])
142
+ _: 1 /* STABLE */
143
+ })
128
144
  ]),
129
- default: withCtx(() => [
130
- renderSlot(_ctx.$slots, "default")
131
- ]),
132
- _: 2
133
- }, [
134
- __props.recentEmptyDesc ? {
145
+ _: 2 /* DYNAMIC */
146
+ }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["class"])
147
+ ]),
148
+ default: withCtx(() => [
149
+ renderSlot(_ctx.$slots, "default")
150
+ ]),
151
+ _: 2 /* DYNAMIC */
152
+ }, [
153
+ (__props.recentEmptyDesc)
154
+ ? {
135
155
  name: "contentTop",
136
156
  fn: withCtx(() => [
137
157
  createElementVNode("div", {
138
- class: normalizeClass(unref(ns).be("item", "top"))
158
+ class: normalizeClass(unref(ns).be('item', 'top'))
139
159
  }, [
140
160
  renderSlot(_ctx.$slots, "recent", {}, () => [
141
161
  createElementVNode("div", {
142
- class: normalizeClass(unref(ns).be("item", "top-empty"))
143
- }, toDisplayString(__props.recentEmptyDesc), 3)
162
+ class: normalizeClass(unref(ns).be('item', 'top-empty'))
163
+ }, toDisplayString(__props.recentEmptyDesc), 3 /* TEXT, CLASS */)
144
164
  ])
145
- ], 2)
165
+ ], 2 /* CLASS */)
146
166
  ]),
147
167
  key: "0"
148
- } : void 0
149
- ]), 1040, ["search-placeholder"]);
150
- };
151
- }
152
- });
153
- var BreadcrumbSelect = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "breadcrumb-select.vue"]]);
168
+ }
169
+ : undefined
170
+ ]), 1040 /* FULL_PROPS, DYNAMIC_SLOTS */, ["search-placeholder"]))
171
+ }
172
+ }
173
+
174
+ };
175
+ var BreadcrumbSelect = /*#__PURE__*/_export_sfc(_sfc_main, [['__file',"breadcrumb-select.vue"]]);
154
176
 
155
177
  export { BreadcrumbSelect as default };
@@ -1,21 +1,25 @@
1
- import { defineComponent, openBlock, createElementBlock, normalizeClass, unref, renderSlot } from 'vue';
1
+ import { openBlock, createElementBlock, normalizeClass, unref, renderSlot } from 'vue';
2
2
  import { useNamespace } from '@ctzy-web-client/web-base-client-vue';
3
3
  import _export_sfc from '../_virtual/_plugin-vue_export-helper.mjs';
4
4
 
5
- const __default__ = defineComponent({ name: "BwaContextmenuItem" });
6
- const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
5
+ const _sfc_main = {
6
+ __name: 'contextmenu-item',
7
7
  setup(__props) {
8
- ;
9
- const ns = useNamespace("contextmenu-item");
10
- return (_ctx, _cache) => {
11
- return openBlock(), createElementBlock("div", {
12
- class: normalizeClass(unref(ns).b())
13
- }, [
14
- renderSlot(_ctx.$slots, "default")
15
- ], 2);
16
- };
17
- }
18
- });
19
- var contextmenuItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "contextmenu-item.vue"]]);
8
+
9
+ defineOptions({ name: 'BwaContextmenuItem' });
10
+
11
+ const ns = useNamespace('contextmenu-item');
12
+
13
+ return (_ctx, _cache) => {
14
+ return (openBlock(), createElementBlock("div", {
15
+ class: normalizeClass(unref(ns).b())
16
+ }, [
17
+ renderSlot(_ctx.$slots, "default")
18
+ ], 2 /* CLASS */))
19
+ }
20
+ }
21
+
22
+ };
23
+ var contextmenuItem = /*#__PURE__*/_export_sfc(_sfc_main, [['__file',"contextmenu-item.vue"]]);
20
24
 
21
25
  export { contextmenuItem as default };
@@ -1,64 +1,80 @@
1
- import { defineComponent, ref, onMounted, watch, computed, unref, openBlock, createElementBlock, normalizeClass, createVNode, withCtx, Fragment, renderList, toDisplayString } from 'vue';
1
+ import { ref, onMounted, watch, computed, unref, openBlock, createElementBlock, normalizeClass, createVNode, withCtx, Fragment, renderList, toDisplayString } from 'vue';
2
2
  import { ElScrollbar } from 'element-plus';
3
3
  import { useNamespace } from '@ctzy-web-client/web-base-client-vue';
4
4
  import _export_sfc from '../_virtual/_plugin-vue_export-helper.mjs';
5
5
 
6
6
  const _hoisted_1 = ["onClick"];
7
- const __default__ = defineComponent({ name: "BwaContextmenu" });
8
- const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
9
- props: {
10
- visible: {
11
- type: Boolean,
12
- default: false
13
- },
14
- menus: {
15
- type: Array,
16
- default: () => []
17
- }
18
- },
19
- emits: ["select"],
7
+
8
+
9
+ const _sfc_main = {
10
+ __name: 'contextmenu',
11
+ props: {
12
+ visible: {
13
+ type: Boolean,
14
+ default: false,
15
+ },
16
+ menus: {
17
+ type: Array,
18
+ default: () => [],
19
+ },
20
+ },
21
+ emits: ['select'],
20
22
  setup(__props, { emit }) {
21
- const props = __props;
22
- const ns = useNamespace("contextmenu");
23
- const scrollbarRef = ref(null);
24
- const clickHandle = (item) => {
25
- emit("select", item);
26
- };
27
- onMounted(() => {
28
- watch(
29
- computed(() => props.visible),
30
- (visible) => {
31
- if (!visible) {
32
- return;
33
- }
34
- unref(scrollbarRef).scrollTo(0, 0);
35
- }
36
- );
37
- });
38
- return (_ctx, _cache) => {
39
- return openBlock(), createElementBlock("div", {
40
- class: normalizeClass(unref(ns).b())
41
- }, [
42
- createVNode(unref(ElScrollbar), {
43
- "max-height": "400px",
44
- ref_key: "scrollbarRef",
45
- ref: scrollbarRef
46
- }, {
47
- default: withCtx(() => [
48
- (openBlock(true), createElementBlock(Fragment, null, renderList(__props.menus, (menu) => {
49
- return openBlock(), createElementBlock("div", {
50
- onClick: ($event) => clickHandle(menu),
51
- key: menu.id,
52
- class: normalizeClass(unref(ns).b("item"))
53
- }, toDisplayString(menu.label), 11, _hoisted_1);
54
- }), 128))
55
- ]),
56
- _: 1
57
- }, 512)
58
- ], 2);
59
- };
60
- }
61
- });
62
- var Contextmenu = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "contextmenu.vue"]]);
23
+
24
+ const props = __props;
25
+
26
+ defineOptions({ name: 'BwaContextmenu' });
27
+
28
+
29
+
30
+
31
+
32
+ const ns = useNamespace('contextmenu');
33
+
34
+ const scrollbarRef = ref(null);
35
+
36
+ const clickHandle = (item) => {
37
+ emit('select', item);
38
+ };
39
+
40
+ onMounted(() => {
41
+ watch(
42
+ computed(() => props.visible),
43
+ (visible) => {
44
+ if (!visible) {
45
+ return;
46
+ }
47
+
48
+ unref(scrollbarRef).scrollTo(0, 0);
49
+ }
50
+ );
51
+ });
52
+
53
+ return (_ctx, _cache) => {
54
+ return (openBlock(), createElementBlock("div", {
55
+ class: normalizeClass(unref(ns).b())
56
+ }, [
57
+ createVNode(unref(ElScrollbar), {
58
+ "max-height": "400px",
59
+ ref_key: "scrollbarRef",
60
+ ref: scrollbarRef
61
+ }, {
62
+ default: withCtx(() => [
63
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.menus, (menu) => {
64
+ return (openBlock(), createElementBlock("div", {
65
+ onClick: $event => (clickHandle(menu)),
66
+ key: menu.id,
67
+ class: normalizeClass(unref(ns).b('item'))
68
+ }, toDisplayString(menu.label), 11 /* TEXT, CLASS, PROPS */, _hoisted_1))
69
+ }), 128 /* KEYED_FRAGMENT */))
70
+ ]),
71
+ _: 1 /* STABLE */
72
+ }, 512 /* NEED_PATCH */)
73
+ ], 2 /* CLASS */))
74
+ }
75
+ }
76
+
77
+ };
78
+ var Contextmenu = /*#__PURE__*/_export_sfc(_sfc_main, [['__file',"contextmenu.vue"]]);
63
79
 
64
80
  export { Contextmenu as default };