@koi-design/uxd-ui 14.0.4 → 14.0.6

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 (146) hide show
  1. package/es/components/Calendar/Calendar.vue.d.ts +15 -0
  2. package/es/components/Calendar/Header.vue.d.ts +15 -0
  3. package/es/components/Calendar/index.d.ts +30 -0
  4. package/es/components/Radio/Radio.mjs +5 -4
  5. package/es/components/Radio/Radio.mjs.map +1 -1
  6. package/es/components/Radio/Radio.type.d.ts +4 -0
  7. package/es/components/Radio/Radio.type.mjs +4 -0
  8. package/es/components/Radio/Radio.type.mjs.map +1 -1
  9. package/es/components/Radio/Radio.vue.d.ts +9 -0
  10. package/es/components/Radio/index.d.ts +15 -0
  11. package/es/components/Table/BaseTable.mjs +20 -6
  12. package/es/components/Table/BaseTable.mjs.map +1 -1
  13. package/es/components/Table/BaseTable.vue.d.ts +44 -9
  14. package/es/components/Table/BodyTable.vue.d.ts +44 -9
  15. package/es/components/Table/HeadTable.vue.d.ts +44 -9
  16. package/es/components/Table/Table.mjs +8 -9
  17. package/es/components/Table/Table.mjs.map +1 -1
  18. package/es/components/Table/Table.type.d.ts +7 -5
  19. package/es/components/Table/Table.type.mjs.map +1 -1
  20. package/es/components/Table/Table.vue.d.ts +88 -18
  21. package/es/components/Table/TableBox.vue.d.ts +88 -18
  22. package/es/components/Table/hooks/useTableResize.d.ts +1 -1
  23. package/es/components/Table/hooks/useTableResize.mjs +13 -71
  24. package/es/components/Table/hooks/useTableResize.mjs.map +1 -1
  25. package/es/components/Table/tableUnits/ColGroup.mjs +8 -5
  26. package/es/components/Table/tableUnits/ColGroup.mjs.map +1 -1
  27. package/es/components/Table/tableUnits/ExpandIcon.mjs +2 -2
  28. package/es/components/Table/tableUnits/ExpandIcon.mjs.map +1 -1
  29. package/es/components/Table/tableUnits/ExpandIcon.vue.d.ts +3 -3
  30. package/es/components/Table/tableUnits/ExpandRows.mjs.map +1 -1
  31. package/es/components/Table/tableUnits/ExpandRows.vue.d.ts +21 -3
  32. package/es/components/Table/tableUnits/SelectionBox.vue.d.ts +15 -0
  33. package/es/components/Table/tableUnits/TableBody.vue.d.ts +42 -6
  34. package/es/components/Table/tableUnits/TableCell.mjs +108 -95
  35. package/es/components/Table/tableUnits/TableCell.mjs.map +1 -1
  36. package/es/components/Table/tableUnits/TableCell.vue.d.ts +21 -3
  37. package/es/components/Table/tableUnits/TableRow.vue.d.ts +21 -3
  38. package/es/components/Tabs/TabNav.mjs +4 -5
  39. package/es/components/Tabs/TabNav.mjs.map +1 -1
  40. package/es/components/Tabs/TabNav.vue.d.ts +1 -1
  41. package/es/components/Tabs/Tabs.d.ts +1 -1
  42. package/es/components/Tabs/index.d.ts +3 -3
  43. package/es/components/base/ResizeObserver.mjs +1 -1
  44. package/es/components/base/ResizeObserver.mjs.map +1 -1
  45. package/lib/components/Calendar/Calendar.vue.d.ts +15 -0
  46. package/lib/components/Calendar/Header.vue.d.ts +15 -0
  47. package/lib/components/Calendar/index.d.ts +30 -0
  48. package/lib/components/Radio/Radio.js +4 -3
  49. package/lib/components/Radio/Radio.js.map +1 -1
  50. package/lib/components/Radio/Radio.type.d.ts +4 -0
  51. package/lib/components/Radio/Radio.type.js +4 -0
  52. package/lib/components/Radio/Radio.type.js.map +1 -1
  53. package/lib/components/Radio/Radio.vue.d.ts +9 -0
  54. package/lib/components/Radio/index.d.ts +15 -0
  55. package/lib/components/Table/BaseTable.js +20 -6
  56. package/lib/components/Table/BaseTable.js.map +1 -1
  57. package/lib/components/Table/BaseTable.vue.d.ts +44 -9
  58. package/lib/components/Table/BodyTable.vue.d.ts +44 -9
  59. package/lib/components/Table/HeadTable.vue.d.ts +44 -9
  60. package/lib/components/Table/Table.js +7 -8
  61. package/lib/components/Table/Table.js.map +1 -1
  62. package/lib/components/Table/Table.type.d.ts +7 -5
  63. package/lib/components/Table/Table.type.js.map +1 -1
  64. package/lib/components/Table/Table.vue.d.ts +88 -18
  65. package/lib/components/Table/TableBox.vue.d.ts +88 -18
  66. package/lib/components/Table/hooks/useTableResize.d.ts +1 -1
  67. package/lib/components/Table/hooks/useTableResize.js +11 -69
  68. package/lib/components/Table/hooks/useTableResize.js.map +1 -1
  69. package/lib/components/Table/tableUnits/ColGroup.js +8 -5
  70. package/lib/components/Table/tableUnits/ColGroup.js.map +1 -1
  71. package/lib/components/Table/tableUnits/ExpandIcon.js +1 -1
  72. package/lib/components/Table/tableUnits/ExpandIcon.js.map +1 -1
  73. package/lib/components/Table/tableUnits/ExpandIcon.vue.d.ts +3 -3
  74. package/lib/components/Table/tableUnits/ExpandRows.js.map +1 -1
  75. package/lib/components/Table/tableUnits/ExpandRows.vue.d.ts +21 -3
  76. package/lib/components/Table/tableUnits/SelectionBox.vue.d.ts +15 -0
  77. package/lib/components/Table/tableUnits/TableBody.vue.d.ts +42 -6
  78. package/lib/components/Table/tableUnits/TableCell.js +107 -94
  79. package/lib/components/Table/tableUnits/TableCell.js.map +1 -1
  80. package/lib/components/Table/tableUnits/TableCell.vue.d.ts +21 -3
  81. package/lib/components/Table/tableUnits/TableRow.vue.d.ts +21 -3
  82. package/lib/components/Tabs/TabNav.js +3 -4
  83. package/lib/components/Tabs/TabNav.js.map +1 -1
  84. package/lib/components/Tabs/TabNav.vue.d.ts +1 -1
  85. package/lib/components/Tabs/Tabs.d.ts +1 -1
  86. package/lib/components/Tabs/index.d.ts +3 -3
  87. package/lib/components/base/ResizeObserver.js +1 -1
  88. package/lib/components/base/ResizeObserver.js.map +1 -1
  89. package/package.json +1 -1
  90. package/styles/components/alert/index.css +1 -1
  91. package/styles/components/autoComplete/index.css +1 -1
  92. package/styles/components/avatar/index.css +1 -1
  93. package/styles/components/button/index.css +1 -1
  94. package/styles/components/carousel/index.css +1 -1
  95. package/styles/components/cascader/index.css +1 -1
  96. package/styles/components/datePicker/index.css +1 -1
  97. package/styles/components/dropdown/index.css +1 -1
  98. package/styles/components/dropdown/index.less +2 -3
  99. package/styles/components/form/index.css +1 -1
  100. package/styles/components/icon/index.css +1 -1
  101. package/styles/components/input/index.css +1 -1
  102. package/styles/components/inputNumber/index.css +1 -1
  103. package/styles/components/link/index.css +1 -1
  104. package/styles/components/mentions/index.css +1 -1
  105. package/styles/components/modal/index.css +1 -1
  106. package/styles/components/select/index.css +1 -1
  107. package/styles/components/spin/index.css +1 -1
  108. package/styles/components/table/index.css +1 -1
  109. package/styles/components/table/index.less +106 -242
  110. package/styles/components/table/var.less +16 -31
  111. package/styles/components/tabs/borderCard.less +23 -27
  112. package/styles/components/tabs/card.less +18 -37
  113. package/styles/components/tabs/index.css +1 -1
  114. package/styles/components/tabs/index.less +103 -72
  115. package/styles/components/tabs/var.less +16 -71
  116. package/styles/components/timePicker/index.css +1 -1
  117. package/styles/cssVariable.css +1 -1
  118. package/styles/cssVariable.less +1 -1
  119. package/styles/index.css +1 -1
  120. package/types/components/Calendar/Calendar.vue.d.ts +15 -0
  121. package/types/components/Calendar/Header.vue.d.ts +15 -0
  122. package/types/components/Calendar/index.d.ts +30 -0
  123. package/types/components/Radio/Radio.type.d.ts +4 -0
  124. package/types/components/Radio/Radio.vue.d.ts +9 -0
  125. package/types/components/Radio/index.d.ts +15 -0
  126. package/types/components/Table/BaseTable.vue.d.ts +44 -9
  127. package/types/components/Table/BodyTable.vue.d.ts +44 -9
  128. package/types/components/Table/HeadTable.vue.d.ts +44 -9
  129. package/types/components/Table/Table.type.d.ts +7 -5
  130. package/types/components/Table/Table.vue.d.ts +88 -18
  131. package/types/components/Table/TableBox.vue.d.ts +88 -18
  132. package/types/components/Table/hooks/useTableResize.d.ts +1 -1
  133. package/types/components/Table/tableUnits/ExpandIcon.vue.d.ts +3 -3
  134. package/types/components/Table/tableUnits/ExpandRows.vue.d.ts +21 -3
  135. package/types/components/Table/tableUnits/SelectionBox.vue.d.ts +15 -0
  136. package/types/components/Table/tableUnits/TableBody.vue.d.ts +42 -6
  137. package/types/components/Table/tableUnits/TableCell.vue.d.ts +21 -3
  138. package/types/components/Table/tableUnits/TableRow.vue.d.ts +21 -3
  139. package/types/components/Tabs/TabNav.vue.d.ts +1 -1
  140. package/types/components/Tabs/Tabs.d.ts +1 -1
  141. package/types/components/Tabs/index.d.ts +3 -3
  142. package/uxd-ui.css +1 -1
  143. package/uxd-ui.esm.min.mjs +6 -6
  144. package/uxd-ui.esm.mjs +164 -191
  145. package/uxd-ui.umd.js +164 -191
  146. package/uxd-ui.umd.min.js +6 -6
