@ctzy-web-client/plugin-component-vue 1.0.23 → 1.0.25

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 (131) 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 -161
  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 +214 -160
  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/filter-panel/filter-panel.vue +2 -2
  128. package/src/pct-filter-panel/pct-compents/pct-Input-condition.vue +64 -64
  129. package/src/pct-filter-panel/pct-compents/pct-date-range-condition.vue +61 -61
  130. package/src/pct-filter-panel/pct-compents/pct-multiple-menu-condition.vue +302 -178
  131. package/src/pct-filter-panel/pct-filter-panel.vue +4 -4
package/lib/menu/menu.js CHANGED
@@ -7,58 +7,75 @@ var webBaseClientVue = require('@ctzy-web-client/web-base-client-vue');
7
7
  var menuItem = require('./menu-item.js');
8
8
  var _pluginVue_exportHelper = require('../_virtual/_plugin-vue_export-helper.js');
9
9
 
10
- const __default__ = vue.defineComponent({
11
- name: "BwaMenu"
12
- });
13
- const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
14
- props: {
15
- currentMenuID: String,
16
- menus: {
17
- type: Array,
18
- default: () => []
19
- },
20
- collapsed: { type: Boolean, default: false }
21
- },
22
- emits: ["select"],
10
+ const _sfc_main = {
11
+ __name: 'menu',
12
+ props: {
13
+ currentMenuID: String,
14
+ menus: {
15
+ type: Array,
16
+ default: () => [],
17
+ },
18
+ collapsed: { type: Boolean, default: false },
19
+ },
20
+ emits: ['select'],
23
21
  setup(__props, { emit }) {
24
- const props = __props;
25
- const ns = webBaseClientVue.useNamespace("menu");
26
- const getMenuById = (id) => {
27
- const menus = props.menus || [];
28
- let list = [...menus];
29
- for (let i = 0; i < list.length; i++) {
30
- const item = list[i];
31
- if (item.id === id) {
32
- return item;
33
- }
34
- list = list.concat(item.children || []);
35
- }
36
- return null;
37
- };
38
- const handleSelect = (id) => {
39
- emit("select", getMenuById(id));
40
- };
41
- return (_ctx, _cache) => {
42
- const _component_ElMenu = vue.resolveComponent("ElMenu");
43
- return vue.openBlock(), vue.createBlock(_component_ElMenu, {
44
- "default-active": __props.currentMenuID,
45
- class: vue.normalizeClass([vue.unref(ns).b(), __props.collapsed ? vue.unref(ns).m("collapsed") : ""]),
46
- collapse: __props.collapsed,
47
- onSelect: handleSelect
48
- }, {
49
- default: vue.withCtx(() => [
50
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.menus, (item) => {
51
- return vue.openBlock(), vue.createBlock(menuItem["default"], {
52
- key: item.id,
53
- item
54
- }, null, 8, ["item"]);
55
- }), 128))
56
- ]),
57
- _: 1
58
- }, 8, ["default-active", "class", "collapse"]);
59
- };
60
- }
61
- });
62
- var Menu = /* @__PURE__ */ _pluginVue_exportHelper["default"](_sfc_main, [["__file", "menu.vue"]]);
22
+
23
+ const props = __props;
24
+
25
+ defineOptions({
26
+ name: 'BwaMenu',
27
+ });
28
+
29
+
30
+
31
+
32
+
33
+ const ns = webBaseClientVue.useNamespace('menu');
34
+
35
+ const getMenuById = (id) => {
36
+ const menus = props.menus || [];
37
+
38
+ let list = [...menus];
39
+ for (let i = 0; i < list.length; i++) {
40
+ const item = list[i];
41
+
42
+ if (item.id === id) {
43
+ return item;
44
+ }
45
+
46
+ list = list.concat(item.children || []);
47
+ }
48
+
49
+ return null;
50
+ };
51
+
52
+ const handleSelect = (id) => {
53
+ emit('select', getMenuById(id));
54
+ };
55
+
56
+ return (_ctx, _cache) => {
57
+ const _component_ElMenu = vue.resolveComponent("ElMenu");
58
+
59
+ return (vue.openBlock(), vue.createBlock(_component_ElMenu, {
60
+ "default-active": __props.currentMenuID,
61
+ class: vue.normalizeClass([vue.unref(ns).b(), __props.collapsed ? vue.unref(ns).m('collapsed') : '']),
62
+ collapse: __props.collapsed,
63
+ onSelect: handleSelect
64
+ }, {
65
+ default: vue.withCtx(() => [
66
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.menus, (item) => {
67
+ return (vue.openBlock(), vue.createBlock(menuItem["default"], {
68
+ key: item.id,
69
+ item: item
70
+ }, null, 8 /* PROPS */, ["item"]))
71
+ }), 128 /* KEYED_FRAGMENT */))
72
+ ]),
73
+ _: 1 /* STABLE */
74
+ }, 8 /* PROPS */, ["default-active", "class", "collapse"]))
75
+ }
76
+ }
77
+
78
+ };
79
+ var Menu = /*#__PURE__*/_pluginVue_exportHelper["default"](_sfc_main, [['__file',"menu.vue"]]);
63
80
 
