@dfsj/components 3.7.1 → 3.7.2-alpha.2

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 (130) hide show
  1. package/dist/components/Boards/src/Boards.vue.d.ts +11 -0
  2. package/dist/components/Boards/src/Boards.vue2.js +27 -31
  3. package/dist/components/Boards/src/hooKs/useStyle.js +5 -5
  4. package/dist/components/Boards/src/props.d.ts +5 -0
  5. package/dist/components/Boards/src/props.js +2 -1
  6. package/dist/components/ClickOutSide/src/ClickOutSide.vue2.js +1 -1
  7. package/dist/components/{src/components/Descriptions → Descriptions}/src/Descriptions.vue.d.ts +12 -12
  8. package/dist/components/Descriptions/src/Descriptions.vue2.js +4 -4
  9. package/dist/components/Editor/src/Editor.vue.d.ts +4 -4
  10. package/dist/components/Editor/src/Editor.vue2.js +5 -5
  11. package/dist/components/Form/src/Form.vue.d.ts +481 -447
  12. package/dist/components/Form/src/Form.vue2.js +30 -24
  13. package/dist/components/Form/src/components/useRenderCheckbox.js +8 -8
  14. package/dist/components/Form/src/components/useRenderRadio.js +8 -8
  15. package/dist/components/Form/src/components/useRenderSelect.js +11 -11
  16. package/dist/components/Form/src/helper/componentMap.js +0 -2
  17. package/dist/components/Form/src/helper/index.js +7 -7
  18. package/dist/components/Form/src/types/index.d.ts +2 -2
  19. package/dist/components/Form/src/useForm.js +63 -63
  20. package/dist/components/Highlight/src/Highlight.vue.d.ts +4 -4
  21. package/dist/components/Highlight/src/Highlight.vue2.js +3 -3
  22. package/dist/components/Icon/src/Icon.vue.d.ts +8 -8
  23. package/dist/components/Icon/src/Icon.vue2.js +11 -11
  24. package/dist/components/{src/components/InputPassword → InputPassword}/src/InputPassword.vue.d.ts +4 -4
  25. package/dist/components/Modal/src/BasicModal.vue.d.ts +68 -15
  26. package/dist/components/Modal/src/BasicModal.vue2.js +20 -17
  27. package/dist/components/{src/components/Modal → Modal}/src/components/ModalFooter.vue.d.ts +4 -4
  28. package/dist/components/Modal/src/components/ModalFooter.vue2.js +17 -7
  29. package/dist/components/{src/components/Modal → Modal}/src/components/ModalHeader.vue.d.ts +63 -10
  30. package/dist/components/Modal/src/components/ModalHeader.vue2.js +3 -3
  31. package/dist/components/Modal/src/config.js +2 -2
  32. package/dist/components/Modal/src/hooks/useModalDrag.js +9 -2
  33. package/dist/components/Modal/src/hooks/useTimeout.js +1 -1
  34. package/dist/components/{src/components/Modal → Modal}/src/props.d.ts +31 -7
  35. package/dist/components/Modal/src/props.js +9 -1
  36. package/dist/components/Modal/src/utils/index.js +1 -1
  37. package/dist/components/NodeAxis/src/CanvasNodeRender.js +35 -35
  38. package/dist/components/NodeAxis/src/NodeAxis.vue2.js +1 -1
  39. package/dist/components/NodeAxis/src/NodeModel.js +10 -10
  40. package/dist/components/NodeAxis/src/NodeRender.js +3 -3
  41. package/dist/components/NodeAxis/src/TimerNodePlayer.js +4 -4
  42. package/dist/components/Stateful/src/Stateful.vue.d.ts +2 -2
  43. package/dist/components/Stateful/src/Stateful.vue2.js +6 -6
  44. package/dist/components/Stateful/src/props.d.ts +1 -1
  45. package/dist/components/Table/src/Table.vue.d.ts +732 -645
  46. package/dist/components/Table/src/Table.vue2.js +10 -10
  47. package/dist/components/Table/src/components/ColumnSetting.vue2.js +20 -20
  48. package/dist/components/Table/src/components/TableActions.vue.d.ts +229 -0
  49. package/dist/components/Table/src/components/TableActions.vue2.js +1 -1
  50. package/dist/components/Table/src/useTable.js +50 -50
  51. package/dist/components/UnifyChart/src/ChartToolbox.vue.d.ts +8 -8
  52. package/dist/components/UnifyChart/src/ChartToolbox.vue2.js +2 -2
  53. package/dist/components/UnifyChart/src/UnifyChart.vue.d.ts +16 -16
  54. package/dist/components/UnifyChart/src/UnifyChart.vue2.js +2 -2
  55. package/dist/components/UnifyChart/src/hooks/useLoader.js +19 -19
  56. package/dist/components/UnifyChart/src/hooks/useRender.js +3 -3
  57. package/dist/components/UnifyChart/src/props.d.ts +13 -13
  58. package/dist/components/UnifyChart/src/useDownLoad.d.ts +9 -0
  59. package/dist/components/UnifyChart/src/useDownLoad.js +27 -0
  60. package/dist/components/Video/src/VideoPlayer.vue.d.ts +14 -14
  61. package/dist/components/Video/src/VideoPlayer.vue2.js +5 -5
  62. package/dist/components/{src/components/Video → Video}/src/VideoPlayerToolbar.vue.d.ts +12 -12
  63. package/dist/components/Video/src/VideoPlayerToolbar.vue2.js +4 -4
  64. package/dist/components/Video/src/abstract/VideoControl.js +13 -13
  65. package/dist/components/Video/src/control/DaHua.js +8 -8
  66. package/dist/components/Video/src/control/Hikvision.js +12 -12
  67. package/dist/components/Visual/src/BufferLayerPlayer.js +65 -68
  68. package/dist/components/Visual/src/ResolvableLayerProvider.js +5 -5
  69. package/dist/components/Visual/src/resolvers/IntervalResolver.js +9 -9
  70. package/dist/components/Visual/src/resolvers/tools.resolver.js +8 -1
  71. package/dist/components/Visual/src/utils/NodeMath.js +1 -1
  72. package/dist/components/Windows/src/ModalWrap.vue2.js +52 -8
  73. package/dist/components/Windows/src/Windows.vue2.js +3 -3
  74. package/dist/components/Windows/src/props.d.ts +8 -3
  75. package/dist/directives/clickOutside.js +3 -3
  76. package/dist/directives/repeatClick.js +1 -1
  77. package/dist/directives/resizable.js +4 -4
  78. package/dist/index.d.ts +0 -1
  79. package/dist/index.js +0 -1
  80. package/dist/index.min.css +3 -3
  81. package/dist/node_modules/.pnpm/{@vueuse_core@10.11.1_vue@3.5.13_typescript@5.7.3_ → @vueuse_core@13.7.0_vue@3.5.19_typescript@5.9.2_}/node_modules/@vueuse/core/index.js +151 -93
  82. package/dist/node_modules/.pnpm/@vueuse_shared@13.7.0_vue@3.5.19_typescript@5.9.2_/node_modules/@vueuse/shared/index.js +53 -0
  83. package/package.json +66 -66
  84. package/dist/components/DatePicker/index.d.ts +0 -2
  85. package/dist/components/DatePicker/src/composables/use-month-range-header.js +0 -52
  86. package/dist/components/DatePicker/src/composables/use-range-picker.js +0 -99
  87. package/dist/components/DatePicker/src/date-picker-com/panel-date-range.vue.js +0 -5
  88. package/dist/components/DatePicker/src/date-picker-com/panel-date-range.vue2.js +0 -564
  89. package/dist/components/DatePicker/src/date-picker-com/panel-month-range.vue.js +0 -5
  90. package/dist/components/DatePicker/src/date-picker-com/panel-month-range.vue2.js +0 -210
  91. package/dist/components/DatePicker/src/index.d.ts +0 -218
  92. package/dist/components/DatePicker/src/index.js +0 -87
  93. package/dist/components/DatePicker/src/panel-utils.d.ts +0 -2
  94. package/dist/components/DatePicker/src/panel-utils.js +0 -25
  95. package/dist/components/src/components/ClickOutSide/src/ClickOutSide.vue.d.ts +0 -7
  96. package/dist/components/src/components/DatePicker/src/composables/use-month-range-header.d.ts +0 -16
  97. package/dist/components/src/components/DatePicker/src/composables/use-range-picker.d.ts +0 -173
  98. package/dist/components/src/components/DatePicker/src/date-picker-com/panel-date-range.vue.d.ts +0 -19
  99. package/dist/components/src/components/DatePicker/src/date-picker-com/panel-month-range.vue.d.ts +0 -16
  100. package/dist/components/src/components/Highlight/src/Highlight.vue.d.ts +0 -41
  101. package/dist/components/src/components/NodeAxis/src/BCanvasNodeRender.d.ts +0 -19
  102. package/dist/components/src/components/NodeAxis/src/NodeAxis.d.ts +0 -12
  103. package/dist/components/src/components/Table/src/components/TableActions.vue.d.ts +0 -96
  104. package/dist/components/src/themes/index.d.ts +0 -1
  105. package/dist/node_modules/.pnpm/@vueuse_shared@10.11.1_vue@3.5.13_typescript@5.7.3_/node_modules/@vueuse/shared/index.js +0 -40
  106. /package/dist/components/{src/components/Boards → Boards}/src/hooKs/useStyle.d.ts +0 -0
  107. /package/dist/components/{src/components/Form → Form}/src/components/useRenderCheckbox.d.ts +0 -0
  108. /package/dist/components/{src/components/Form → Form}/src/components/useRenderRadio.d.ts +0 -0
  109. /package/dist/components/{src/components/Form → Form}/src/components/useRenderSelect.d.ts +0 -0
  110. /package/dist/components/{src/components/Form → Form}/src/helper/componentMap.d.ts +0 -0
  111. /package/dist/components/{src/components/Form → Form}/src/helper/index.d.ts +0 -0
  112. /package/dist/components/{src/components/Modal → Modal}/src/config.d.ts +0 -0
  113. /package/dist/components/{src/components/Modal → Modal}/src/hooks/useModalDrag.d.ts +0 -0
  114. /package/dist/components/{src/components/Modal → Modal}/src/hooks/useTimeout.d.ts +0 -0
  115. /package/dist/components/{src/components/Modal → Modal}/src/utils/index.d.ts +0 -0
  116. /package/dist/components/{src/components/NodeAxis → NodeAxis}/src/NodeAxis.vue.d.ts +0 -0
  117. /package/dist/components/{src/components/NodeAxis → NodeAxis}/src/TimerNodePlayer.d.ts +0 -0
  118. /package/dist/components/{src/components/NodeAxis → NodeAxis}/src/interface/NodePlayer.d.ts +0 -0
  119. /package/dist/components/{src/components/Table → Table}/src/components/ColumnSetting.vue.d.ts +0 -0
  120. /package/dist/components/{src/components/Table → Table}/src/helper/index.d.ts +0 -0
  121. /package/dist/components/{src/components/Video → Video}/src/abstract/AbstractVideoControl.d.ts +0 -0
  122. /package/dist/components/{src/components/Video → Video}/src/abstract/Observable.d.ts +0 -0
  123. /package/dist/components/{src/components/Video → Video}/src/abstract/VideoControl.d.ts +0 -0
  124. /package/dist/components/{src/components/Video → Video}/src/control/DaHua.d.ts +0 -0
  125. /package/dist/components/{src/components/Video → Video}/src/control/Hikvision.d.ts +0 -0
  126. /package/dist/components/{src/components/Video → Video}/src/control/VideoFactory.d.ts +0 -0
  127. /package/dist/components/{src/components/Video → Video}/src/enums/CommonEnum.d.ts +0 -0
  128. /package/dist/components/{src/components/Windows → Windows}/src/ModalWrap.vue.d.ts +0 -0
  129. /package/dist/{components/src/helper → helper}/lang.d.ts +0 -0
  130. /package/dist/{components/src/utils → utils}/index.d.ts +0 -0
