@sdata/web-vue 2.3.1 → 2.6.0

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 (141) hide show
  1. package/README.md +1 -1
  2. package/dist/sd.css +117 -191
  3. package/dist/sd.min.css +1 -1
  4. package/es/_components/transition/expand-transition.vue.d.ts +2 -2
  5. package/es/_hooks/use-responsive.d.ts +2 -2
  6. package/es/_hooks/use-theme-mode.d.ts +3 -0
  7. package/es/{calendar/hooks/use-calendar-theme.js → _hooks/use-theme-mode.js} +14 -10
  8. package/es/_utils/responsive-observe.d.ts +5 -4
  9. package/es/_utils/responsive-observe.js +2 -1
  10. package/es/alert/index.d.ts +3 -3
  11. package/es/anchor/index.d.ts +3 -3
  12. package/es/avatar/index.d.ts +20 -20
  13. package/es/border-beam/border-beam.js +5 -0
  14. package/es/border-beam/border-beam.vue.d.ts +52 -0
  15. package/es/border-beam/border-beam.vue_vue_type_script_setup_true_lang.js +623 -0
  16. package/es/border-beam/index.d.ts +106 -0
  17. package/es/border-beam/index.js +10 -0
  18. package/es/border-beam/pulseDriver.d.ts +2 -0
  19. package/es/border-beam/pulseDriver.js +74 -0
  20. package/es/border-beam/style/css.js +2 -0
  21. package/es/border-beam/style/index.css +21 -0
  22. package/es/border-beam/style/index.d.ts +2 -0
  23. package/es/border-beam/style/index.js +2 -0
  24. package/es/border-beam/style/index.scss +12 -0
  25. package/es/border-beam/style/token.scss +12 -0
  26. package/es/border-beam/styles.d.ts +42 -0
  27. package/es/border-beam/styles.js +3545 -0
  28. package/es/border-beam/types.d.ts +27 -0
  29. package/es/button/index.d.ts +24 -24
  30. package/es/calendar/components/cell.vue.d.ts +26 -26
  31. package/es/calendar/components/index.vue.d.ts +1 -1
  32. package/es/calendar/components/index.vue_vue_type_script_setup_true_lang.js +3 -2
  33. package/es/calendar/index.d.ts +5 -5
  34. package/es/carousel/index.d.ts +3 -3
  35. package/es/cascader/cascader.vue.d.ts +8 -8
  36. package/es/checkbox/checkbox.d.ts +3 -3
  37. package/es/collapse/collapse-item.d.ts +5 -5
  38. package/es/collapse/index.d.ts +3 -3
  39. package/es/components.d.ts +1 -0
  40. package/es/config-provider/index.d.ts +21 -21
  41. package/es/date-picker/index.d.ts +14 -14
  42. package/es/date-picker/panels/date/index.vue.d.ts +2 -2
  43. package/es/date-picker/panels/month/index.vue.d.ts +2 -2
  44. package/es/date-picker/panels/quarter/index.vue.d.ts +2 -2
  45. package/es/date-picker/panels/week/index.vue.d.ts +2 -2
  46. package/es/date-picker/panels/year/index.vue.d.ts +2 -2
  47. package/es/date-picker/picker-panel.vue.d.ts +12 -12
  48. package/es/date-picker/picker.vue.d.ts +14 -14
  49. package/es/date-picker/range-picker.vue.d.ts +15 -15
  50. package/es/descriptions/index.d.ts +24 -24
  51. package/es/drawer/drawer.vue.d.ts +5 -5
  52. package/es/drawer/index.d.ts +15 -15
  53. package/es/dropdown/dropdown-button.vue.d.ts +4 -4
  54. package/es/dropdown/index.d.ts +15 -15
  55. package/es/ellipsis/ellipsis.vue.d.ts +7 -7
  56. package/es/ellipsis/performant-ellipsis.vue.d.ts +5 -5
  57. package/es/form/form-item.vue_vue_type_script_setup_true_lang.js +3 -3
  58. package/es/form/index.d.ts +3 -3
  59. package/es/grid/grid-col.vue_vue_type_script_setup_true_lang.js +2 -2
  60. package/es/grid/grid.vue_vue_type_script_setup_true_lang.js +10 -10
  61. package/es/icon/icon-menu/icon-menu.js +5 -0
  62. package/es/icon/icon-menu/icon-menu.vue_vue_type_script_setup_true_lang.js +52 -0
  63. package/es/icon/icon-menu/index.js +9 -0
  64. package/es/image/preview.vue.d.ts +2 -2
  65. package/es/index.css +117 -191
  66. package/es/index.d.ts +3 -1
  67. package/es/index.js +3 -2
  68. package/es/index.scss +1 -0
  69. package/es/input/index.d.ts +7 -7
  70. package/es/input/input-password.vue.d.ts +3 -3
  71. package/es/json-form/index.d.ts +9 -9
  72. package/es/json-form/json-form-item.vue_vue_type_script_setup_true_lang.js +1 -1
  73. package/es/json-form/json-form.vue.d.ts +3 -3
  74. package/es/layout/content.vue.d.ts +2 -2
  75. package/es/layout/content.vue_vue_type_script_setup_true_lang.js +8 -3
  76. package/es/layout/context.d.ts +12 -9
  77. package/es/layout/context.js +11 -3
  78. package/es/layout/footer.vue.d.ts +2 -2
  79. package/es/layout/footer.vue_vue_type_script_setup_true_lang.js +8 -3
  80. package/es/layout/header.vue.d.ts +3 -30
  81. package/es/layout/header.vue_vue_type_script_setup_true_lang.js +9 -339
  82. package/es/layout/hooks/use-has-sider.d.ts +2 -0
  83. package/es/layout/hooks/use-has-sider.js +38 -0
  84. package/es/layout/index.d.ts +91 -380
  85. package/es/layout/index.js +2 -2
  86. package/es/layout/interface.d.ts +12 -46
  87. package/es/layout/layout.vue.d.ts +4 -2
  88. package/es/layout/layout.vue_vue_type_script_setup_true_lang.js +38 -14
  89. package/es/layout/sider.vue.d.ts +47 -183
  90. package/es/layout/sider.vue_vue_type_script_setup_true_lang.js +191 -370
  91. package/es/layout/style/index.css +112 -190
  92. package/es/layout/style/index.scss +127 -239
  93. package/es/layout/style/token.scss +46 -26
  94. package/es/link/index.d.ts +6 -6
  95. package/es/list/index.d.ts +18 -18
  96. package/es/menu/base-menu.vue.d.ts +1 -1
  97. package/es/menu/base-menu.vue_vue_type_script_setup_true_lang.js +14 -14
  98. package/es/menu/item.d.ts +1 -1
  99. package/es/menu/menu.d.ts +12 -12
  100. package/es/menu/menu.js +3 -3
  101. package/es/modal/index.d.ts +15 -15
  102. package/es/modal/modal.vue.d.ts +4 -4
  103. package/es/popconfirm/index.d.ts +12 -12
  104. package/es/popover/index.d.ts +12 -12
  105. package/es/progress/index.d.ts +6 -6
  106. package/es/qr-code/index.d.ts +3 -3
  107. package/es/radio/radio.d.ts +3 -3
  108. package/es/resize-box/resize-box.vue.d.ts +4 -4
  109. package/es/resize-box/resize-box.vue_vue_type_script_setup_true_lang.js +7 -7
  110. package/es/result/index.d.ts +3 -3
  111. package/es/scrollbar/style/index.css +1 -1
  112. package/es/scrollbar/style/index.scss +4 -1
  113. package/es/sd-vue.js +3 -1
  114. package/es/select/select.d.ts +17 -17
  115. package/es/slider/index.d.ts +3 -3
  116. package/es/split/split.vue.d.ts +4 -4
  117. package/es/split/split.vue_vue_type_script_setup_true_lang.js +6 -6
  118. package/es/steps/index.d.ts +6 -6
  119. package/es/tabs/index.d.ts +6 -6
  120. package/es/tag/index.d.ts +6 -6
  121. package/es/tag/tag.vue.d.ts +2 -2
  122. package/es/textarea/textarea.vue_vue_type_script_setup_true_lang.js +2 -2
  123. package/es/theme-provider/index.d.ts +9 -9
  124. package/es/time-picker/index.d.ts +6 -6
  125. package/es/time-picker/time-picker.vue.d.ts +2 -2
  126. package/es/timeline/index.d.ts +3 -3
  127. package/es/timeline/timeline.d.ts +1 -1
  128. package/es/tooltip/index.d.ts +3 -3
  129. package/es/tour/index.d.ts +3 -3
  130. package/es/tour/tour.vue_vue_type_script_setup_true_lang.js +6 -6
  131. package/es/tree/expand-transition.vue.d.ts +2 -2
  132. package/es/tree/node-switcher.vue.d.ts +1 -1
  133. package/es/tree/tree.vue_vue_type_script_setup_true_lang.js +23 -23
  134. package/es/tree-select/tree-select.vue.d.ts +9 -9
  135. package/json/vetur-attributes.json +23 -156
  136. package/json/vetur-tags.json +12 -44
  137. package/json/web-types.json +38 -304
  138. package/package.json +5 -5
  139. package/es/calendar/hooks/use-calendar-theme.d.ts +0 -4
  140. package/es/layout/utils.d.ts +0 -1
  141. package/es/layout/utils.js +0 -11
