@nutui/nutui 4.0.0 → 4.0.1-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/dist/nutui.es.js +1 -1
  2. package/dist/nutui.umd.js +159 -3
  3. package/dist/packages/_es/Address.js +5 -8
  4. package/dist/packages/_es/Audio.js +0 -6
  5. package/dist/packages/_es/AudioOperate.js +0 -1
  6. package/dist/packages/_es/Avatar.js +0 -2
  7. package/dist/packages/_es/AvatarGroup.js +0 -1
  8. package/dist/packages/_es/Calendar.js +1 -1
  9. package/dist/packages/_es/CalendarItem.js +1 -1
  10. package/dist/packages/_es/Cascader.js +0 -2
  11. package/dist/packages/_es/Category.js +0 -2
  12. package/dist/packages/_es/CategoryPane.js +0 -3
  13. package/dist/packages/_es/Cell.js +0 -1
  14. package/dist/packages/_es/CollapseItem.js +0 -1
  15. package/dist/packages/_es/Comment.js +0 -5
  16. package/dist/packages/_es/Countdown.js +0 -8
  17. package/dist/packages/_es/Countup.js +0 -10
  18. package/dist/packages/_es/DatePicker.js +0 -2
  19. package/dist/packages/_es/Dialog.js +0 -3
  20. package/dist/packages/_es/Ellipsis.js +0 -2
  21. package/dist/packages/_es/Empty.js +0 -3
  22. package/dist/packages/_es/Grid.js +1 -1
  23. package/dist/packages/_es/GridItem.js +1 -2
  24. package/dist/packages/_es/ImagePreview.js +0 -1
  25. package/dist/packages/_es/Input.js +0 -2
  26. package/dist/packages/_es/Invoice.js +3 -5
  27. package/dist/packages/_es/Navbar.js +0 -6
  28. package/dist/packages/_es/Noticebar.js +0 -1
  29. package/dist/packages/_es/Notify.js +0 -3
  30. package/dist/packages/_es/Picker.js +0 -2
  31. package/dist/packages/_es/PullRefresh.js +0 -4
  32. package/dist/packages/_es/Radio.js +1 -1
  33. package/dist/packages/_es/RadioGroup.js +1 -1
  34. package/dist/packages/_es/Searchbar.js +0 -1
  35. package/dist/packages/_es/ShortPassword.js +0 -1
  36. package/dist/packages/_es/Skeleton.js +0 -10
  37. package/dist/packages/_es/Sku.js +0 -14
  38. package/dist/packages/_es/Swiper.js +0 -1
  39. package/dist/packages/_es/TabbarItem.js +0 -5
  40. package/dist/packages/_es/Tabs.js +0 -2
  41. package/dist/packages/_es/Textarea.js +0 -1
  42. package/dist/packages/_es/Toast.js +0 -8
  43. package/dist/packages/_es/Tour.js +0 -1
  44. package/dist/packages/_es/Uploader.js +0 -2
  45. package/dist/packages/_es/Video.js +0 -18
  46. package/dist/packages/_es/{common-b9a5e726.js → common-ceb98554.js} +0 -8
  47. package/dist/packages/_es/{index-2ae3ae87.js → index-fa0050c9.js} +0 -37
  48. package/dist/packages/_es/{index.vue_vue_type_script_lang-22dfc112.js → index.vue_vue_type_script_lang-1291fceb.js} +0 -1
  49. package/dist/packages/_es/{index.vue_vue_type_script_lang-442e4704.js → index.vue_vue_type_script_lang-d4c88f85.js} +0 -1
  50. package/dist/packages/address/index.scss +1 -1
  51. package/dist/smartips/web-types.json +1 -1
  52. package/dist/style.css +1 -1
  53. package/dist/styles/themes/default.scss +50 -50
  54. package/dist/styles/themes/jdb.scss +50 -50
  55. package/dist/styles/themes/jddkh.scss +50 -50
  56. package/dist/styles/themes/jdt.scss +50 -50
  57. package/dist/styles/variables-jdt.scss +1 -1
  58. package/dist/types/__VUE/swiper/index.vue.d.ts +1 -1
  59. package/dist/types/index.d.ts +1 -1
  60. package/package.json +1 -1