64
81
  exports["default"] = Menu;
@@ -0,0 +1,32 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ function styleInject(css, ref) {
6
+ if ( ref === void 0 ) ref = {};
7
+ var insertAt = ref.insertAt;
8
+
9
+ if (!css || typeof document === 'undefined') { return; }
10
+
11
+ var head = document.head || document.getElementsByTagName('head')[0];
12
+ var style = document.createElement('style');
13
+ style.type = 'text/css';
14
+
15
+ if (insertAt === 'top') {
16
+ if (head.firstChild) {
17
+ head.insertBefore(style, head.firstChild);
18
+ } else {
19
+ head.appendChild(style);
20
+ }
21
+ } else {
22
+ head.appendChild(style);
23
+ }
24
+
25
+ if (style.styleSheet) {
26
+ style.styleSheet.cssText = css;
27
+ } else {
28
+ style.appendChild(document.createTextNode(css));
29
+ }
30
+ }
31
+
32
+ exports["default"] = styleInject;
@@ -6,54 +6,67 @@ 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: "BwaPanel"
11
- });
12
- const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
13
- props: {
14
- name: {
15
- type: String
16
- },
17
- label: {
18
- type: String,
19
- default: ""
20
- }
21
- },
9
+ const _sfc_main = {
10
+ __name: 'panel',
11
+ props: {
12
+ name: {
13
+ type: String,
14
+ },
15
+ label: {
16
+ type: String,
17
+ default: '',
18
+ },
19
+ },
22
20
  setup(__props) {
23
- ;
24
- const ns = webBaseClientVue.useNamespace("panel");
25
- const slots = vue.useSlots();
26
- return (_ctx, _cache) => {
27
- return vue.openBlock(), vue.createElementBlock("div", {
28
- class: vue.normalizeClass(vue.unref(ns).b())
29
- }, [
30
- vue.unref(slots).header ? (vue.openBlock(), vue.createElementBlock("div", {
21
+
22
+ defineOptions({
23
+ name: 'BwaPanel',
24
+ });
25
+
26
+
27
+
28
+ const ns = webBaseClientVue.useNamespace('panel');
29
+
30
+ const slots = vue.useSlots();
31
+
32
+ return (_ctx, _cache) => {
33
+ return (vue.openBlock(), vue.createElementBlock("div", {
34
+ class: vue.normalizeClass(vue.unref(ns).b())
35
+ }, [
36
+ (vue.unref(slots).header)
37
+ ? (vue.openBlock(), vue.createElementBlock("div", {
31
38
  key: 0,
32
- class: vue.normalizeClass(vue.unref(ns).e("header"))
39
+ class: vue.normalizeClass(vue.unref(ns).e('header'))
33
40
  }, [
34
41
  vue.renderSlot(_ctx.$slots, "header")
35
- ], 2)) : vue.createCommentVNode("v-if", true),
36
- vue.unref(slots).tools ? (vue.openBlock(), vue.createElementBlock("div", {
42
+ ], 2 /* CLASS */))
43
+ : vue.createCommentVNode("v-if", true),
44
+ (vue.unref(slots).tools)
45
+ ? (vue.openBlock(), vue.createElementBlock("div", {
37
46
  key: 1,
38
- class: vue.normalizeClass(vue.unref(ns).e("tools"))
47
+ class: vue.normalizeClass(vue.unref(ns).e('tools'))
39
48
  }, [
40
49
  vue.renderSlot(_ctx.$slots, "tools")
41
- ], 2)) : vue.createCommentVNode("v-if", true),
42
- vue.createElementVNode("div", {
43
- class: vue.normalizeClass(vue.unref(ns).e("body"))
44
- }, [
45
- vue.renderSlot(_ctx.$slots, "default")
46
- ], 2),
47
- vue.unref(slots).footer ? (vue.openBlock(), vue.createElementBlock("div", {
50
+ ], 2 /* CLASS */))
51
+ : vue.createCommentVNode("v-if", true),
52
+ vue.createElementVNode("div", {
53
+ class: vue.normalizeClass(vue.unref(ns).e('body'))
54
+ }, [
55
+ vue.renderSlot(_ctx.$slots, "default")
56
+ ], 2 /* CLASS */),
57
+ (vue.unref(slots).footer)
58
+ ? (vue.openBlock(), vue.createElementBlock("div", {
48
59
  key: 2,
49
- class: vue.normalizeClass(vue.unref(ns).e("footer"))
60
+ class: vue.normalizeClass(vue.unref(ns).e('footer'))
50
61
  }, [
51
62
  vue.renderSlot(_ctx.$slots, "footer")
52
- ], 2)) : vue.createCommentVNode("v-if", true)
53
- ], 2);
54
- };
55
- }
56
- });
57
- var Panel = /* @__PURE__ */ _pluginVue_exportHelper["default"](_sfc_main, [["__file", "panel.vue"]]);
63
+ ], 2 /* CLASS */))
64
+ : vue.createCommentVNode("v-if", true)
65
+ ], 2 /* CLASS */))
66
+ }
67
+ }
68
+
69
+ };
70
+ var Panel = /*#__PURE__*/_pluginVue_exportHelper["default"](_sfc_main, [['__file',"panel.vue"]]);
58
71
 
