@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
@@ -1,49 +1,63 @@
1
- import { defineComponent, inject, getCurrentInstance, onMounted, onBeforeUnmount, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, renderSlot } from 'vue';
1
+ import { inject, getCurrentInstance, onMounted, onBeforeUnmount, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, renderSlot } from 'vue';
2
2
  import { useNamespace } from '@ctzy-web-client/web-base-client-vue';
3
3
  import { dragListContextKey } from './constants.mjs';
4
4
  import _export_sfc from '../_virtual/_plugin-vue_export-helper.mjs';
5
5
 
6
- const __default__ = defineComponent({ name: "BwaDragItem" });
7
- const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
6
+ const _sfc_main = {
7
+ __name: 'drag-item',
8
8
  setup(__props, { expose }) {
9
- const ns = useNamespace("dragitem");
10
- ;
11
- const dragListContext = inject(dragListContextKey);
12
- const id = dragListContext.nextID();
13
- const instance = getCurrentInstance();
14
- const handleMousedown = (event) => {
15
- if (event.button !== 0) {
16
- return;
17
- }
18
- dragListContext.startDrag(instance.proxy);
19
- };
20
- onMounted(() => {
21
- dragListContext.handleItemCreate(id, instance.proxy);
22
- });
23
- onBeforeUnmount(() => {
24
- dragListContext.handleItemDestroy(id, instance.proxy);
25
- });
26
- expose({
27
- id
28
- });
29
- return (_ctx, _cache) => {
30
- return openBlock(), createElementBlock("div", {
31
- class: normalizeClass(unref(ns).b()),
32
- "draggable-context-id": "",
33
- onMousedown: handleMousedown
34
- }, [
35
- createElementVNode("i", {
36
- class: normalizeClass([unref(ns).e("drag-icon"), "ptp-icon", "ptp-buzhou-yidong"])
37
- }, null, 2),
38
- createElementVNode("span", {
39
- class: normalizeClass(unref(ns).e("content"))
40
- }, [
41
- renderSlot(_ctx.$slots, "default")
42
- ], 2)
43
- ], 34);
44
- };
45
- }
46
- });
47
- var DragItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "drag-item.vue"]]);
9
+
10
+ const ns = useNamespace('dragitem');
11
+
12
+ defineOptions({ name: 'BwaDragItem' });
13
+
14
+ const dragListContext = inject(dragListContextKey);
15
+
16
+ const id = dragListContext.nextID();
17
+
18
+ const instance = getCurrentInstance();
19
+
20
+ /**
21
+ * @param {MouseEvent} event
22
+ */
23
+ const handleMousedown = (event) => {
24
+ if (event.button !== 0) {
25
+ return;
26
+ }
27
+ dragListContext.startDrag(instance.proxy);
28
+ };
29
+
30
+ onMounted(() => {
31
+ dragListContext.handleItemCreate(id, instance.proxy);
32
+ });
33
+
34
+ onBeforeUnmount(() => {
35
+ dragListContext.handleItemDestroy(id, instance.proxy);
36
+ });
37
+
38
+ expose({
39
+ id,
40
+ });
41
+
42
+ return (_ctx, _cache) => {
43
+ return (openBlock(), createElementBlock("div", {
44
+ class: normalizeClass(unref(ns).b()),
45
+ "draggable-context-id": "",
46
+ onMousedown: handleMousedown
47
+ }, [
48
+ createElementVNode("i", {
49
+ class: normalizeClass([unref(ns).e('drag-icon'), 'ptp-icon', 'ptp-buzhou-yidong'])
50
+ }, null, 2 /* CLASS */),
51
+ createElementVNode("span", {
52
+ class: normalizeClass(unref(ns).e('content'))
53
+ }, [
54
+ renderSlot(_ctx.$slots, "default")
55
+ ], 2 /* CLASS */)
56
+ ], 34 /* CLASS, HYDRATE_EVENTS */))
57
+ }
58
+ }
59
+
60
+ };
61
+ var DragItem = /*#__PURE__*/_export_sfc(_sfc_main, [['__file',"drag-item.vue"]]);
48
62
 
49
63
  export { DragItem as default };
@@ -1,56 +1,69 @@
1
- import { defineComponent, provide, reactive, openBlock, createElementBlock, normalizeClass, unref, Fragment, renderList, createBlock, withCtx, renderSlot } from 'vue';
1
+ import { provide, reactive, openBlock, createElementBlock, normalizeClass, unref, Fragment, renderList, createBlock, withCtx, renderSlot } from 'vue';
2
2
  import { useNamespace } from '@ctzy-web-client/web-base-client-vue';
3
3
  import { dragListContextKey } from './constants.mjs';
4
4
  import DragItem from './drag-item.mjs';
5
5
  import { useDragList } from './use-drag-list.mjs';