@@ -1,4 +1,4 @@
1
- import { defineComponent, Transition, ref, toRefs, watch, computed, unref, createVNode, resolveComponent, withDirectives, resolveDirective } from 'vue';
1
+ import { defineComponent, Transition, ref, toRefs, watch, computed, unref, createVNode, resolveComponent } from 'vue';
2
2
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
3
3
  import { toMainStyle, toBodyStyle } from './utils/index.js';
4
4
  import { baseProps, headerProps, footerProps } from './props.js';
@@ -13,7 +13,7 @@ import script$2 from './components/ModalHeader.vue2.js';
13
13
  import script$3 from '../../Icon/src/Icon.vue2.js';
14
14
 
15
15
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
16
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
16
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
17
17
  var script = defineComponent({
18
18
  components: {
19
19
  ModalFooter: script$1,
@@ -58,14 +58,15 @@ var script = defineComponent({
58
58
  }, {
59
59
  immediate: true
60
60
  });
61
- function onSwitch() {
61
+ function onSwitch(e) {
62
+ e.stopImmediatePropagation();
62
63
  moving.value = false;
63
64
  emit('update:maximum', maximum.value = !maximum.value);
64
- emit('resize');
65
+ emit('resize', maximum.value);
65
66
  }
66
- function onClose() {
67
+ function onClose(e) {
67
68
  innerVisible.value = false;
68
- emit('close');
69
+ emit('close', e);
69
70
  }
70
71
  var mainClass = computed(function () {
71
72
  var cls = [unref(maximum) ? 'maximum' : '', props.modally ? 'modally' : '', props.modalClass];
@@ -90,30 +91,32 @@ var script = defineComponent({
90
91
  });
91
92
  var getTitleBefore = function getTitleBefore() {
92
93
  var _slot = getSlot(slots, 'titleBefore', _objectSpread({}, props));
93
- var _slotFn = props === null || props === undefined ? undefined : props.titleBefore;
94
- return _slot !== null && _slot !== undefined ? _slot : _slotFn === null || _slotFn === undefined ? undefined : _slotFn();
94
+ var _slotFn = props === null || props === void 0 ? void 0 : props.titleBefore;
95
+ return _slot !== null && _slot !== void 0 ? _slot : _slotFn === null || _slotFn === void 0 ? void 0 : _slotFn();
95
96
  };
96
97
  var getTitleAfter = function getTitleAfter() {
97
98
  var _slot = getSlot(slots, 'titleAfter', _objectSpread({}, props));
98
- var _slotFn = props === null || props === undefined ? undefined : props.titleAfter;
99
- return _slot !== null && _slot !== undefined ? _slot : _slotFn === null || _slotFn === undefined ? undefined : _slotFn();
99
+ var _slotFn = props === null || props === void 0 ? void 0 : props.titleAfter;
100
+ return _slot !== null && _slot !== void 0 ? _slot : _slotFn === null || _slotFn === void 0 ? void 0 : _slotFn();
100
101
  };
101
102
  var getTitle = function getTitle() {
102
103
  var _slot = getSlot(slots, 'title', _objectSpread({}, props));
103
- var _slotFn = props === null || props === undefined ? undefined : props.title;
104
- return (_slot !== null && _slot !== undefined ? _slot : isFunction(_slotFn)) ? _slotFn === null || _slotFn === undefined ? undefined : _slotFn() : _slotFn;
104
+ var _slotFn = props === null || props === void 0 ? void 0 : props.title;
105
+ return (_slot !== null && _slot !== void 0 ? _slot : isFunction(_slotFn)) ? _slotFn === null || _slotFn === void 0 ? void 0 : _slotFn() : _slotFn;
105
106
  };
106
107
  var hasMover = computed(function () {
107
- return !!(slots !== null && slots !== undefined && slots['mover']);
108
+ return !!(slots !== null && slots !== void 0 && slots['mover']);
108
109
  });
109
110
  return function () {
110
111
  var _props$animation, _props$animation2, _slots$mover, _slots$default;
111
112
  return innerVisible.value ? createVNode("div", {
112
- "class": "component modal dialog component-modal-page-wrap ".concat(mainClass.value),
113
+ "class": ["component modal dialog component-modal-page-wrap ".concat(mainClass.value), {
114
+ minimized: props.minimize
115
+ }],
113
116
  "style": mainStyle.value
114
117
  }, [createVNode(resolveComponent("transition"), {
115
- "enter-active-class": ((_props$animation = props.animation) === null || _props$animation === undefined ? undefined : _props$animation.enter) || 'window--enter-active',
116
- "leave-active-class": ((_props$animation2 = props.animation) === null || _props$animation2 === undefined ? undefined : _props$animation2.leave) || 'window--leave-active',
118
+ "enter-active-class": ((_props$animation = props.animation) === null || _props$animation === void 0 ? void 0 : _props$animation.enter) || 'window--enter-active',
119
+ "leave-active-class": ((_props$animation2 = props.animation) === null || _props$animation2 === void 0 ? void 0 : _props$animation2.leave) || 'window--leave-active',
117
120
  "appear": true
118
121
  }, {
119
122
  "default": function _default() {
@@ -142,7 +145,7 @@ var script = defineComponent({
142
145
  "class": "modal--content component-modal-content"
143
146
  }, [hasMover.value && createVNode("div", {
144
147
  "class": "mover ".concat(moverClass)
145
- }, [(_slots$mover = slots.mover) === null || _slots$mover === undefined ? undefined : _slots$mover.call(slots)]), (_slots$default = slots["default"]) === null || _slots$default === undefined ? undefined : _slots$default.call(slots)]), withDirectives(createVNode(script$1, null, null), [[resolveDirective("bind"), getBindValue]])])];
148
+ }, [(_slots$mover = slots.mover) === null || _slots$mover === void 0 ? void 0 : _slots$mover.call(slots)]), (_slots$default = slots["default"]) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots)]), createVNode(script$1, unref(getBindValue), null)])];
146
149
  }
147
150
  })]) : null;