@@ -41,17 +41,14 @@ const _sfc_main = create({
41
41
  type: Array,
42
42
  default: () => []
43
43
  },
44
- // 市
45
44
  country: {
46
45
  type: Array,
47
46
  default: () => []
48
47
  },
49
- // 县
50
48
  town: {
51
49
  type: Array,
52
50
  default: () => []
53
51
  },
54
- // 镇
55
52
  isShowCustomAddress: {
56
53
  type: Boolean,
57
54
  default: true
@@ -376,7 +373,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
376
373
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.switchModule && _ctx.switchModule(...args))
377
374
  }, [
378
375
  renderSlot(_ctx.$slots, "back-icon", {}, () => [
379
- withDirectives(createVNode(_component_Left, null, null, 512), [
376
+ withDirectives(createVNode(_component_Left, { size: "14px" }, null, 512), [
380
377
  [vShow, _ctx.type == "exist" && _ctx.privateType == "custom"]
381
378
  ])
382
379
  ])
@@ -389,7 +386,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
389
386
  renderSlot(_ctx.$slots, "close-icon", {}, () => [
390
387
  createVNode(_component_Close, {
391
388
  color: "#cccccc",
392
- size: "18px"
389
+ size: "14px"
393
390
  })
394
391
  ])
395
392
  ])
@@ -427,7 +424,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
427
424
  ((_b = _ctx.selectedRegion[_ctx.tabIndex]) == null ? void 0 : _b.id) == item.id ? renderSlot(_ctx.$slots, "icon", { key: 0 }, () => [
428
425
  createVNode(_component_Check, {
429
426
  class: "nut-address-select-icon",
430
- width: "13px"
427
+ size: "13px"
431
428
  })
432
429
  ]) : createCommentVNode("", true),
433
430
  createTextVNode(toDisplayString(item.name), 1)
@@ -454,13 +451,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
454
451
  !item.selectedAddress ? renderSlot(_ctx.$slots, "unselected-icon", { key: 0 }, () => [
455
452
  createVNode(_component_Location2, {
456
453
  class: "nut-address-select-icon",
457
- width: "13px"
454
+ size: "13px"
458
455
  })
459
456
  ]) : createCommentVNode("", true),
460
457
  item.selectedAddress ? renderSlot(_ctx.$slots, "icon", { key: 1 }, () => [
461
458
  createVNode(_component_Check, {
462
459
  class: "nut-address-select-icon",
463
- width: "13px"
460
+ size: "13px"
464
461
  })
465
462
  ]) : createCommentVNode("", true),
466
463
  createElementVNode("div", _hoisted_16, [
@@ -13,32 +13,26 @@ const _sfc_main = create({
13
13
  type: String,
14
14
  default: ""
15
15
  },
16
- // 静音
17
16
  muted: {
18
17
  type: Boolean,
19
18
  default: false
20
19
  },
21
- // 自动播放
22
20
  autoplay: {
23
21
  type: Boolean,
24
22
  default: false
25
23
  },
26
- // 循环播放
27
24
  loop: {
28
25
  type: Boolean,
29
26
  default: false
30
27
  },
31
- // 是否预加载音频
32
28
  preload: {
33
29
  type: String,
34
30
  default: "auto"
35
31
  },
36
- /* 总时长秒数 */
37
32
  second: {
38
33
  type: Number,
39
34
  default: 0
40
35
  },
41
- // 展示的形式 controls 控制面板 progress 进度条 icon 图标 none 自定义
42
36
  type: {
43
37
  type: String,
44
38
  default: "progress"
@@ -7,7 +7,6 @@ import "@nutui/icons-vue";
7
7
  const { componentName, create, translate } = createComponent("audio-operate");
8
8
  const _sfc_main = create({
9
9
  props: {
10
- // 展示的形式 back 倒退 play 开始 or 暂停 forward 快进 mute 静音
11
10
  type: {
12
11
  type: String,
13
12
  default: () => "play"
@@ -33,9 +33,7 @@ const _sfc_main = create({
33
33
  const state = reactive({
34
34
  index: 1,
35
35
  showMax: false,
36
- // 是否显示的最大头像个数
37
36
  maxIndex: 0
38
- // avatarGroup里的avatar的个数
39
37
  });
40
38
  onMounted(() => {
41
39
  var _a, _b;
@@ -57,7 +57,6 @@ const _sfc_main = create({
57
57
  });
58
58
  return {
59
59
  classes,
60
- // styles,
61
60
  avatarGroupRef
62
61
  };
63
62
  }
@@ -1,6 +1,6 @@
1
1
  import { computed, ref, resolveComponent, openBlock, createBlock, withCtx, createSlots, renderSlot, createCommentVNode } from "vue";
2
2
  import { c as createComponent } from "./component-81a4c1d0.js";
3
- import { C as CalendarItem, U as Utils } from "./index-2ae3ae87.js";
3
+ import { C as CalendarItem, U as Utils } from "./index-fa0050c9.js";
4
4
  import { P as Popup } from "./index-991c279f.js";
5
5
  import { u as useExpose } from "./index-79c5dc33.js";
6
6
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
@@ -1,4 +1,4 @@
1
- import { C } from "./index-2ae3ae87.js";
1
+ import { C } from "./index-fa0050c9.js";
2
2
  import "vue";
3
3
  import "./_plugin-vue_export-helper-cc2b3d55.js";
4
4
  import "./component-81a4c1d0.js";
@@ -98,7 +98,6 @@ class Tree {
98
98
  parent.children = formatTree(nodes, parent, this.config);
99
99
  }
100
100
  }
101
- // for test
102
101
  getNodeByValue(value) {
103
102
  let foundNode;
104
103
  eachTree(this.nodes, (node) => {
@@ -290,7 +289,6 @@ const _sfc_main$1 = create$1({
290
289
  emit("update:modelValue", emitValue, pathNodes);
291
290
  };
292
291
  const methods = {
293
- // 选中一个节点,静默模式不触发事件
294
292
  async handleNode(node, silent) {
295
293
  const { disabled, loading } = node;
296
294
  if (!silent && disabled || !panes.value[tabsCursor.value]) {
@@ -5,12 +5,10 @@ import "../locale/lang";
5
5
  const { componentName, create } = createComponent("category");
6
6
  const _sfc_main = create({
7
7
  props: {
8
- //分类模式
9
8
  type: {
10
9
  type: String,
11
10
  default: "classify"
12
11
  },
13
- //左侧导航栏
14
12
  category: {
15
13
  type: Array,
16
14
  default: []
@@ -5,17 +5,14 @@ import "../locale/lang";
5
5
  const { componentName, create } = createComponent("category-pane");
6
6
  const _sfc_main = create({
7
7
  props: {
8
- //分类模式
9
8
  type: {
10
9
  type: String,
11
10
  default: "classify"
12
11
  },
13
- //右侧导航数据
14
12
  categoryChild: {
15
13
  type: Array,
16
14
  default: () => []
17
15
  },
18
- //模式传入自定义数据
19
16
  customCategory: {
20
17
  type: Array,
21
18
  default: () => []
@@ -20,7 +20,6 @@ const _sfc_main = create({
20
20
  url: { type: String, default: "" },
21
21
  center: { type: Boolean, default: false },
22
22
  size: { type: String, default: "" }
23
- // large
24
23
  },
25
24
  emits: ["click"],
26
25
  setup(props, { emit }) {
@@ -44,7 +44,6 @@ const _sfc_main = create({
44
44
  default: 180
45
45
  }
46
46
  },
47
- // components: { DownArrow },
48
47
  setup(props, ctx) {
49
48
  const collapse = inject("collapseParent");
50
49
  const parent = reactive(collapse);
@@ -16,7 +16,6 @@ const _sfc_main$3 = create$3({
16
16
  type: {
17
17
  type: String,
18
18
  default: "default"
19
- // default,complex
20
19
  },
21
20
  info: {
22
21
  type: Object,
@@ -118,7 +117,6 @@ const _sfc_main$2 = create$2({
118
117
  type: {
119
118
  type: String,
120
119
  default: "one"
121
- // one multi
122
120
  },
123
121
  videos: {
124
122
  type: Array,
@@ -221,7 +219,6 @@ const _sfc_main$1 = create$1({
221
219
  type: {
222
220
  type: String,
223
221
  default: "base"
224
- // simple,base,complex
225
222
  },
226
223
  info: {
227
224
  type: Object,
@@ -305,12 +302,10 @@ const _sfc_main = create({
305
302
  headerType: {
306
303
  type: String,
307
304
  default: "default"
308
- //头部展示风格 default,complex
309
305
  },
310
306
  imagesRows: {
311
307
  type: String,
312
308
  default: "one"
313
- // 'one' 'multi'
314
309
  },
315
310
  ellipsis: {
316
311
  type: [String, Number, Boolean],
@@ -23,7 +23,6 @@ const _sfc_main = create({
23
23
  type: Boolean
24
24
  },
25
25
  startTime: {
26
- // 可以是服务器当前时间
27
26
  type: [Number, String],
28
27
  validator(v) {
29
28
  const dateStr = new Date(v).toString().toLowerCase();
@@ -37,12 +36,10 @@ const _sfc_main = create({
37
36
  return dateStr !== "invalid date";
38
37
  }
39
38
  },
40
- // 是否开启毫秒
41
39
  millisecond: {
42
40
  default: false,
43
41
  type: Boolean
44
42
  },
45
- // 时间格式化
46
43
  format: {
47
44
  type: String,
48
45
  default: "HH:mm:ss"
@@ -51,7 +48,6 @@ const _sfc_main = create({
51
48
  type: Boolean,
52
49
  default: true
53
50
  },
54
- // 倒计时时长,单位毫秒
55
51
  time: {
56
52
  type: [Number, String],
57
53
  default: 0
@@ -61,14 +57,10 @@ const _sfc_main = create({
61
57
  setup(props, { emit, slots }) {
62
58
  const state = reactive({
63
59
  restTime: 0,
64
- // 倒计时剩余时间时间
65
60
  timer: null,
66
61
  counting: !props.paused && props.autoStart,
67
- // 是否处于倒计时中
68
62
  handleEndTime: Date.now(),
69
- // 最终截止时间
70
63
  diffTime: 0
71
- // 设置了 startTime 时,与 date.now() 的差异
72
64
  });
73
65
  const classes = computed(() => {
74
66
  const prefixCls = componentName;
@@ -35,7 +35,6 @@ const _sfc_main = create({
35
35
  type: Boolean,
36
36
  default: true
37
37
  },
38
- // 数字滚动
39
38
  numWidth: {
40
39
  type: Number,
41
40
  default: 20
@@ -48,7 +47,6 @@ const _sfc_main = create({
48
47
  type: Boolean,
49
48
  default: false
50
49
  },
51
- // 自定义图片
52
50
  customBgImg: {
53
51
  type: String,
54
52
  default: ""
@@ -61,7 +59,6 @@ const _sfc_main = create({
61
59
  type: Number,
62
60
  default: 1
63
61
  },
64
- // 抽奖
65
62
  type: {
66
63
  type: String,
67
64
  default: ""
@@ -103,20 +100,14 @@ const _sfc_main = create({
103
100
  to10_0: [0, 9, 8, 7, 6, 5, 4, 3, 2, 1, 1],
104
101
  timer: null,
105
102
  totalCount: 0,
106
- //正整数
107
103
  pointNum: 0,
108
- //小数位
109
104
  numberVal: 0,
110
- //数字
111
105
  num_total_len: 0,
112
- //数字长度
113
106
  relNum: 0,
114
- //去除小数点
115
107
  customNumber: 1,
116
108
  prizeLevelTrun: 0,
117
109
  prizeY: [],
118
110
  prizeYPrev: [],
119
- // machineTransition: 'none',
120
111
  finshMachine: 0,
121
112
  notPrize: [],
122
113
  typeMachine: ""
@@ -404,7 +395,6 @@ const _sfc_main = create({
404
395
  }
405
396
  scrollTime(
406
397
  i,
407
- // parseFloat((this.machinePrizeNum-(this.prizeLevelTrun-1))*this.numHeight + turn + local),
408
398
  newLocation,
409
399
  local
410
400
  );
@@ -62,12 +62,10 @@ const _sfc_main = create({
62
62
  type: Function,
63
63
  default: null
64
64
  },
65
- // 是否开启3D效果
66
65
  threeDimensional: {
67
66
  type: Boolean,
68
67
  default: true
69
68
  },
70
- // 惯性滚动 时长
71
69
  swipeDuration: {
72
70
  type: [Number, String],
73
71
  default: 1e3
@@ -70,7 +70,6 @@ const _sfc_main = create({
70
70
  footerDirection: {
71
71
  type: String,
72
72
  default: "horizontal"
73
- //vertical
74
73
  },
75
74
  customClass: {
76
75
  type: String,
@@ -238,8 +237,6 @@ class DialogOptions {
238
237
  __publicField(this, "teleport", "body");
239
238
  __publicField(this, "id", new Date().getTime());
240
239
  __publicField(this, "footerDirection", "horizontal");
241
- //使用横纵方向 可选值 horizontal、vertical
242
- // function
243
240
  __publicField(this, "onUpdate");
244
241
  __publicField(this, "onOk");
245
242
  __publicField(this, "onCancel");
@@ -42,9 +42,7 @@ const _sfc_main = create({
42
42
  const ellipsis = ref();
43
43
  const state = reactive({
44
44
  exceeded: false,
45
- //是否超出
46
45
  expanded: false
47
- //是否折叠
48
46
  });
49
47
  const classes = computed(() => {
50
48
  const prefixCls = componentName;
@@ -13,16 +13,13 @@ const _sfc_main = create({
13
13
  image: {
14
14
  type: String,
15
15
  default: "empty"
16
- //默认empty
17
16
  },
18
17
  imageSize: {
19
18
  type: [Number, String],
20
- // 图片大小,正方形
21
19
  default: ""
22
20
  },
23
21
  description: {
24
22
  type: String,
25
- // 文字区
26
23
  default: ""
27
24
  }
28
25
  },
@@ -1,6 +1,6 @@
1
1
  import { c as createComponent } from "./component-81a4c1d0.js";
2
2
  import "vue";
3
- import { c as component } from "./common-b9a5e726.js";
3
+ import { c as component } from "./common-ceb98554.js";
4
4
  import "../locale/lang";
5
5
  import "./pxCheck-c6b9f6b7.js";
6
6
  const { create } = createComponent("grid");
@@ -2,7 +2,7 @@ import { inject, getCurrentInstance, onUnmounted, computed, ref, openBlock, crea
2
2
  import { u as useRouter } from "./index-54d03fc1.js";
3
3
  import { c as createComponent } from "./component-81a4c1d0.js";
4
4
  import { p as pxCheck } from "./pxCheck-c6b9f6b7.js";
5
- import { G as GRID_KEY } from "./common-b9a5e726.js";
5
+ import { G as GRID_KEY } from "./common-ceb98554.js";
6
6
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
7
7
  import "../locale/lang";
8
8
  function useInject(key) {
@@ -29,7 +29,6 @@ const _sfc_main = create({
29
29
  text: {
30
30
  type: String
31
31
  },
32
- // router
33
32
  to: {
34
33
  type: [String, Object]
35
34
  },
@@ -296,7 +296,6 @@ const _sfc_main = create({
296
296
  closeIconPosition: {
297
297
  type: String,
298
298
  default: "top-right"
299
- // top-right top-left
300
299
  },
301
300
  beforeClose: Function,
302
301
  isLoop: {
@@ -114,9 +114,7 @@ const _sfc_main = create({
114
114
  const state = reactive({
115
115
  focused: false,
116
116
  validateFailed: false,
117
- // 校验失败
118
117
  validateMessage: ""
119
- // 校验信息
120
118
  });
121
119
  const classes = computed(() => {
122
120
  const prefixCls = componentName;
@@ -2,8 +2,8 @@ import { ref, reactive, computed, onMounted, watch, toRefs, resolveComponent, op
2
2
  import { c as createComponent } from "./component-81a4c1d0.js";
3
3
  import Form from "./Form.js";
4
4
  import FormItem from "./FormItem.js";
5
- import { _ as _sfc_main$1 } from "./index.vue_vue_type_script_lang-442e4704.js";
6
- import { _ as _sfc_main$2 } from "./index.vue_vue_type_script_lang-22dfc112.js";
5
+ import { _ as _sfc_main$1 } from "./index.vue_vue_type_script_lang-d4c88f85.js";
6
+ import { _ as _sfc_main$2 } from "./index.vue_vue_type_script_lang-1291fceb.js";
7
7
  import Button from "./Button.js";
8
8
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
9
9
  import "../locale/lang";
@@ -39,9 +39,7 @@ const _sfc_main = create({
39
39
  setup(props, { emit }) {
40
40
  const formRef = ref();
41
41
  const list = ref([]);
42
- const state = reactive({
43
- // list: []
44
- });
42
+ const state = reactive({});
45
43
  const classes = computed(() => {
46
44
  const prefixCls = componentName;
47
45
  return {
@@ -8,15 +8,10 @@ const _sfc_main = create({
8
8
  components: { Left },
9
9
  props: {
10
10
  leftShow: { type: Boolean, default: false },
11
- //左侧 是否显示返回icon
12
11
  title: { type: String, default: "" },
13
- //中间 文字标题
14
12
  titleIcon: { type: Boolean, default: false },
15
- //中间
16
13
  leftText: { type: String, default: "" },
17
- //左侧文字
18
14
  desc: { type: String, default: "" },
19
- //右侧 按钮文字
20
15
  fixed: {
21
16
  type: Boolean,
22
17
  default: false
@@ -30,7 +25,6 @@ const _sfc_main = create({
30
25
  default: false
31
26
  },
32
27
  placeholder: {
33
- // 生成一个等高的占位元素
34
28
  type: Boolean,
35
29
  default: true
36
30
  },
@@ -7,7 +7,6 @@ import "../locale/lang";
7
7
  const { componentName, create } = createComponent("noticebar");
8
8
  const _sfc_main = create({
9
9
  props: {
10
- // 滚动方向 across 横向 vertical 纵向
11
10
  direction: {
12
11
  type: String,
13
12
  default: "across"
@@ -109,9 +109,6 @@ const defaultOptions = {
109
109
  duration: 3e3,
110
110
  className: "",
111
111
  onClose: Function,
112
- // onClick: null,
113
- // onOpened: null,
114
- // textTimer: null,
115
112
  teleport: "",
116
113
  unmount: new Function()
117
114
  };
@@ -159,14 +159,12 @@ const usePicker = (props, emit) => {
159
159
  const { create: create$1 } = createComponent("picker-column");
160
160
  const _sfc_main$1 = create$1({
161
161
  props: {
162
- // 当前选中项
163
162
  value: [String, Number],
164
163
  columnsType: String,
165
164
  column: {
166
165
  type: Array,
167
166
  default: () => []
168
167
  },
169
- // 是否开启3D效果
170
168
  threeDimensional: {
171
169
  type: Boolean,
172
170
  default: true
@@ -25,10 +25,6 @@ const _sfc_main = create({
25
25
  type: String,
26
26
  default: translate("loading")
27
27
  },
28
- // completeTxt: {
29
- // type: String,
30
- // default: ''
31
- // },
32
28
  headHeight: {
33
29
  type: [String, Number],
34
30
  default: 50
@@ -1,4 +1,4 @@
1
- import { _ as _sfc_main } from "./index.vue_vue_type_script_lang-442e4704.js";
1
+ import { _ as _sfc_main } from "./index.vue_vue_type_script_lang-d4c88f85.js";
2
2
  import "vue";
3
3
  import "./component-81a4c1d0.js";
4
4
  import "../locale/lang";
@@ -1,4 +1,4 @@
1
- import { _ as _sfc_main } from "./index.vue_vue_type_script_lang-22dfc112.js";
1
+ import { _ as _sfc_main } from "./index.vue_vue_type_script_lang-1291fceb.js";
2
2
  import "vue";
3
3
  import "./component-81a4c1d0.js";
4
4
  import "../locale/lang";
@@ -45,7 +45,6 @@ const _sfc_main = create({
45
45
  },
46
46
  focusStyle: {
47
47
  type: Object,
48
- // eslint-disable-next-line @typescript-eslint/no-empty-function
49
48
  default: () => {
50
49
  }
51
50
  },
@@ -42,7 +42,6 @@ const _sfc_main = create({
42
42
  },
43
43
  length: {
44
44
  type: [String, Number],
45
- //4~6
46
45
  default: 6
47
46
  }
48
47
  },
@@ -7,52 +7,42 @@ const component = (components) => {
7
7
  return {
8
8
  components,
9
9
  props: {
10
- //每行宽度
11
10
  width: {
12
11
  type: String,
13
12
  default: "100px"
14
13
  },
15
- //每行高度
16
14
  height: {
17
15
  type: String,
18
16
  default: "15px"
19
17
  },
20
- //是否显示动画
21
18
  animated: {
22
19
  type: Boolean,
23
20
  default: false
24
21
  },
25
- //头像
26
22
  avatar: {
27
23
  type: Boolean,
28
24
  default: false
29
25
  },
30
- //头像形状:正方形/圆形
31
26
  avatarShape: {
32
27
  type: String,
33
28
  default: "round"
34
29
  },
35
- //头像大小
36
30
  avatarSize: {
37
31
  type: String,
38
32
  default: "50px"
39
33
  },
40
- //是否显示骨架屏
41
34
  loading: {
42
35
  type: Boolean,
43
36
  default: true
44
37
  },
45
- //标题/段落 圆角风格
46
38
  round: {
47
39
  type: Boolean,
48
40
  default: false
49
41
  },
50
- //显示段落行数
51
42
  row: {
52
43
  type: String,
53
44
  default: "1"
54
45
  },
55
- //是否显示段落标题
56
46
  title: {
57
47
  type: Boolean,
58
48
  default: true