59
72
  exports["default"] = Panel;
@@ -7,69 +7,80 @@ var webBaseClientVue = require('@ctzy-web-client/web-base-client-vue');
7
7
  var index = require('../../hooks/use-data/index.js');
8
8
  var _pluginVue_exportHelper = require('../../_virtual/_plugin-vue_export-helper.js');
9
9
 
10
- const __default__ = vue.defineComponent({
11
- name: "BwaPctInputCondition",
12
- __conditionTitle__: "\u8F93\u5165\u6846",
13
- __conditionDefault__: () => []
14
- });
15
- const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
16
- props: {
17
- ...index.dataProps,
18
- modelValue: {
19
- type: null
20
- },
21
- placeholder: {
22
- type: String,
23
- default: "\u8BF7\u8F93\u5165"
24
- },
25
- prefixIcon: {
26
- type: String,
27
- default: "Search"
28
- },
29
- showIcon: {
30
- type: Boolean,
31
- default: false
32
- }
33
- },
34
- emits: ["update:modelValue"],
10
+ const _sfc_main = {
11
+ __name: 'pct-Input-condition',
12
+ props: {
13
+ ...index.dataProps,
14
+ modelValue: {
15
+ type: null,
16
+ },
17
+ placeholder: {
18
+ type: String,
19
+ default: '请输入',
20
+ },
21
+ prefixIcon: {
22
+ type: String,
23
+ default: 'Search',
24
+ },
25
+ showIcon: {
26
+ type: Boolean,
27
+ default: false,
28
+ }
29
+ },
30
+ emits: ['update:modelValue'],
35
31
  setup(__props, { emit }) {
36
- const props = __props;
37
- const ns = webBaseClientVue.useNamespace("pct-input");
38
- ;
39
- const filterPanelItem = vue.inject(webBaseClientVue.filterPanelItemKey, null);
40
- const column = vue.computed(() => {
41
- var _a;
42
- return (_a = filterPanelItem == null ? void 0 : filterPanelItem.column) != null ? _a : null;
43
- });
44
- const placeholderStr = vue.computed(() => showTitle.value ? props.placeholder : column.value.title);
45
- const attrs = vue.useAttrs();
46
- const showTitle = vue.computed(() => attrs.showTitle);
47
- const modelValue = vue.computed({
48
- get: () => props.modelValue,
49
- set: (v) => emit("update:modelValue", v)
50
- });
51
- return (_ctx, _cache) => {
52
- const _component_el_input = vue.resolveComponent("el-input");
53
- return vue.openBlock(), vue.createElementBlock("div", {
54
- class: vue.normalizeClass(vue.unref(ns).e("inputCon"))
55
- }, [
56
- vue.unref(showTitle) ? (vue.openBlock(), vue.createElementBlock("span", {
32
+
33
+ const props = __props;
34
+
35
+ const ns = webBaseClientVue.useNamespace('pct-input');
36
+
37
+ defineOptions({
38
+ name: 'BwaPctInputCondition',
39
+ __conditionTitle__: '输入框',
40
+ __conditionDefault__: () => [],
41
+ });
42
+
43
+
44
+
45
+ const filterPanelItem = vue.inject(webBaseClientVue.filterPanelItemKey, null);
46
+ const column = vue.computed(() => filterPanelItem?.column ?? null);
47
+
48
+ const placeholderStr = vue.computed(() => showTitle.value ? props.placeholder : column.value.title);
49
+
50
+ const attrs = vue.useAttrs();
51
+ const showTitle = vue.computed(() => attrs.showTitle);
52
+
53
+
54
+ const modelValue = vue.computed({
55
+ get: () => props.modelValue,
56
+ set: (v) => emit('update:modelValue', v),
57
+ });
58
+
59
+ return (_ctx, _cache) => {
60
+ const _component_el_input = vue.resolveComponent("el-input");
61
+
62
+ return (vue.openBlock(), vue.createElementBlock("div", {
63
+ class: vue.normalizeClass(vue.unref(ns).e('inputCon'))
64
+ }, [
65
+ (vue.unref(showTitle))
66
+ ? (vue.openBlock(), vue.createElementBlock("span", {
57
67
  key: 0,
58
- class: vue.normalizeClass(vue.unref(ns).e("title"))
59
- }, vue.toDisplayString(vue.unref(column).title), 3)) : vue.createCommentVNode("v-if", true),
60
- vue.createVNode(_component_el_input, {
61
- "prefix-icon": __props.showIcon ? __props.prefixIcon : "",
62
- size: "small",
63
- clearable: "",
64
- class: vue.normalizeClass(vue.unref(ns).e("search")),
65
- placeholder: vue.unref(placeholderStr),
66
- modelValue: vue.unref(modelValue),
67
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(modelValue) ? modelValue.value = $event : null)
68
- }, null, 8, ["prefix-icon", "class", "placeholder", "modelValue"])
69
- ], 2);
70
- };
71
- }
72
- });
73
- var PctInputCondition = /* @__PURE__ */ _pluginVue_exportHelper["default"](_sfc_main, [["__file", "pct-Input-condition.vue"]]);
68
+ class: vue.normalizeClass(vue.unref(ns).e('title'))
69
+ }, vue.toDisplayString(vue.unref(column).title), 3 /* TEXT, CLASS */))
70
+ : vue.createCommentVNode("v-if", true),
71
+ vue.createVNode(_component_el_input, {
72
+ "prefix-icon": __props.showIcon ? __props.prefixIcon : '',
73
+ clearable: "",
74
+ class: vue.normalizeClass(vue.unref(ns).e('search')),
75
+ placeholder: vue.unref(placeholderStr),
76
+ modelValue: vue.unref(modelValue),
77
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (vue.isRef(modelValue) ? (modelValue).value = $event : null))
78
+ }, null, 8 /* PROPS */, ["prefix-icon", "class", "placeholder", "modelValue"])
79
+ ], 2 /* CLASS */))
80
+ }
81
+ }
82
+
83
+ };
84
+ var PctInputCondition = /*#__PURE__*/_pluginVue_exportHelper["default"](_sfc_main, [['__file',"pct-Input-condition.vue"]]);
74
85
 