@@ -1240,6 +1240,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1240
1240
  type: (StringConstructor | NumberConstructor)[];
1241
1241
  default: string;
1242
1242
  };
1243
+ label: {
1244
+ type: StringConstructor;
1245
+ default: string;
1246
+ };
1243
1247
  disabled: {
1244
1248
  type: BooleanConstructor;
1245
1249
  default: boolean;
@@ -1276,6 +1280,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1276
1280
  size: "small" | "default" | "large";
1277
1281
  disabled: boolean;
1278
1282
  modelValue: import("..").RadioValueType;
1283
+ label: string;
1279
1284
  value: string | number;
1280
1285
  trueValue: import("..").RadioValueType;
1281
1286
  falseValue: import("..").RadioValueType;
@@ -1303,6 +1308,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1303
1308
  type: (StringConstructor | NumberConstructor)[];
1304
1309
  default: string;
1305
1310
  };
1311
+ label: {
1312
+ type: StringConstructor;
1313
+ default: string;
1314
+ };
1306
1315
  disabled: {
1307
1316
  type: BooleanConstructor;
1308
1317
  default: boolean;
@@ -1336,6 +1345,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1336
1345
  size: "small" | "default" | "large";
1337
1346
  disabled: boolean;
1338
1347
  modelValue: import("..").RadioValueType;
1348
+ label: string;
1339
1349
  value: string | number;
1340
1350
  trueValue: import("..").RadioValueType;
1341
1351
  falseValue: import("..").RadioValueType;
@@ -1360,6 +1370,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1360
1370
  type: (StringConstructor | NumberConstructor)[];
1361
1371
  default: string;
1362
1372
  };
1373
+ label: {
1374
+ type: StringConstructor;
1375
+ default: string;
1376
+ };
1363
1377
  disabled: {
1364
1378
  type: BooleanConstructor;
1365
1379
  default: boolean;
@@ -1396,6 +1410,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1396
1410
  size: "small" | "default" | "large";
1397
1411
  disabled: boolean;
1398
1412
  modelValue: import("..").RadioValueType;
1413
+ label: string;
1399
1414
  value: string | number;
1400
1415
  trueValue: import("..").RadioValueType;
1401
1416
  falseValue: import("..").RadioValueType;
@@ -968,6 +968,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
968
968
  type: (StringConstructor | NumberConstructor)[];
969
969
  default: string;
970
970
  };
971
+ label: {
972
+ type: StringConstructor;
973
+ default: string;
974
+ };
971
975
  disabled: {
972
976
  type: BooleanConstructor;
973
977
  default: boolean;
@@ -1004,6 +1008,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1004
1008
  size: "small" | "default" | "large";
1005
1009
  disabled: boolean;
1006
1010
  modelValue: import("@koi-design/uxd-ui/es/components/Radio").RadioValueType;
1011
+ label: string;
1007
1012
  value: string | number;
1008
1013
  trueValue: import("@koi-design/uxd-ui/es/components/Radio").RadioValueType;
1009
1014
  falseValue: import("@koi-design/uxd-ui/es/components/Radio").RadioValueType;
@@ -1031,6 +1036,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1031
1036
  type: (StringConstructor | NumberConstructor)[];
1032
1037
  default: string;
1033
1038
  };
1039
+ label: {
1040
+ type: StringConstructor;
1041
+ default: string;
1042
+ };
1034
1043
  disabled: {
1035
1044
  type: BooleanConstructor;
1036
1045
  default: boolean;
@@ -1064,6 +1073,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1064
1073
  size: "small" | "default" | "large";
1065
1074
  disabled: boolean;
1066
1075
  modelValue: import("@koi-design/uxd-ui/es/components/Radio").RadioValueType;
1076
+ label: string;
1067
1077
  value: string | number;
1068
1078
  trueValue: import("@koi-design/uxd-ui/es/components/Radio").RadioValueType;
1069
1079
  falseValue: import("@koi-design/uxd-ui/es/components/Radio").RadioValueType;
@@ -1088,6 +1098,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1088
1098
  type: (StringConstructor | NumberConstructor)[];
1089
1099
  default: string;
1090
1100
  };
