@tu-design/vue 0.5.13 → 0.5.15

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 (58) hide show
  1. package/dist/index.d.mts +100 -45
  2. package/dist/index.mjs +151 -41
  3. package/dist/registry/vue/alert-dialog.json +2 -2
  4. package/dist/registry/vue/alert.json +1 -1
  5. package/dist/registry/vue/avatar-group.json +1 -1
  6. package/dist/registry/vue/avatar.json +1 -1
  7. package/dist/registry/vue/badge.json +1 -1
  8. package/dist/registry/vue/button.json +1 -1
  9. package/dist/registry/vue/calendar.json +1 -1
  10. package/dist/registry/vue/card.json +1 -1
  11. package/dist/registry/vue/cascader.json +1 -1
  12. package/dist/registry/vue/checkbox.json +1 -1
  13. package/dist/registry/vue/context-menu.json +1 -1
  14. package/dist/registry/vue/currency-input.json +1 -1
  15. package/dist/registry/vue/date-picker.json +1 -1
  16. package/dist/registry/vue/date-range-picker.json +1 -1
  17. package/dist/registry/vue/date-shared.json +1 -1
  18. package/dist/registry/vue/dialog.json +2 -2
  19. package/dist/registry/vue/drawer.json +1 -1
  20. package/dist/registry/vue/dropdown-menu.json +1 -1
  21. package/dist/registry/vue/empty.json +1 -1
  22. package/dist/registry/vue/form-render.json +1 -1
  23. package/dist/registry/vue/form.json +1 -1
  24. package/dist/registry/vue/icon-shared.json +1 -1
  25. package/dist/registry/vue/input.json +1 -1
  26. package/dist/registry/vue/label.json +1 -1
  27. package/dist/registry/vue/month-picker.json +1 -1
  28. package/dist/registry/vue/number-input.json +1 -1
  29. package/dist/registry/vue/overlay-shared.json +1 -1
  30. package/dist/registry/vue/password-input.json +1 -1
  31. package/dist/registry/vue/pin-input.json +1 -1
  32. package/dist/registry/vue/popconfirm.json +1 -1
  33. package/dist/registry/vue/popover.json +1 -1
  34. package/dist/registry/vue/progress.json +1 -1
  35. package/dist/registry/vue/provider.json +1 -1
  36. package/dist/registry/vue/radio-group.json +1 -1
  37. package/dist/registry/vue/registry.json +53 -53
  38. package/dist/registry/vue/select.json +1 -1
  39. package/dist/registry/vue/separator.json +1 -1
  40. package/dist/registry/vue/skeleton.json +1 -1
  41. package/dist/registry/vue/slider.json +1 -1
  42. package/dist/registry/vue/slot.json +1 -1
  43. package/dist/registry/vue/spin.json +1 -1
  44. package/dist/registry/vue/switch.json +1 -1
  45. package/dist/registry/vue/table-render.json +5 -5
  46. package/dist/registry/vue/tabs.json +1 -1
  47. package/dist/registry/vue/textarea.json +1 -1
  48. package/dist/registry/vue/timeline.json +1 -1
  49. package/dist/registry/vue/toast.json +2 -2
  50. package/dist/registry/vue/tokens.json +1 -1
  51. package/dist/registry/vue/tooltip.json +1 -1
  52. package/dist/registry/vue/tree-select.json +1 -1
  53. package/dist/registry/vue/tree-shared.json +1 -1
  54. package/dist/registry/vue/utils.json +1 -1
  55. package/dist/registry/vue/week-picker.json +1 -1
  56. package/dist/registry/vue/year-picker.json +1 -1
  57. package/dist/style.css +21 -0
  58. package/package.json +1 -1