75
86
  exports["default"] = PctInputCondition;
@@ -6,73 +6,82 @@ 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: "BwaPctDateRangeCondition",
11
- __conditionTitle__: "\u65E5\u671F\u9009\u62E9",
12
- __conditionDefault__: () => ({ start: "", end: "" })
13
- });
14
- const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
15
- props: {
16
- modelValue: {
17
- type: null
18
- },
19
- valueFormat: {
20
- type: String,
21
- default: "YYYY-MM-DD"
22
- },
23
- showTitle: {
24
- type: Boolean,
25
- default: false
26
- }
27
- },
28
- emits: ["update:modelValue"],
9
+ const _sfc_main = {
10
+ __name: 'pct-date-range-condition',
11
+ props: {
12
+ modelValue: {
13
+ type: null,
14
+ },
15
+ valueFormat: {
16
+ type: String,
17
+ default: 'YYYY-MM-DD',
18
+ },
19
+ showTitle: {
20
+ type: Boolean,
21
+ default: false
22
+ }
23
+ },
24
+ emits: ['update:modelValue'],
29
25
  setup(__props, { emit }) {
30
- const props = __props;
31
- const ns = webBaseClientVue.useNamespace("pct-daterange");
32
- ;
33
- const filterPanelItem = vue.inject(webBaseClientVue.filterPanelItemKey);
34
- const column = vue.computed(() => {
35
- var _a;
36
- return (_a = filterPanelItem == null ? void 0 : filterPanelItem.column) != null ? _a : null;
37
- });
38
- const value = vue.computed({
39
- get: () => {
40
- if (props.modelValue && props.modelValue.start && props.modelValue.end) {
41
- return [props.modelValue.start, props.modelValue.end];
42
- }
43
- return [];
44
- },
45
- set: (v) => {
46
- if (v && v.length === 2) {
47
- emit("update:modelValue", { start: v[0], end: v[1] });
48
- } else {
49
- emit("update:modelValue", { start: "", end: "" });
50
- }
51
- }
52
- });
53
- return (_ctx, _cache) => {
54
- const _component_el_date_picker = vue.resolveComponent("el-date-picker");
55
- return vue.openBlock(), vue.createElementBlock("div", {
56
- class: vue.normalizeClass(vue.unref(ns).e("cont"))
57
- }, [
58
- vue.unref(column) && __props.showTitle ? (vue.openBlock(), vue.createElementBlock("div", {
26
+
27
+ const props = __props;
28
+
29
+ const ns = webBaseClientVue.useNamespace('pct-daterange');
30
+ defineOptions({
31
+ name: 'BwaPctDateRangeCondition',
32
+ __conditionTitle__: '日期选择',
33
+ __conditionDefault__: () => ({ start: '', end: '' }),
34
+ });
35
+
36
+
37
+
38
+
39
+
40
+ const filterPanelItem = vue.inject(webBaseClientVue.filterPanelItemKey);
41
+ const column = vue.computed(() => filterPanelItem?.column ?? null);
42
+
43
+ const value = vue.computed({
44
+ get: () => {
45
+ if (props.modelValue && props.modelValue.start && props.modelValue.end) {
46
+ return [props.modelValue.start, props.modelValue.end];
47
+ }
48
+ return [];
49
+ },
50
+ set: (v) => {
51
+ if (v && v.length === 2) {
52
+ emit('update:modelValue', { start: v[0], end: v[1] });
53
+ } else {
54
+ emit('update:modelValue', { start: '', end: '' });
55
+ }
56
+ },
57
+ });
58
+
59
+ return (_ctx, _cache) => {
60
+ const _component_el_date_picker = vue.resolveComponent("el-date-picker");
61
+
62
+ return (vue.openBlock(), vue.createElementBlock("div", {
63
+ class: vue.normalizeClass(vue.unref(ns).e('cont'))
64
+ }, [
65
+ (vue.unref(column) && __props.showTitle)
66
+ ? (vue.openBlock(), vue.createElementBlock("div", {
59
67
  key: 0,
60
- class: vue.normalizeClass(vue.unref(ns).e("label"))
61
- }, vue.toDisplayString(vue.unref(column).title), 3)) : vue.createCommentVNode("v-if", true),
62
- vue.createVNode(_component_el_date_picker, {
63
- modelValue: vue.unref(value),
64
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(value) ? value.value = $event : null),
65
- type: "daterange",
66
- "range-separator": "\u81F3",
67
- "start-placeholder": "\u5F00\u59CB\u65E5\u671F",
68
- "end-placeholder": "\u7ED3\u675F\u65E5\u671F",
69
- "value-format": __props.valueFormat,
70
- size: "small"
71
- }, null, 8, ["modelValue", "value-format"])
72
- ], 2);
73
- };
74
- }
75
- });
76
- var PctDateRangeCondition = /* @__PURE__ */ _pluginVue_exportHelper["default"](_sfc_main, [["__file", "pct-date-range-condition.vue"]]);
68
+ class: vue.normalizeClass(vue.unref(ns).e('label'))
69
+ }, vue.toDisplayString(vue.unref(column).title), 3 /* TEXT, CLASS */))
70
+ : vue.createCommentVNode("v-if", true),
71
+ vue.createVNode(_component_el_date_picker, {
72
+ modelValue: vue.unref(value),
73
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (vue.isRef(value) ? (value).value = $event : null)),
74
+ type: "daterange",
75
+ "range-separator": "",
76
+ "start-placeholder": "开始日期",
77
+ "end-placeholder": "结束日期",
78
+ "value-format": __props.valueFormat
79
+ }, null, 8 /* PROPS */, ["modelValue", "value-format"])
80
+ ], 2 /* CLASS */))
81
+ }
82
+ }
83
+
84
+ };
85
+ var PctDateRangeCondition = /*#__PURE__*/_pluginVue_exportHelper["default"](_sfc_main, [['__file',"pct-date-range-condition.vue"]]);
77
86
 
78
87
  exports["default"] = PctDateRangeCondition;