vue-devui 1.5.11-hotfix.1 → 1.5.12

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 (43) hide show
  1. package/checkbox/index.es.js +71 -45
  2. package/checkbox/index.umd.js +9 -9
  3. package/date-picker-pro/index.es.js +64 -40
  4. package/date-picker-pro/index.umd.js +11 -11
  5. package/date-picker-pro/style.css +1 -1
  6. package/editor-md/index.es.js +2 -2
  7. package/editor-md/index.umd.js +7 -7
  8. package/editor-md/style.css +1 -1
  9. package/package.json +1 -1
  10. package/pagination/index.es.js +94 -68
  11. package/pagination/index.umd.js +13 -13
  12. package/radio/index.es.js +65 -30
  13. package/radio/index.umd.js +15 -15
  14. package/radio/style.css +1 -1
  15. package/select/index.es.js +71 -45
  16. package/select/index.umd.js +14 -14
  17. package/slider/index.es.js +2 -2
  18. package/slider/index.umd.js +1 -1
  19. package/style.css +1 -1
  20. package/switch/index.es.js +50 -26
  21. package/switch/index.umd.js +16 -16
  22. package/table/index.es.js +82 -57
  23. package/table/index.umd.js +18 -18
  24. package/time-picker/index.es.js +78 -53
  25. package/time-picker/index.umd.js +13 -13
  26. package/time-picker/style.css +1 -1
  27. package/time-select/index.es.js +71 -45
  28. package/time-select/index.umd.js +11 -11
  29. package/tree/index.es.js +45 -20
  30. package/tree/index.umd.js +9 -9
  31. package/types/checkbox/src/checkbox-button.d.ts +3 -0
  32. package/types/checkbox/src/checkbox-group.d.ts +3 -0
  33. package/types/checkbox/src/checkbox-types.d.ts +4 -2
  34. package/types/checkbox/src/checkbox.d.ts +3 -0
  35. package/types/radio/src/radio-button.d.ts +9 -0
  36. package/types/radio/src/radio-types.d.ts +5 -1
  37. package/types/radio/src/radio.d.ts +9 -0
  38. package/types/transfer/src/components/transfer-panel.d.ts +1 -1
  39. package/types/transfer/src/composables/use-transfer-panel.d.ts +1 -1
  40. package/types/transfer/src/composables/use-transfer.d.ts +2 -2
  41. package/types/transfer/src/transfer.d.ts +1 -1
  42. package/vue-devui.es.js +97 -64
  43. package/vue-devui.umd.js +34 -34
@@ -62,6 +62,7 @@ declare const _default: import("vue").DefineComponent<{
62
62
  };
63
63
  readonly size: {
64
64
  readonly type: import("vue").PropType<"sm" | "md" | "lg">;
65
+ readonly default: "md";
65
66
  };