6
6
  import _export_sfc from '../_virtual/_plugin-vue_export-helper.mjs';
7
7
 
8
- const __default__ = defineComponent({ name: "BwaDragList" });
9
- const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
10
- props: {
11
- data: {
12
- type: Array,
13
- default: () => []
14
- },
15
- idAttr: {
16
- type: String,
17
- default: "id"
18
- }
19
- },
20
- emits: ["sort-change"],
8
+ const _sfc_main = {
9
+ __name: 'drag-list',
10
+ props: {
11
+ data: {
12
+ type: Array,
13
+ default: () => [],
14
+ },
15
+ idAttr: {
16
+ type: String,
17
+ default: 'id',
18
+ },
19
+ },
20
+ emits: ['sort-change'],
21
21
  setup(__props, { emit }) {
22
- const props = __props;
23
- const ns = useNamespace("draglist");
24
- const { startDrag, nextID, handleItemCreate, handleItemDestroy, dragging } = useDragList(props, { emit });
25
- provide(
26
- dragListContextKey,
27
- reactive({
28
- dragging,
29
- startDrag,
30
- nextID,
31
- handleItemCreate,
32
- handleItemDestroy
33
- })
34
- );
35
- return (_ctx, _cache) => {
36
- return openBlock(), createElementBlock("div", {
37
- class: normalizeClass([unref(ns).b(), unref(ns).e("dragging", unref(dragging))])
38
- }, [
39
- (openBlock(true), createElementBlock(Fragment, null, renderList(__props.data, (item, i) => {
40
- return openBlock(), createBlock(DragItem, {
41
- key: item[__props.idAttr],
42
- "data-key": item[__props.idAttr]
43
- }, {
44
- default: withCtx(() => [
45
- renderSlot(_ctx.$slots, "default", { item })
46
- ]),
47
- _: 2
48
- }, 1032, ["data-key"]);
49
- }), 128))
50
- ], 2);
51
- };
52
- }
53
- });
54
- var DragList = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "drag-list.vue"]]);
22
+
23
+ const props = __props;
24
+
25
+ defineOptions({ name: 'BwaDragList' });
26
+
27
+
28
+
29
+
30
+
31
+ const ns = useNamespace('draglist');
32
+
33
+ const { startDrag, nextID, handleItemCreate, handleItemDestroy, dragging } =
34
+ useDragList(props, { emit });
35
+
36
+ provide(
37
+ dragListContextKey,
38
+ reactive({
39
+ dragging,
40
+ startDrag,
41
+ nextID,
42
+ handleItemCreate,
43
+ handleItemDestroy,
44
+ })
45
+ );
46
+
47
+ return (_ctx, _cache) => {
48
+ return (openBlock(), createElementBlock("div", {
49
+ class: normalizeClass([unref(ns).b(), unref(ns).e('dragging', unref(dragging))])
50
+ }, [
51
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.data, (item, i) => {
52
+ return (openBlock(), createBlock(DragItem, {
53
+ key: item[__props.idAttr],
54
+ "data-key": item[__props.idAttr]
55
+ }, {
56
+ default: withCtx(() => [
57
+ renderSlot(_ctx.$slots, "default", { item: item })
58
+ ]),
59
+ _: 2 /* DYNAMIC */
60
+ }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["data-key"]))
61
+ }), 128 /* KEYED_FRAGMENT */))
62
+ ], 2 /* CLASS */))
63
+ }
64
+ }
65
+
66
+ };
67
+ var DragList = /*#__PURE__*/_export_sfc(_sfc_main, [['__file',"drag-list.vue"]]);
55
68
 
56
69
  export { DragList as default };
@@ -1,25 +1,30 @@
1
- import { defineComponent, provide, openBlock, createElementBlock, normalizeClass, unref, renderSlot } from 'vue';
1
+ import { provide, openBlock, createElementBlock, normalizeClass, unref, renderSlot } from 'vue';
2
2
  import { useNamespace } from '@ctzy-web-client/web-base-client-vue';
3
3
  import { dragableItemContextKey } from './constants.mjs';
4
4
  import _export_sfc from '../_virtual/_plugin-vue_export-helper.mjs';
5
5
 