@@ -79,14 +79,14 @@ var resize_box_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defin
79
79
  * @binding {'left' | 'right' | 'top' | 'bottom'} direction
80
80
  */
81
81
  const { height: propHeight, width: propWidth, directions } = toRefs(props);
82
- const [width, setWidth] = useMergeState(null, reactive({ value: propWidth }));
83
- const [height, setHeight] = useMergeState(null, reactive({ value: propHeight }));
82
+ const [resWidth, setResWidth] = useMergeState(null, reactive({ value: propWidth }));
83
+ const [resHeight, setResHeight] = useMergeState(null, reactive({ value: propHeight }));
84
84
  const wrapperRef = ref();
85
85
  const paddingStyles = reactive({});
86
86
  const prefixCls = getPrefixCls("resizebox");
87
87
  const classNames = computed(() => [prefixCls]);
88
88
  const styles = computed(() => {
89
- return _objectSpread2(_objectSpread2(_objectSpread2({}, isNumber(width.value) ? { width: `${width.value}px` } : {}), isNumber(height.value) ? { height: `${height.value}px` } : {}), paddingStyles);
89
+ return _objectSpread2(_objectSpread2(_objectSpread2({}, isNumber(resWidth.value) ? { width: `${resWidth.value}px` } : {}), isNumber(resHeight.value) ? { height: `${resHeight.value}px` } : {}), paddingStyles);
90
90
  });