148
151
  };
@@ -25,12 +25,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
25
25
  color: string;
26
26
  };
27
27
  };
28
- onCancel: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/types").ValidatorFunction<(...args: any[]) => any>> & {
28
+ onCancel: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
29
29
  default: (...args: any[]) => any;
30
30
  } & {
31
31
  default: (...args: any[]) => any;
32
32
  };
33
- onSubmit: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/types").ValidatorFunction<(...args: any[]) => any>> & {
33
+ onSubmit: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
34
34
  default: (...args: any[]) => any;
35
35
  } & {
36
36
  default: (...args: any[]) => any;
@@ -64,12 +64,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
64
64
  color: string;
65
65
  };
66
66
  };
67
- onCancel: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/types").ValidatorFunction<(...args: any[]) => any>> & {
67
+ onCancel: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
68
68
  default: (...args: any[]) => any;
69
69
  } & {
70
70
  default: (...args: any[]) => any;
71
71
  };
72
- onSubmit: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/types").ValidatorFunction<(...args: any[]) => any>> & {
72
+ onSubmit: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
73
73
  default: (...args: any[]) => any;
74
74
  } & {
75
75
  default: (...args: any[]) => any;
@@ -1,6 +1,5 @@
1
- import { normalizeClass, defineComponent, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createTextVNode, toDisplayString, unref, createCommentVNode } from 'vue';
1
+ import { normalizeClass, defineComponent, toRefs, resolveComponent, openBlock, createElementBlock, createVNode, unref, withCtx, createTextVNode, toDisplayString, createCommentVNode } from 'vue';
2
2
  import { footerProps } from '../props.js';
3
- import { cancel, submit } from '../config.js';
4
3
 
5
4
  var _hoisted_1 = {
6
5
  key: 0,
@@ -10,19 +9,30 @@ var script = defineComponent({
10
9
  __name: 'ModalFooter',
11
10
  props: footerProps,
12
11
  setup: function setup(__props) {
12
+ var props = __props;
13
+ var _toRefs = toRefs(props),
14
+ submitOpt = _toRefs.submitOpt,
15
+ cancelOpt = _toRefs.cancelOpt;
13
16
  return function (_ctx, _cache) {
17
+ var _unref2, _unref3;
14
18
  var _component_el_button = resolveComponent("el-button");
15
- return !!_ctx.footer ? (openBlock(), createElementBlock("div", _hoisted_1, [createVNode(_component_el_button, null, {
19
+ return !!_ctx.footer ? (openBlock(), createElementBlock("div", _hoisted_1, [createVNode(_component_el_button, {
20
+ onClick: _ctx.onCancel,
21
+ type: (_unref2 = unref(cancelOpt)) === null || _unref2 === void 0 ? void 0 : _unref2.color
22
+ }, {
16
23
  "default": withCtx(function () {
17
- return [createTextVNode(toDisplayString(unref(cancel).label), 1)];
24
+ return [createTextVNode(toDisplayString(unref(cancelOpt).label), 1)];
18
25
  }),
19
26
  _: 1
20
- }), createVNode(_component_el_button, null, {
27
+ }, 8, ["onClick", "type"]), createVNode(_component_el_button, {
28
+ onClick: _ctx.onSubmit,
29
+ type: (_unref3 = unref(submitOpt)) === null || _unref3 === void 0 ? void 0 : _unref3.color
30
+ }, {
21
31
  "default": withCtx(function () {
22
- return [createTextVNode(toDisplayString(unref(submit).label), 1)];
32
+ return [createTextVNode(toDisplayString(unref(submitOpt).label), 1)];
23
33
  }),
24
34
  _: 1
25
- })])) : createCommentVNode("v-if", true);
35
+ }, 8, ["onClick", "type"])])) : createCommentVNode("v-if", true);
26
36
  };
27
37
  }
28
38
  });
@@ -29,10 +29,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
29
29
  titleAlign: import("vue-types").VueTypeDef<string> & {
30
30
  default: string;
31
31
  };
32
- titleBefore: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/types").ValidatorFunction<(...args: any[]) => any>> & {
32
+ titleBefore: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
33
33
  default: (...args: any[]) => any;
34
34
  };
35
- titleAfter: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/types").ValidatorFunction<(...args: any[]) => any>> & {
35
+ titleAfter: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
36
36
  default: (...args: any[]) => any;
37
37
  };