6
- const __default__ = defineComponent({
7
- name: "BwaDragableItem"
8
- });
9
- const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
6
+ const _sfc_main = {
7
+ __name: 'dragable-item',
10
8
  setup(__props) {
11
- ;
12
- const ns = useNamespace("dragable-item");
13
- provide(dragableItemContextKey, {});
14
- return (_ctx, _cache) => {
15
- return openBlock(), createElementBlock("div", {
16
- class: normalizeClass(unref(ns).b())
17
- }, [
18
- renderSlot(_ctx.$slots, "default")
19
- ], 2);
20
- };
21
- }
22
- });
23
- var DragableItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "dragable-item.vue"]]);
9
+
10
+ defineOptions({
11
+ name: 'BwaDragableItem',
12
+ });
13
+
14
+ const ns = useNamespace('dragable-item');
15
+
16
+ provide(dragableItemContextKey, {});
17
+
18
+ return (_ctx, _cache) => {
19
+ return (openBlock(), createElementBlock("div", {
20
+ class: normalizeClass(unref(ns).b())
21
+ }, [
22
+ renderSlot(_ctx.$slots, "default")
23
+ ], 2 /* CLASS */))
24
+ }
25
+ }
26
+
27
+ };
28
+ var DragableItem = /*#__PURE__*/_export_sfc(_sfc_main, [['__file',"dragable-item.vue"]]);
24
29
 
25
30
  export { DragableItem as default };
@@ -1,32 +1,40 @@
1
- import { defineComponent, inject, ref, openBlock, createElementBlock, normalizeClass, unref, renderSlot } from 'vue';
1
+ import { inject, ref, openBlock, createElementBlock, normalizeClass, unref, renderSlot } from 'vue';
2
2
  import { useNamespace } from '@ctzy-web-client/web-base-client-vue';
3
3
  import { dragableContextKey, dragableItemContextKey } from './constants.mjs';
4
4
  import _export_sfc from '../_virtual/_plugin-vue_export-helper.mjs';
5
5
 
6
6
  const _hoisted_1 = ["dragable-operation"];
7
- const __default__ = defineComponent({
8
- name: "BwaDragableOperation"
9
- });
10
- const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
7
+
8
+
9
+ const _sfc_main = {
10
+ __name: 'dragable-operation',
11
11
  setup(__props) {
12
- ;
13
- const ns = useNamespace("dragable-operation");
14
- const dragableContext = inject(dragableContextKey);
15
- const dragableItemContext = inject(dragableItemContextKey);
16
- const dragableOperation = ref(
17
- new Boolean(dragableContext && dragableItemContext).valueOf()
18
- );
19
- return (_ctx, _cache) => {
20
- return openBlock(), createElementBlock("span", {
21
- class: normalizeClass(unref(ns).b()),
22
- onMousedown: _cache[0] || (_cache[0] = (...args) => _ctx.handleMousedown && _ctx.handleMousedown(...args)),
23
- "dragable-operation": dragableOperation.value
24
- }, [
25
- renderSlot(_ctx.$slots, "default")
26
- ], 42, _hoisted_1);
27
- };
28
- }
29
- });
30
- var DragableOperation = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "dragable-operation.vue"]]);
12
+
13
+ defineOptions({
14
+ name: 'BwaDragableOperation',
15
+ });
16
+
17
+ const ns = useNamespace('dragable-operation');
18
+
19
+ const dragableContext = inject(dragableContextKey);
20
+ const dragableItemContext = inject(dragableItemContextKey);
21
+
22
+ const dragableOperation = ref(
23
+ new Boolean(dragableContext && dragableItemContext).valueOf()
24
+ );
25
+
26
+ return (_ctx, _cache) => {
27
+ return (openBlock(), createElementBlock("span", {
28
+ class: normalizeClass(unref(ns).b()),
29
+ onMousedown: _cache[0] || (_cache[0] = (...args) => (_ctx.handleMousedown && _ctx.handleMousedown(...args))),
30
+ "dragable-operation": dragableOperation.value
31
+ }, [
32
+ renderSlot(_ctx.$slots, "default")
33
+ ], 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_1))
34
+ }
35
+ }
36
+
37
+ };
38
+ var DragableOperation = /*#__PURE__*/_export_sfc(_sfc_main, [['__file',"dragable-operation.vue"]]);
31
39
 
32
40
  export { DragableOperation as default };
@@ -1,31 +1,40 @@
1
- import { defineComponent, ref, provide, openBlock, createElementBlock, normalizeClass, unref, renderSlot } from 'vue';
1
+ import { ref, provide, openBlock, createElementBlock, normalizeClass, unref, renderSlot } from 'vue';
2
2
  import { useNamespace } from '@ctzy-web-client/web-base-client-vue';
3
3
  import { dragableContextKey } from './constants.mjs';
4
4
  import { useDragable } from './use-dragable.mjs';
5
5
  import _export_sfc from '../_virtual/_plugin-vue_export-helper.mjs';
6
6
 