package/dist/index.d.mts CHANGED
@@ -106,10 +106,10 @@ declare const __VLS_base$35: import("vue").DefineComponent<import("vue").Extract
106
106
  }>, {
107
107
  class: string;
108
108
  disabled: boolean;
109
- checked: boolean | "indeterminate" | undefined;
110
- defaultChecked: boolean;
111
109
  name: string;
112
110
  form: string;
111
+ checked: boolean | "indeterminate" | undefined;
112
+ defaultChecked: boolean;
113
113
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
114
114
  declare const __VLS_export$53: __VLS_WithSlots$35<typeof __VLS_base$35, __VLS_Slots$35>;
115
115
  declare const _default$9: typeof __VLS_export$53;
@@ -209,10 +209,10 @@ declare const __VLS_export$52: import("vue").DefineComponent<import("vue").Extra
209
209
  "onUpdate:modelValue"?: ((value: number | null) => any) | undefined;
210
210
  }>, {
211
211
  class: string;
212
- modelValue: number | null | undefined;
213
- placeholder: string;
214
212
  disabled: boolean | undefined;
215
213
  invalid: boolean | undefined;
214
+ modelValue: number | null | undefined;
215
+ placeholder: string;
216
216
  labelUnit: CurrencyUnit;
217
217
  valueUnit: CurrencyUnit;
218
218
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -378,18 +378,18 @@ declare const __VLS_export$51: import("vue").DefineComponent<import("vue").Extra
378
378
  "onUpdate:open"?: ((open: boolean) => any) | undefined;
379
379
  }>, {
380
380
  class: string;
381
- modelValue: string | null | undefined;
381
+ max: string;
382
382
  defaultValue: string;
383
+ disabled: boolean | undefined;
384
+ readOnly: boolean | undefined;
385
+ invalid: boolean | undefined;
386
+ modelValue: string | null | undefined;
383
387
  min: string;
384
- max: string;
385
388
  isDateUnavailable: (date: DateValue) => boolean;
386
389
  locale: string;
387
390
  open: boolean | undefined;
388
391
  defaultOpen: boolean;
389
392
  placeholder: string;
390
- disabled: boolean | undefined;
391
- invalid: boolean | undefined;
392
- readOnly: boolean | undefined;
393
393
  closeOnSelect: boolean;
394
394
  positioning: import("@zag-js/popper").PositioningOptions;
395
395
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -552,19 +552,19 @@ declare const __VLS_export$50: import("vue").DefineComponent<import("vue").Extra
552
552
  "onUpdate:open"?: ((open: boolean) => any) | undefined;
553
553
  }>, {
554
554
  class: string;
555
+ max: string;
556
+ defaultValue: [string, string] | undefined;
557
+ disabled: boolean | undefined;
558
+ readOnly: boolean | undefined;
559
+ invalid: boolean | undefined;
555
560
  numOfMonths: number;
556
561
  modelValue: [string, string] | null | undefined;
557
- defaultValue: [string, string] | undefined;
558
562
  min: string;
559
- max: string;
560
563
  isDateUnavailable: (date: DateValue) => boolean;
561
564
  locale: string;
562
565
  open: boolean | undefined;
563
566
  defaultOpen: boolean;
564
567
  placeholder: string;
565
- disabled: boolean | undefined;
566
- invalid: boolean | undefined;
567
- readOnly: boolean | undefined;
568
568
  closeOnSelect: boolean;
569
569
  positioning: import("@zag-js/popper").PositioningOptions;
570
570
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -725,17 +725,17 @@ declare const __VLS_export$48: import("vue").DefineComponent<import("vue").Extra
725
725
  "onUpdate:open"?: ((open: boolean) => any) | undefined;
726
726
  }>, {
727
727
  class: string;
728
- modelValue: string | null | undefined;
728
+ max: string;
729
729
  defaultValue: string;
730
+ disabled: boolean | undefined;
731
+ readOnly: boolean | undefined;
732
+ invalid: boolean | undefined;
733
+ modelValue: string | null | undefined;
730
734
  min: string;
731
- max: string;
732
735
  locale: string;
733
736
  open: boolean | undefined;
734
737
  defaultOpen: boolean;
735
738
  placeholder: string;
736
- disabled: boolean | undefined;
737
- invalid: boolean | undefined;
738
- readOnly: boolean | undefined;
739
739
  closeOnSelect: boolean;
740
740
  positioning: import("@zag-js/popper").PositioningOptions;
741
741
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -892,18 +892,18 @@ declare const __VLS_export$47: import("vue").DefineComponent<import("vue").Extra
892
892
  "onUpdate:open"?: ((open: boolean) => any) | undefined;
893
893
  }>, {
894
894
  class: string;
895
- modelValue: string | null | undefined;
895
+ max: string;
896
896
  defaultValue: string;
897
+ disabled: boolean | undefined;
898
+ readOnly: boolean | undefined;
899
+ invalid: boolean | undefined;
900
+ modelValue: string | null | undefined;
897
901
  min: string;
898
- max: string;
899
902
  isDateUnavailable: (date: DateValue) => boolean;
900
903
  locale: string;
901
904
  open: boolean | undefined;
902
905
  defaultOpen: boolean;
903
906
  placeholder: string;
904
- disabled: boolean | undefined;
905
- invalid: boolean | undefined;
906
- readOnly: boolean | undefined;
907
907
  closeOnSelect: boolean;
908
908
  positioning: import("@zag-js/popper").PositioningOptions;
909
909
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -990,11 +990,11 @@ declare const __VLS_base$34: import("vue").DefineComponent<import("vue").Extract
990
990
  "onUpdate:modelValue"?: ((value: number | null) => any) | undefined;
991
991
  }>, {
992
992
  class: string;
993
- modelValue: number | null | undefined;
994
- min: number;
995
993
  max: number;
996
994
  disabled: boolean | undefined;
997
995
  invalid: boolean | undefined;
996
+ modelValue: number | null | undefined;
997
+ min: number;
998
998
  step: number;
999
999
  formatOptions: Intl.NumberFormatOptions;
1000
1000
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1092,10 +1092,10 @@ declare const __VLS_base$33: import("vue").DefineComponent<import("vue").Extract
1092
1092
  "onUpdate:visible"?: ((visible: boolean) => any) | undefined;
1093
1093
  }>, {
1094
1094
  class: string;
1095
- modelValue: string | undefined;
1096
- placeholder: string;
1097
1095
  disabled: boolean | undefined;
1098
1096
  invalid: boolean | undefined;
1097
+ modelValue: string | undefined;
1098
+ placeholder: string;
1099
1099
  visible: boolean | undefined;
1100
1100
  autoComplete: "current-password" | "new-password";
1101
1101
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1357,12 +1357,12 @@ declare const __VLS_export$43: import("vue").DefineComponent<import("vue").Extra
1357
1357
  "onUpdate:show"?: ((open: boolean) => any) | undefined;
1358
1358
  }>, {
1359
1359
  class: string;
1360
- modelValue: Key | Key[] | undefined;
1361
1360
  defaultValue: Key | Key[] | undefined;
1361
+ disabled: boolean | undefined;
1362
+ modelValue: Key | Key[] | undefined;
1362
1363
  open: boolean | undefined;
1363
1364
  defaultOpen: boolean;
1364
1365
  placeholder: string;
1365
- disabled: boolean | undefined;
1366
1366
  positioning: import("@ark-ui/vue/select").SelectPositioningOptions | undefined;
1367
1367
  multiple: boolean;
1368
1368
  checkable: boolean;
@@ -1569,12 +1569,12 @@ declare const __VLS_export$42: import("vue").DefineComponent<import("vue").Extra
1569
1569
  "onUpdate:expandedKeys"?: ((keys: Key[]) => any) | undefined;
1570
1570
  }>, {
1571
1571
  class: string;
1572
- modelValue: Key | Key[] | undefined;
1573
1572
  defaultValue: Key | Key[] | undefined;
1573
+ disabled: boolean | undefined;
1574
+ modelValue: Key | Key[] | undefined;
1574
1575
  open: boolean | undefined;
1575
1576
  defaultOpen: boolean;
1576
1577
  placeholder: string;
1577
- disabled: boolean | undefined;
1578
1578
  positioning: import("@ark-ui/vue/select").SelectPositioningOptions | undefined;
1579
1579
  multiple: boolean;
1580
1580
  checkable: boolean;
@@ -1704,8 +1704,8 @@ declare const __VLS_base$31: import("vue").DefineComponent<import("vue").Extract
1704
1704
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
1705
1705
  "onUpdate:open"?: ((open: boolean) => any) | undefined;
1706
1706
  }>, {
1707
- modelValue: string | undefined;
1708
1707
  defaultValue: string;
1708
+ modelValue: string | undefined;
1709
1709
  open: boolean | undefined;
1710
1710
  defaultOpen: boolean;
1711
1711
  placeholder: string;
@@ -1737,8 +1737,8 @@ declare const __VLS_export$40: import("vue").DefineComponent<__VLS_Props$11, {},
1737
1737
  }, string, import("vue").PublicProps, Readonly<__VLS_Props$11> & Readonly<{
1738
1738
  "onUpdate:modelValue"?: ((value: number[]) => any) | undefined;
1739
1739
  }>, {
1740
- min: number;
1741
1740
  max: number;
1741
+ min: number;
1742
1742
  step: number;
1743
1743
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
1744
1744
  declare const _default$40: typeof __VLS_export$40;
@@ -1955,17 +1955,17 @@ declare const __VLS_export$37: import("vue").DefineComponent<import("vue").Extra
1955
1955
  "onUpdate:open"?: ((open: boolean) => any) | undefined;
1956
1956
  }>, {
1957
1957
  class: string;
1958
- modelValue: string | null | undefined;
1958
+ max: string;
1959
1959
  defaultValue: string;
1960
+ disabled: boolean | undefined;
1961
+ readOnly: boolean | undefined;
1962
+ invalid: boolean | undefined;
1963
+ modelValue: string | null | undefined;
1960
1964
  min: string;
1961
- max: string;
1962
1965
  locale: string;
1963
1966
  open: boolean | undefined;
1964
1967
  defaultOpen: boolean;
1965
1968
  placeholder: string;
1966
- disabled: boolean | undefined;
1967
- invalid: boolean | undefined;
1968
- readOnly: boolean | undefined;
1969
1969
  closeOnSelect: boolean;
1970
1970
  positioning: import("@zag-js/popper").PositioningOptions;
1971
1971
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -2572,11 +2572,11 @@ declare const __VLS_base$24: import("vue").DefineComponent<import("vue").Extract
2572
2572
  "onUpdate:modelValue"?: ((value: string | null) => any) | undefined;
2573
2573
  }>, {
2574
2574
  mode: "day" | "month" | "year";
2575
+ max: string;
2576
+ defaultValue: string;
2575
2577
  numOfMonths: number;
2576
2578
  modelValue: string | null | undefined;
2577
- defaultValue: string;
2578
2579
  min: string;
2579
- max: string;
2580
2580
  isDateUnavailable: (date: DateValue) => boolean;
2581
2581
  locale: string;
2582
2582
  week: boolean;
@@ -3170,12 +3170,12 @@ declare const __VLS_base$14: import("vue").DefineComponent<import("vue").Extract
3170
3170
  onComplete?: ((value: string[]) => any) | undefined;
3171
3171
  }>, {
3172
3172
  class: string;
3173
- type: "numeric" | "alphanumeric" | undefined;
3174
- modelValue: string[] | undefined;
3175
3173
  length: number;
3176
- placeholder: string;
3177
3174
  disabled: boolean | undefined;
3178
3175
  invalid: boolean | undefined;
3176
+ type: "numeric" | "alphanumeric" | undefined;
3177
+ modelValue: string[] | undefined;
3178
+ placeholder: string;
3179
3179
  otp: boolean | undefined;
3180
3180
  mask: boolean | undefined;
3181
3181
  autoSubmit: boolean | undefined;
@@ -3407,9 +3407,9 @@ declare const __VLS_base$13: import("vue").DefineComponent<import("vue").Extract
3407
3407
  }>> & Readonly<{
3408
3408
  "onUpdate:open"?: ((open: boolean) => any) | undefined;
3409
3409
  }>, {
3410
+ disabled: boolean;
3410
3411
  open: boolean | undefined;
3411
3412
  defaultOpen: boolean;
3412
- disabled: boolean;
3413
3413
  lazyMount: boolean;
3414
3414
  unmountOnExit: boolean;
3415
3415
  contentClass: string;
@@ -4011,6 +4011,31 @@ declare const __VLS_base$12: import("vue").DefineComponent<import("vue").Extract
4011
4011
  type: PropType<boolean | undefined>;
4012
4012
  default: undefined;
4013
4013
  };