38
38
  switcherIcon: {
@@ -55,6 +55,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
55
55
  color: string;
56
56
  };
57
57
  };
58
+ minimize: {
59
+ type: BooleanConstructor;
60
+ default: boolean;
61
+ };
58
62
  minimizer: {
59
63
  type: BooleanConstructor;
60
64
  default: boolean;
@@ -66,17 +70,37 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
66
70
  color: string;
67
71
  };
68
72
  };
69
- onMinimize: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/types").ValidatorFunction<(...args: any[]) => any>> & {
73
+ onMinimize: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
74
+ default: (...args: any[]) => any;
75
+ } & {
76
+ default: (...args: any[]) => any;
77
+ };
78
+ onSwitch: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
79
+ default: (...args: any[]) => any;
80
+ } & {
81
+ default: (...args: any[]) => any;
82
+ };
83
+ onClose: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
84
+ default: (...args: any[]) => any;
85
+ } & {
86
+ default: (...args: any[]) => any;
87
+ };
88
+ onResize: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
89
+ default: (...args: any[]) => any;
90
+ } & {
91
+ default: (...args: any[]) => any;
92
+ };
93
+ onModalMousemove: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
70
94
  default: (...args: any[]) => any;
71
95
  } & {
72
96
  default: (...args: any[]) => any;
73
97
  };
