@sdata/web-vue 3.19.0 → 3.21.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 (75) hide show
  1. package/dist/sd.css +11 -0
  2. package/dist/sd.min.css +1 -1
  3. package/es/basic-crud-table/basic-crud-table.vue_vue_type_script_setup_true_lang.js +6 -4
  4. package/es/basic-crud-table/types.d.ts +2 -0
  5. package/es/card/card.d.ts +22 -0
  6. package/es/card/card.js +11 -2
  7. package/es/card/index.d.ts +39 -0
  8. package/es/cascader/base-cascader-panel.d.ts +3 -0
  9. package/es/cascader/base-cascader-panel.js +2 -1
  10. package/es/cascader/cascader-search-panel.d.ts +3 -0
  11. package/es/cascader/cascader-search-panel.js +2 -1
  12. package/es/cascader/cascader.vue.d.ts +20 -8
  13. package/es/cascader/cascader.vue_vue_type_script_setup_true_lang.js +42 -4
  14. package/es/cascader/index.d.ts +1 -1
  15. package/es/cascader/types.d.ts +13 -0
  16. package/es/color-picker/color-picker.js +13 -1
  17. package/es/color-picker/index.d.ts +1 -1
  18. package/es/color-picker/interface.d.ts +10 -0
  19. package/es/config-provider/config-provider.vue.d.ts +67 -0
  20. package/es/config-provider/config-provider.vue_vue_type_script_setup_true_lang.js +67 -1
  21. package/es/config-provider/context.d.ts +12 -0
  22. package/es/config-provider/index.d.ts +99 -0
  23. package/es/date-picker/index.d.ts +12 -1
  24. package/es/date-picker/interface.d.ts +19 -0
  25. package/es/date-picker/picker.vue.d.ts +23 -13
  26. package/es/date-picker/picker.vue_vue_type_script_setup_true_lang.js +23 -2
  27. package/es/date-picker/range-picker.vue.d.ts +25 -14
  28. package/es/date-picker/range-picker.vue_vue_type_script_setup_true_lang.js +21 -2
  29. package/es/drawer/drawer.vue_vue_type_script_setup_true_lang.js +1 -1
  30. package/es/index.css +11 -0
  31. package/es/index.d.ts +2 -2
  32. package/es/list/index.d.ts +9 -0
  33. package/es/list/list.d.ts +7 -0
  34. package/es/list/list.js +8 -2
  35. package/es/modal/modal.vue_vue_type_script_setup_true_lang.js +1 -1
  36. package/es/qr-code/index.d.ts +18 -12
  37. package/es/qr-code/qr-code.vue.d.ts +5 -3
  38. package/es/qr-code/qr-code.vue_vue_type_script_setup_true_lang.js +5 -2
  39. package/es/select/index.d.ts +10 -1
  40. package/es/select/interface.d.ts +10 -0
  41. package/es/select/select-dropdown.vue.d.ts +3 -0
  42. package/es/select/select-dropdown.vue_vue_type_script_setup_true_lang.js +2 -4
  43. package/es/select/select.d.ts +7 -0
  44. package/es/select/select.js +30 -2
  45. package/es/sender/index.d.ts +1 -1
  46. package/es/sender/sender.vue_vue_type_script_setup_true_lang.js +117 -93
  47. package/es/sender/style/index.css +11 -0
  48. package/es/sender/style/index.scss +13 -0
  49. package/es/sender/types.d.ts +60 -3
  50. package/es/sender/use-speech.d.ts +12 -2
  51. package/es/sender/use-speech.js +293 -75
  52. package/es/spin/index.d.ts +15 -0
  53. package/es/spin/spin.d.ts +9 -0
  54. package/es/spin/spin.js +72 -10
  55. package/es/table/index.d.ts +51 -6
  56. package/es/table/interface.d.ts +3 -0
  57. package/es/table/table.d.ts +22 -3
  58. package/es/table/table.js +7 -2
  59. package/es/time-picker/index.d.ts +12 -1
  60. package/es/time-picker/interface.d.ts +10 -0
  61. package/es/time-picker/time-picker.vue.d.ts +15 -4
  62. package/es/time-picker/time-picker.vue_vue_type_script_setup_true_lang.js +22 -2
  63. package/es/timeline/index.d.ts +39 -0
  64. package/es/timeline/timeline.d.ts +22 -0
  65. package/es/timeline/timeline.js +11 -2
  66. package/es/toolbar/toolbar.vue_vue_type_script_setup_true_lang.js +9 -5
  67. package/es/toolbar/types.d.ts +2 -0
  68. package/es/tree-select/index.d.ts +1 -1
  69. package/es/tree-select/interface.d.ts +10 -0
  70. package/es/tree-select/tree-select.vue.d.ts +17 -1
  71. package/es/tree-select/tree-select.vue_vue_type_script_setup_true_lang.js +27 -2
  72. package/json/vetur-attributes.json +63 -3
  73. package/json/vetur-tags.json +20 -0
  74. package/json/web-types.json +163 -3
  75. package/package.json +1 -1