4014
+ /** 是否显示表格边框(仅外框);网格线由 single-column / single-line 独立控制(正交模型,词汇对齐 naive-ui) */
4015
+ bordered: {
4016
+ type: PropType<boolean | undefined>;
4017
+ default: undefined;
4018
+ };
4019
+ /** 表格底部是否有边框;bordered: true 时外框已含底边,此参数冗余无害 */
4020
+ bottomBordered: {
4021
+ type: PropType<boolean | undefined>;
4022
+ default: undefined;
4023
+ };
4024
+ /** 是否不设定行的分割线;true 时单元格没有下边线 */
4025
+ singleColumn: {
4026
+ type: PropType<boolean | undefined>;
4027
+ default: undefined;
4028
+ };
4029
+ /** 是否不设定列的分割线;true 时单元格没有右边线 */
4030
+ singleLine: {
4031
+ type: PropType<boolean | undefined>;
4032
+ default: undefined;
4033
+ };
4034
+ /** 斑马线条纹(按行模型索引奇偶,虚拟滚动窗口安全);纯样式属性,setup 期定版不支持运行时切换 */
4035
+ striped: {
4036
+ type: PropType<boolean | undefined>;
4037
+ default: undefined;
4038
+ };
4014
4039
  }>, {
4015
4040
  table: import("@tanstack/vue-table").Table<{
4016
4041
  rowSelectionFeature: import("@tanstack/vue-table").TableFeature;
@@ -4165,6 +4190,31 @@ declare const __VLS_base$12: import("vue").DefineComponent<import("vue").Extract
4165
4190
  type: PropType<boolean | undefined>;
4166
4191
  default: undefined;
4167
4192
  };
4193
+ /** 是否显示表格边框(仅外框);网格线由 single-column / single-line 独立控制(正交模型,词汇对齐 naive-ui) */
4194
+ bordered: {
4195
+ type: PropType<boolean | undefined>;
4196
+ default: undefined;
4197
+ };
4198
+ /** 表格底部是否有边框;bordered: true 时外框已含底边,此参数冗余无害 */
4199
+ bottomBordered: {
4200
+ type: PropType<boolean | undefined>;
4201
+ default: undefined;
4202
+ };
4203
+ /** 是否不设定行的分割线;true 时单元格没有下边线 */
4204
+ singleColumn: {
4205
+ type: PropType<boolean | undefined>;
4206
+ default: undefined;
4207
+ };
4208
+ /** 是否不设定列的分割线;true 时单元格没有右边线 */
4209
+ singleLine: {
4210
+ type: PropType<boolean | undefined>;
4211
+ default: undefined;
4212
+ };
4213
+ /** 斑马线条纹(按行模型索引奇偶,虚拟滚动窗口安全);纯样式属性,setup 期定版不支持运行时切换 */
4214
+ striped: {
4215
+ type: PropType<boolean | undefined>;
4216
+ default: undefined;
4217
+ };
4168
4218
  }>> & Readonly<{
4169
4219
  onSearch?: ((values: DataRecord) => any) | undefined;
4170
4220
  onReset?: ((values: DataRecord) => any) | undefined;
@@ -4182,6 +4232,7 @@ declare const __VLS_base$12: import("vue").DefineComponent<import("vue").Extract
4182
4232
  "onColumn-visibility-change"?: ((keys: string[]) => any) | undefined;
4183
4233
  "onDrag-sort"?: ((payload: TableDragSortPayload<DataRecord>) => any) | undefined;
4184
4234
  }>, {
4235
+ bordered: boolean | undefined;
4185
4236
  loading: boolean | undefined;
4186
4237
  draggable: boolean | TableDraggableOptions<DataRecord>;
4187
4238
  autoLoad: boolean | undefined;
@@ -4191,6 +4242,10 @@ declare const __VLS_base$12: import("vue").DefineComponent<import("vue").Extract
4191
4242
  showSearch: boolean | undefined;
4192
4243
  showPagination: boolean | undefined;
4193
4244
  fillHeight: boolean | undefined;
4245
+ bottomBordered: boolean | undefined;
4246
+ singleColumn: boolean | undefined;
4247
+ singleLine: boolean | undefined;
4248
+ striped: boolean | undefined;
4194
4249
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
4195
4250
  declare const __VLS_export$13: __VLS_WithSlots$12<typeof __VLS_base$12, __VLS_Slots$12>;
4196
4251
  declare const _default$44: typeof __VLS_export$13;