74
- onSwitch: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/types").ValidatorFunction<(...args: any[]) => any>> & {
98
+ onModalMousedown: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
75
99
  default: (...args: any[]) => any;
76
100
  } & {
77
101
  default: (...args: any[]) => any;
78
102
  };
79
- onClose: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/types").ValidatorFunction<(...args: any[]) => any>> & {
103
+ onModalMouseup: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
80
104
  default: (...args: any[]) => any;
81
105
  } & {
82
106
  default: (...args: any[]) => any;
@@ -114,10 +138,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
114
138
  titleAlign: import("vue-types").VueTypeDef<string> & {
115
139
  default: string;
116
140
  };
117
- titleBefore: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/types").ValidatorFunction<(...args: any[]) => any>> & {
141
+ titleBefore: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
118
142
  default: (...args: any[]) => any;
119
143
  };
120
- titleAfter: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/types").ValidatorFunction<(...args: any[]) => any>> & {
144
+ titleAfter: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
121
145
  default: (...args: any[]) => any;
122
146
  };
123
147
  switcherIcon: {
@@ -140,6 +164,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
140
164
  color: string;
141
165
  };
142
166
  };
167
+ minimize: {
168
+ type: BooleanConstructor;
169
+ default: boolean;
170
+ };
143
171
  minimizer: {
144
172
  type: BooleanConstructor;
145
173
  default: boolean;
@@ -151,17 +179,37 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
151
179
  color: string;
152
180
  };