91
91
  const allowDirections = computed(() => directions.value.filter((direction) => allDirections.includes(direction)));
92
92
  const record = {
@@ -113,22 +113,22 @@ var resize_box_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defin
113
113
  switch (direction) {
114
114
  case DIRECTION_LEFT:
115
115
  newWidth = startWidth - offsetX;
116
- setWidth(newWidth);
116
+ setResWidth(newWidth);
117
117
  emit("update:width", newWidth);
118
118
  break;
119
119
  case DIRECTION_RIGHT:
120
120
  newWidth = startWidth + offsetX;
121
- setWidth(newWidth);
121
+ setResWidth(newWidth);
122
122
  emit("update:width", newWidth);
123
123
  break;
124
124
  case DIRECTION_TOP:
125
125
  newHeight = startHeight - offsetY;
126
- setHeight(newHeight);
126
+ setResHeight(newHeight);
127
127
  emit("update:height", newHeight);
128
128
  break;
129
129
  case DIRECTION_BOTTOM:
130
130
  newHeight = startHeight + offsetY;
131
- setHeight(newHeight);
131
+ setResHeight(newHeight);
132
132
  emit("update:height", newHeight);
133
133
  break;
134
134
  default: break;
@@ -4,7 +4,7 @@ import _Result from './result.vue';
4
4
  declare const Result: {
5
5
  new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
6
6
  status: {
7
- type: import("vue").PropType<import("./utils").ResultStatus>;
7
+ type: import("vue").PropType<import("./utils.ts").ResultStatus>;
8
8
  default: string;
9
9
  validator: (value: any) => boolean;
10
10
  };
@@ -21,7 +21,7 @@ declare const Result: {
21
21
  Defaults: {};
22
22
  }, Readonly<import("vue").ExtractPropTypes<{
23
23
  status: {
24
- type: import("vue").PropType<import("./utils").ResultStatus>;
24
+ type: import("vue").PropType<import("./utils.ts").ResultStatus>;
25
25
  default: string;
26
26
  validator: (value: any) => boolean;
27
27
  };
@@ -35,7 +35,7 @@ declare const Result: {
35
35
  __isSuspense?: never;
36
36
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
37
37
  status: {
38
- type: import("vue").PropType<import("./utils").ResultStatus>;
38
+ type: import("vue").PropType<import("./utils.ts").ResultStatus>;
39
39
  default: string;
40
40
  validator: (value: any) => boolean;
41
41
  };
@@ -22,7 +22,7 @@
22
22
  }
23
23
  .sd-scrollbar-container {
24
24
  min-width: 100%;
25
- min-height: 100%;
25
+ height: 100%;
26
26
  }
27
27
  .sd-scrollbar .os-scrollbar {
28
28
  --os-size: 6px;
@@ -11,7 +11,10 @@ $scroll-prefix-cls: string.unquote('#{theme.$prefix}-scrollbar');
11
11
 
12
12
  &-container {
13
13
  min-width: 100%;
14
- min-height: 100%;
14
+ // Fill the outer element so that when it has a bounded height the host is
15
+ // constrained and the viewport can scroll. `height: 100%` resolves to
16
+ // `auto` when the outer is auto-sized, so unconstrained usages are unaffected.
17
+ height: 100%;
15
18
  }
16
19
 
17
20
  .os-scrollbar {
package/es/sd-vue.js CHANGED
@@ -19,6 +19,7 @@ import AvatarGroup from "./avatar/avatar-group.js";
19
19
  import Avatar from "./avatar/index.js";
20
20
  import BackTop from "./back-top/index.js";
21
21
  import Badge from "./badge/index.js";
22
+ import BorderBeam from "./border-beam/index.js";
22
23
  import { addI18nMessages, getLocale, useLocale } from "./locale/index.js";
23
24
  import Empty from "./empty/index.js";
24
25
  import dropdown_button_default from "./dropdown/dropdown-button.js";
@@ -94,7 +95,6 @@ import JsonForm from "./json-form/index.js";
94
95
  import content_default from "./layout/content.js";
95
96
  import footer_default from "./layout/footer.js";
96
97
  import header_default from "./layout/header.js";
97
- import ResizeBox from "./resize-box/index.js";
98
98
  import sider_default from "./layout/sider.js";
99
99
  import Layout from "./layout/index.js";
100
100
  import item_default from "./menu/item.js";
@@ -108,6 +108,7 @@ import PageHeader from "./page-header/index.js";
108
108
  import Popconfirm from "./popconfirm/index.js";
109
109
  import Progress from "./progress/index.js";
110
110
  import QrCode from "./qr-code/index.js";
111
+ import ResizeBox from "./resize-box/index.js";
111
112
  import Result from "./result/index.js";
112
113
  import Secret from "./secret/index.js";
113
114
  import line_default from "./skeleton/line.js";
@@ -216,6 +217,7 @@ var components = {
216
217
  Affix,
217
218
  Anchor,
218
219
  BackTop,
220
+ BorderBeam,
219
221
  ConfigProvider,
220
222
  ThemeProvider,
221
223
  ResizeBox,
@@ -379,11 +379,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
379
379
  default: boolean;
380
380
  };
381
381
  trigger: {
382
- type: PropType<import("..").TriggerEvent | import("..").TriggerEvent[]>;
382
+ type: PropType<import("../trigger").TriggerEvent | import("../trigger").TriggerEvent[]>;
383
383
  default: string;
384
384
  };
385
385
  position: {
386
- type: PropType<import("..").TriggerPosition>;
386
+ type: PropType<import("../trigger").TriggerPosition>;
387
387
  default: string;
388
388
  };
389
389
  disabled: {
@@ -395,7 +395,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
395
395
  default: number;
396
396
  };
397
397
  popupTranslate: {
398
- type: PropType<import("..").TriggerPopupTranslate>;
398
+ type: PropType<import("../trigger").TriggerPopupTranslate>;
399
399
  };
400
400
  showArrow: {
401
401
  type: BooleanConstructor;
@@ -570,11 +570,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
570
570
  default: boolean;
571
571
  };
572
572
  trigger: {
573
- type: PropType<import("..").TriggerEvent | import("..").TriggerEvent[]>;
573
+ type: PropType<import("../trigger").TriggerEvent | import("../trigger").TriggerEvent[]>;
574
574
  default: string;
575
575
  };
576
576
  position: {
577
- type: PropType<import("..").TriggerPosition>;
577
+ type: PropType<import("../trigger").TriggerPosition>;
578
578
  default: string;
579
579
  };
580
580
  disabled: {
@@ -586,7 +586,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
586
586
  default: number;
587
587
  };
588
588
  popupTranslate: {
589
- type: PropType<import("..").TriggerPopupTranslate>;
589
+ type: PropType<import("../trigger").TriggerPopupTranslate>;
590
590
  };
591
591
  showArrow: {
592
592
  type: BooleanConstructor;
@@ -752,11 +752,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
752
752
  default: boolean;
753
753
  };
754
754
  trigger: {
755
- type: PropType<import("..").TriggerEvent | import("..").TriggerEvent[]>;
755
+ type: PropType<import("../trigger").TriggerEvent | import("../trigger").TriggerEvent[]>;
756
756
  default: string;
757
757
  };
758
758
  position: {
759
- type: PropType<import("..").TriggerPosition>;
759
+ type: PropType<import("../trigger").TriggerPosition>;
760
760
  default: string;
761
761
  };
762
762
  disabled: {
@@ -768,7 +768,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
768
768
  default: number;
769
769
  };
770
770
  popupTranslate: {
771
- type: PropType<import("..").TriggerPopupTranslate>;
771
+ type: PropType<import("../trigger").TriggerPopupTranslate>;
772
772
  };
773
773
  showArrow: {
774
774
  type: BooleanConstructor;
@@ -927,7 +927,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
927
927
  scrollToClose: boolean;
928
928
  scrollToCloseDistance: number;
929
929
  }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
930
- install: (app: import("vue").App, options?: import("../_utils/types").SDOptions) => void;
930
+ install: (app: import("vue").App, options?: import("../_utils/types.ts").SDOptions) => void;
931
931
  };
932
932
  SelectView: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
933
933
  modelValue: {
@@ -977,7 +977,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
977
977
  };
978
978
  allowSearch: {
979
979
  type: BooleanConstructor;
980
- default: (props: import("../_utils/types").Data) => boolean;
980
+ default: (props: import("../_utils/types.ts").Data) => boolean;
981
981
  };
982
982
  maxTagCount: {
983
983
  type: PropType<number | "responsive">;
@@ -1047,7 +1047,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1047
1047
  };
1048
1048
  allowSearch: {
1049
1049
  type: BooleanConstructor;
1050
- default: (props: import("../_utils/types").Data) => boolean;
1050
+ default: (props: import("../_utils/types.ts").Data) => boolean;
1051
1051
  };
1052
1052
  maxTagCount: {
1053
1053
  type: PropType<number | "responsive">;
@@ -1360,10 +1360,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1360
1360
  type: NumberConstructor;
1361
1361
  };
1362
1362
  options: {
1363
- type: PropType<Array<string | number | import("..").CheckboxOption>>;
1363
+ type: PropType<Array<string | number | import("../checkbox").CheckboxOption>>;
1364
1364
  };
1365
1365
  direction: {
1366
- type: PropType<import("..").Direction>;
1366
+ type: PropType<import("../index.ts").Direction>;
1367
1367
  default: string;
1368
1368
  };
1369
1369
  disabled: {
@@ -1386,10 +1386,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1386
1386
  type: NumberConstructor;
1387
1387
  };
1388
1388
  options: {
1389
- type: PropType<Array<string | number | import("..").CheckboxOption>>;
1389
+ type: PropType<Array<string | number | import("../checkbox").CheckboxOption>>;
1390
1390
  };
1391
1391
  direction: {
1392
- type: PropType<import("..").Direction>;
1392
+ type: PropType<import("../index.ts").Direction>;
1393
1393
  default: string;
1394
1394
  };
1395
1395
  disabled: {
@@ -1405,7 +1405,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1405
1405
  defaultValue: (string | number | boolean)[];
1406
1406
  modelValue: (string | number | boolean)[];
1407
1407
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1408
- install: (app: import("vue").App, options?: import("../_utils/types").SDOptions) => void;
1408
+ install: (app: import("vue").App, options?: import("../_utils/types.ts").SDOptions) => void;
1409
1409
  };
1410
1410
  }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1411
1411
  export default _default;
@@ -30,7 +30,7 @@ declare const Slider: {
30
30
  default: number;
31
31
  };
32
32
  direction: {
33
- type: import("vue").PropType<import("..").Direction>;
33
+ type: import("vue").PropType<import("../index.ts").Direction>;
34
34
  default: string;
35
35
  };
36
36
  disabled: {
@@ -106,7 +106,7 @@ declare const Slider: {
106
106
  default: number;
107
107
  };
108
108
  direction: {
109
- type: import("vue").PropType<import("..").Direction>;
109
+ type: import("vue").PropType<import("../index.ts").Direction>;
110
110
  default: string;
111
111
  };
112
112
  disabled: {
@@ -176,7 +176,7 @@ declare const Slider: {
176
176
  default: number;
177
177
  };
178
178
  direction: {
179
- type: import("vue").PropType<import("..").Direction>;
179
+ type: import("vue").PropType<import("../index.ts").Direction>;
180
180
  default: string;
181
181
  };
182
182
  disabled: {
@@ -1,13 +1,13 @@
1
1
  import { PropType } from 'vue';
2
- declare var __VLS_9: {}, __VLS_21: {}, __VLS_24: {}, __VLS_26: {};
2
+ declare var __VLS_9: {}, __VLS_20: {}, __VLS_23: {}, __VLS_25: {};
3
3
  type __VLS_Slots = {} & {
4
4
  first?: (props: typeof __VLS_9) => any;
5
5
  } & {
6
- 'resize-trigger'?: (props: typeof __VLS_21) => any;
6
+ 'resize-trigger'?: (props: typeof __VLS_20) => any;
7
7
  } & {
8
- 'resize-trigger-icon'?: (props: typeof __VLS_24) => any;
8
+ 'resize-trigger-icon'?: (props: typeof __VLS_23) => any;
9
9
  } & {
10
- second?: (props: typeof __VLS_26) => any;
10
+ second?: (props: typeof __VLS_25) => any;
11
11
  };
12
12
  declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
13
13
  component: {
@@ -115,8 +115,8 @@ var split_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
115
115
  const triggerSize = ref(0);
116
116
  const wrapperRef = ref();
117
117
  const prefixCls = getPrefixCls("split");
118
- const [size, setSize] = useMergeState(defaultSize.value, reactive({ value: propSize }));
119
- const sizeConfig = computed(() => getSizeConfig(size.value));
118
+ const [mergedSize, setMergedSize] = useMergeState(defaultSize.value, reactive({ value: propSize }));
119
+ const sizeConfig = computed(() => getSizeConfig(mergedSize.value));
120
120
  const isHorizontal = computed(() => direction.value === "horizontal");
121
121
  const classNames = computed(() => [prefixCls, {
122
122
  [`${prefixCls}-horizontal`]: isHorizontal.value,
@@ -149,8 +149,8 @@ var split_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
149
149
  function updateSize(newPxSize, containerSize) {
150
150
  if (!containerSize) return;
151
151
  const newSize = sizeConfig.value.isPx ? `${newPxSize}px` : px2percent(newPxSize, containerSize);
152
- if (size.value === newSize) return;
153
- setSize(newSize);
152
+ if (mergedSize.value === newSize) return;
153
+ setMergedSize(newSize);
154
154
  emit("update:size", newSize);
155
155
  }
156
156
  function getLegalPxSize(size, containerSize) {
@@ -210,7 +210,7 @@ var split_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
210
210
  record.startPageX = e.pageX;
211
211
  record.startPageY = e.pageY;
212
212
  record.startContainerSize = (_await$getContainerSi = yield getContainerSize()) !== null && _await$getContainerSi !== void 0 ? _await$getContainerSi : 0;
213
- record.startSize = size.value;
213
+ record.startSize = mergedSize.value;
214
214
  on(window, "mousemove", onMoving);
215
215
  on(window, "mouseup", onMovingEnd);
216
216
  on(window, "contextmenu", onMovingEnd);
@@ -225,7 +225,7 @@ var split_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
225
225
  onMounted(_asyncToGenerator(function* () {
226
226
  var _await$getContainerSi2;
227
227
  const containerSize = (_await$getContainerSi2 = yield getContainerSize()) !== null && _await$getContainerSi2 !== void 0 ? _await$getContainerSi2 : 0;
228
- updateSize(getLegalPxSize(size.value, containerSize), containerSize);
228
+ updateSize(getLegalPxSize(mergedSize.value, containerSize), containerSize);
229
229
  }));
230
230
  return (_ctx, _cache) => {
231
231
  return openBlock(), createBlock(resolveDynamicComponent(__props.component), {
@@ -11,11 +11,11 @@ declare const Steps: {
11
11
  default: string;
12
12
  };
13
13
  direction: {
14
- type: import("vue").PropType<import("..").Direction>;
14
+ type: import("vue").PropType<import("../index.ts").Direction>;
15
15
  default: string;
16
16
  };
17
17
  labelPlacement: {
18
- type: import("vue").PropType<import("..").Direction>;
18
+ type: import("vue").PropType<import("../index.ts").Direction>;
19
19
  default: string;
20
20
  };
21
21
  current: {
@@ -71,11 +71,11 @@ declare const Steps: {
71
71
  default: string;
72
72
  };
73
73
  direction: {
74
- type: import("vue").PropType<import("..").Direction>;
74
+ type: import("vue").PropType<import("../index.ts").Direction>;
75
75
  default: string;
76
76
  };
77
77
  labelPlacement: {
78
- type: import("vue").PropType<import("..").Direction>;
78
+ type: import("vue").PropType<import("../index.ts").Direction>;
79
79
  default: string;
80
80
  };
81
81
  current: {
@@ -125,11 +125,11 @@ declare const Steps: {
125
125
  default: string;
126
126
  };
127
127
  direction: {
128
- type: import("vue").PropType<import("..").Direction>;
128
+ type: import("vue").PropType<import("../index.ts").Direction>;
129
129
  default: string;
130
130
  };
131
131
  labelPlacement: {
132
- type: import("vue").PropType<import("..").Direction>;
132
+ type: import("vue").PropType<import("../index.ts").Direction>;
133
133
  default: string;
134
134
  };
135
135
  current: {
@@ -17,14 +17,14 @@ declare const Tabs: {
17
17
  default: string;
18
18
  };
19
19
  size: {
20
- type: import("vue").PropType<import("..").Size>;
20
+ type: import("vue").PropType<import("../index.ts").Size>;
21
21
  };
22
22
  type: {
23
23
  type: import("vue").PropType<import("./interface").TabsType>;
24
24
  default: string;
25
25
  };
26
26
  direction: {
27
- type: import("vue").PropType<import("..").Direction>;
27
+ type: import("vue").PropType<import("../index.ts").Direction>;
28
28
  default: string;
29
29
  };
30
30
  editable: {
@@ -121,14 +121,14 @@ declare const Tabs: {
121
121
  default: string;
122
122
  };
123
123
  size: {
124
- type: import("vue").PropType<import("..").Size>;
124
+ type: import("vue").PropType<import("../index.ts").Size>;
125
125
  };
126
126
  type: {
127
127
  type: import("vue").PropType<import("./interface").TabsType>;
128
128
  default: string;
129
129
  };
130
130
  direction: {
131
- type: import("vue").PropType<import("..").Direction>;
131
+ type: import("vue").PropType<import("../index.ts").Direction>;
132
132
  default: string;
133
133
  };
134
134
  editable: {
@@ -216,14 +216,14 @@ declare const Tabs: {
216
216
  default: string;
217
217
  };
218
218
  size: {
219
- type: import("vue").PropType<import("..").Size>;
219
+ type: import("vue").PropType<import("../index.ts").Size>;
220
220
  };
221
221
  type: {
222
222
  type: import("vue").PropType<import("./interface").TabsType>;
223
223
  default: string;
224
224
  };
225
225
  direction: {
226
- type: import("vue").PropType<import("..").Direction>;
226
+ type: import("vue").PropType<import("../index.ts").Direction>;
227
227
  default: string;
228
228
  };
229
229
  editable: {
package/es/tag/index.d.ts CHANGED
@@ -58,7 +58,7 @@ declare const Tag: {
58
58
  default: undefined;
59
59
  };
60
60
  ellipsisTooltip: {
61
- type: import("vue").PropType<boolean | import("..").EllipsisTooltipProps>;
61
+ type: import("vue").PropType<boolean | import("../index.ts").EllipsisTooltipProps>;
62
62
  default: boolean;
63
63
  };
64
64
  ellipsisPerformant: {
@@ -96,7 +96,7 @@ declare const Tag: {
96
96
  defaultChecked: boolean;
97
97
  ellipsisLineClamp: string | number;
98
98
  ellipsisExpandTrigger: "click";
99
- ellipsisTooltip: boolean | import("..").EllipsisTooltipProps;
99
+ ellipsisTooltip: boolean | import("../index.ts").EllipsisTooltipProps;
100
100
  ellipsisPerformant: boolean;
101
101
  textColor: string;
102
102
  backgroundAlpha: number;
@@ -163,7 +163,7 @@ declare const Tag: {
163
163
  default: undefined;
164
164
  };
165
165
  ellipsisTooltip: {
166
- type: import("vue").PropType<boolean | import("..").EllipsisTooltipProps>;
166
+ type: import("vue").PropType<boolean | import("../index.ts").EllipsisTooltipProps>;
167
167
  default: boolean;
168
168
  };
169
169
  ellipsisPerformant: {
@@ -196,7 +196,7 @@ declare const Tag: {
196
196
  defaultChecked: boolean;
197
197
  ellipsisLineClamp: string | number;
198
198
  ellipsisExpandTrigger: "click";
199
- ellipsisTooltip: boolean | import("..").EllipsisTooltipProps;
199
+ ellipsisTooltip: boolean | import("../index.ts").EllipsisTooltipProps;
200
200
  ellipsisPerformant: boolean;
201
201
  textColor: string;
202
202
  backgroundAlpha: number;
@@ -260,7 +260,7 @@ declare const Tag: {
260
260
  default: undefined;
261
261
  };
262
262
  ellipsisTooltip: {
263
- type: import("vue").PropType<boolean | import("..").EllipsisTooltipProps>;
263
+ type: import("vue").PropType<boolean | import("../index.ts").EllipsisTooltipProps>;
264
264
  default: boolean;
265
265
  };
266
266
  ellipsisPerformant: {
@@ -298,7 +298,7 @@ declare const Tag: {
298
298
  defaultChecked: boolean;
299
299
  ellipsisLineClamp: string | number;
300
300
  ellipsisExpandTrigger: "click";
301
- ellipsisTooltip: boolean | import("..").EllipsisTooltipProps;
301
+ ellipsisTooltip: boolean | import("../index.ts").EllipsisTooltipProps;
302
302
  ellipsisPerformant: boolean;
303
303
  textColor: string;
304
304
  backgroundAlpha: number;
@@ -1,6 +1,6 @@
1
1
  import type { PropType } from 'vue';
2
2
  import type { EllipsisTooltipProps } from '../ellipsis';
3
- declare var __VLS_1: {}, __VLS_9: {}, __VLS_12: {}, __VLS_14: {}, __VLS_25: {};
3
+ declare var __VLS_1: {}, __VLS_9: {}, __VLS_12: {}, __VLS_14: {}, __VLS_24: {};
4
4
  type __VLS_Slots = {} & {
5
5
  icon?: (props: typeof __VLS_1) => any;
6
6
  } & {
@@ -10,7 +10,7 @@ type __VLS_Slots = {} & {
10
10
  } & {
11
11
  default?: (props: typeof __VLS_14) => any;
12
12
  } & {
13
- 'close-icon'?: (props: typeof __VLS_25) => any;
13
+ 'close-icon'?: (props: typeof __VLS_24) => any;
14
14
  };
15
15
  declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
16
16
  color: {
@@ -238,9 +238,9 @@ var textarea_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineC
238
238
  });
239
239
  const getWrapperAttrs = (attr) => omit(attrs, INPUT_EVENTS);
240
240
  const getTextareaAttrs = (attr) => pick(attrs, INPUT_EVENTS);
241
- const textareaAttrs = getTextareaAttrs(attrs);
241
+ const rawTextareaAttrs = getTextareaAttrs(attrs);
242
242
  const mergeTextareaAttrs = computed(() => {
243
- const attrs = _objectSpread2(_objectSpread2({}, textareaAttrs), props.textareaAttrs);
243
+ const attrs = _objectSpread2(_objectSpread2({}, rawTextareaAttrs), props.textareaAttrs);
244
244
  if (mergedError.value) attrs["aria-invalid"] = true;
245
245
  return attrs;
246
246
  });
@@ -3,13 +3,13 @@ import type { SDOptions } from '../_utils/types';
3
3
  import _ThemeProvider from '../config-provider/theme-provider.vue';
4
4
  declare const ThemeProvider: {
5
5
  new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
6
- theme?: import("..").SDThemeConfig;
7
- themeMode?: import("..").SDThemeMode;
6
+ theme?: import("../index.ts").SDThemeConfig;
7
+ themeMode?: import("../index.ts").SDThemeMode;
8
8
  global?: boolean;
9
9
  tag?: string;
10
10
  }> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
11
11
  tag: string;
12
- themeMode: import("..").SDThemeMode;
12
+ themeMode: import("../index.ts").SDThemeMode;
13
13
  global: boolean;
14
14
  }, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
15
15
  P: {};
@@ -19,26 +19,26 @@ declare const ThemeProvider: {
19
19
  M: {};
20
20
  Defaults: {};
21
21
  }, Readonly<{
22
- theme?: import("..").SDThemeConfig;
23
- themeMode?: import("..").SDThemeMode;
22
+ theme?: import("../index.ts").SDThemeConfig;
23
+ themeMode?: import("../index.ts").SDThemeMode;
24
24
  global?: boolean;
25
25
  tag?: string;
26
26
  }> & Readonly<{}>, {}, {}, {}, {}, {
27
27
  tag: string;
28
- themeMode: import("..").SDThemeMode;
28
+ themeMode: import("../index.ts").SDThemeMode;
29
29
  global: boolean;
30
30
  }>;
31
31
  __isFragment?: never;
32
32
  __isTeleport?: never;
33
33
  __isSuspense?: never;
34
34
  } & import("vue").ComponentOptionsBase<Readonly<{
35
- theme?: import("..").SDThemeConfig;
36
- themeMode?: import("..").SDThemeMode;
35
+ theme?: import("../index.ts").SDThemeConfig;
36
+ themeMode?: import("../index.ts").SDThemeMode;
37
37
  global?: boolean;
38
38
  tag?: string;
39
39
  }> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
40
40
  tag: string;
41
- themeMode: import("..").SDThemeMode;
41
+ themeMode: import("../index.ts").SDThemeMode;
42
42
  global: boolean;
43
43
  }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
44
44
  $slots: {
@@ -34,7 +34,7 @@ declare const TimePicker: {
34
34
  type: import("vue").PropType<string | string[]>;
35
35
  };
36
36
  size: {
37
- type: import("vue").PropType<import("..").Size>;
37
+ type: import("vue").PropType<import("../index.ts").Size>;
38
38
  };
39
39
  popupContainer: {
40
40
  type: import("vue").PropType<string | HTMLElement>;
@@ -77,7 +77,7 @@ declare const TimePicker: {
77
77
  default: boolean;
78
78
  };
79
79
  triggerProps: {
80
- type: import("vue").PropType<import("..").TriggerProps>;
80
+ type: import("vue").PropType<import("../index.ts").TriggerProps>;
81
81
  };
82
82
  unmountOnClose: {
83
83
  type: BooleanConstructor;
@@ -149,7 +149,7 @@ declare const TimePicker: {
149
149
  type: import("vue").PropType<string | string[]>;
150
150
  };
151
151
  size: {
152
- type: import("vue").PropType<import("..").Size>;
152
+ type: import("vue").PropType<import("../index.ts").Size>;
153
153
  };
154
154
  popupContainer: {
155
155
  type: import("vue").PropType<string | HTMLElement>;
@@ -192,7 +192,7 @@ declare const TimePicker: {
192
192
  default: boolean;
193
193
  };
194
194
  triggerProps: {
195
- type: import("vue").PropType<import("..").TriggerProps>;
195
+ type: import("vue").PropType<import("../index.ts").TriggerProps>;
196
196
  };
197
197
  unmountOnClose: {
198
198
  type: BooleanConstructor;
@@ -254,7 +254,7 @@ declare const TimePicker: {
254
254
  type: import("vue").PropType<string | string[]>;
255
255
  };
256
256
  size: {
257
- type: import("vue").PropType<import("..").Size>;
257
+ type: import("vue").PropType<import("../index.ts").Size>;
258
258
  };
259
259
  popupContainer: {
260
260
  type: import("vue").PropType<string | HTMLElement>;
@@ -297,7 +297,7 @@ declare const TimePicker: {
297
297
  default: boolean;
298
298
  };
299
299
  triggerProps: {
300
- type: import("vue").PropType<import("..").TriggerProps>;
300
+ type: import("vue").PropType<import("../index.ts").TriggerProps>;
301
301
  };
302
302
  unmountOnClose: {
303
303
  type: BooleanConstructor;
@@ -1,13 +1,13 @@
1
1
  import { PropType } from 'vue';
2
2
  import { Size } from '../_utils/constant';
3
3
  import { TriggerProps } from '../trigger';
4
- declare var __VLS_21: {}, __VLS_24: {}, __VLS_42: {};
4
+ declare var __VLS_21: {}, __VLS_24: {}, __VLS_41: {};
5
5
  type __VLS_Slots = {} & {
6
6
  prefix?: (props: typeof __VLS_21) => any;
7
7
  } & {
8
8
  'suffix-icon'?: (props: typeof __VLS_24) => any;
9
9
  } & {
10
- extra?: (props: typeof __VLS_42) => any;
10
+ extra?: (props: typeof __VLS_41) => any;
11
11
  };
12
12
  declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
13
13
  type: {