1101
+ label: {
1102
+ type: StringConstructor;
1103
+ default: string;
1104
+ };
1091
1105
  disabled: {
1092
1106
  type: BooleanConstructor;
1093
1107
  default: boolean;
@@ -1124,6 +1138,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1124
1138
  size: "small" | "default" | "large";
1125
1139
  disabled: boolean;
1126
1140
  modelValue: import("@koi-design/uxd-ui/es/components/Radio").RadioValueType;
1141
+ label: string;
1127
1142
  value: string | number;
1128
1143
  trueValue: import("@koi-design/uxd-ui/es/components/Radio").RadioValueType;
1129
1144
  falseValue: import("@koi-design/uxd-ui/es/components/Radio").RadioValueType;
@@ -1205,6 +1205,10 @@ export declare const UCalendar: {
1205
1205
  type: (StringConstructor | NumberConstructor)[];
1206
1206
  default: string;
1207
1207
  };
1208
+ label: {
1209
+ type: StringConstructor;
1210
+ default: string;
1211
+ };
1208
1212
  disabled: {
1209
1213
  type: BooleanConstructor;
1210
1214
  default: boolean;
@@ -1241,6 +1245,7 @@ export declare const UCalendar: {
1241
1245
  size: "small" | "default" | "large";
1242
1246
  disabled: boolean;
1243
1247
  modelValue: import("..").RadioValueType;
1248
+ label: string;
1244
1249
  value: string | number;
1245
1250
  trueValue: import("..").RadioValueType;
1246
1251
  falseValue: import("..").RadioValueType;
@@ -1268,6 +1273,10 @@ export declare const UCalendar: {
1268
1273
  type: (StringConstructor | NumberConstructor)[];
1269
1274
  default: string;
1270
1275
  };
1276
+ label: {
1277
+ type: StringConstructor;
1278
+ default: string;
1279
+ };
1271
1280
  disabled: {
1272
1281
  type: BooleanConstructor;
1273
1282
  default: boolean;
@@ -1301,6 +1310,7 @@ export declare const UCalendar: {
1301
1310
  size: "small" | "default" | "large";
1302
1311
  disabled: boolean;
1303
1312
  modelValue: import("..").RadioValueType;
1313
+ label: string;
1304
1314
  value: string | number;
1305
1315
  trueValue: import("..").RadioValueType;
1306
1316
  falseValue: import("..").RadioValueType;
@@ -1325,6 +1335,10 @@ export declare const UCalendar: {
1325
1335
  type: (StringConstructor | NumberConstructor)[];
1326
1336
  default: string;
1327
1337
  };
1338
+ label: {
1339
+ type: StringConstructor;
1340
+ default: string;
1341
+ };
1328
1342
  disabled: {
1329
1343
  type: BooleanConstructor;
1330
1344
  default: boolean;
@@ -1361,6 +1375,7 @@ export declare const UCalendar: {
1361
1375
  size: "small" | "default" | "large";
1362
1376
  disabled: boolean;
1363
1377
  modelValue: import("..").RadioValueType;
1378
+ label: string;
1364
1379
  value: string | number;
1365
1380
  trueValue: import("..").RadioValueType;
1366
1381
  falseValue: import("..").RadioValueType;
@@ -3169,6 +3184,10 @@ export declare const UCalendar: {
3169
3184
  type: (StringConstructor | NumberConstructor)[];
3170
3185
  default: string;
3171
3186
  };
3187
+ label: {
3188
+ type: StringConstructor;
3189
+ default: string;
3190
+ };
3172
3191
  disabled: {
3173
3192
  type: BooleanConstructor;
3174
3193
  default: boolean;
@@ -3205,6 +3224,7 @@ export declare const UCalendar: {
3205
3224
  size: "small" | "default" | "large";
3206
3225
  disabled: boolean;
3207
3226
  modelValue: import("..").RadioValueType;
3227
+ label: string;
3208
3228
  value: string | number;
3209
3229
  trueValue: import("..").RadioValueType;
3210
3230
  falseValue: import("..").RadioValueType;
@@ -3232,6 +3252,10 @@ export declare const UCalendar: {
3232
3252
  type: (StringConstructor | NumberConstructor)[];
3233
3253
  default: string;
3234
3254
  };
3255
+ label: {
3256
+ type: StringConstructor;
3257
+ default: string;
3258
+ };
3235
3259
  disabled: {
3236
3260
  type: BooleanConstructor;
3237
3261
  default: boolean;
@@ -3265,6 +3289,7 @@ export declare const UCalendar: {
3265
3289
  size: "small" | "default" | "large";
3266
3290
  disabled: boolean;
3267
3291
  modelValue: import("..").RadioValueType;
3292
+ label: string;
3268
3293
  value: string | number;
3269
3294
  trueValue: import("..").RadioValueType;
3270
3295
  falseValue: import("..").RadioValueType;
@@ -3289,6 +3314,10 @@ export declare const UCalendar: {
3289
3314
  type: (StringConstructor | NumberConstructor)[];
3290
3315
  default: string;
3291
3316
  };
3317
+ label: {
3318
+ type: StringConstructor;
3319
+ default: string;
3320
+ };
3292
3321
  disabled: {
3293
3322
  type: BooleanConstructor;
3294
3323
  default: boolean;
@@ -3325,6 +3354,7 @@ export declare const UCalendar: {
3325
3354
  size: "small" | "default" | "large";
3326
3355
  disabled: boolean;
3327
3356
  modelValue: import("..").RadioValueType;
3357
+ label: string;
3328
3358
  value: string | number;
3329
3359
  trueValue: import("..").RadioValueType;
3330
3360
  falseValue: import("..").RadioValueType;
@@ -1,4 +1,4 @@
1
- import { defineComponent, inject, ref, computed, watch, openBlock, createElementBlock, normalizeClass, createElementVNode, withDirectives, vShow, renderSlot, createTextVNode, toDisplayString } from 'vue';
1
+ import { defineComponent, inject, ref, computed, watch, openBlock, createElementBlock, normalizeClass, createElementVNode, withDirectives, vShow, renderSlot, createTextVNode, toDisplayString, createCommentVNode } from 'vue';
2
2
  import useGlobalConfig from '../base/hooks/useGlobalConfig.mjs';
3
3
  import '../Form/index.mjs';
4
4
  import { radioProps, radioEmits } from './Radio.type.mjs';
@@ -136,13 +136,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
136
136
  onBlur: _cache[2] || (_cache[2] = (...args) => _ctx.handleOnBlur && _ctx.handleOnBlur(...args))
137
137
  }, null, 42, _hoisted_1)
138
138
  ], 2),
139
- createElementVNode("span", {
139
+ _ctx.label || _ctx.$slots.default ? (openBlock(), createElementBlock("span", {
140
+ key: 0,
140
141
  class: normalizeClass([`${_ctx.prefixCls}-label`])
141
142
  }, [
142
143
  renderSlot(_ctx.$slots, "default", {}, () => [
143
- createTextVNode(toDisplayString(_ctx.value), 1)
144
+ createTextVNode(toDisplayString(_ctx.label), 1)
144
145
  ])
145
- ], 2)
146
+ ], 2)) : createCommentVNode("v-if", true)
146
147
  ], 2);
147
148
  }
148
149
  var Radio = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/admin/Documents/uxd/uxd-ui/src/components/Radio/Radio.vue"]]);
@@ -1 +1 @@
1
- {"version":3,"file":"Radio.mjs","sources":["../../../../src/components/Radio/Radio.vue"],"sourcesContent":["<template>\n <label\n :class=\"[\n `${prefixCls}-wrap`,\n `${prefixCls}-wrap-${computedSize}`,\n {\n [`${prefixCls}-wrap-checked`]: computedChecked,\n [`${prefixCls}-wrap-disabled`]: computedDisabled,\n [`${prefixCls}-focus`]: focusWrap\n }\n ]\"\n >\n <span\n :class=\"[\n prefixCls,\n {\n [`${prefixCls}-checked`]: computedChecked,\n [`${prefixCls}-disabled`]: computedDisabled\n }\n ]\"\n >\n <span v-show=\"showInput\" :class=\"[`${prefixCls}-inner`, { [`${prefixCls}-focus`]: focusInner }]\" />\n <input\n type=\"radio\"\n :class=\"`${prefixCls}-input`\"\n :disabled=\"computedDisabled\"\n :checked=\"computedChecked\"\n :name=\"groupName\"\n @change=\"change\"\n @focus=\"handleOnFocus\"\n @blur=\"handleOnBlur\"\n />\n </span>\n <span :class=\"[`${prefixCls}-label`]\">\n <slot>{{ value }}</slot>\n </span>\n </label>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent, inject, computed, ref, watch } from 'vue';\nimport useGlobalConfig from '../base/hooks/useGlobalConfig';\nimport { FormItemKey } from '../Form';\nimport type { FormItemContext } from '../Form/Form.type';\nimport { type RadioGroupContext, radioProps, radioEmits } from './Radio.type';\n\nexport default defineComponent({\n name: 'URadio',\n props: radioProps,\n emits: radioEmits,\n setup(props, { emit }) {\n // prefixCls\n const { prefixCls } = useGlobalConfig('radio');\n const radioGroupContext = inject<RadioGroupContext | null>('radioGroupContext', null);\n // data\n const focusWrap = ref(false);\n const focusInner = ref(false);\n const stateValue = ref(props.modelValue || false);\n // computed\n const computedChecked = computed(() => {\n if (radioGroupContext) {\n return radioGroupContext.stateValue.value === props.value;\n }\n return !!stateValue.value;\n });\n const groupName = computed(() => {\n if (radioGroupContext) {\n return radioGroupContext.name.value;\n }\n return props.name;\n });\n\n const computedSize = computed(() => {\n if (radioGroupContext) {\n return radioGroupContext.size.value || props.size;\n }\n return props.size;\n });\n const computedDisabled = computed(() => {\n if (radioGroupContext) {\n return radioGroupContext.disabled.value || props.disabled;\n }\n return props.disabled;\n });\n\n const showInput = computed(() => {\n if (radioGroupContext) {\n return radioGroupContext.computedType?.value === 'default';\n }\n return true;\n });\n // watch\n watch(\n () => props.modelValue,\n (nv) => {\n stateValue.value = nv === props.trueValue;\n },\n { immediate: true }\n );\n // methods\n const { onFieldChange } = inject<FormItemContext>(FormItemKey, {} as FormItemContext);\n const change = (event: any) => {\n if (props.disabled) {\n return false;\n }\n stateValue.value = event.target.checked;\n const value = stateValue.value ? props.trueValue : props.falseValue;\n if (radioGroupContext) {\n if (props.value !== undefined) {\n radioGroupContext.change(props.value);\n }\n } else {\n emit('update:modelValue', value);\n emit('change', value, event);\n if (onFieldChange) {\n onFieldChange(value);\n }\n }\n };\n const handleOnFocus = () => {\n if (radioGroupContext && radioGroupContext.computedType && radioGroupContext.computedType.value === 'default') {\n focusInner.value = true;\n } else {\n focusWrap.value = true;\n }\n };\n const handleOnBlur = () => {\n focusWrap.value = false;\n focusInner.value = false;\n };\n return {\n prefixCls,\n computedSize,\n computedDisabled,\n focusWrap,\n focusInner,\n computedChecked,\n showInput,\n groupName,\n change,\n handleOnFocus,\n handleOnBlur\n };\n }\n});\n</script>\n\n<style></style>\n"],"names":["_createElementBlock","_normalizeClass","_createElementVNode","_renderSlot"],"mappings":";;;;;;;AA8CA,MAAK,YAAa,gBAAa;AAAA,EAC7B,MAAM;AAAA,EACN,OAAO;AAAA,EACP,OAAO;AAAA,EACP,MAAM,OAAO,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;AAAA;AACpB;UAEI,eAAe,MAAM;gBACf,QAAQ;iBACP,QAAQ;AAAA;WAEd;AAAA,MACL;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA;AACF;AAEJ,CAAC;;;sBA/ICA,mBAmCQ;IAlCL,OAAKC;SAAa;SAA2B,uBAAkB;;YAAoC,gCAA2B;YAA6B,iCAA4B;YAA8B,yBAAoB;;;;IAU1OC,mBAoBO;MAnBJ,OAAKD;QAAY;;cAAmC,2BAAsB;cAA+B,4BAAuB;;;;qBAQjIC,mBAAmG;QAAzE,OAAKD,mBAAM,wBAAS,MAAgB,yBAAoB;;gBAApE,cAAS;AAAA;MACvBC,mBASE;QARA,MAAK;AAAA,QACJ,OAAKD,kBAAK,sBAAS;AAAA,QACnB,UAAU;QACV,SAAS;QACT,MAAM;QACN,UAAM,uCAAE;QACR,SAAK,uCAAE;QACP,QAAI,uCAAE;;;IAGXC,mBAEO;MAFA,OAAKD,mBAAM,sBAAS;;MACzBE,WAAwB,4BAAxB,MAAwB;AAAA,wCAAf,UAAK;;;;;;;;;"}
1
+ {"version":3,"file":"Radio.mjs","sources":["../../../../src/components/Radio/Radio.vue"],"sourcesContent":["<template>\n <label\n :class=\"[\n `${prefixCls}-wrap`,\n `${prefixCls}-wrap-${computedSize}`,\n {\n [`${prefixCls}-wrap-checked`]: computedChecked,\n [`${prefixCls}-wrap-disabled`]: computedDisabled,\n [`${prefixCls}-focus`]: focusWrap\n }\n ]\"\n >\n <span\n :class=\"[\n prefixCls,\n {\n [`${prefixCls}-checked`]: computedChecked,\n [`${prefixCls}-disabled`]: computedDisabled\n }\n ]\"\n >\n <span v-show=\"showInput\" :class=\"[`${prefixCls}-inner`, { [`${prefixCls}-focus`]: focusInner }]\" />\n <input\n type=\"radio\"\n :class=\"`${prefixCls}-input`\"\n :disabled=\"computedDisabled\"\n :checked=\"computedChecked\"\n :name=\"groupName\"\n @change=\"change\"\n @focus=\"handleOnFocus\"\n @blur=\"handleOnBlur\"\n />\n </span>\n\n <span v-if=\"label || $slots.default\" :class=\"[`${prefixCls}-label`]\">\n <slot>{{ label }}</slot>\n </span>\n </label>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent, inject, computed, ref, watch } from 'vue';\nimport useGlobalConfig from '../base/hooks/useGlobalConfig';\nimport { FormItemKey } from '../Form';\nimport type { FormItemContext } from '../Form/Form.type';\nimport { type RadioGroupContext, radioProps, radioEmits } from './Radio.type';\n\nexport default defineComponent({\n name: 'URadio',\n props: radioProps,\n emits: radioEmits,\n setup(props, { emit }) {\n // prefixCls\n const { prefixCls } = useGlobalConfig('radio');\n const radioGroupContext = inject<RadioGroupContext | null>('radioGroupContext', null);\n // data\n const focusWrap = ref(false);\n const focusInner = ref(false);\n const stateValue = ref(props.modelValue || false);\n // computed\n const computedChecked = computed(() => {\n if (radioGroupContext) {\n return radioGroupContext.stateValue.value === props.value;\n }\n return !!stateValue.value;\n });\n const groupName = computed(() => {\n if (radioGroupContext) {\n return radioGroupContext.name.value;\n }\n return props.name;\n });\n\n const computedSize = computed(() => {\n if (radioGroupContext) {\n return radioGroupContext.size.value || props.size;\n }\n return props.size;\n });\n const computedDisabled = computed(() => {\n if (radioGroupContext) {\n return radioGroupContext.disabled.value || props.disabled;\n }\n return props.disabled;\n });\n\n const showInput = computed(() => {\n if (radioGroupContext) {\n return radioGroupContext.computedType?.value === 'default';\n }\n return true;\n });\n // watch\n watch(\n () => props.modelValue,\n (nv) => {\n stateValue.value = nv === props.trueValue;\n },\n { immediate: true }\n );\n // methods\n const { onFieldChange } = inject<FormItemContext>(FormItemKey, {} as FormItemContext);\n const change = (event: any) => {\n if (props.disabled) {\n return false;\n }\n stateValue.value = event.target.checked;\n const value = stateValue.value ? props.trueValue : props.falseValue;\n if (radioGroupContext) {\n if (props.value !== undefined) {\n radioGroupContext.change(props.value);\n }\n } else {\n emit('update:modelValue', value);\n emit('change', value, event);\n if (onFieldChange) {\n onFieldChange(value);\n }\n }\n };\n const handleOnFocus = () => {\n if (radioGroupContext && radioGroupContext.computedType && radioGroupContext.computedType.value === 'default') {\n focusInner.value = true;\n } else {\n focusWrap.value = true;\n }\n };\n const handleOnBlur = () => {\n focusWrap.value = false;\n focusInner.value = false;\n };\n return {\n prefixCls,\n computedSize,\n computedDisabled,\n focusWrap,\n focusInner,\n computedChecked,\n showInput,\n groupName,\n change,\n handleOnFocus,\n handleOnBlur\n };\n }\n});\n</script>\n\n<style></style>\n"],"names":["_createElementBlock","_normalizeClass","_createElementVNode","_renderSlot"],"mappings":";;;;;;;AA+CA,MAAK,YAAa,gBAAa;AAAA,EAC7B,MAAM;AAAA,EACN,OAAO;AAAA,EACP,OAAO;AAAA,EACP,MAAM,OAAO,EAAE,QAAQ;UAEf,EAAE,cAAc,gBAAgB,OAAO;UACvC,oBAAoB,OAAiC,qBAAqB,IAAI;UAE9E,YAAY,IAAI,KAAK;UACrB,aAAa,IAAI,KAAK;UACtB,aAAa,IAAI,MAAM,cAAc,KAAK;UAE1C,kBAAkB,SAAS,MAAM;UACjC,mBAAmB;eACd,kBAAkB,WAAW,UAAU,MAAM;AAAA;aAE/C,CAAC,CAAC,WAAW;AAAA,KACrB;UACK,YAAY,SAAS,MAAM;UAC3B,mBAAmB;eACd,kBAAkB,KAAK;AAAA;aAEzB,MAAM;AAAA,KACd;UAEK,eAAe,SAAS,MAAM;UAC9B,mBAAmB;eACd,kBAAkB,KAAK,SAAS,MAAM;AAAA;aAExC,MAAM;AAAA,KACd;UACK,mBAAmB,SAAS,MAAM;UAClC,mBAAmB;eACd,kBAAkB,SAAS,SAAS,MAAM;AAAA;aAE5C,MAAM;AAAA,KACd;UAEK,YAAY,SAAS,MAAM;AA7CrC;UA8CU,mBAAmB;iBACd,uBAAkB,iBAAlB,mBAAgC,WAAU;AAAA;aAE5C;AAAA,KACR;;MAGC,MAAM,MAAM;AAAA,MACZ,CAAC,OAAO;m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AwB;AAAA,wCAAf,UAAK;;;;;;;;;"}
@@ -29,6 +29,10 @@ export declare const radioProps: {
29
29
  type: (StringConstructor | NumberConstructor)[];
30
30
  default: string;
31
31
  };
32
+ label: {
33
+ type: StringConstructor;
34
+ default: string;
35
+ };
32
36
  disabled: {
33
37
  type: BooleanConstructor;
34
38
  default: boolean;
@@ -20,6 +20,10 @@ const radioProps = {
20
20
  type: [String, Number],
21
21
  default: ""
22
22
  },
23
+ label: {
24
+ type: String,
25
+ default: ""
26
+ },
23
27
  disabled: {
24
28
  type: Boolean,
25
29
  default: false
@@ -1 +1 @@
1
- {"version":3,"file":"Radio.type.mjs","sources":["../../../../src/components/Radio/Radio.type.ts"],"sourcesContent":["import type { ExtractPropTypes, PropType, Ref } from 'vue';\nimport { normalSizeMap } from '../../utils/globalType';\nimport type { NormalSizeMap } from '../../utils/globalType';\nimport { oneOf } from '../../utils/propsValidators';\n\nexport type RadioValueType = string | number | boolean;\nexport type RadioGroupValueType = string | number;\nexport const radioGroupType = ['default', 'button'] as const;\nexport type RaidoGroupType = (typeof radioGroupType)[number];\nexport const radioButtonType = ['border', 'fill', 'line', 'segment', 'card'] as const;\nexport type RadioButtonType = (typeof radioButtonType)[number];\nexport interface RadioGroupOption {\n value: RadioGroupValueType;\n label: string;\n disabled?: boolean;\n border?: boolean;\n}\n\nexport const radioProps = {\n modelValue: {\n type: [String, Number, Boolean] as PropType<RadioValueType>,\n default: false\n },\n trueValue: {\n type: [String, Number, Boolean] as PropType<RadioValueType>,\n default: true\n },\n falseValue: {\n type: [String, Number, Boolean] as PropType<RadioValueType>,\n default: false\n },\n value: {\n type: [String, Number],\n default: ''\n },\n disabled: {\n type: Boolean,\n default: false\n },\n size: {\n type: String as PropType<NormalSizeMap>,\n default: 'default',\n validator: oneOf(normalSizeMap)\n },\n name: {\n type: String,\n default: ''\n }\n};\n\nexport type RadioProps = ExtractPropTypes<typeof radioProps>;\n\nexport const radioEmits = {\n change: (v: RadioValueType, e: Event) => (typeof v === 'boolean' || typeof v === 'string' || typeof v === 'number') && e instanceof Event,\n 'update:modelValue': (v: RadioValueType) => typeof v === 'boolean' || typeof v === 'string' || typeof v === 'number'\n};\n\nexport type RadioEmits = typeof radioEmits;\n\nlet seed = -1;\nconst getUuid = () => {\n const now = Date.now();\n seed += 1;\n return `uuiRadioGroup_${now}_${seed}`;\n};\n\nexport const radioGroupProps = {\n modelValue: {\n type: [String, Number] as PropType<RadioGroupValueType>,\n default: ''\n },\n size: {\n type: String as PropType<NormalSizeMap>,\n default: 'default',\n validator: oneOf(normalSizeMap)\n },\n type: {\n type: String as PropType<RaidoGroupType>,\n default: 'default',\n validator: oneOf(radioGroupType)\n },\n vertical: {\n type: Boolean,\n default: false\n },\n name: {\n type: String,\n default: getUuid\n },\n options: {\n type: Array as PropType<RadioGroupOption[]>,\n default: () => [] as RadioGroupOption[]\n },\n buttonFill: {\n type: Boolean,\n default: false\n },\n buttonType: {\n type: String as PropType<RadioButtonType>,\n default: 'border',\n validator: oneOf(radioButtonType)\n },\n disabled: {\n type: Boolean,\n default: false\n },\n direction: {\n type: String as PropType<'ltr' | 'rtl'>\n }\n};\n\nexport type RadioGroupProps = ExtractPropTypes<typeof radioGroupProps>;\n\nexport const radioGroupEmits = {\n change: (v: RadioGroupValueType) => typeof v === 'string' || typeof v === 'number',\n 'update:modelValue': (v: RadioGroupValueType) => typeof v === 'string' || typeof v === 'number'\n};\n\nexport interface RadioGroupContext {\n stateValue: Ref<RadioGroupValueType>;\n name: Ref<string>;\n computedType: Ref<RadioButtonType & 'default'>;\n size: Ref<NormalSizeMap>;\n disabled: Ref<boolean>;\n change: (state: RadioGroupValueType) => void;\n}\n"],"names":[],"mappings":";;;MAOa,iBAAiB,CAAC,WAAW,QAAQ;MAErC,kBAAkB,CAAC,UAAU,QAAQ,QAAQ,WAAW,MAAM;MAS9D,aAAa;AAAA,EACxB,YAAY;AAAA,IACV,MAAM,CAAC,QAAQ,QAAQ,OAAO;AAAA,IAC9B,SAAS;A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AAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,YAAY;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA,IACT,WAAW,MAAM,eAAe;AAAA;AAClC,EACA,UAAU;AAAA,IACR,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,WAAW;AAAA,IACT,MAAM;AAAA;AAEV;MAIa,kBAAkB;AAAA,EAC7B,QAAQ,CAAC,MAA2B,OAAO,MAAM,YAAY,OAAO,MAAM;AAAA,EAC1E,qBAAqB,CAAC,MAA2B,OAAO,MAAM,YAAY,OAAO,MAAM;AACzF;;;;"}
1
+ {"version":3,"file":"Radio.type.mjs","sources":["../../../../src/components/Radio/Radio.type.ts"],"sourcesContent":["import type { ExtractPropTypes, PropType, Ref } from 'vue';\nimport { normalSizeMap } from '../../utils/globalType';\nimport type { NormalSizeMap } from '../../utils/globalType';\nimport { oneOf } from '../../utils/propsValidators';\n\nexport type RadioValueType = string | number | boolean;\nexport type RadioGroupValueType = string | number;\nexport const radioGroupType = ['default', 'button'] as const;\nexport type RaidoGroupType = (typeof radioGroupType)[number];\nexport const radioButtonType = ['border', 'fill', 'line', 'segment', 'card'] as const;\nexport type RadioButtonType = (typeof radioButtonType)[number];\nexport interface RadioGroupOption {\n value: RadioGroupValueType;\n label: string;\n disabled?: boolean;\n border?: boolean;\n}\n\nexport const radioProps = {\n modelValue: {\n type: [String, Number, Boolean] as PropType<RadioValueType>,\n default: false\n },\n trueValue: {\n type: [String, Number, Boolean] as PropType<RadioValueType>,\n default: true\n },\n falseValue: {\n type: [String, Number, Boolean] as PropType<RadioValueType>,\n default: false\n },\n value: {\n type: [String, Number],\n default: ''\n },\n label: {\n type: String,\n default: ''\n },\n disabled: {\n type: Boolean,\n default: false\n },\n size: {\n type: String as PropType<NormalSizeMap>,\n default: 'default',\n validator: oneOf(normalSizeMap)\n },\n name: {\n type: String,\n default: ''\n }\n};\n\nexport type RadioProps = ExtractPropTypes<typeof radioProps>;\n\nexport const radioEmits = {\n change: (v: RadioValueType, e: Event) => (typeof v === 'boolean' || typeof v === 'string' || typeof v === 'number') && e instanceof Event,\n 'update:modelValue': (v: RadioValueType) => typeof v === 'boolean' || typeof v === 'string' || typeof v === 'number'\n};\n\nexport type RadioEmits = typeof radioEmits;\n\nlet seed = -1;\nconst getUuid = () => {\n const now = Date.now();\n seed += 1;\n return `uuiRadioGroup_${now}_${seed}`;\n};\n\nexport const radioGroupProps = {\n modelValue: {\n type: [String, Number] as PropType<RadioGroupValueType>,\n default: ''\n },\n size: {\n type: String as PropType<NormalSizeMap>,\n default: 'default',\n validator: oneOf(normalSizeMap)\n },\n type: {\n type: String as PropType<RaidoGroupType>,\n default: 'default',\n validator: oneOf(radioGroupType)\n },\n vertical: {\n type: Boolean,\n default: false\n },\n name: {\n type: String,\n default: getUuid\n },\n options: {\n type: Array as PropType<RadioGroupOption[]>,\n default: () => [] as RadioGroupOption[]\n },\n buttonFill: {\n type: Boolean,\n default: false\n },\n buttonType: {\n type: String as PropType<RadioButtonType>,\n default: 'border',\n validator: oneOf(radioButtonType)\n },\n disabled: {\n type: Boolean,\n default: false\n },\n direction: {\n type: String as PropType<'ltr' | 'rtl'>\n }\n};\n\nexport type RadioGroupProps = ExtractPropTypes<typeof radioGroupProps>;\n\nexport const radioGroupEmits = {\n change: (v: RadioGroupValueType) => typeof v === 'string' || typeof v === 'number',\n 'update:modelValue': (v: RadioGroupValueType) => typeof v === 'string' || typeof v === 'number'\n};\n\nexport interface RadioGroupContext {\n stateValue: Ref<RadioGroupValueType>;\n name: Ref<string>;\n computedType: Ref<RadioButtonType & 'default'>;\n size: Ref<NormalSizeMap>;\n disabled: Ref<boolean>;\n change: (state: RadioGroupValueType) => void;\n}\n"],"names":[],"mappings":";;;MAOa,iBAAiB,CAAC,WAAW,QAAQ;MAErC,kBAAkB,CAAC,UAAU,QAAQ,QAAQ,WAAW,MAAM;MAS9D,aAAa;AAAA,EACxB,YAAY;AAAA,IACV,MAAM,CAAC,QAAQ,QAAQ,OAAO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S;AAAA,IACP,MAAM;AAAA,IACN,SAAS,MAAM;AAAC;AAClB,EACA,YAAY;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,YAAY;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA,IACT,WAAW,MAAM,eAAe;AAAA;AAClC,EACA,UAAU;AAAA,IACR,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,WAAW;AAAA,IACT,MAAM;AAAA;AAEV;MAIa,kBAAkB;AAAA,EAC7B,QAAQ,CAAC,MAA2B,OAAO,MAAM,YAAY,OAAO,MAAM;AAAA,EAC1E,qBAAqB,CAAC,MAA2B,OAAO,MAAM,YAAY,OAAO,MAAM;AACzF;;;;"}
@@ -15,6 +15,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
15
15
  type: (StringConstructor | NumberConstructor)[];
16
16
  default: string;
17
17
  };
18
+ label: {
19
+ type: StringConstructor;
20
+ default: string;
21
+ };
18
22
  disabled: {
19
23
  type: BooleanConstructor;
20
24
  default: boolean;
@@ -60,6 +64,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
60
64
  type: (StringConstructor | NumberConstructor)[];
61
65
  default: string;
62
66
  };
67
+ label: {
68
+ type: StringConstructor;
69
+ default: string;
70
+ };
63
71
  disabled: {
64
72
  type: BooleanConstructor;
65
73
  default: boolean;
@@ -81,6 +89,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
81
89
  size: "small" | "default" | "large";
82
90
  disabled: boolean;
83
91
  modelValue: import("./Radio.type").RadioValueType;
92
+ label: string;
84
93
  value: string | number;
85
94
  trueValue: import("./Radio.type").RadioValueType;
86
95
  falseValue: import("./Radio.type").RadioValueType;
@@ -17,6 +17,10 @@ export declare const URadio: {
17
17
  type: (StringConstructor | NumberConstructor)[];
18
18
  default: string;
19
19
  };
20
+ label: {
21
+ type: StringConstructor;
22
+ default: string;
23
+ };
20
24
  disabled: {
21
25
  type: BooleanConstructor;
22
26
  default: boolean;
@@ -53,6 +57,7 @@ export declare const URadio: {
53
57
  size: "small" | "default" | "large";
54
58
  disabled: boolean;
55
59
  modelValue: import("./Radio.type").RadioValueType;
60
+ label: string;
56
61
  value: string | number;
57
62
  trueValue: import("./Radio.type").RadioValueType;
58
63
  falseValue: import("./Radio.type").RadioValueType;
@@ -80,6 +85,10 @@ export declare const URadio: {
80
85
  type: (StringConstructor | NumberConstructor)[];
81
86
  default: string;
82
87
  };
88
+ label: {
89
+ type: StringConstructor;
90
+ default: string;
91
+ };
83
92
  disabled: {
84
93
  type: BooleanConstructor;
85
94
  default: boolean;
@@ -113,6 +122,7 @@ export declare const URadio: {
113
122
  size: "small" | "default" | "large";
114
123
  disabled: boolean;
115
124
  modelValue: import("./Radio.type").RadioValueType;
125
+ label: string;
116
126
  value: string | number;
117
127
  trueValue: import("./Radio.type").RadioValueType;
118
128
  falseValue: import("./Radio.type").RadioValueType;
@@ -137,6 +147,10 @@ export declare const URadio: {
137
147
  type: (StringConstructor | NumberConstructor)[];
138
148
  default: string;
139
149
  };
150
+ label: {
151
+ type: StringConstructor;
152
+ default: string;
153
+ };
140
154
  disabled: {
141
155
  type: BooleanConstructor;
142
156
  default: boolean;
@@ -173,6 +187,7 @@ export declare const URadio: {
173
187
  size: "small" | "default" | "large";
174
188
  disabled: boolean;
175
189
  modelValue: import("./Radio.type").RadioValueType;
190
+ label: string;
176
191
  value: string | number;
177
192
  trueValue: import("./Radio.type").RadioValueType;
178
193
  falseValue: import("./Radio.type").RadioValueType;
@@ -2,6 +2,7 @@ import { defineComponent, inject, ref, computed, resolveComponent, openBlock, cr
2
2
  import ColGroup from './tableUnits/ColGroup.mjs';
3
3
  import TableHeader from './tableUnits/TableHeader.mjs';
4
4
  import TableBody from './tableUnits/TableBody.mjs';
5
+ import { getWidth } from './hooks/useTableResize.mjs';
5
6
  import _export_sfc from '../../_virtual/plugin-vue_export-helper.mjs';
6
7
 
7
8
  const _sfc_main = defineComponent({
@@ -28,35 +29,48 @@ const _sfc_main = defineComponent({
28
29
  setup(props) {
29
30
  const {
30
31
  prefixCls,
31
- size: { tableWidth, sizesMap }
32
+ props: { width },
33
+ size: { tableWidth }
32
34
  } = inject("tableContext", {});
33
35
  const tableRef = ref(null);
34
36
  const tableStyle = computed(() => {
35
37
  const style = {};
36
- style.width = `${tableWidth.value}px`;
38
+ if (width.value) {
39
+ style.width = typeof width.value === "number" ? `${width.value}px` : width.value;
40
+ } else if (props.columns.some((x) => x.fixed)) {
41
+ style.width = "max-content";
42
+ style.minWidth = "100%";
43
+ }
44
+ if (props.columns.some((x) => x.ellipsis) || props.columns.some((x) => x.resizable)) {
45
+ style.tableLayout = "fixed";
46
+ } else {
47
+ style.tableLayout = "auto";
48
+ }
37
49
  return style;
38
50
  });
39
51
  const getColumns = () => {
40
52
  let left = 0;
41
- let right = props.columns.filter((x) => x.fixed === "right").reduce((sum, { key }) => {
42
- const w = sizesMap[key];
53
+ let right = props.columns.filter((x) => x.fixed === "right").reduce((sum, column) => {
54
+ var _a;
55
+ const w = getWidth((_a = column.width) != null ? _a : column.minWidth, tableWidth.value);
43
56
  return sum + w;
44
57
  }, 0);
45
58
  return props.columns.map((column) => {
59
+ var _a, _b;
46
60
  const rst = {
47
61
  ...column,
48
62
  className: column.fixed ? `${column.className || ""} ${prefixCls.value}-fixed-column ${prefixCls.value}-fixed-column-${column.fixed}` : column.className
49
63
  };
50
64
  if (column.fixed === "left") {
51
65
  rst.left = left;
52
- const w = sizesMap[column.key];
66
+ const w = getWidth((_a = column.width) != null ? _a : column.minWidth, tableWidth.value);
53
67
  left += w;
54
68
  if (column.lastLeft) {
55
69
  rst.className = `${rst.className || ""} ${prefixCls.value}-fixed-column-${column.fixed}-last`;
56
70
  }
57
71
  }
58
72
  if (column.fixed === "right") {
59
- const w = sizesMap[column.key];
73
+ const w = getWidth((_b = column.width) != null ? _b : column.minWidth, tableWidth.value);
60
74
  right -= w;
61
75
  rst.right = right;
62
76
  if (column.firstRight) {
@@ -1 +1 @@
1
- {"version":3,"file":"BaseTable.mjs","sources":["../../../../src/components/Table/BaseTable.vue"],"sourcesContent":["<template>\n <table ref=\"tableRef\" :style=\"tableStyle\">\n <ColGroup :columns=\"columns\" />\n <TableHeader v-if=\"showHeader\" :columns=\"getColumns()\" />\n <TableBody v-if=\"showBody\" :columns=\"getColumns()\" />\n </table>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent, computed, inject, ref } from 'vue';\nimport type { PropType, CSSProperties } from 'vue';\nimport ColGroup from './tableUnits/ColGroup.vue';\nimport TableHeader from './tableUnits/TableHeader.vue';\nimport TableBody from './tableUnits/TableBody.vue';\n// import useResizeObserver from '../base/hooks/useResizeObserver';\nimport type { InnerColumn, TableContext } from './Table.type';\n// import { debounce } from '../../utils/tools';\n\nexport default defineComponent({\n name: 'BaseTable',\n components: {\n ColGroup,\n TableHeader,\n TableBody\n },\n props: {\n showHeader: {\n type: Boolean,\n default: false\n },\n showBody: {\n type: Boolean,\n default: false\n },\n columns: {\n type: Array as PropType<InnerColumn[]>,\n default: () => [] as InnerColumn[]\n }\n },\n setup(props) {\n const {\n prefixCls,\n size: { tableWidth, sizesMap }\n } = inject<TableContext>('tableContext', {} as TableContext);\n const tableRef = ref<HTMLElement | null>(null);\n\n const tableStyle = computed(() => {\n const style = {} as CSSProperties;\n style.width = `${tableWidth.value}px`;\n return style;\n });\n\n const getColumns = () => {\n let left = 0;\n let right = props.columns\n .filter((x) => x.fixed === 'right')\n .reduce((sum, { key }) => {\n const w = sizesMap[key];\n return sum + w;\n }, 0);\n return props.columns.map((column) => {\n const rst = {\n ...column,\n className: column.fixed\n ? `${column.className || ''} ${prefixCls.value}-fixed-column ${prefixCls.value}-fixed-column-${column.fixed}`\n : column.className\n };\n if (column.fixed === 'left') {\n rst.left = left;\n const w = sizesMap[column.key];\n left += w;\n if (column.lastLeft) {\n rst.className = `${rst.className || ''} ${prefixCls.value}-fixed-column-${column.fixed}-last`;\n }\n }\n if (column.fixed === 'right') {\n const w = sizesMap[column.key];\n right -= w;\n rst.right = right;\n if (column.firstRight) {\n rst.className = `${rst.className || ''} ${prefixCls.value}-fixed-column-${column.fixed}-first`;\n }\n }\n\n return rst;\n });\n };\n\n // const debouncedHandleResize = debounce(syncFixedTableRowHeight, 150);\n // useResizeObserver(tableRef, debouncedHandleResize);\n\n return {\n tableRef,\n prefixCls,\n tableStyle,\n getColumns\n };\n }\n});\n</script>\n"],"names":["_createElementBlock","_normalizeStyle","_createVNode","_createBlock"],"mappings":";;;;;;AAkBA,MAAK,YAAa,gBAAa;AAAA,EAC7B,MAAM;AAAA,EACN,YAAY;AAAA,IACV;AAAA,IACA;AAAA,IACA;AAAA;AACF,EACA,OAAO;AAAA,IACL,YAAY;AAAA,MACV,MAAM;AAAA,MACN,SAAS;AAAA;AACX,IACA,UAAU;AAAA,MACR,MAAM;AAAA,MACN,SAAS;AAAA;AACX,IACA,SAAS;AAAA,MACP,MAAM;AAAA,MACN,SAAS,MAAM;AAAC;AAClB;AACF,EACA,MAAM,OAAO;UACL;AAAA,MACJ;AAAA,MACA,MAAM,EAAE,YAAY;AAAS,QAC3B,OAAqB,gBAAgB,EAAkB;UACrD,WAAW,IAAwB,IAAI;UAEvC,aAAa,SAAS,MAAM;YAC1B,QAAQ;YACR,QAAQ,GAAG,WAAW;aACrB;AAAA,KACR;UAEK,aAAa,MAAM;UACnB,OAAO;UACP,QAAQ,MAAM,QACf,OAAO,CAAC,MAAM,EAAE,UAAU,OAAO,EACjC,OAAO,CAAC,KAAK,EAAE,UAAU;cAClB,IAAI,SAAS;eACZ,MAAM;AAAA,SACZ,CAAC;aACC,MAAM,QAAQ,IAAI,CAAC,WAAW;cAC7B,MAAM;AAAA,UACV,GAAG;AAAA,UACH,WAAW,OAAO,QACd,GAAG,OAAO,aAAa,MAAM,UAAU,sBAAsB,UAAU,sBAAsB,OAAO,UACpG,OAAO;AAAA;YAET,OAAO,UAAU,QAAQ;cACvB,OAAO;gBACL,IAAI,SAAS,OAAO;kBAClB;cACJ,OAAO,UAAU;gBACf,YAAY,GAAG,IAAI,aAAa,MAAM,UAAU,sBAAsB,OAAO;AAAA;AACnF;YAEE,OAAO,UAAU,SAAS;gBACtB,IAAI,SAAS,OAAO;mBACjB;cACL,QAAQ;cACR,OAAO,YAAY;gBACjB,YAAY,GAAG,IAAI,aAAa,MAAM,UAAU,sBAAsB,OAAO;AAAA;AACnF;eAGK;AAAA,OACR;AAAA;WAMI;AAAA,MACL;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA;AACF;AAEJ,CAAC;;;;;sBAjGCA,mBAIQ;IAJD,KAAI;AAAA,IAAY,OAAKC,eAAE,eAAU;AAAA;IACtCC,YAA+B,uBAApB,SAAS;IACD,gCAAnBC,YAAyD;;MAAzB,SAAS;AAAU;IAClC,8BAAjBA,YAAqD;;MAAzB,SAAS;AAAU;;;;;;;"}
1
+ {"version":3,"file":"BaseTable.mjs","sources":["../../../../src/components/Table/BaseTable.vue"],"sourcesContent":["<template>\n <table ref=\"tableRef\" :style=\"tableStyle\">\n <ColGroup :columns=\"columns\" />\n <TableHeader v-if=\"showHeader\" :columns=\"getColumns()\" />\n <TableBody v-if=\"showBody\" :columns=\"getColumns()\" />\n </table>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent, computed, inject, ref } from 'vue';\nimport type { PropType, CSSProperties } from 'vue';\nimport ColGroup from './tableUnits/ColGroup.vue';\nimport TableHeader from './tableUnits/TableHeader.vue';\nimport TableBody from './tableUnits/TableBody.vue';\n// import useResizeObserver from '../base/hooks/useResizeObserver';\nimport type { InnerColumn, TableContext } from './Table.type';\nimport { getWidth } from './hooks/useTableResize';\n// import { debounce } from '../../utils/tools';\n\nexport default defineComponent({\n name: 'BaseTable',\n components: {\n ColGroup,\n TableHeader,\n TableBody\n },\n props: {\n showHeader: {\n type: Boolean,\n default: false\n },\n showBody: {\n type: Boolean,\n default: false\n },\n columns: {\n type: Array as PropType<InnerColumn[]>,\n default: () => [] as InnerColumn[]\n }\n },\n setup(props) {\n const {\n prefixCls,\n props: { width },\n size: { tableWidth }\n } = inject<TableContext>('tableContext', {} as TableContext);\n const tableRef = ref<HTMLElement | null>(null);\n\n const tableStyle = computed(() => {\n const style = {} as CSSProperties;\n if (width.value) {\n style.width = typeof width.value === 'number' ? `${width.value}px` : width.value;\n } else if (props.columns.some((x) => x.fixed)) {\n style.width = 'max-content';\n style.minWidth = '100%';\n }\n if (props.columns.some((x) => x.ellipsis) || props.columns.some((x) => x.resizable)) {\n style.tableLayout = 'fixed';\n } else {\n style.tableLayout = 'auto';\n }\n\n return style;\n });\n\n const getColumns = () => {\n let left = 0;\n let right = props.columns\n .filter((x) => x.fixed === 'right')\n .reduce((sum, column) => {\n const w = getWidth(column.width ?? column.minWidth, tableWidth.value);\n return sum + w;\n }, 0);\n return props.columns.map((column) => {\n const rst = {\n ...column,\n className: column.fixed\n ? `${column.className || ''} ${prefixCls.value}-fixed-column ${prefixCls.value}-fixed-column-${column.fixed}`\n : column.className\n };\n if (column.fixed === 'left') {\n rst.left = left;\n const w = getWidth(column.width ?? column.minWidth, tableWidth.value);\n left += w;\n if (column.lastLeft) {\n rst.className = `${rst.className || ''} ${prefixCls.value}-fixed-column-${column.fixed}-last`;\n }\n }\n if (column.fixed === 'right') {\n const w = getWidth(column.width ?? column.minWidth, tableWidth.value);\n right -= w;\n rst.right = right;\n if (column.firstRight) {\n rst.className = `${rst.className || ''} ${prefixCls.value}-fixed-column-${column.fixed}-first`;\n }\n }\n\n return rst;\n });\n };\n\n // const debouncedHandleResize = debounce(syncFixedTableRowHeight, 150);\n // useResizeObserver(tableRef, debouncedHandleResize);\n\n return {\n tableRef,\n prefixCls,\n tableStyle,\n getColumns\n };\n }\n});\n</script>\n"],"names":["_createElementBlock","_normalizeStyle","_createVNode","_createBlock"],"mappings":";;;;;;;AAmBA,MAAK,YAAa,gBAAa;AAAA,EAC7B,MAAM;AAAA,EACN,YAAY;AAAA,IACV;AAAA,IACA;AAAA,IACA;AAAA;AACF,EACA,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f,YAAY,GAAG,IAAI,aAAa,MAAM,UAAU,sBAAsB,OAAO;AAAA;AACnF;YAEE,OAAO,UAAU,SAAS;gBACtB,IAAI,UAAS,YAAO,UAAP,YAAgB,OAAO,UAAU,WAAW,KAAK;mBAC3D;cACL,QAAQ;cACR,OAAO,YAAY;gBACjB,YAAY,GAAG,IAAI,aAAa,MAAM,UAAU,sBAAsB,OAAO;AAAA;AACnF;eAGK;AAAA,OACR;AAAA;WAMI;AAAA,MACL;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA;AACF;AAEJ,CAAC;;;;;sBA9GCA,mBAIQ;IAJD,KAAI;AAAA,IAAY,OAAKC,eAAE,eAAU;AAAA;IACtCC,YAA+B,uBAApB,SAAS;IACD,gCAAnBC,YAAyD;;MAAzB,SAAS;AAAU;IAClC,8BAAjBA,YAAqD;;MAAzB,SAAS;AAAU;;;;;;;"}
@@ -34,8 +34,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
34
34
  title?: string;
35
35
  dataIndex?: string;
36
36
  width?: string | number;
37
- minWidth?: string | number;
38
- maxWidth?: string | number;
37
+ minWidth?: number;
39
38
  fixed?: import("./Table.type").ColumnFixed;
40
39
  align?: import("./Table.type").ColumnAlign;
41
40
  ellipsis?: boolean;
@@ -46,7 +45,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
46
45
  filterable?: boolean;
47
46
  filters?: import("./Table.type").ColumnFilter[];
48
47
  filterFn?: import("./Table.type").ColumnFilterFn;
49
- filterIcon?: string;
48
+ filterIcon?: string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>;
50
49
  filterIconStyle?: CSSProperties;
51
50
  filterMultiple?: boolean;
52
51
  filteredValue?: (string | number)[];
@@ -4430,6 +4429,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
4430
4429
  cellRef: import("vue").Ref<any, any>;
4431
4430
  ellipsisSpanRef: import("vue").Ref<any, any>;
4432
4431
  isOverflow: import("vue").Ref<boolean, boolean>;
4432
+ debouncedHandleResize: import("../../utils").DebounceReturn;
4433
4433
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
4434
4434
  prefixCls: {
4435
4435
  type: StringConstructor;
@@ -4486,7 +4486,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
4486
4486
  };
4487
4487
  expandIcon: {
4488
4488
  type: PropType<import("../..").IconPropType>;
4489
- default: () => import("vue").FunctionalComponent<import("lucide-vue-next").LucideProps, {}, any, {}>;
4489
+ default: any;
4490
4490
  };
4491
4491
  needIndentSpaced: {
4492
4492
  type: BooleanConstructor;
@@ -4512,7 +4512,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
4512
4512
  };
4513
4513
  expandIcon: {
4514
4514
  type: PropType<import("../..").IconPropType>;
4515
- default: () => import("vue").FunctionalComponent<import("lucide-vue-next").LucideProps, {}, any, {}>;
4515
+ default: any;
4516
4516
  };
4517
4517
  needIndentSpaced: {
4518
4518
  type: BooleanConstructor;
@@ -4527,7 +4527,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
4527
4527
  "onAsync-expand"?: (...args: any[]) => any;
4528
4528
  }>, {
4529
4529
  expanded: boolean;
4530
- expandIcon: import("vue").FunctionalComponent<import("lucide-vue-next").LucideProps, {}, any, {}>;
4530
+ expandIcon: any;
4531
4531
  expandable: boolean;
4532
4532
  needIndentSpaced: boolean;
4533
4533
  needLoading: boolean;
@@ -5504,6 +5504,23 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
5504
5504
  }, {}, {
5505
5505
  ImageIcon: import("vue").FunctionalComponent<import("lucide-vue-next").LucideProps, {}, any, {}>;
5506
5506
  }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
5507
+ ResizeObserver: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
5508
+ disabled: {
5509
+ type: BooleanConstructor;
5510
+ default: boolean;
5511
+ };
5512
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
5513
+ [key: string]: any;
5514
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "resize"[], "resize", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
5515
+ disabled: {
5516
+ type: BooleanConstructor;
5517
+ default: boolean;
5518
+ };
5519
+ }>> & Readonly<{
5520
+ onResize?: (...args: any[]) => any;
5521
+ }>, {
5522
+ disabled: boolean;
5523
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
5507
5524
  }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
5508
5525
  }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
5509
5526
  ExpandRows: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
@@ -5711,6 +5728,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
5711
5728
  cellRef: import("vue").Ref<any, any>;
5712
5729
  ellipsisSpanRef: import("vue").Ref<any, any>;
5713
5730
  isOverflow: import("vue").Ref<boolean, boolean>;
5731
+ debouncedHandleResize: import("../../utils").DebounceReturn;
5714
5732
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
5715
5733
  prefixCls: {
5716
5734
  type: StringConstructor;
@@ -5767,7 +5785,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
5767
5785
  };
5768
5786
  expandIcon: {
5769
5787
  type: PropType<import("../..").IconPropType>;
5770
- default: () => import("vue").FunctionalComponent<import("lucide-vue-next").LucideProps, {}, any, {}>;
5788
+ default: any;
5771
5789
  };
5772
5790
  needIndentSpaced: {
5773
5791
  type: BooleanConstructor;
@@ -5793,7 +5811,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
5793
5811
  };
5794
5812
  expandIcon: {
5795
5813
  type: PropType<import("../..").IconPropType>;
5796
- default: () => import("vue").FunctionalComponent<import("lucide-vue-next").LucideProps, {}, any, {}>;
5814
+ default: any;
5797
5815
  };
5798
5816
  needIndentSpaced: {
5799
5817
  type: BooleanConstructor;
@@ -5808,7 +5826,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
5808
5826
  "onAsync-expand"?: (...args: any[]) => any;
5809
5827
  }>, {
5810
5828
  expanded: boolean;
5811
- expandIcon: import("vue").FunctionalComponent<import("lucide-vue-next").LucideProps, {}, any, {}>;
5829
+ expandIcon: any;
5812
5830
  expandable: boolean;
5813
5831
  needIndentSpaced: boolean;
5814
5832
  needLoading: boolean;
@@ -6785,6 +6803,23 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
6785
6803
  }, {}, {
6786
6804
  ImageIcon: import("vue").FunctionalComponent<import("lucide-vue-next").LucideProps, {}, any, {}>;
6787
6805
  }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6806
+ ResizeObserver: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
6807
+ disabled: {
6808
+ type: BooleanConstructor;
6809
+ default: boolean;
6810
+ };
6811
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
6812
+ [key: string]: any;
6813
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "resize"[], "resize", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
6814
+ disabled: {
6815
+ type: BooleanConstructor;
6816
+ default: boolean;
6817
+ };
6818
+ }>> & Readonly<{
6819
+ onResize?: (...args: any[]) => any;
6820
+ }>, {
6821
+ disabled: boolean;
6822
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6788
6823
  }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6789
6824
  }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6790
6825
  }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;