153
181
  };
154
- onMinimize: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/types").ValidatorFunction<(...args: any[]) => any>> & {
182
+ onMinimize: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
183
+ default: (...args: any[]) => any;
184
+ } & {
185
+ default: (...args: any[]) => any;
186
+ };
187
+ onSwitch: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
188
+ default: (...args: any[]) => any;
189
+ } & {
190
+ default: (...args: any[]) => any;
191
+ };
192
+ onClose: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
193
+ default: (...args: any[]) => any;
194
+ } & {
195
+ default: (...args: any[]) => any;
196
+ };
197
+ onResize: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
198
+ default: (...args: any[]) => any;
199
+ } & {
200
+ default: (...args: any[]) => any;
201
+ };
202
+ onModalMousemove: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
155
203
  default: (...args: any[]) => any;
156
204
  } & {
157
205
  default: (...args: any[]) => any;
158
206
  };
159
- onSwitch: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/types").ValidatorFunction<(...args: any[]) => any>> & {
207
+ onModalMousedown: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
160
208
  default: (...args: any[]) => any;
161
209
  } & {
162
210
  default: (...args: any[]) => any;
163
211
  };
164
- onClose: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/types").ValidatorFunction<(...args: any[]) => any>> & {
212
+ onModalMouseup: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
165
213
  default: (...args: any[]) => any;
