@varlet/ui 1.24.11 → 1.24.12-alpha.1642320131135

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.
@@ -46,7 +46,7 @@ export function render(_ctx, _cache) {
46
46
  var _ctx$chooseMonth, _ctx$chooseMonth2, _ctx$chooseMonth3;
47
47
 
48
48
  return [_ctx.type === 'month' ? (_openBlock(), _createElementBlock("div", {
49
- key: _ctx.chooseYear + ((_ctx$chooseMonth = _ctx.chooseMonth) == null ? void 0 : _ctx$chooseMonth.index)
49
+ key: "" + _ctx.chooseYear + ((_ctx$chooseMonth = _ctx.chooseMonth) == null ? void 0 : _ctx$chooseMonth.index)
50
50
  }, [_ctx.range ? _renderSlot(_ctx.$slots, "range", {
51
51
  key: 0,
52
52
  choose: _ctx.getChoose.chooseRangeMonth
@@ -64,7 +64,7 @@ export function render(_ctx, _cache) {
64
64
  }, () => [_createTextVNode(_toDisplayString(_ctx.getMonthTitle), 1
65
65
  /* TEXT */
66
66
  )])])) : (_openBlock(), _createElementBlock("div", {
67
- key: _ctx.chooseYear + ((_ctx$chooseMonth3 = _ctx.chooseMonth) == null ? void 0 : _ctx$chooseMonth3.index) + _ctx.chooseDay
67
+ key: "" + _ctx.chooseYear + ((_ctx$chooseMonth3 = _ctx.chooseMonth) == null ? void 0 : _ctx$chooseMonth3.index) + _ctx.chooseDay
68
68
  }, [_ctx.range ? _renderSlot(_ctx.$slots, "range", {
69
69
  key: 0,
70
70
  choose: _ctx.formatRange
@@ -142,21 +142,21 @@ export default defineComponent({
142
142
 
143
143
  setup(props) {
144
144
  var currentDate = dayjs().format('YYYY-MM-D');
145
- var [currentYear, currentMonth, currentDay] = currentDate.split('-');
145
+ var [currentYear, currentMonth] = currentDate.split('-');
146
146
  var monthDes = MONTH_LIST.find(month => month.index === currentMonth);
147
147
  var isYearPanel = ref(false);
148
148
  var isMonthPanel = ref(false);
149
149
  var rangeDone = ref(true);
150
- var chooseMonth = ref(monthDes);
151
- var chooseYear = ref(currentYear);
152
- var chooseDay = ref(currentDay);
150
+ var chooseMonth = ref();
151
+ var chooseYear = ref();
152
+ var chooseDay = ref();
153
153
  var previewMonth = ref(monthDes);
154
154
  var previewYear = ref(currentYear);
155
155
  var reverse = ref(false);
156
- var chooseMonths = ref([currentYear + "-" + currentMonth]);
157
- var chooseDays = ref([currentDate]);
158
- var chooseRangeMonth = ref([currentYear + "-" + currentMonth]);
159
- var chooseRangeDay = ref([currentDate]);
156
+ var chooseMonths = ref([]);
157
+ var chooseDays = ref([]);
158
+ var chooseRangeMonth = ref([]);
159
+ var chooseRangeDay = ref([]);
160
160
  var componentProps = reactive({
161
161
  allowedDates: props.allowedDates,
162
162
  type: props.type,
@@ -182,14 +182,23 @@ export default defineComponent({
182
182
  previewYear: previewYear.value
183
183
  }));
184
184
  var getMonthTitle = computed(() => {
185
- var _pack$value$datePicke, _pack$value$datePicke2;
186
-
187
185
  var {
188
186
  multiple,
189
187
  range
190
188
  } = props;
191
- if (range) return chooseRangeMonth.value[0] + " ~ " + chooseRangeMonth.value[1];
192
- var monthName = (_pack$value$datePicke = (_pack$value$datePicke2 = pack.value.datePickerMonthDict) == null ? void 0 : _pack$value$datePicke2[chooseMonth.value.index].name) != null ? _pack$value$datePicke : '';
189
+
190
+ if (range) {
191
+ return chooseRangeMonth.value.length ? chooseRangeMonth.value[0] + " ~ " + chooseRangeMonth.value[1] : '';
192
+ }
193
+
194
+ var monthName = '';
195
+
196
+ if (chooseMonth.value) {
197
+ var _pack$value$datePicke, _pack$value$datePicke2;
198
+
199
+ monthName = (_pack$value$datePicke = (_pack$value$datePicke2 = pack.value.datePickerMonthDict) == null ? void 0 : _pack$value$datePicke2[chooseMonth.value.index].name) != null ? _pack$value$datePicke : '';
200
+ }
201
+
193
202
  return multiple ? "" + chooseMonths.value.length + pack.value.datePickerSelected : monthName;
194
203
  });
195
204
  var getDateTitle = computed(() => {
@@ -202,10 +211,11 @@ export default defineComponent({
202
211
 
203
212
  if (range) {
204
213
  var formatRangeDays = chooseRangeDay.value.map(date => dayjs(date).format('YYYY-MM-DD'));
205
- return formatRangeDays[0] + " ~ " + formatRangeDays[1];
214
+ return formatRangeDays.length ? formatRangeDays[0] + " ~ " + formatRangeDays[1] : '';
206
215
  }
207
216
 
208
217
  if (multiple) return "" + chooseDays.value.length + pack.value.datePickerSelected;
218
+ if (!chooseYear.value || !chooseMonth.value || !chooseDay.value) return '';
209
219
  var weekIndex = dayjs(chooseYear.value + "-" + chooseMonth.value.index + "-" + chooseDay.value).day();
210
220
  var week = WEEK_HEADER.find(value => value.index === "" + weekIndex);
211
221
  var weekName = (_pack$value$datePicke3 = (_pack$value$datePicke4 = pack.value.datePickerWeekDict) == null ? void 0 : _pack$value$datePicke4[week.index].name) != null ? _pack$value$datePicke3 : '';
@@ -215,17 +225,23 @@ export default defineComponent({
215
225
  return weekName.slice(0, 3) + ", " + monthName.slice(0, 3) + " " + chooseDay.value;
216
226
  });
217
227
  var slotProps = computed(() => {
218
- var weekIndex = dayjs(chooseYear.value + "-" + chooseMonth.value.index + "-" + chooseDay.value).day();
228
+ var _chooseMonth$value, _chooseYear$value, _chooseMonth$value$in, _chooseMonth$value2, _chooseDay$value;
229
+
230
+ var weekIndex = dayjs(chooseYear.value + "-" + ((_chooseMonth$value = chooseMonth.value) == null ? void 0 : _chooseMonth$value.index) + "-" + chooseDay.value).day();
219
231
  return {
220
232
  week: "" + weekIndex,
221
- year: chooseYear.value,
222
- month: chooseMonth.value.index,
223
- date: chooseDay.value
233
+ year: (_chooseYear$value = chooseYear.value) != null ? _chooseYear$value : '',
234
+ month: (_chooseMonth$value$in = (_chooseMonth$value2 = chooseMonth.value) == null ? void 0 : _chooseMonth$value2.index) != null ? _chooseMonth$value$in : '',
235
+ date: (_chooseDay$value = chooseDay.value) != null ? _chooseDay$value : ''
224
236
  };
225
237
  });
226
238
  var formatRange = computed(() => getChoose.value.chooseRangeDay.map(choose => dayjs(choose).format('YYYY-MM-DD')));
227
239
  var isSameYear = computed(() => chooseYear.value === previewYear.value);
228
- var isSameMonth = computed(() => chooseMonth.value.index === previewMonth.value.index);
240
+ var isSameMonth = computed(() => {
241
+ var _chooseMonth$value3;
242
+
243
+ return ((_chooseMonth$value3 = chooseMonth.value) == null ? void 0 : _chooseMonth$value3.index) === previewMonth.value.index;
244
+ });
229
245
 
230
246
  var clickEl = type => {
231
247
  if (type === 'year') isYearPanel.value = true;else if (type === 'month') isMonthPanel.value = true;else {
@@ -264,6 +280,7 @@ export default defineComponent({
264
280
  };
265
281
 
266
282
  var getReverse = (dateType, date) => {
283
+ if (!chooseYear.value || !chooseMonth.value) return false;
267
284
  if (!isSameYear.value) return chooseYear.value > previewYear.value;
268
285
  if (dateType === 'month') return date.index < chooseMonth.value.index;
269
286
  return isSameMonth.value ? date < toNumber(chooseDay.value) : chooseMonth.value.index > previewMonth.value.index;
@@ -356,7 +373,7 @@ export default defineComponent({
356
373
  var invalidFormatDate = date => {
357
374
  if (isArray(date)) return false;
358
375
 
359
- if (date === undefined || date === 'Invalid Date') {
376
+ if (date === 'Invalid Date') {
360
377
  console.error('[Varlet] DatePicker: "modelValue" is an Invalid Date');
361
378
  return true;
362
379
  }
@@ -399,7 +416,7 @@ export default defineComponent({
399
416
  };
400
417
 
401
418
  watch(() => props.modelValue, value => {
402
- if (!checkValue() || invalidFormatDate(value)) return;
419
+ if (!checkValue() || invalidFormatDate(value) || !value) return;
403
420
 
404
421
  if (props.range) {
405
422
  if (!isArray(value)) return;
@@ -130,7 +130,11 @@ export default defineComponent({
130
130
  right: false
131
131
  });
132
132
  var isCurrent = computed(() => props.preview.previewYear === currentYear && props.preview.previewMonth.index === currentMonth);
133
- var isSame = computed(() => props.choose.chooseYear === props.preview.previewYear && props.choose.chooseMonth.index === props.preview.previewMonth.index);
133
+ var isSame = computed(() => {
134
+ var _props$choose$chooseM;
135
+
136
+ return props.choose.chooseYear === props.preview.previewYear && ((_props$choose$chooseM = props.choose.chooseMonth) == null ? void 0 : _props$choose$chooseM.index) === props.preview.previewMonth.index;
137
+ });
134
138
  var sortWeekList = computed(() => {
135
139
  var index = WEEK_HEADER.findIndex(week => week.index === props.componentProps.firstDayOfWeek);
136
140
  if (index === -1 || index === 0) return WEEK_HEADER;
@@ -211,9 +215,9 @@ export default defineComponent({
211
215
  range
212
216
  }
213
217
  } = props;
214
- if (!chooseRangeDay.length) return false;
215
218
 
216
219
  if (range) {
220
+ if (!chooseRangeDay.length) return false;
217
221
  var isBeforeMax = dayjs(val).isSameOrBefore(dayjs(chooseRangeDay[1]), 'day');
218
222
  var isAfterMin = dayjs(val).isSameOrAfter(dayjs(chooseRangeDay[0]), 'day');
219
223
  return isBeforeMax && isAfterMin;
@@ -150,9 +150,9 @@ export default defineComponent({
150
150
  range
151
151
  }
152
152
  } = props;
153
- if (!chooseRangeMonth.length) return false;
154
153
 
155
154
  if (range) {
155
+ if (!chooseRangeMonth.length) return false;
156
156
  var isBeforeMax = dayjs(val).isSameOrBefore(dayjs(chooseRangeMonth[1]), 'month');
157
157
  var isAfterMin = dayjs(val).isSameOrAfter(dayjs(chooseRangeMonth[0]), 'month');
158
158
  return isBeforeMax && isAfterMin;
@@ -181,7 +181,7 @@ export default defineComponent({
181
181
 
182
182
  var monthExist = () => {
183
183
  if (range || multiple) return shouldChoose(val);
184
- return chooseMonth.index === key && isSameYear.value;
184
+ return (chooseMonth == null ? void 0 : chooseMonth.index) === key && isSameYear.value;
185
185
  };
186
186
 
187
187
  var computeDisabled = () => {
@@ -195,7 +195,7 @@ export default defineComponent({
195
195
  var computeText = () => {
196
196
  if (disabled) return true;
197
197
  if (range || multiple) return !shouldChoose(val);
198
- return !isSameYear.value || chooseMonth.index !== key;
198
+ return !isSameYear.value || (chooseMonth == null ? void 0 : chooseMonth.index) !== key;
199
199
  };
200
200
 
201
201
  var computeOutline = () => {
@@ -206,7 +206,7 @@ export default defineComponent({
206
206
 
207
207
  if (range || multiple) return !shouldChoose(val); // 同一年但是未被选择的情况
208
208
 
209
- if (isSameYear.value) return chooseMonth.index !== currentMonth;
209
+ if (isSameYear.value) return (chooseMonth == null ? void 0 : chooseMonth.index) !== currentMonth;
210
210
  return true;
211
211
  };
212
212
 
package/es/swipe/Swipe.js CHANGED
@@ -1,6 +1,10 @@
1
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
2
+
3
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
4
+
1
5
  import { defineComponent, ref, computed, watch, onMounted, onUnmounted } from 'vue';
2
6
  import { useSwipeItems } from './provide';
3
- import { nextTickFrame } from '../utils/elements';
7
+ import { doubleRaf, nextTickFrame } from '../utils/elements';
4
8
  import { props } from './props';
5
9
  import { isNumber, toNumber } from '../utils/shared';
6
10
  var SWIPE_DELAY = 250;
@@ -376,10 +380,12 @@ export default defineComponent({
376
380
  vertical
377
381
  };
378
382
  bindSwipeItems(swipeProvider);
379
- watch(() => length.value, () => {
383
+ watch(() => length.value, /*#__PURE__*/_asyncToGenerator(function* () {
384
+ // In nuxt, the size of the swipe cannot got when the route is change, need double raf
385
+ yield doubleRaf();
380
386
  initialIndex();
381
387
  resize();
382
- });
388
+ }));
383
389
  onMounted(() => {
384
390
  window.addEventListener('resize', resize);
385
391
  });
@@ -97,7 +97,7 @@
97
97
  },
98
98
  "var-badge/icon": {
99
99
  "type": "string",
100
- "description": "自定义徽标中图标的内容(优先级高于`value`) 默认值:-"
100
+ "description": "自定义徽标中图标的内容(优先级高于 `value` 默认值:-"
101
101
  },
102
102
  "var-button/type": {
103
103
  "type": "string",
@@ -445,7 +445,7 @@
445
445
  },
446
446
  "var-date-picker/v-model": {
447
447
  "type": "string[] | string",
448
- "description": "被选择的日期(ISO 8601 格式,`YYYY-MM-DD` 或 `YYYY-MM`) 默认值:-"
448
+ "description": "被选择的日期(ISO 8601 格式,`YYYY-MM-DD` 或 `YYYY-MM`) 默认值:undefined"
449
449
  },
450
450
  "var-date-picker/type": {
451
451
  "type": "string",
@@ -1001,7 +1001,7 @@
1001
1001
  },
1002
1002
  "var-progress/mode": {
1003
1003
  "type": "string",
1004
- "description": "`progress` 的模式,可选值为`linear, circle` 默认值:linear"
1004
+ "description": "`progress` 的模式,可选值为 `linear, circle` 默认值:linear"
1005
1005
  },
1006
1006
  "var-progress/value": {
1007
1007
  "type": "string | number",
@@ -1109,7 +1109,7 @@
1109
1109
  },
1110
1110
  "var-radio/rules": {
1111
1111
  "type": "Array<(value: any) => any>",
1112
- "description": "验证规则,返回`true`表示验证通过,其余的值则转换为文本作为用户提示 默认值:-"
1112
+ "description": "验证规则,返回 `true` 表示验证通过,其余的值则转换为文本作为用户提示 默认值:-"
1113
1113
  },
1114
1114
  "var-radio-group/v-model": {
1115
1115
  "type": "any",
@@ -1121,7 +1121,7 @@
1121
1121
  },
1122
1122
  "var-radio-group/rules": {
1123
1123
  "type": "Array<(value: any) => any>",
1124
- "description": "验证规则,返回`true`表示验证通过,其余的值则转换为文本作为用户提示 默认值:-"
1124
+ "description": "验证规则,返回 `true` 表示验证通过,其余的值则转换为文本作为用户提示 默认值:-"
1125
1125
  },
1126
1126
  "var-rate/v-model": {
1127
1127
  "type": "number | string",
@@ -1149,11 +1149,11 @@
1149
1149
  },
1150
1150
  "var-rate/size": {
1151
1151
  "type": "number | string",
1152
- "description": "图标大小,默认单位为`px` 默认值:20"
1152
+ "description": "图标大小,默认单位为 `px` 默认值:20"
1153
1153
  },
1154
1154
  "var-rate/gap": {
1155
1155
  "type": "number | string",
1156
- "description": "图标间隔,默认单位为`px` 默认值:4"
1156
+ "description": "图标间隔,默认单位为 `px` 默认值:4"
1157
1157
  },
1158
1158
  "var-rate/half": {
1159
1159
  "type": "boolean",
@@ -1161,7 +1161,7 @@
1161
1161
  },
1162
1162
  "var-rate/half-icon": {
1163
1163
  "type": "string",
1164
- "description": "半选时图标的样式,只有在`half`为`true`时才有效 默认值:star-half-full"
1164
+ "description": "半选时图标的样式,只有在 `half` 为 `true` 时才有效 默认值:star-half-full"
1165
1165
  },
1166
1166
  "var-rate/disabled": {
1167
1167
  "type": "boolean",
@@ -1169,7 +1169,7 @@
1169
1169
  },
1170
1170
  "var-rate/disabled-color": {
1171
1171
  "type": "string",
1172
- "description": "禁止评分时图标的颜色,只有在`disabled`为`true`时才有效,优先级高于`color`、`empty-color` 默认值:-"
1172
+ "description": "禁止评分时图标的颜色,只有在 `disabled` 为 `true` 时才有效,优先级高于 `color`、`empty-color` 默认值:-"
1173
1173
  },
1174
1174
  "var-rate/readonly": {
1175
1175
  "type": "boolean",
@@ -1181,7 +1181,7 @@
1181
1181
  },
1182
1182
  "var-rate/rules": {
1183
1183
  "type": "Array<(v: string | number) => any>",
1184
- "description": "验证规则,返回`true`表示验证通过,其余的值则转换为文本作为用户提示 默认值:-"
1184
+ "description": "验证规则,返回 `true` 表示验证通过,其余的值则转换为文本作为用户提示 默认值:-"
1185
1185
  },
1186
1186
  "var-row/gutter": {
1187
1187
  "type": "string | number",
@@ -1249,7 +1249,7 @@
1249
1249
  },
1250
1250
  "var-select/rules": {
1251
1251
  "type": "Array<(v: any | any[]) => any>",
1252
- "description": "验证规则,返回`true`表示验证通过,其余的值则转换为文本作为用户提示 默认值:-"
1252
+ "description": "验证规则,返回 `true` 表示验证通过,其余的值则转换为文本作为用户提示 默认值:-"
1253
1253
  },
1254
1254
  "var-skeleton/loading": {
1255
1255
  "type": "boolean",
@@ -1297,7 +1297,7 @@
1297
1297
  },
1298
1298
  "var-slider/step": {
1299
1299
  "type": "string | number",
1300
- "description": "步长,取值为`1 ~ 100`间的整数 默认值:1"
1300
+ "description": "步长,取值为 `1 ~ 100` 间的整数 默认值:1"
1301
1301
  },
1302
1302
  "var-slider/range": {
1303
1303
  "type": "boolean",
@@ -1305,7 +1305,7 @@
1305
1305
  },
1306
1306
  "var-slider/label-visible": {
1307
1307
  "type": "string",
1308
- "description": "是否显示标签,可选值为`always, normal, never` 默认值:normal"
1308
+ "description": "是否显示标签,可选值为 `always, normal, never` 默认值:normal"
1309
1309
  },
1310
1310
  "var-slider/label-text-color": {
1311
1311
  "type": "string",
@@ -1389,7 +1389,7 @@
1389
1389
  },
1390
1390
  "var-space/size": {
1391
1391
  "type": "string | number | [string | number, string | number]",
1392
- "description": "间距,可选值为 `mini` `small` `normal` `large` 或`[垂直间距, 水平间距]`(支持长度单位) 默认值:normal"
1392
+ "description": "间距,可选值为 `mini` `small` `normal` `large` 或 `[垂直间距, 水平间距]` (支持长度单位) 默认值:normal"
1393
1393
  },
1394
1394
  "var-space/wrap": {
1395
1395
  "type": "boolean",
@@ -1441,11 +1441,11 @@
1441
1441
  },
1442
1442
  "var-sticky/css-mode": {
1443
1443
  "type": "boolean",
1444
- "description": "开启原生`css sticky`模式 默认值:false"
1444
+ "description": "开启原生 `css sticky` 模式 默认值:false"
1445
1445
  },
1446
1446
  "var-sticky/disabled": {
1447
1447
  "type": "boolean",
1448
- "description": "禁用吸顶, 设置为`true`时, 元素会回到文档流中 默认值:false"
1448
+ "description": "禁用吸顶, 设置为 `true` 时, 元素会回到文档流中 默认值:false"
1449
1449
  },
1450
1450
  "var-style-provider/style-vars": {
1451
1451
  "type": "Record<string, string>",
@@ -1457,7 +1457,7 @@
1457
1457
  },
1458
1458
  "var-swipe/autoplay": {
1459
1459
  "type": "string | number",
1460
- "description": "自动播放间隔时间(ms) 默认值:-"
1460
+ "description": "自动播放间隔时间 (毫秒) 默认值:-"
1461
1461
  },
1462
1462
  "var-swipe/duration": {
1463
1463
  "type": "string | number",
@@ -1549,7 +1549,7 @@
1549
1549
  },
1550
1550
  "var-tabs/v-model:active": {
1551
1551
  "type": "string",
1552
- "description": "激活的选项卡标识, 优先匹配name,其次是index 默认值:default"
1552
+ "description": "激活的选项卡标识, 优先匹配 name,其次是 index 默认值:default"
1553
1553
  },
1554
1554
  "var-tabs/layout-direction": {
1555
1555
  "type": "string",
@@ -1617,7 +1617,7 @@
1617
1617
  },
1618
1618
  "var-time-picker/format": {
1619
1619
  "type": "string",
1620
- "description": "选择器时间格式,可选值为`ampm, 24hr` 默认值:ampm"
1620
+ "description": "选择器时间格式,可选值为 `ampm, 24hr` 默认值:ampm"
1621
1621
  },
1622
1622
  "var-time-picker/color": {
1623
1623
  "type": "string",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "framework": "vue",
4
- "version": "1.24.10",
4
+ "version": "1.24.11",
5
5
  "name": "VARLET",
6
6
  "contributions": {
7
7
  "html": {
@@ -305,7 +305,7 @@
305
305
  },
306
306
  {
307
307
  "name": "icon",
308
- "description": "自定义徽标中图标的内容(优先级高于`value`)",
308
+ "description": "自定义徽标中图标的内容(优先级高于 `value` )",
309
309
  "default": "-",
310
310
  "value": {
311
311
  "type": "string",
@@ -1039,7 +1039,7 @@
1039
1039
  },
1040
1040
  {
1041
1041
  "name": "icon",
1042
- "description": "自定义右侧icon"
1042
+ "description": "自定义右侧 icon"
1043
1043
  }
1044
1044
  ]
1045
1045
  },
@@ -1357,7 +1357,7 @@
1357
1357
  {
1358
1358
  "name": "v-model",
1359
1359
  "description": "被选择的日期(ISO 8601 格式,`YYYY-MM-DD` 或 `YYYY-MM`)",
1360
- "default": "-",
1360
+ "default": "undefined",
1361
1361
  "value": {
1362
1362
  "type": "string[] | string",
1363
1363
  "kind": "expression"
@@ -3051,7 +3051,7 @@
3051
3051
  "attributes": [
3052
3052
  {
3053
3053
  "name": "mode",
3054
- "description": "`progress` 的模式,可选值为`linear, circle`",
3054
+ "description": "`progress` 的模式,可选值为 `linear, circle`",
3055
3055
  "default": "linear",
3056
3056
  "value": {
3057
3057
  "type": "string",
@@ -3323,7 +3323,7 @@
3323
3323
  },
3324
3324
  {
3325
3325
  "name": "rules",
3326
- "description": "验证规则,返回`true`表示验证通过,其余的值则转换为文本作为用户提示",
3326
+ "description": "验证规则,返回 `true` 表示验证通过,其余的值则转换为文本作为用户提示",
3327
3327
  "default": "-",
3328
3328
  "value": {
3329
3329
  "type": "Array<(value: any) => any>",
@@ -3379,7 +3379,7 @@
3379
3379
  },
3380
3380
  {
3381
3381
  "name": "rules",
3382
- "description": "验证规则,返回`true`表示验证通过,其余的值则转换为文本作为用户提示",
3382
+ "description": "验证规则,返回 `true` 表示验证通过,其余的值则转换为文本作为用户提示",
3383
3383
  "default": "-",
3384
3384
  "value": {
3385
3385
  "type": "Array<(value: any) => any>",
@@ -3459,7 +3459,7 @@
3459
3459
  },
3460
3460
  {
3461
3461
  "name": "size",
3462
- "description": "图标大小,默认单位为`px`",
3462
+ "description": "图标大小,默认单位为 `px`",
3463
3463
  "default": "20",
3464
3464
  "value": {
3465
3465
  "type": "number | string",
@@ -3468,7 +3468,7 @@
3468
3468
  },
3469
3469
  {
3470
3470
  "name": "gap",
3471
- "description": "图标间隔,默认单位为`px`",
3471
+ "description": "图标间隔,默认单位为 `px`",
3472
3472
  "default": "4",
3473
3473
  "value": {
3474
3474
  "type": "number | string",
@@ -3486,7 +3486,7 @@
3486
3486
  },
3487
3487
  {
3488
3488
  "name": "half-icon",
3489
- "description": "半选时图标的样式,只有在`half`为`true`时才有效",
3489
+ "description": "半选时图标的样式,只有在 `half` 为 `true` 时才有效",
3490
3490
  "default": "star-half-full",
3491
3491
  "value": {
3492
3492
  "type": "string",
@@ -3504,7 +3504,7 @@
3504
3504
  },
3505
3505
  {
3506
3506
  "name": "disabled-color",
3507
- "description": "禁止评分时图标的颜色,只有在`disabled`为`true`时才有效,优先级高于`color`、`empty-color`",
3507
+ "description": "禁止评分时图标的颜色,只有在 `disabled` 为 `true` 时才有效,优先级高于 `color`、`empty-color`",
3508
3508
  "default": "-",
3509
3509
  "value": {
3510
3510
  "type": "string",
@@ -3531,7 +3531,7 @@
3531
3531
  },
3532
3532
  {
3533
3533
  "name": "rules",
3534
- "description": "验证规则,返回`true`表示验证通过,其余的值则转换为文本作为用户提示",
3534
+ "description": "验证规则,返回 `true` 表示验证通过,其余的值则转换为文本作为用户提示",
3535
3535
  "default": "-",
3536
3536
  "value": {
3537
3537
  "type": "Array<(v: string | number) => any>",
@@ -3719,7 +3719,7 @@
3719
3719
  },
3720
3720
  {
3721
3721
  "name": "rules",
3722
- "description": "验证规则,返回`true`表示验证通过,其余的值则转换为文本作为用户提示",
3722
+ "description": "验证规则,返回 `true` 表示验证通过,其余的值则转换为文本作为用户提示",
3723
3723
  "default": "-",
3724
3724
  "value": {
3725
3725
  "type": "Array<(v: any | any[]) => any>",
@@ -3880,7 +3880,7 @@
3880
3880
  },
3881
3881
  {
3882
3882
  "name": "step",
3883
- "description": "步长,取值为`1 ~ 100`间的整数",
3883
+ "description": "步长,取值为 `1 ~ 100` 间的整数",
3884
3884
  "default": "1",
3885
3885
  "value": {
3886
3886
  "type": "string | number",
@@ -3898,7 +3898,7 @@
3898
3898
  },
3899
3899
  {
3900
3900
  "name": "label-visible",
3901
- "description": "是否显示标签,可选值为`always, normal, never`",
3901
+ "description": "是否显示标签,可选值为 `always, normal, never`",
3902
3902
  "default": "normal",
3903
3903
  "value": {
3904
3904
  "type": "string",
@@ -4145,7 +4145,7 @@
4145
4145
  },
4146
4146
  {
4147
4147
  "name": "size",
4148
- "description": "间距,可选值为 `mini` `small` `normal` `large` 或`[垂直间距, 水平间距]`(支持长度单位)",
4148
+ "description": "间距,可选值为 `mini` `small` `normal` `large` 或 `[垂直间距, 水平间距]` (支持长度单位)",
4149
4149
  "default": "normal",
4150
4150
  "value": {
4151
4151
  "type": "string | number | [string | number, string | number]",
@@ -4276,7 +4276,7 @@
4276
4276
  "slots": [
4277
4277
  {
4278
4278
  "name": "default",
4279
- "description": "step的内容"
4279
+ "description": "step 的内容"
4280
4280
  }
4281
4281
  ]
4282
4282
  },
@@ -4303,7 +4303,7 @@
4303
4303
  },
4304
4304
  {
4305
4305
  "name": "css-mode",
4306
- "description": "开启原生`css sticky`模式",
4306
+ "description": "开启原生 `css sticky` 模式",
4307
4307
  "default": "false",
4308
4308
  "value": {
4309
4309
  "type": "boolean",
@@ -4312,7 +4312,7 @@
4312
4312
  },
4313
4313
  {
4314
4314
  "name": "disabled",
4315
- "description": "禁用吸顶, 设置为`true`时, 元素会回到文档流中",
4315
+ "description": "禁用吸顶, 设置为 `true` 时, 元素会回到文档流中",
4316
4316
  "default": "false",
4317
4317
  "value": {
4318
4318
  "type": "boolean",
@@ -4374,7 +4374,7 @@
4374
4374
  },
4375
4375
  {
4376
4376
  "name": "autoplay",
4377
- "description": "自动播放间隔时间(ms)",
4377
+ "description": "自动播放间隔时间 (毫秒)",
4378
4378
  "default": "-",
4379
4379
  "value": {
4380
4380
  "type": "string | number",
@@ -4669,7 +4669,7 @@
4669
4669
  "attributes": [
4670
4670
  {
4671
4671
  "name": "v-model:active",
4672
- "description": "激活的选项卡标识, 优先匹配name,其次是index",
4672
+ "description": "激活的选项卡标识, 优先匹配 name,其次是 index",
4673
4673
  "default": "default",
4674
4674
  "value": {
4675
4675
  "type": "string",
@@ -4861,7 +4861,7 @@
4861
4861
  },
4862
4862
  {
4863
4863
  "name": "format",
4864
- "description": "选择器时间格式,可选值为`ampm, 24hr`",
4864
+ "description": "选择器时间格式,可选值为 `ampm, 24hr`",
4865
4865
  "default": "ampm",
4866
4866
  "value": {
4867
4867
  "type": "string",