7
- const __default__ = defineComponent({
8
- name: "BwaDragable"
9
- });
10
- const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
11
- emits: ["move"],
7
+ const _sfc_main = {
8
+ __name: 'dragable',
9
+ emits: ['move'],
12
10
  setup(__props, { emit }) {
13
- ;
14
- const ns = useNamespace("dragable");
15
- const el = ref(null);
16
- useDragable(el, ns.b("item"), ns.b("operation"), { emit });
17
- provide(dragableContextKey, {});
18
- return (_ctx, _cache) => {
19
- return openBlock(), createElementBlock("div", {
20
- class: normalizeClass(unref(ns).b()),
21
- ref_key: "el",
22
- ref: el
23
- }, [
24
- renderSlot(_ctx.$slots, "default")
25
- ], 2);
26
- };
27
- }
28
- });
29
- var Dragable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "dragable.vue"]]);
11
+
12
+ defineOptions({
13
+ name: 'BwaDragable',
14
+ });
15
+
16
+ const ns = useNamespace('dragable');
17
+
18
+
19
+
20
+ const el = ref(null);
21
+
22
+ useDragable(el, ns.b('item'), ns.b('operation'), { emit });
23
+
24
+ provide(dragableContextKey, {});
25
+
26
+ return (_ctx, _cache) => {
27
+ return (openBlock(), createElementBlock("div", {
28
+ class: normalizeClass(unref(ns).b()),
29
+ ref_key: "el",
30
+ ref: el
31
+ }, [
32
+ renderSlot(_ctx.$slots, "default")
33
+ ], 2 /* CLASS */))
34
+ }
35
+ }
36
+
37
+ };
38
+ var Dragable = /*#__PURE__*/_export_sfc(_sfc_main, [['__file',"dragable.vue"]]);
30
39
 
31
40
  export { Dragable as default };
@@ -1,46 +1,56 @@
1
- import { defineComponent, computed, openBlock, createBlock, unref, isRef, withCtx, renderSlot } from 'vue';
1
+ import { computed, openBlock, createBlock, unref, isRef, withCtx, renderSlot } from 'vue';
2
2
  import { BwaDateRange } from '../../date-range/index.mjs';
3
3
  import _export_sfc from '../../_virtual/_plugin-vue_export-helper.mjs';
4
4
 
5
- const __default__ = defineComponent({
6
- name: "BwaDateRangeCondition",
7
- __conditionTitle__: "\u65E5\u671F\u9009\u62E9",
8
- __conditionDefault__: () => ({ start: "", end: "" })
9
- });
10
- const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
11
- props: {
12
- modelValue: {
13
- type: null
14
- },
15
- valueFormat: {
16
- type: String,
17
- default: "YYYY-MM-DD"
18
- }
19
- },
20
- emits: ["update:modelValue"],
5
+ const _sfc_main = {
6
+ __name: 'date-range-condition',
7
+ props: {
8
+ modelValue: {
9
+ type: null,
10
+ },
11
+ valueFormat: {
12
+ type: String,
13
+ default: 'YYYY-MM-DD',
14
+ },
15
+ },
16
+ emits: ['update:modelValue'],
21
17
  setup(__props, { emit }) {
22
- const props = __props;
23
- const value = computed({
24
- get: () => props.modelValue,
25
- set: (v) => {
26
- emit("update:modelValue", v);
27
- }
28
- });
29
- return (_ctx, _cache) => {
30
- return openBlock(), createBlock(unref(BwaDateRange), {
31
- modelValue: unref(value),
32
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(value) ? value.value = $event : null),
33
- multiple: true,
34
- "value-format": __props.valueFormat
35
- }, {
36
- default: withCtx(() => [
37
- renderSlot(_ctx.$slots, "default")
38
- ]),
39
- _: 3
40
- }, 8, ["modelValue", "value-format"]);
41
- };
42
- }
43
- });
44
- var DateRangeCondition = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "date-range-condition.vue"]]);
18
+
19
+ const props = __props;
20
+
21
+ defineOptions({
22
+ name: 'BwaDateRangeCondition',
23
+ __conditionTitle__: '日期选择',
24
+ __conditionDefault__: () => ({ start: '', end: '' }),
25
+ });
26
+
27
+
28
+
29
+
30
+
31
+ const value = computed({
32
+ get: () => props.modelValue,
33
+ set: (v) => {
34
+ emit('update:modelValue', v);
35
+ },
36
+ });
37
+
38
+ return (_ctx, _cache) => {
39
+ return (openBlock(), createBlock(unref(BwaDateRange), {
40
+ modelValue: unref(value),
41
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (isRef(value) ? (value).value = $event : null)),
42
+ multiple: true,
43
+ "value-format": __props.valueFormat
44
+ }, {
45
+ default: withCtx(() => [
46
+ renderSlot(_ctx.$slots, "default")
47
+ ]),
48
+ _: 3 /* FORWARDED */
49
+ }, 8 /* PROPS */, ["modelValue", "value-format"]))
50
+ }
51
+ }
52
+
53
+ };
54
+ var DateRangeCondition = /*#__PURE__*/_export_sfc(_sfc_main, [['__file',"date-range-condition.vue"]]);
45
55
 
46
56
  export { DateRangeCondition as default };