@@ -38,9 +38,12 @@ declare const Table: {
38
38
  default: boolean;
39
39
  };
40
40
  loading: {
41
- type: (ObjectConstructor | BooleanConstructor)[];
41
+ type: import("vue").PropType<boolean | import("..").SpinProps>;
42
42
  default: boolean;
43
43
  };
44
+ spinProps: {
45
+ type: import("vue").PropType<import("..").SpinProps>;
46
+ };
44
47
  rowSelection: {
45
48
  type: import("vue").PropType<import("./interface").TableRowSelection>;
46
49
  };
@@ -239,7 +242,19 @@ declare const Table: {
239
242
  size: "small" | "medium" | "large" | "mini";
240
243
  scrollbar: boolean | import("..").ScrollbarProps;
241
244
  data: import("./interface").TableData[];
242
- loading: boolean | Record<string, any>;
245
+ loading: boolean | (Partial<{
246
+ dot: boolean;
247
+ loading: boolean;
248
+ delay: number | boolean;
249
+ hideIcon: boolean;
250
+ }> & Omit<{
251
+ readonly dot: boolean;
252
+ readonly loading: boolean;
253
+ readonly delay: number | boolean;
254
+ readonly hideIcon: boolean;
255
+ readonly size?: number | undefined;
256
+ readonly tip?: string | undefined;
257
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "dot" | "loading" | "delay" | "hideIcon">);
243
258
  bordered: boolean | import("./interface").TableBorder;
244
259
  columns: import("./interface").TableColumnData[];
245
260
  hoverable: boolean;
@@ -295,9 +310,12 @@ declare const Table: {
295
310
  default: boolean;
296
311
  };
297
312
  loading: {
298
- type: (ObjectConstructor | BooleanConstructor)[];
313
+ type: import("vue").PropType<boolean | import("..").SpinProps>;
299
314
  default: boolean;
300
315
  };
316
+ spinProps: {
317
+ type: import("vue").PropType<import("..").SpinProps>;
318
+ };
301
319
  rowSelection: {
302
320
  type: import("vue").PropType<import("./interface").TableRowSelection>;
303
321
  };
@@ -473,7 +491,19 @@ declare const Table: {
473
491
  size: "small" | "medium" | "large" | "mini";
474
492
  scrollbar: boolean | import("..").ScrollbarProps;
475
493
  data: import("./interface").TableData[];
476
- loading: boolean | Record<string, any>;
494
+ loading: boolean | (Partial<{
495
+ dot: boolean;
496
+ loading: boolean;
497
+ delay: number | boolean;
498
+ hideIcon: boolean;
499
+ }> & Omit<{
500
+ readonly dot: boolean;
501
+ readonly loading: boolean;
502
+ readonly delay: number | boolean;
503
+ readonly hideIcon: boolean;
504
+ readonly size?: number | undefined;
505
+ readonly tip?: string | undefined;
506
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "dot" | "loading" | "delay" | "hideIcon">);
477
507
  bordered: boolean | import("./interface").TableBorder;
478
508
  columns: import("./interface").TableColumnData[];
479
509
  hoverable: boolean;
@@ -526,9 +556,12 @@ declare const Table: {
526
556
  default: boolean;
527
557
  };
528
558
  loading: {
529
- type: (ObjectConstructor | BooleanConstructor)[];
559
+ type: import("vue").PropType<boolean | import("..").SpinProps>;
530
560
  default: boolean;
531
561
  };
562
+ spinProps: {
563
+ type: import("vue").PropType<import("..").SpinProps>;
564
+ };
532
565
  rowSelection: {
533
566
  type: import("vue").PropType<import("./interface").TableRowSelection>;
534
567
  };
@@ -727,7 +760,19 @@ declare const Table: {
727
760
  size: "small" | "medium" | "large" | "mini";
728
761
  scrollbar: boolean | import("..").ScrollbarProps;
729
762
  data: import("./interface").TableData[];
730
- loading: boolean | Record<string, any>;
763
+ loading: boolean | (Partial<{
764
+ dot: boolean;
765
+ loading: boolean;
766
+ delay: number | boolean;
767
+ hideIcon: boolean;
768
+ }> & Omit<{
769
+ readonly dot: boolean;
770
+ readonly loading: boolean;
771
+ readonly delay: number | boolean;
772
+ readonly hideIcon: boolean;
773
+ readonly size?: number | undefined;
774
+ readonly tip?: string | undefined;
775
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "dot" | "loading" | "delay" | "hideIcon">);
731
776
  bordered: boolean | import("./interface").TableBorder;
732
777
  columns: import("./interface").TableColumnData[];
733
778
  hoverable: boolean;
@@ -1,6 +1,7 @@
1
1
  import type { Simplify } from 'type-fest';
2
2
  import { CSSProperties, RenderFunction, Slots, VNodeChild } from 'vue';
3
3
  import type { FloatingOptions } from '../_utils/floating';
4
+ import type { SpinProps } from '../spin';
4
5
  import { BaseType, ClassName, Data } from '../_utils/types';
5
6
  import { TriggerProps } from '../trigger';
6
7
  export declare const TABLE_PAGE_POSITION: readonly ["tl", "top", "tr", "bl", "bottom", "br"];
@@ -154,6 +155,8 @@ export interface TableProps {
154
155
  expandable?: TableExpandable;
155
156
  pagination?: boolean | Data;
156
157
  pagePosition?: string;
158
+ loading?: boolean | SpinProps;
159
+ spinProps?: SpinProps;
157
160
  }
158
161
  export type TableRowKey = string | ((record: TableData) => BaseType);
159
162
  export type TableSpanMethodContext = Simplify<{
@@ -2,6 +2,7 @@ import type { PropType } from 'vue';
2
2
  import type { ScrollIntoViewOptions, VirtualListProps } from '../_components/virtual-list/interface';
3
3
  import type { Size } from '../_utils/constant';
4
4
  import type { BaseType } from '../_utils/types';
5
+ import type { SpinProps } from '../spin';
5
6
  import type { TableBorder, TableChangeExtra, TableColumnData, TableComponents, TableData, TableDraggable, TableExpandable, TableOperationColumn, TablePagePosition, TableRowSelection } from './interface';
6
7
  import { PaginationProps } from '../pagination';
7
8
  import { ScrollbarProps } from '../scrollbar';
@@ -35,9 +36,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
35
36
  default: boolean;
36
37
  };
37
38
  loading: {
38
- type: (ObjectConstructor | BooleanConstructor)[];
39
+ type: PropType<boolean | SpinProps>;
39
40
  default: boolean;
40
41
  };
42
+ spinProps: {
43
+ type: PropType<SpinProps>;
44
+ };
41
45
  rowSelection: {
42
46
  type: PropType<TableRowSelection>;
43
47
  };
@@ -239,9 +243,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
239
243
  default: boolean;
240
244
  };
241
245
  loading: {
242
- type: (ObjectConstructor | BooleanConstructor)[];
246
+ type: PropType<boolean | SpinProps>;
243
247
  default: boolean;
244
248
  };
249
+ spinProps: {
250
+ type: PropType<SpinProps>;
251
+ };
245
252
  rowSelection: {
246
253
  type: PropType<TableRowSelection>;
247
254
  };
@@ -396,7 +403,19 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
396
403
  size: "small" | "medium" | "large" | "mini";
397
404
  scrollbar: boolean | ScrollbarProps;
398
405
  data: TableData[];
399
- loading: boolean | Record<string, any>;
406
+ loading: boolean | (Partial<{
407
+ dot: boolean;
408
+ loading: boolean;
409
+ delay: number | boolean;
410
+ hideIcon: boolean;
411
+ }> & Omit<{
412
+ readonly dot: boolean;
413
+ readonly loading: boolean;
414
+ readonly delay: number | boolean;
415
+ readonly hideIcon: boolean;
416
+ readonly size?: number | undefined;
417
+ readonly tip?: string | undefined;
418
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "dot" | "loading" | "delay" | "hideIcon">);
400
419
  bordered: boolean | TableBorder;
401
420
  columns: TableColumnData[];
402
421
  hoverable: boolean;
package/es/table/table.js CHANGED
@@ -139,6 +139,11 @@ var table_default = /* @__PURE__ */ defineComponent({
139
139
  default: false
140
140
  },
141
141
  /**
142
+ * @zh 传递给加载中 Spin 的属性
143
+ * @en Props passed to the loading Spin
144
+ */
145
+ spinProps: { type: Object },
146
+ /**
142
147
  * @zh 表格的行选择器配置
143
148
  * @en Table row selector configuration
144
149
  */
@@ -1121,7 +1126,7 @@ var table_default = /* @__PURE__ */ defineComponent({
1121
1126
  hasScrollBar.value = isTbodyHasScrollBar();
1122
1127
  getThWidth();
1123
1128
  });
1124
- const spinProps = computed(() => isObject(props.loading) ? props.loading : { loading: props.loading });
1129
+ const mergedSpinProps = computed(() => _objectSpread2(_objectSpread2(_objectSpread2({}, configCtx === null || configCtx === void 0 ? void 0 : configCtx.tableSpinProps), props.spinProps), isObject(props.loading) ? props.loading : { loading: props.loading }));
1125
1130
  const renderEmpty = () => {
1126
1131
  return createVNode(table_tr_default, { "empty": true }, { default: () => [createVNode(table_td_default, { "colSpan": dataColumns.value.length + operations.value.length }, { default: () => {
1127
1132
  var _ref2, _slots$empty, _slots$empty2, _configCtx$slots, _configCtx$slots$empt;
@@ -1513,7 +1518,7 @@ var table_default = /* @__PURE__ */ defineComponent({
1513
1518
  "class": cls.value,
1514
1519
  "style": style.value,
1515
1520
  "role": "table"
1516
- }, [children.value, createVNode(Spin, spinProps.value, { default: () => [
1521
+ }, [children.value, createVNode(Spin, mergedSpinProps.value, { default: () => [
1517
1522
  props.pagination !== false && (flattenData.value.length > 0 || sortedData.value.length > 0) && isPaginationTop.value && renderPagination(),
1518
1523
  renderTable(),
1519
1524
  props.pagination !== false && (flattenData.value.length > 0 || sortedData.value.length > 0) && !isPaginationTop.value && renderPagination()
@@ -368,6 +368,17 @@ declare const TimePicker: {
368
368
  hideDisabledOptions: boolean;
369
369
  }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
370
370
  $slots: {
371
+ trigger?: (props: {
372
+ value: string | (string | undefined)[] | undefined;
373
+ date: Date | (Date | undefined)[] | undefined;
374
+ displayValue: string | (string | undefined)[];
375
+ inputValue: string | (string | undefined)[] | undefined;
376
+ popupVisible: boolean;
377
+ disabled: boolean;
378
+ readonly: boolean;
379
+ range: boolean;
380
+ }) => any;
381
+ } & {
371
382
  prefix?: (props: {}) => any;
372
383
  } & {
373
384
  'suffix-icon'?: (props: {}) => any;
@@ -378,5 +389,5 @@ declare const TimePicker: {
378
389
  install: (app: App, options?: SDOptions) => void;
379
390
  };
380
391
  export type TimePickerInstance = InstanceType<typeof _TimePicker>;
381
- export type { TimeValue } from './interface';
392
+ export type { TimePickerTriggerSlotProps, TimeValue } from './interface';
382
393
  export default TimePicker;
@@ -1,5 +1,15 @@
1
1
  import { Dayjs } from 'dayjs';
2
2
  export type TimeValue = Date | string | number;
3
+ export interface TimePickerTriggerSlotProps {
4
+ value: string | Array<string | undefined> | undefined;
5
+ date: Date | Array<Date | undefined> | undefined;
6
+ displayValue: string | Array<string | undefined>;
7
+ inputValue: string | Array<string | undefined> | undefined;
8
+ popupVisible: boolean;
9
+ disabled: boolean;
10
+ readonly: boolean;
11
+ range: boolean;
12
+ }
3
13
  export interface BasePanelProps {
4
14
  disableConfirm: boolean;
5
15
  use12Hours: boolean;
@@ -2,13 +2,24 @@ import { PropType } from 'vue';
2
2
  import type { FloatingOptions } from '../_utils/floating';
3
3
  import { Size } from '../_utils/constant';
4
4
  import { TriggerProps } from '../trigger';
5
- declare var __VLS_21: {}, __VLS_24: {}, __VLS_42: {};
5
+ declare var __VLS_10: {
6
+ value: string | (string | undefined)[] | undefined;
7
+ date: Date | (Date | undefined)[] | undefined;
8
+ displayValue: string | (string | undefined)[];
9
+ inputValue: string | (string | undefined)[] | undefined;
10
+ popupVisible: boolean;
11
+ disabled: boolean;
12
+ readonly: boolean;
13
+ range: boolean;
14
+ }, __VLS_23: {}, __VLS_26: {}, __VLS_44: {};
6
15
  type __VLS_Slots = {} & {
7
- prefix?: (props: typeof __VLS_21) => any;
16
+ trigger?: (props: typeof __VLS_10) => any;
17
+ } & {
18
+ prefix?: (props: typeof __VLS_23) => any;
8
19
  } & {
9
- 'suffix-icon'?: (props: typeof __VLS_24) => any;
20
+ 'suffix-icon'?: (props: typeof __VLS_26) => any;
10
21
  } & {
11
- extra?: (props: typeof __VLS_42) => any;
22
+ extra?: (props: typeof __VLS_44) => any;
12
23
  };
13
24
  declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
14
25
  type: {
@@ -201,6 +201,11 @@ var time_picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
201
201
  const props = __props;
202
202
  const emit = __emit;
203
203
  /**
204
+ * @zh 自定义触发元素
205
+ * @en Custom trigger element
206
+ * @slot trigger
207
+ */
208
+ /**
204
209
  * @zh 输入框前缀
205
210
  * @en Input box prefix
206
211
  * @slot prefix
@@ -236,6 +241,12 @@ var time_picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
236
241
  isRange,
237
242
  format: computedFormat
238
243
  }));
244
+ const triggerValue = computed(() => getFormattedValue(computedValue.value, computedFormat.value));
245
+ const triggerDate = computed(() => getDateValue(computedValue.value));
246
+ const triggerDisplayValue = computed(() => {
247
+ var _triggerValue$value;
248
+ return (_triggerValue$value = triggerValue.value) !== null && _triggerValue$value !== void 0 ? _triggerValue$value : isRange.value ? [] : "";
249
+ });
239
250
  const [panelVisible, setLocalVisible] = useMergeState(defaultPopupVisible.value, reactive({ value: popupVisible }));
240
251
  const setPanelVisible = (newVisible) => {
241
252
  if (newVisible !== panelVisible.value) {
@@ -438,7 +449,16 @@ var time_picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
438
449
  "hide-disabled-options",
439
450
  "hide-footer"
440
451
  ]))], 2)]),
441
- default: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent(InputComponent.value), mergeProps(_objectSpread2(_objectSpread2({}, _ctx.$attrs), inputProps.value), {
452
+ default: withCtx(() => [renderSlot(_ctx.$slots, "trigger", {
453
+ value: triggerValue.value,
454
+ date: triggerDate.value,
455
+ displayValue: triggerDisplayValue.value,
456
+ inputValue: unref(inputValue),
457
+ popupVisible: unref(panelVisible),
458
+ disabled: unref(mergedDisabled),
459
+ readonly: Boolean(__props.readonly),
460
+ range: isRange.value
461
+ }, () => [(openBlock(), createBlock(resolveDynamicComponent(InputComponent.value), mergeProps(_objectSpread2(_objectSpread2({}, _ctx.$attrs), inputProps.value), {
442
462
  ref_key: "refInput",
443
463
  ref: refInput,
444
464
  "input-value": unref(inputValue),
@@ -483,7 +503,7 @@ var time_picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
483
503
  "fit-width-fallback",
484
504
  "fit-width-fallback-text",
485
505
  "onClear"
486
- ]))]),
506
+ ]))])]),
487
507
  _: 3
488
508
  }, 16, [
489
509
  "position",
@@ -19,6 +19,9 @@ declare const Timeline: {
19
19
  pending: {
20
20
  type: (StringConstructor | BooleanConstructor)[];
21
21
  };
22
+ spinProps: {
23
+ type: import("vue").PropType<import("../index.ts").SpinProps>;
24
+ };
22
25
  labelPosition: {
23
26
  type: import("vue").PropType<import("./interface").LabelPositionType>;
24
27
  default: string;
@@ -130,6 +133,10 @@ declare const Timeline: {
130
133
  type: NumberConstructor;
131
134
  };
132
135
  loading: BooleanConstructor;
136
+ delay: {
137
+ type: (BooleanConstructor | NumberConstructor)[];
138
+ default: boolean;
139
+ };
133
140
  dot: BooleanConstructor;
134
141
  tip: StringConstructor;
135
142
  hideIcon: {
@@ -139,6 +146,7 @@ declare const Timeline: {
139
146
  }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
140
147
  dot: boolean;
141
148
  loading: boolean;
149
+ delay: number | boolean;
142
150
  hideIcon: boolean;
143
151
  }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
144
152
  P: {};
@@ -152,6 +160,10 @@ declare const Timeline: {
152
160
  type: NumberConstructor;
153
161
  };
154
162
  loading: BooleanConstructor;
163
+ delay: {
164
+ type: (BooleanConstructor | NumberConstructor)[];
165
+ default: boolean;
166
+ };
155
167
  dot: BooleanConstructor;
156
168
  tip: StringConstructor;
157
169
  hideIcon: {
@@ -161,6 +173,7 @@ declare const Timeline: {
161
173
  }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
162
174
  dot: boolean;
163
175
  loading: boolean;
176
+ delay: number | boolean;
164
177
  hideIcon: boolean;
165
178
  }>;
166
179
  __isFragment?: never;
@@ -171,6 +184,10 @@ declare const Timeline: {
171
184
  type: NumberConstructor;
172
185
  };
173
186
  loading: BooleanConstructor;
187
+ delay: {
188
+ type: (BooleanConstructor | NumberConstructor)[];
189
+ default: boolean;
190
+ };
174
191
  dot: BooleanConstructor;
175
192
  tip: StringConstructor;
176
193
  hideIcon: {
@@ -180,6 +197,7 @@ declare const Timeline: {
180
197
  }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
181
198
  dot: boolean;
182
199
  loading: boolean;
200
+ delay: number | boolean;
183
201
  hideIcon: boolean;
184
202
  }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
185
203
  install: (app: App, options?: SDOptions) => void;
@@ -206,6 +224,9 @@ declare const Timeline: {
206
224
  pending: {
207
225
  type: (StringConstructor | BooleanConstructor)[];
208
226
  };
227
+ spinProps: {
228
+ type: import("vue").PropType<import("../index.ts").SpinProps>;
229
+ };
209
230
  labelPosition: {
210
231
  type: import("vue").PropType<import("./interface").LabelPositionType>;
211
232
  default: string;
@@ -234,6 +255,9 @@ declare const Timeline: {
234
255
  pending: {
235
256
  type: (StringConstructor | BooleanConstructor)[];
236
257
  };
258
+ spinProps: {
259
+ type: import("vue").PropType<import("../index.ts").SpinProps>;
260
+ };
237
261
  labelPosition: {
238
262
  type: import("vue").PropType<import("./interface").LabelPositionType>;
239
263
  default: string;
@@ -345,6 +369,10 @@ declare const Timeline: {
345
369
  type: NumberConstructor;
346
370
  };
347
371
  loading: BooleanConstructor;
372
+ delay: {
373
+ type: (BooleanConstructor | NumberConstructor)[];
374
+ default: boolean;
375
+ };
348
376
  dot: BooleanConstructor;
349
377
  tip: StringConstructor;
350
378
  hideIcon: {
@@ -354,6 +382,7 @@ declare const Timeline: {
354
382
  }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
355
383
  dot: boolean;
356
384
  loading: boolean;
385
+ delay: number | boolean;
357
386
  hideIcon: boolean;
358
387
  }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
359
388
  P: {};
@@ -367,6 +396,10 @@ declare const Timeline: {
367
396
  type: NumberConstructor;
368
397
  };
369
398
  loading: BooleanConstructor;
399
+ delay: {
400
+ type: (BooleanConstructor | NumberConstructor)[];
401
+ default: boolean;
402
+ };
370
403
  dot: BooleanConstructor;
371
404
  tip: StringConstructor;
372
405
  hideIcon: {
@@ -376,6 +409,7 @@ declare const Timeline: {
376
409
  }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
377
410
  dot: boolean;
378
411
  loading: boolean;
412
+ delay: number | boolean;
379
413
  hideIcon: boolean;
380
414
  }>;
381
415
  __isFragment?: never;
@@ -386,6 +420,10 @@ declare const Timeline: {
386
420
  type: NumberConstructor;
387
421
  };
388
422
  loading: BooleanConstructor;
423
+ delay: {
424
+ type: (BooleanConstructor | NumberConstructor)[];
425
+ default: boolean;
426
+ };
389
427
  dot: BooleanConstructor;
390
428
  tip: StringConstructor;
391
429
  hideIcon: {
@@ -395,6 +433,7 @@ declare const Timeline: {
395
433
  }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
396
434
  dot: boolean;
397
435
  loading: boolean;
436
+ delay: number | boolean;
398
437
  hideIcon: boolean;
399
438
  }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
400
439
  install: (app: App, options?: SDOptions) => void;
@@ -1,4 +1,5 @@
1
1
  import { PropType } from 'vue';
2
+ import type { SpinProps } from '../spin';
2
3
  import type { ModeType, LabelPositionType } from './interface';
3
4
  import { Direction } from '../_utils/constant';
4
5
  declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
@@ -16,6 +17,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
16
17
  pending: {
17
18
  type: (StringConstructor | BooleanConstructor)[];
18
19
  };
20
+ spinProps: {
21
+ type: PropType<SpinProps>;
22
+ };
19
23
  labelPosition: {
20
24
  type: PropType<LabelPositionType>;
21
25
  default: string;
@@ -35,6 +39,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
35
39
  pending: {
36
40
  type: (StringConstructor | BooleanConstructor)[];
37
41
  };
42
+ spinProps: {
43
+ type: PropType<SpinProps>;
44
+ };
38
45
  labelPosition: {
39
46
  type: PropType<LabelPositionType>;
40
47
  default: string;
@@ -146,6 +153,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
146
153
  type: NumberConstructor;
147
154
  };
148
155
  loading: BooleanConstructor;
156
+ delay: {
157
+ type: (BooleanConstructor | NumberConstructor)[];
158
+ default: boolean;
159
+ };
149
160
  dot: BooleanConstructor;
150
161
  tip: StringConstructor;
151
162
  hideIcon: {
@@ -155,6 +166,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
155
166
  }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
156
167
  dot: boolean;
157
168
  loading: boolean;
169
+ delay: number | boolean;
158
170
  hideIcon: boolean;
159
171
  }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
160
172
  P: {};
@@ -168,6 +180,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
168
180
  type: NumberConstructor;
169
181
  };
170
182
  loading: BooleanConstructor;
183
+ delay: {
184
+ type: (BooleanConstructor | NumberConstructor)[];
185
+ default: boolean;
186
+ };
171
187
  dot: BooleanConstructor;
172
188
  tip: StringConstructor;
173
189
  hideIcon: {
@@ -177,6 +193,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
177
193
  }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
178
194
  dot: boolean;
179
195
  loading: boolean;
196
+ delay: number | boolean;
180
197
  hideIcon: boolean;
181
198
  }>;
182
199
  __isFragment?: never;
@@ -187,6 +204,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
187
204
  type: NumberConstructor;
188
205
  };
189
206
  loading: BooleanConstructor;
207
+ delay: {
208
+ type: (BooleanConstructor | NumberConstructor)[];
209
+ default: boolean;
210
+ };
190
211
  dot: BooleanConstructor;
191
212
  tip: StringConstructor;
192
213
  hideIcon: {
@@ -196,6 +217,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
196
217
  }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
197
218
  dot: boolean;
198
219
  loading: boolean;
220
+ delay: number | boolean;
199
221
  hideIcon: boolean;
200
222
  }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
201
223
  install: (app: import("vue").App, options?: import("../_utils/types.ts").SDOptions) => void;
@@ -1,9 +1,11 @@
1
+ import { configProviderInjectionKey } from "../config-provider/context.js";
2
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
1
3
  import { getPrefixCls } from "../_utils/global-config.js";
2
4
  import Spin from "../spin/index.js";
3
5
  import { useChildrenComponents } from "../_hooks/use-children-components.js";
4
6
  import { timelineInjectionKey } from "./context.js";
5
7
  import item_default from "./item.js";
6
- import { computed, createVNode, defineComponent, provide, reactive, toRefs } from "vue";
8
+ import { computed, createVNode, defineComponent, inject, mergeProps, provide, reactive, toRefs } from "vue";
7
9
  //#region components/timeline/timeline.tsx
8
10
  var timeline_default = /* @__PURE__ */ defineComponent({
9
11
  name: "Timeline",
@@ -41,6 +43,11 @@ var timeline_default = /* @__PURE__ */ defineComponent({
41
43
  */
42
44
  pending: { type: [Boolean, String] },
43
45
  /**
46
+ * @zh 传递给幽灵节点 Spin 的属性
47
+ * @en Props passed to the pending node Spin
48
+ */
49
+ spinProps: { type: Object },
50
+ /**
44
51
  * @zh 设置标签文本的位置
45
52
  * @en Position of label text
46
53
  * @values 'relative', 'same'
@@ -56,6 +63,8 @@ var timeline_default = /* @__PURE__ */ defineComponent({
56
63
  * @slot dot
57
64
  */
58
65
  setup(props, { slots }) {
66
+ const configCtx = inject(configProviderInjectionKey, void 0);
67
+ const mergedSpinProps = computed(() => _objectSpread2(_objectSpread2({}, configCtx === null || configCtx === void 0 ? void 0 : configCtx.timelineSpinProps), props.spinProps));
59
68
  const prefixCls = getPrefixCls("timeline");
60
69
  const hasPending = computed(() => {
61
70
  return props.pending || slots.pending;
@@ -84,7 +93,7 @@ var timeline_default = /* @__PURE__ */ defineComponent({
84
93
  default: () => [props.pending !== true && createVNode("div", null, [props.pending])],
85
94
  dot: () => {
86
95
  var _slots$dot, _slots$dot2;
87
- return (_slots$dot = (_slots$dot2 = slots.dot) === null || _slots$dot2 === void 0 ? void 0 : _slots$dot2.call(slots)) !== null && _slots$dot !== void 0 ? _slots$dot : createVNode(Spin, { "size": 12 }, null);
96
+ return (_slots$dot = (_slots$dot2 = slots.dot) === null || _slots$dot2 === void 0 ? void 0 : _slots$dot2.call(slots)) !== null && _slots$dot !== void 0 ? _slots$dot : createVNode(Spin, mergeProps({ "size": 12 }, mergedSpinProps.value), null);
88
97
  }
89
98
  }));
90
99
  } else {
@@ -1,3 +1,4 @@
1
+ import { configProviderInjectionKey } from "../config-provider/context.js";
1
2
  import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
2
3
  import { getPrefixCls } from "../_utils/global-config.js";
3
4
  import { useResizeObserver } from "../_hooks/use-resize-observer.js";
@@ -6,7 +7,7 @@ import Spin from "../spin/index.js";
6
7
  import Link from "../link/index.js";
7
8
  import IconDown from "../icon/icon-down/index.js";
8
9
  import JsonForm from "../json-form/index.js";
9
- import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, guardReactiveProps, mergeModels, normalizeClass, normalizeProps, normalizeStyle, onBeforeUnmount, onMounted, openBlock, ref, renderList, renderSlot, toDisplayString, unref, useModel, withCtx, withKeys } from "vue";
10
+ import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, guardReactiveProps, inject, mergeModels, mergeProps, normalizeClass, normalizeProps, normalizeStyle, onBeforeUnmount, onMounted, openBlock, ref, renderList, renderSlot, toDisplayString, unref, useModel, withCtx, withKeys } from "vue";
10
11
  import { cloneDeep, omit } from "es-toolkit";
11
12
  //#region components/toolbar/toolbar.vue?vue&type=script&setup=true&lang.ts
12
13
  var toolbar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent(_objectSpread2(_objectSpread2({}, { name: "Toolbar" }), {}, {
@@ -17,6 +18,7 @@ var toolbar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCo
17
18
  type: Boolean,
18
19
  default: false
19
20
  },
21
+ spinProps: {},
20
22
  showSearch: {
21
23
  type: Boolean,
22
24
  default: true
@@ -63,6 +65,8 @@ var toolbar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCo
63
65
  */
64
66
  const modelValue = useModel(__props, "modelValue");
65
67
  const prefixCls = getPrefixCls("toolbar");
68
+ const configCtx = inject(configProviderInjectionKey, void 0);
69
+ const resolvedSpinProps = computed(() => _objectSpread2(_objectSpread2({}, configCtx === null || configCtx === void 0 ? void 0 : configCtx.toolbarSpinProps), __props.spinProps));
66
70
  const bodyRef = ref();
67
71
  const formRef = ref();
68
72
  const isExpand = ref(__props.defaultExpand);
@@ -137,10 +141,10 @@ var toolbar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCo
137
141
  class: normalizeClass(cls.value),
138
142
  style: normalizeStyle(styleVars.value),
139
143
  onKeydown: withKeys(handleSearch, ["enter"])
140
- }, [createVNode(unref(Spin), {
144
+ }, [createVNode(unref(Spin), mergeProps(resolvedSpinProps.value, {
141
145
  loading: __props.loading,
142
- class: normalizeClass(`${unref(prefixCls)}-inner`)
143
- }, {
146
+ class: `${unref(prefixCls)}-inner`
147
+ }), {
144
148
  default: withCtx(() => [createElementVNode("div", {
145
149
  ref_key: "bodyRef",
146
150
  ref: bodyRef,
@@ -189,7 +193,7 @@ var toolbar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCo
189
193
  renderSlot(_ctx.$slots, "action-append")
190
194
  ], 64))], 2)) : createCommentVNode("", true)]),
191
195
  _: 3
192
- }, 8, ["loading", "class"])], 38);
196
+ }, 16, ["loading", "class"])], 38);
193
197
  };
194
198
  }
195
199
  }));
@@ -1,8 +1,10 @@
1
1
  import type { JsonFormSchema } from '../json-form';
2
+ import type { SpinProps } from '../spin';
2
3
  export type ToolbarModelValue = Record<string, unknown>;
3
4
  export interface ToolbarProps {
4
5
  schemas?: JsonFormSchema<string>[];
5
6
  loading?: boolean;
7
+ spinProps?: SpinProps;
6
8
  showSearch?: boolean;
7
9
  showReset?: boolean;
8
10
  showActions?: boolean;