66
67
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, "change" | "update:modelValue" | "update:checked", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
67
68
  readonly checked: {
@@ -126,6 +127,7 @@ declare const _default: import("vue").DefineComponent<{
126
127
  };
127
128
  readonly size: {
128
129
  readonly type: import("vue").PropType<"sm" | "md" | "lg">;
130
+ readonly default: "md";
129
131
  };
130
132
  }>>, {
131
133
  readonly name: string;
@@ -133,6 +135,7 @@ declare const _default: import("vue").DefineComponent<{
133
135
  readonly color: string;
134
136
  readonly label: string;
135
137
  readonly disabled: boolean;
138
+ readonly size: "sm" | "md" | "lg";
136
139
  readonly onChange: (v: boolean) => void;
137
140
  readonly checked: boolean;
138
141
  readonly modelValue: boolean;
@@ -71,6 +71,7 @@ declare const _default: import("vue").DefineComponent<{
71
71
  };
72
72
  readonly size: {
73
73
  readonly type: import("vue").PropType<"sm" | "md" | "lg">;
74
+ readonly default: "md";
74
75
  };
75
76
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
76
77
  readonly modelValue: {
@@ -144,6 +145,7 @@ declare const _default: import("vue").DefineComponent<{
144
145
  };
145
146
  readonly size: {
146
147
  readonly type: import("vue").PropType<"sm" | "md" | "lg">;
148
+ readonly default: "md";
147
149
  };
148
150
  }>>, {
149
151
  readonly max: number;
@@ -155,6 +157,7 @@ declare const _default: import("vue").DefineComponent<{
155
157
  readonly options: ({
156
158
  value: string;
157
159
  } & Partial<import("./checkbox-types").CheckboxProps>)[];
160
+ readonly size: "sm" | "md" | "lg";
158
161
  readonly onChange: (v: string[]) => void;
159
162
  readonly showAnimation: boolean;
160
163
  readonly 'onUpdate:modelValue': (v: string[]) => void;
@@ -64,6 +64,7 @@ export declare const checkboxProps: {
64
64
  };
65
65
  readonly size: {
66
66
  readonly type: PropType<Size>;
67
+ readonly default: "md";
67
68
  };
68
69
  };
69
70
  export declare type CheckboxProps = ExtractPropTypes<typeof checkboxProps>;
@@ -139,6 +140,7 @@ export declare const checkboxGroupProps: {
139
140
  };
140
141
  readonly size: {
141
142
  readonly type: PropType<Size>;
143
+ readonly default: "md";
142
144
  };
143
145
  };
144
146
  export declare type CheckboxGroupProps = ExtractPropTypes<typeof checkboxGroupProps>;
@@ -165,8 +167,8 @@ export declare type UseCheckboxFn = {
165
167
  mergedIsShowTitle: ComputedRef<boolean | undefined>;
166
168
  mergedShowAnimation: ComputedRef<boolean>;
167
169
  mergedColor: ComputedRef<string | undefined>;
168
- itemWidth: number | undefined;
169
- direction: string | undefined;
170
+ itemWidth: Ref<number | undefined> | undefined;
171
+ direction: Ref<string | undefined> | undefined;
170
172
  size: ComputedRef<string>;
171
173
  border: ComputedRef<boolean>;
172
174
  handleClick: (event: Event) => void;
@@ -62,6 +62,7 @@ declare const _default: import("vue").DefineComponent<{
62
62
  };
63
63
  readonly size: {
64
64
  readonly type: import("vue").PropType<"sm" | "md" | "lg">;
65
+ readonly default: "md";
65
66
  };
66
67
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, "change" | "update:modelValue" | "update:checked", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
67
68
  readonly checked: {
@@ -126,6 +127,7 @@ declare const _default: import("vue").DefineComponent<{
126
127
  };
127
128
  readonly size: {
128
129
  readonly type: import("vue").PropType<"sm" | "md" | "lg">;
130
+ readonly default: "md";
129
131
  };
130
132
  }>>, {
131
133
  readonly name: string;
@@ -133,6 +135,7 @@ declare const _default: import("vue").DefineComponent<{
133
135
  readonly color: string;
134
136
  readonly label: string;
135
137
  readonly disabled: boolean;
138
+ readonly size: "sm" | "md" | "lg";
136
139
  readonly onChange: (v: boolean) => void;
137
140
  readonly checked: boolean;
138
141
  readonly modelValue: boolean;
@@ -9,6 +9,10 @@ declare const _default: import("vue").DefineComponent<{
9
9
  readonly type: BooleanConstructor;
10
10
  readonly default: false;
11
11
  };
12
+ readonly canCancelSelect: {
13
+ readonly type: BooleanConstructor;
14
+ readonly default: false;
15
+ };
12
16
  readonly modelValue: {
13
17
  type: import("vue").PropType<import("./radio-types").valueTypes>;
14
18
  default: null;
@@ -38,6 +42,10 @@ declare const _default: import("vue").DefineComponent<{
38
42
  readonly type: BooleanConstructor;
39
43
  readonly default: false;
40
44
  };
45
+ readonly canCancelSelect: {
46
+ readonly type: BooleanConstructor;
47
+ readonly default: false;
48
+ };
41
49
  readonly modelValue: {
42
50
  type: import("vue").PropType<import("./radio-types").valueTypes>;
43
51
  default: null;
@@ -64,5 +72,6 @@ declare const _default: import("vue").DefineComponent<{
64
72
  readonly disabled: boolean;
65
73
  readonly modelValue: import("./radio-types").valueTypes;
66
74
  readonly beforeChange: (value: import("./radio-types").valueTypes) => boolean | Promise<boolean>;
75
+ readonly canCancelSelect: boolean;
67
76
  }>;
68
77
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import type { InjectionKey, PropType, Ref, ExtractPropTypes, ComputedRef } from 'vue';
2
- export declare type valueTypes = string | number | boolean;
2
+ export declare type valueTypes = string | number | boolean | undefined;
3
3
  export declare type sizeTypes = 'lg' | 'md' | 'sm';
4
4
  /** radio 的 props */
5
5
  export declare const radioProps: {
@@ -13,6 +13,10 @@ export declare const radioProps: {
13
13
  readonly type: BooleanConstructor;
14
14
  readonly default: false;
15
15
  };
16
+ readonly canCancelSelect: {
17
+ readonly type: BooleanConstructor;
18
+ readonly default: false;
19
+ };
16
20
  readonly modelValue: {
17
21
  type: PropType<valueTypes>;
18
22
  default: null;
@@ -9,6 +9,10 @@ declare const _default: import("vue").DefineComponent<{
9
9
  readonly type: BooleanConstructor;
10
10
  readonly default: false;
11
11
  };
12
+ readonly canCancelSelect: {
13
+ readonly type: BooleanConstructor;
14
+ readonly default: false;
15
+ };
12
16
  readonly modelValue: {
13
17
  type: import("vue").PropType<import("./radio-types").valueTypes>;
14
18
  default: null;
@@ -38,6 +42,10 @@ declare const _default: import("vue").DefineComponent<{
38
42
  readonly type: BooleanConstructor;
39
43
  readonly default: false;
40
44
  };
45
+ readonly canCancelSelect: {
46
+ readonly type: BooleanConstructor;
47
+ readonly default: false;
48
+ };
41
49
  readonly modelValue: {
42
50
  type: import("vue").PropType<import("./radio-types").valueTypes>;
43
51
  default: null;
@@ -64,5 +72,6 @@ declare const _default: import("vue").DefineComponent<{
64
72
  readonly disabled: boolean;
65
73
  readonly modelValue: import("./radio-types").valueTypes;
66
74
  readonly beforeChange: (value: import("./radio-types").valueTypes) => boolean | Promise<boolean>;
75
+ readonly canCancelSelect: boolean;
67
76
  }>;
68
77
  export default _default;
@@ -66,7 +66,7 @@ declare const _default: import("vue").DefineComponent<{
66
66
  [key: string]: any;
67
67
  }>>;
68
68
  };
69
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, "updateAllChecked" | "changeChecked" | "changeButtonState", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
69
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, "updateAllChecked" | "changeChecked" | "updateData" | "changeButtonState", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
70
70
  readonly title: {
71
71
  readonly type: StringConstructor;
72
72
  readonly default: "";
@@ -80,5 +80,5 @@ export declare const transferPanelState: (props: TTransferPanelProps, ctx: Setup
80
80
  changeAllCheckedHandle: (value: boolean) => void;
81
81
  updateModelValueHandle: (value: TKey) => void;
82
82
  updateCheckedDataHandle: (value: TKey[]) => void;
83
- updateDataHandle: (startValue: TKey, endValue: TKey) => void;
83
+ updateDataHandle: (startValue: TKey, endValue: TKey, position: number) => void;
84
84
  };
@@ -25,6 +25,6 @@ export declare const transferState: (props: TTransferProps, ctx: SetupContext) =
25
25
  updateTargetCheckedHandle: (value: TKey[]) => void;
26
26
  toMoveTargetHandle: () => void;
27
27
  toMoveSourceHandle: () => void;
28
- updateSourceDataHandle: (startValue: TKey, endValue: TKey) => void;
29
- updateTargetDataHandle: (startValue: TKey, endValue: TKey) => void;
28
+ updateSourceDataHandle: (startValue: TKey, endValue: TKey, position: number) => void;
29
+ updateTargetDataHandle: (startValue: TKey, endValue: TKey, position: number) => void;
30
30
  };
@@ -77,7 +77,7 @@ declare const _default: import("vue").DefineComponent<{
77
77
  [key: string]: any;
78
78
  }>>;
79
79
  };
80
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
80
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, "change" | "update:modelValue" | "sourceDragEnd" | "targetDragEnd", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
81
81
  readonly modelValue: {
82
82
  readonly type: import("vue").PropType<string | number[]>;
83
83
  readonly default: () => never[];
package/vue-devui.es.js CHANGED
@@ -12443,7 +12443,8 @@ const commonProps$2 = {
12443
12443
  default: void 0
12444
12444
  },
12445
12445
  size: {
12446
- type: String
12446
+ type: String,
12447
+ default: "md"
12447
12448
  }
12448
12449
  };
12449
12450
  const checkboxProps = __spreadProps(__spreadValues({}, commonProps$2), {
@@ -12544,8 +12545,8 @@ function useCheckbox(props, ctx2) {
12544
12545
  var _a;
12545
12546
  return (_a = checkboxGroupConf == null ? void 0 : checkboxGroupConf.color.value) != null ? _a : props.color;
12546
12547
  });
12547
- const itemWidth = checkboxGroupConf == null ? void 0 : checkboxGroupConf.itemWidth.value;
12548
- const direction = checkboxGroupConf == null ? void 0 : checkboxGroupConf.direction.value;
12548
+ const itemWidth = checkboxGroupConf == null ? void 0 : checkboxGroupConf.itemWidth;
12549
+ const direction = checkboxGroupConf == null ? void 0 : checkboxGroupConf.direction;
12549
12550
  const canChange = (checked, val) => {
12550
12551
  var _a;
12551
12552
  if (mergedDisabled.value) {
@@ -12562,15 +12563,14 @@ function useCheckbox(props, ctx2) {
12562
12563
  return Promise.resolve(true);
12563
12564
  };
12564
12565
  const toggle = () => {
12565
- const current = !isChecked.value;
12566
+ const current = !mergedChecked.value;
12566
12567
  checkboxGroupConf == null ? void 0 : checkboxGroupConf.toggleGroupVal(props.value);
12567
12568
  ctx2.emit("update:checked", current);
12568
12569
  ctx2.emit("update:modelValue", current);
12569
12570
  ctx2.emit("change", current);
12570
12571
  };
12571
- const handleClick = ($event) => {
12572
- $event.stopPropagation();
12573
- canChange(!isChecked.value, props.label).then((res) => res && toggle());
12572
+ const handleClick = () => {
12573
+ canChange(!mergedChecked.value, props.label).then((res) => res && toggle());
12574
12574
  };
12575
12575
  const size = computed(() => props.size || (checkboxGroupConf == null ? void 0 : checkboxGroupConf.size.value) || (formContext == null ? void 0 : formContext.size) || "md");
12576
12576
  const border = computed(() => {
@@ -12578,7 +12578,8 @@ function useCheckbox(props, ctx2) {
12578
12578
  return (_a = checkboxGroupConf == null ? void 0 : checkboxGroupConf.border.value) != null ? _a : props.border;
12579
12579
  });
12580
12580
  watch(() => props.modelValue, () => {
12581
- formItemContext == null ? void 0 : formItemContext.validate("change").catch((err) => console.warn(err));
12581
+ formItemContext == null ? void 0 : formItemContext.validate("change").catch(() => {
12582
+ });
12582
12583
  });
12583
12584
  return {
12584
12585
  mergedChecked,
@@ -12636,7 +12637,8 @@ function useCheckboxGroup(props, ctx2) {
12636
12637
  }
12637
12638
  };
12638
12639
  watch(() => props.modelValue, () => {
12639
- formItemContext == null ? void 0 : formItemContext.validate("change").catch((err) => console.warn(err));
12640
+ formItemContext == null ? void 0 : formItemContext.validate("change").catch(() => {
12641
+ });
12640
12642
  }, { deep: true });
12641
12643
  const checkboxGroupSize = computed(() => props.size || (formContext == null ? void 0 : formContext.size) || "");
12642
12644
  provide(checkboxGroupInjectionKey, {
@@ -12673,7 +12675,7 @@ var Checkbox = defineComponent({
12673
12675
  props: checkboxProps,
12674
12676
  emits: ["change", "update:checked", "update:modelValue"],
12675
12677
  setup(props, ctx2) {
12676
- const ns2 = useNamespace$1("checkbox");
12678
+ const ns2 = useNamespace("checkbox");
12677
12679
  const {
12678
12680
  mergedChecked,
12679
12681
  mergedDisabled,
@@ -12688,11 +12690,11 @@ var Checkbox = defineComponent({
12688
12690
  } = useCheckbox(props, ctx2);
12689
12691
  return () => {
12690
12692
  var _a, _b;
12691
- const wrapperCls = {
12692
- [ns2.e("column-margin")]: direction === "column",
12693
- [ns2.e("wrap")]: typeof itemWidth !== "undefined"
12694
- };
12695
- const wrapperStyle = itemWidth ? [`width: ${itemWidth}px`] : [];
12693
+ const wrapperCls = computed(() => ({
12694
+ [ns2.e("column-margin")]: (direction == null ? void 0 : direction.value) === "column",
12695
+ [ns2.e("wrap")]: typeof (itemWidth == null ? void 0 : itemWidth.value) !== "undefined"
12696
+ }));
12697
+ const wrapperStyle = computed(() => (itemWidth == null ? void 0 : itemWidth.value) ? [`width: ${itemWidth.value}px`] : []);
12696
12698
  const checkboxCls = {
12697
12699
  [ns2.b()]: true,
12698
12700
  active: mergedChecked.value,
@@ -12723,8 +12725,8 @@ var Checkbox = defineComponent({
12723
12725
  indeterminate: props.halfChecked
12724
12726
  };
12725
12727
  return createVNode("div", {
12726
- "class": wrapperCls,
12727
- "style": wrapperStyle
12728
+ "class": wrapperCls.value,
12729
+ "style": wrapperStyle.value
12728
12730
  }, [createVNode("div", {
12729
12731
  "class": checkboxCls
12730
12732
  }, [createVNode("label", {
@@ -12732,7 +12734,7 @@ var Checkbox = defineComponent({
12732
12734
  "onClick": handleClick,
12733
12735
  "class": labelCls,
12734
12736
  "style": {
12735
- width: itemWidth ? "100%" : "auto"
12737
+ width: (itemWidth == null ? void 0 : itemWidth.value) ? "100%" : "auto"
12736
12738
  }
12737
12739
  }, [createVNode("input", mergeProps({
12738
12740
  "name": props.name || props.value,
@@ -12774,7 +12776,7 @@ var DCheckboxGroup = defineComponent({
12774
12776
  props: checkboxGroupProps,
12775
12777
  emits: ["change", "update:modelValue"],
12776
12778
  setup(props, ctx2) {
12777
- const ns2 = useNamespace$1("checkbox");
12779
+ const ns2 = useNamespace("checkbox");
12778
12780
  const {
12779
12781
  defaultOpt
12780
12782
  } = useCheckboxGroup(props, ctx2);
@@ -12820,7 +12822,7 @@ var CheckboxButton = defineComponent({
12820
12822
  props: checkboxProps,
12821
12823
  emits: ["change", "update:checked", "update:modelValue"],
12822
12824
  setup(props, ctx2) {
12823
- const ns2 = useNamespace$1("checkbox-button");
12825
+ const ns2 = useNamespace("checkbox-button");
12824
12826
  const {
12825
12827
  mergedChecked,
12826
12828
  mergedDisabled,
@@ -20739,7 +20741,7 @@ var TimeScroll = defineComponent({
20739
20741
  name: "DTimeScroll",
20740
20742
  props: timePickerProps,
20741
20743
  setup(props, ctx2) {
20742
- const ns2 = useNamespace$1("scroll-box");
20744
+ const ns2 = useNamespace("scroll-box");
20743
20745
  const {
20744
20746
  scrollBoxDom,
20745
20747
  scrollThumbDom,
@@ -20799,11 +20801,11 @@ var TimeScroll = defineComponent({
20799
20801
  });
20800
20802
  var index$2 = "";
20801
20803
  var PopupLine = defineComponent({
20802
- name: "DTimeList",
20804
+ name: "DPopupLine",
20803
20805
  props: popupLineProps,
20804
20806
  emits: ["change"],
20805
20807
  setup(props, ctx2) {
20806
- const ns2 = useNamespace$1("time-list");
20808
+ const ns2 = useNamespace("popup-line");
20807
20809
  const timeListDom = ref();
20808
20810
  const {
20809
20811
  getNewTime,
@@ -25392,8 +25394,8 @@ function useEditorMd(props, ctx2) {
25392
25394
  }
25393
25395
  if (imageUploadToServer.value) {
25394
25396
  const callback = ({ name, imgUrl, title }) => {
25395
- editorRef.value.focus();
25396
- editorRef.value.replaceSelection(`![${name}](${imgUrl} '${title}')`);
25397
+ editorIns.focus();
25398
+ editorIns.replaceSelection(`![${name}](${imgUrl} '${title}')`);
25397
25399
  };
25398
25400
  ctx2.emit("imageUpload", { file, callback });
25399
25401
  }
@@ -33880,6 +33882,10 @@ const radioProps = __spreadProps(__spreadValues({}, radioCommonProps), {
33880
33882
  border: {
33881
33883
  type: Boolean,
33882
33884
  default: false
33885
+ },
33886
+ canCancelSelect: {
33887
+ type: Boolean,
33888
+ default: false
33883
33889
  }
33884
33890
  });
33885
33891
  const radioGroupProps = __spreadProps(__spreadValues({}, radioCommonProps), {
@@ -33936,7 +33942,14 @@ function useRadio(props, ctx2) {
33936
33942
  return flag;
33937
33943
  };
33938
33944
  const handleChange = async (event) => {
33939
- const _value = props.value;
33945
+ let _value;
33946
+ if (props.canCancelSelect && isChecked.value) {
33947
+ _value = void 0;
33948
+ } else if (isChecked.value) {
33949
+ return;
33950
+ } else {
33951
+ _value = props.value;
33952
+ }
33940
33953
  const canChange = await judgeCanChange(_value);
33941
33954
  if (!canChange) {
33942
33955
  event.preventDefault();
@@ -34008,7 +34021,7 @@ var Radio = defineComponent({
34008
34021
  props: radioProps,
34009
34022
  emits: ["change", "update:modelValue"],
34010
34023
  setup(props, ctx2) {
34011
- const ns2 = useNamespace$1("radio");
34024
+ const ns2 = useNamespace("radio");
34012
34025
  const {
34013
34026
  isChecked,
34014
34027
  radioName,
@@ -34038,7 +34051,7 @@ var Radio = defineComponent({
34038
34051
  "name": radioName.value,
34039
34052
  "class": ns2.e("input"),
34040
34053
  "disabled": isDisabled.value,
34041
- "onChange": handleChange,
34054
+ "onClick": handleChange,
34042
34055
  "value": props.value,
34043
34056
  "checked": isChecked.value
34044
34057
  }, null), createVNode("span", {
@@ -34081,7 +34094,7 @@ var RadioGroup = defineComponent({
34081
34094
  props: radioGroupProps,
34082
34095
  emits: ["change", "update:modelValue"],
34083
34096
  setup(props, ctx2) {
34084
- const ns2 = useNamespace$1("radio-group");
34097
+ const ns2 = useNamespace("radio-group");
34085
34098
  useRadioGroup(props, ctx2);
34086
34099
  return () => {
34087
34100
  const getContent = () => {
@@ -34116,7 +34129,7 @@ var RadioButton = defineComponent({
34116
34129
  props: radioProps,
34117
34130
  emits: ["change", "update:modelValue"],
34118
34131
  setup(props, ctx2) {
34119
- const ns2 = useNamespace$1("radio-button");
34132
+ const ns2 = useNamespace("radio-button");
34120
34133
  const {
34121
34134
  isChecked,
34122
34135
  radioName,
@@ -35293,7 +35306,7 @@ function useSliderEvent(props, ctx2) {
35293
35306
  handleButtonMousedown(event);
35294
35307
  }
35295
35308
  }
35296
- watch(() => props.modelValue, () => {
35309
+ watch([() => props.modelValue, () => props.max, () => props.min], () => {
35297
35310
  currentValue.value = Number(props.modelValue);
35298
35311
  if (currentValue.value > props.max) {
35299
35312
  percentDisplay.value = "100%";
@@ -35313,7 +35326,7 @@ var Slider = defineComponent({
35313
35326
  props: sliderProps,
35314
35327
  emits: ["update:modelValue"],
35315
35328
  setup(props, ctx2) {
35316
- const ns2 = useNamespace$1("slider");
35329
+ const ns2 = useNamespace("slider");
35317
35330
  const {
35318
35331
  sliderRunway,
35319
35332
  popoverShow,
@@ -36990,7 +37003,7 @@ var Switch = defineComponent({
36990
37003
  props: switchProps,
36991
37004
  emits: ["change", "update:modelValue"],
36992
37005
  setup(props, ctx2) {
36993
- const ns2 = useNamespace$1("switch");
37006
+ const ns2 = useNamespace("switch");
36994
37007
  const {
36995
37008
  toggle,
36996
37009
  checked,
@@ -39575,7 +39588,7 @@ function useTimePicker(hh, mm, ss, format2, props) {
39575
39588
  showPopup.value = true;
39576
39589
  };
39577
39590
  const clickVerifyFun = () => {
39578
- if (props.disabled || props.readonly) {
39591
+ if (props.disabled) {
39579
39592
  return;
39580
39593
  }
39581
39594
  mouseInputFun();
@@ -39686,7 +39699,7 @@ var TimePopup = defineComponent({
39686
39699
  setup(props, ctx2) {
39687
39700
  const app = getCurrentInstance();
39688
39701
  const t = createI18nTranslate("DTimePopup", app);
39689
- const ns2 = useNamespace$1("time-popup");
39702
+ const ns2 = useNamespace("time-popup");
39690
39703
  const popupDome = ref();
39691
39704
  const timeListDom = ref();
39692
39705
  const hourList = initializeTimeData("hour");
@@ -39759,7 +39772,7 @@ var TimePicker = defineComponent({
39759
39772
  props: timePickerProps,
39760
39773
  emits: ["change", "update:modelValue"],
39761
39774
  setup(props, ctx2) {
39762
- const ns2 = useNamespace$1("time-picker");
39775
+ const ns2 = useNamespace("time-picker");
39763
39776
  const activeHour = ref("00");
39764
39777
  const activeMinute = ref("00");
39765
39778
  const activeSecond = ref("00");
@@ -39807,10 +39820,11 @@ var TimePicker = defineComponent({
39807
39820
  "disabled": props.disabled,
39808
39821
  "readonly": props.readonly,
39809
39822
  "size": props.size,
39810
- "onFocus": withModifiers(clickVerifyFun, ["stop"])
39823
+ "onFocus": clickVerifyFun
39811
39824
  }, {
39812
39825
  suffix: () => createVNode("span", {
39813
- "class": "time-input-icon"
39826
+ "class": "time-input-icon",
39827
+ "onClick": clickVerifyFun
39814
39828
  }, [createVNode("span", {
39815
39829
  "onClick": clearAll,
39816
39830
  "class": "clear-button"
@@ -40414,8 +40428,8 @@ const transferPanelState = (props, ctx2) => {
40414
40428
  query.value = value;
40415
40429
  props.search && typeof props.search === "function" && props.search(props.direction, filterData.value, value);
40416
40430
  };
40417
- const updateDataHandle = (startValue, endValue) => {
40418
- ctx2.emit(`updateData`, startValue, endValue);
40431
+ const updateDataHandle = (startValue, endValue, position) => {
40432
+ ctx2.emit(`updateData`, startValue, endValue, position);
40419
40433
  };
40420
40434
  watchEffect(() => {
40421
40435
  updateAllCheckedHandle();
@@ -40489,7 +40503,7 @@ var transferHeader = defineComponent({
40489
40503
  setup(props, ctx2) {
40490
40504
  const app = getCurrentInstance();
40491
40505
  const t = createI18nTranslate("DTransfer", app);
40492
- const ns2 = useNamespace$1("transfer");
40506
+ const ns2 = useNamespace("transfer");
40493
40507
  const {
40494
40508
  allCheckedChangeHandle
40495
40509
  } = transferHeaderState$1(props, ctx2);
@@ -40647,7 +40661,7 @@ const transferBodyState = (props, ctx2) => {
40647
40661
  if (props.drop && typeof props.drop === "function") {
40648
40662
  props.drop(event, item);
40649
40663
  }
40650
- ctx2.emit("updateDataPosition", dragHighlight.value, item.value);
40664
+ ctx2.emit("updateDataPosition", dragHighlight.value, item.value, dropPosition.value);
40651
40665
  };
40652
40666
  const dragendHandle = (event, item) => {
40653
40667
  event.stopPropagation();
@@ -40705,7 +40719,7 @@ var transferBody = defineComponent({
40705
40719
  setup(props, ctx2) {
40706
40720
  const app = getCurrentInstance();
40707
40721
  const t = createI18nTranslate("DTransferBody", app);
40708
- const ns2 = useNamespace$1("transfer");
40722
+ const ns2 = useNamespace("transfer");
40709
40723
  const {
40710
40724
  bodyHeight,
40711
40725
  query,
@@ -40784,7 +40798,6 @@ var transferBody = defineComponent({
40784
40798
  "class": {
40785
40799
  [ns2.em("panel", "body-list-item")]: true,
40786
40800
  [ns2.em("panel", "body-list-drag-dragging")]: dragHighlight.value === item.value,
40787
- [ns2.em("panel", "body-list-drag-over")]: isEqual && dropPosition.value === 0,
40788
40801
  [ns2.em("panel", "body-list-drag-over-top")]: isEqual && dropPosition.value === -1,
40789
40802
  [ns2.em("panel", "body-list-drag-over-bottom")]: isEqual && dropPosition.value === 1
40790
40803
  },
@@ -40845,11 +40858,11 @@ var transferPanel = defineComponent({
40845
40858
  transferBody
40846
40859
  },
40847
40860
  props: transferPanelProps,
40848
- emits: ["updateAllChecked", "changeButtonState", "changeChecked"],
40861
+ emits: ["updateAllChecked", "changeButtonState", "changeChecked", "updateData"],
40849
40862
  setup(props, ctx2) {
40850
40863
  const app = getCurrentInstance();
40851
40864
  const t = createI18nTranslate("DTransfer", app);
40852
- const ns2 = useNamespace$1("transfer");
40865
+ const ns2 = useNamespace("transfer");
40853
40866
  const {
40854
40867
  allChecked,
40855
40868
  allHalfchecked,
@@ -40898,8 +40911,8 @@ var transferPanel = defineComponent({
40898
40911
  "onUpdateQueryString": (value) => {
40899
40912
  updateModelValueHandle(value);
40900
40913
  },
40901
- "onUpdateDataPosition": (startValue, endValue) => {
40902
- updateDataHandle(startValue, endValue);
40914
+ "onUpdateDataPosition": (startValue, endValue, position) => {
40915
+ updateDataHandle(startValue, endValue, position);
40903
40916
  }
40904
40917
  }, null)]);
40905
40918
  };
@@ -40940,7 +40953,7 @@ var transferOperate = defineComponent({
40940
40953
  },
40941
40954
  props: transferOperateProps,
40942
40955
  setup(props, ctx2) {
40943
- const ns2 = useNamespace$1("transfer");
40956
+ const ns2 = useNamespace("transfer");
40944
40957
  const {
40945
40958
  toTargetHandle,
40946
40959
  toSourceHandle
@@ -41147,15 +41160,35 @@ const transferState = (props, ctx2) => {
41147
41160
  dropItem
41148
41161
  };
41149
41162
  };
41150
- const updateSourceDataHandle = (startValue, endValue) => {
41151
- const { startIndex, endIndex, dragItem, dropItem } = getDargItemAndDropItem(startValue, endValue, "source");
41152
- sourceData.value.splice(endIndex, 1, dragItem);
41153
- sourceData.value.splice(startIndex, 1, dropItem);
41163
+ const updateSourceDataHandle = (startValue, endValue, position) => {
41164
+ const { startIndex, endIndex, dragItem } = getDargItemAndDropItem(startValue, endValue, "source");
41165
+ let end = endIndex;
41166
+ if (position === 1) {
41167
+ end = endIndex + 1;
41168
+ }
41169
+ if (startIndex < end) {
41170
+ sourceData.value.splice(end, 0, dragItem);
41171
+ sourceData.value.splice(startIndex, 1);
41172
+ } else {
41173
+ sourceData.value.splice(startIndex, 1);
41174
+ sourceData.value.splice(end, 0, dragItem);
41175
+ }
41176
+ ctx2.emit("sourceDragEnd", [...sourceData.value]);
41154
41177
  };
41155
- const updateTargetDataHandle = (startValue, endValue) => {
41156
- const { startIndex, endIndex, dragItem, dropItem } = getDargItemAndDropItem(startValue, endValue, "target");
41157
- targetData.value.splice(endIndex, 1, dragItem);
41158
- targetData.value.splice(startIndex, 1, dropItem);
41178
+ const updateTargetDataHandle = (startValue, endValue, position) => {
41179
+ const { startIndex, endIndex, dragItem } = getDargItemAndDropItem(startValue, endValue, "target");
41180
+ let end = endIndex;
41181
+ if (position === 1) {
41182
+ end = endIndex + 1;
41183
+ }
41184
+ if (startIndex < end) {
41185
+ targetData.value.splice(end, 0, dragItem);
41186
+ targetData.value.splice(startIndex, 1);
41187
+ } else {
41188
+ targetData.value.splice(startIndex, 1);
41189
+ targetData.value.splice(end, 0, dragItem);
41190
+ }
41191
+ ctx2.emit("targetDragEnd", [...targetData.value]);
41159
41192
  };
41160
41193
  onMounted(() => {
41161
41194
  const { data } = getTransferData();
@@ -41211,11 +41244,11 @@ var Transfer = defineComponent({
41211
41244
  transferOperate
41212
41245
  },
41213
41246
  props: transferProps,
41214
- emits: ["update:modelValue", "change"],
41247
+ emits: ["update:modelValue", "change", "sourceDragEnd", "targetDragEnd"],
41215
41248
  setup(props, ctx2) {
41216
41249
  const app = getCurrentInstance();
41217
41250
  const t = createI18nTranslate("DTransfer", app);
41218
- const ns2 = useNamespace$1("transfer");
41251
+ const ns2 = useNamespace("transfer");
41219
41252
  const {
41220
41253
  sourceTitle,
41221
41254
  targetTitle,
@@ -41263,8 +41296,8 @@ var Transfer = defineComponent({
41263
41296
  "onChangeChecked": (value) => {
41264
41297
  updateSourceCheckedHandle(value);
41265
41298
  },
41266
- "onUpdateData": (startValue, endValue) => {
41267
- updateSourceDataHandle(startValue, endValue);
41299
+ "onUpdateData": (startValue, endValue, position) => {
41300
+ updateSourceDataHandle(startValue, endValue, position);
41268
41301
  }
41269
41302
  }, {
41270
41303
  header: ctx2.slots.sourceHeader
@@ -41301,8 +41334,8 @@ var Transfer = defineComponent({
41301
41334
  "onChangeChecked": (value) => {
41302
41335
  updateTargetCheckedHandle(value);
41303
41336
  },
41304
- "onUpdateData": (startValue, endValue) => {
41305
- updateTargetDataHandle(startValue, endValue);
41337
+ "onUpdateData": (startValue, endValue, position) => {
41338
+ updateTargetDataHandle(startValue, endValue, position);
41306
41339
  }
41307
41340
  }, {
41308
41341
  header: ctx2.slots.targetHeader
@@ -43729,7 +43762,7 @@ const installs = [
43729
43762
  VirtualListInstall
43730
43763
  ];
43731
43764
  var vueDevui = {
43732
- version: "1.5.11-hotfix.1",
43765
+ version: "1.5.12",
43733
43766
  install(app) {
43734
43767
  installs.forEach((p) => app.use(p));
43735
43768
  }