166
214
  } & {
167
215
  default: (...args: any[]) => any;
@@ -179,10 +227,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
179
227
  titleAfter: (...args: any[]) => any;
180
228
  switcherIcon: Record<string, any>;
181
229
  closerIcon: Record<string, any>;
230
+ minimize: boolean;
182
231
  minimizer: boolean;
183
232
  minimizerIcon: Record<string, any>;
184
233
  onMinimize: (...args: any[]) => any;
185
234
  onSwitch: (...args: any[]) => any;
186
235
  onClose: (...args: any[]) => any;
236
+ onResize: (...args: any[]) => any;
237
+ onModalMousemove: (...args: any[]) => any;
238
+ onModalMousedown: (...args: any[]) => any;
239
+ onModalMouseup: (...args: any[]) => any;
187
240
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
188
241
  export default _default;
@@ -18,7 +18,7 @@ var _hoisted_3 = {
18
18
  };
19
19
  var _hoisted_4 = {
20
20
  key: 3,
21
- "class": "header-before"
21
+ "class": "header-after"
22
22
  };
23
23
  var _hoisted_5 = {
24
24
  "class": "modal-header-right-control-wrap"
@@ -36,7 +36,7 @@ var script = defineComponent({
36
36
  });
37
37
  var sIcon = computed(function () {
38
38
  var _props$switcherIcon;
39
- return (_props$switcherIcon = props.switcherIcon) === null || _props$switcherIcon === undefined ? undefined : _props$switcherIcon[props.maximum].image;
39
+ return (_props$switcherIcon = props.switcherIcon) === null || _props$switcherIcon === void 0 ? void 0 : _props$switcherIcon[props.maximum].image;
40
40
  });
41
41
  return function (_ctx, _cache) {
42
42
  var _ctx$minimizerIcon;
@@ -58,7 +58,7 @@ var script = defineComponent({
58
58
  size: 28,
59
59
  color: "white",
60
60
  onClick: withModifiers(_ctx.onMinimize, ["stop"]),
61
- icon: (_ctx$minimizerIcon = _ctx.minimizerIcon) === null || _ctx$minimizerIcon === undefined ? undefined : _ctx$minimizerIcon.image
61
+ icon: (_ctx$minimizerIcon = _ctx.minimizerIcon) === null || _ctx$minimizerIcon === void 0 ? void 0 : _ctx$minimizerIcon.image
62
62
  }, null, 8, ["onClick", "icon"])) : createCommentVNode("v-if", true), !!_ctx.switcherIcon && props.maximizer ? (openBlock(), createBlock(script$1, {
63
63
  key: 1,
64
64
  "class": "cursor-pointer",
@@ -15,11 +15,11 @@ var closer = {
15
15
  };
16
16
  var cancel = {
17
17
  label: '取消',
18
- color: 'warning'
18
+ color: 'info'
19
19
  };
20
20
  var submit = {
21
21
  label: '提交',
22
- color: 'warning'
22
+ color: 'primary'
23
23
  };
24
24
  var minimizer = {
25
25
  image: 'mdi:minimize',
@@ -29,7 +29,9 @@ function useModalDragMove(context) {
29
29
  if (!dialogHeaderEl || !dragDom || !unref(context.draggable)) return;
30
30
  dialogHeaderEl.style.cursor = 'move';
31
31
  dialogHeaderEl.onmousedown = function (e) {
32
+ var _e$target, _context$props, _context$props$onModa;
32
33
  if (!e) return;
34
+ console.log(e);
33
35
  var element = context.props.modally ? that.refs.body : proxy.$el;
34
36
  var bounder = element.getBoundingClientRect();
35
37
  sign.l = bounder.left;
@@ -37,9 +39,11 @@ function useModalDragMove(context) {
37
39
  sign.x = e.x;
38
40
  sign.y = e.y;
39
41
  moving.value = true;
42
+ if (!e || ['svg', 'path'].includes(e === null || e === void 0 || (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.nodeName)) (_context$props = context.props) === null || _context$props === void 0 || (_context$props$onModa = _context$props.onModalMousedown) === null || _context$props$onModa === void 0 || _context$props$onModa.call(_context$props);
40
43
  document.onmousemove = function (event) {
41
44
  var moved = sign.x !== event.x || sign.y !== event.y;
42
45
  if (moved && moving.value && !context.maximum.value) {
46
+ var _context$props2, _context$props2$onMod;
43
47
  event.preventDefault();
44
48
  delete locator.right;
45
49
  delete locator.bottom;
@@ -63,12 +67,15 @@ function useModalDragMove(context) {
63
67
  locator.right = "unset !important";
64
68
  locator.bottom = "unset !important";
65
69
  that.emit('update:offset', locator);
70
+ (_context$props2 = context.props) === null || _context$props2 === void 0 || (_context$props2$onMod = _context$props2.onModalMousemove) === null || _context$props2$onMod === void 0 || _context$props2$onMod.call(_context$props2, event);
66
71
  }
67
72
  };
68
- document.onmouseup = function () {
73
+ document.onmouseup = function (e) {
74
+ var _e$target2, _context$props3, _context$props3$onMod;
69
75
  moving.value = false;
70
76
  document.onmousemove = null;
71
77
  document.onmouseup = null;
78
+ if (!e || ['svg', 'path'].includes(e === null || e === void 0 || (_e$target2 = e.target) === null || _e$target2 === void 0 ? void 0 : _e$target2.nodeName)) (_context$props3 = context.props) === null || _context$props3 === void 0 || (_context$props3$onMod = _context$props3.onModalMouseup) === null || _context$props3$onMod === void 0 || _context$props3$onMod.call(_context$props3);
72
79
  };
73
80
  };
74
81
  };
@@ -78,7 +85,7 @@ function useModalDragMove(context) {
78
85
  var dragWrap = proxy.$el;
79
86
  if (!dragWrap) return;
80
87
  var display = getStyle(dragWrap, 'display');
81
- var draggable = (_dragWrap$getAttribut = dragWrap.getAttribute('data-drag')) !== null && _dragWrap$getAttribut !== undefined ? _dragWrap$getAttribut : true;
88
+ var draggable = (_dragWrap$getAttribut = dragWrap.getAttribute('data-drag')) !== null && _dragWrap$getAttribut !== void 0 ? _dragWrap$getAttribut : true;
82
89
  if (display !== 'none') {
83
90
  if (draggable === null || unref(context.destroyOnClose)) {
84
91
  drag(dragWrap);
@@ -1,5 +1,5 @@
1
1
  import { watch, ref } from 'vue';
2
- import { tryOnUnmounted } from '../../../../node_modules/.pnpm/@vueuse_shared@10.11.1_vue@3.5.13_typescript@5.7.3_/node_modules/@vueuse/shared/index.js';
2
+ import { tryOnUnmounted } from '../../../../node_modules/.pnpm/@vueuse_shared@13.7.0_vue@3.5.19_typescript@5.9.2_/node_modules/@vueuse/shared/index.js';
3
3
 
4
4
  function isFunction(val) {
5
5
  return typeof val === 'function';
@@ -74,10 +74,10 @@ export declare const headerProps: {
74
74
  titleAlign: import("vue-types").VueTypeDef<string> & {
75
75
  default: string;
76
76
  };
77
- titleBefore: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/types").ValidatorFunction<(...args: any[]) => any>> & {
77
+ titleBefore: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
78
78
  default: (...args: any[]) => any;
79
79
  };
80
- titleAfter: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/types").ValidatorFunction<(...args: any[]) => any>> & {
80
+ titleAfter: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
81
81
  default: (...args: any[]) => any;
82
82
  };
83
83
  switcherIcon: {
@@ -100,6 +100,10 @@ export declare const headerProps: {
100
100
  color: string;
101
101
  };
102
102
  };
103
+ minimize: {
104
+ type: BooleanConstructor;
105
+ default: boolean;
106
+ };
103
107
  minimizer: {
104
108
  type: BooleanConstructor;
105
109
  default: boolean;
@@ -111,17 +115,37 @@ export declare const headerProps: {
111
115
  color: string;
112
116
  };
113
117
  };
114
- onMinimize: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/types").ValidatorFunction<(...args: any[]) => any>> & {
118
+ onMinimize: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
119
+ default: (...args: any[]) => any;
120
+ } & {
121
+ default: (...args: any[]) => any;
122
+ };
123
+ onSwitch: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
124
+ default: (...args: any[]) => any;
125
+ } & {
126
+ default: (...args: any[]) => any;
127
+ };
128
+ onClose: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
129
+ default: (...args: any[]) => any;
130
+ } & {
131
+ default: (...args: any[]) => any;
132
+ };
133
+ onResize: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
134
+ default: (...args: any[]) => any;
135
+ } & {
136
+ default: (...args: any[]) => any;
137
+ };
138
+ onModalMousemove: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
115
139
  default: (...args: any[]) => any;
116
140
  } & {
117
141
  default: (...args: any[]) => any;
118
142
  };
119
- onSwitch: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/types").ValidatorFunction<(...args: any[]) => any>> & {
143
+ onModalMousedown: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
120
144
  default: (...args: any[]) => any;
121
145
  } & {
122
146
  default: (...args: any[]) => any;
123
147
  };
124
- onClose: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/types").ValidatorFunction<(...args: any[]) => any>> & {
148
+ onModalMouseup: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
125
149
  default: (...args: any[]) => any;
126
150
  } & {
127
151
  default: (...args: any[]) => any;
@@ -154,12 +178,12 @@ export declare const footerProps: {
154
178
  color: string;
155
179
  };
156
180
  };
157
- onCancel: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/types").ValidatorFunction<(...args: any[]) => any>> & {
181
+ onCancel: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
158
182
  default: (...args: any[]) => any;
159
183
  } & {
160
184
  default: (...args: any[]) => any;
161
185
  };
162
- onSubmit: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/types").ValidatorFunction<(...args: any[]) => any>> & {
186
+ onSubmit: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
163
187
  default: (...args: any[]) => any;
164
188
  } & {
165
189
  default: (...args: any[]) => any;
@@ -77,6 +77,10 @@ var headerProps = {
77
77
  return closer;
78
78
  }
79
79
  },
80
+ minimize: {
81
+ type: Boolean,
82
+ "default": false
83
+ },
80
84
  minimizer: {
81
85
  type: Boolean,
82
86
  "default": false
@@ -89,7 +93,11 @@ var headerProps = {
89
93
  },
90
94
  onMinimize: propTypes.func.def(function () {}),
91
95
  onSwitch: propTypes.func.def(function () {}),
92
- onClose: propTypes.func.def(function () {})
96
+ onClose: propTypes.func.def(function () {}),
97
+ onResize: propTypes.func.def(function () {}),
98
+ onModalMousemove: propTypes.func.def(function () {}),
99
+ onModalMousedown: propTypes.func.def(function () {}),
100
+ onModalMouseup: propTypes.func.def(function () {})
93
101
  };
94
102
  var footerProps = {
95
103
  footer: {
@@ -2,7 +2,7 @@ import _defineProperty from '@babel/runtime/helpers/defineProperty';
2
2
  import { unref } from 'vue';
3
3
 
4
4
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6
6
  function ensure(value) {
7
7
  return value == null ? null : isNaN(value) ? value : "".concat(value, "px");
8
8
  }