@nutui/nutui 4.0.0-beta.16 → 4.0.0-beta.17

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 (94) hide show
  1. package/dist/nutui.es.js +1 -1
  2. package/dist/nutui.umd.cjs +2 -2
  3. package/dist/packages/_es/Address.js +3 -0
  4. package/dist/packages/_es/Audio.js +6 -0
  5. package/dist/packages/_es/AudioOperate.js +1 -0
  6. package/dist/packages/_es/Avatar.js +2 -0
  7. package/dist/packages/_es/AvatarGroup.js +1 -0
  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 +2 -0
  11. package/dist/packages/_es/Category.js +2 -0
  12. package/dist/packages/_es/CategoryPane.js +3 -0
  13. package/dist/packages/_es/Cell.js +1 -0
  14. package/dist/packages/_es/CollapseItem.js +1 -0
  15. package/dist/packages/_es/Comment.js +5 -0
  16. package/dist/packages/_es/Countdown.js +8 -0
  17. package/dist/packages/_es/Countup.js +10 -0
  18. package/dist/packages/_es/DatePicker.js +2 -0
  19. package/dist/packages/_es/Dialog.js +3 -0
  20. package/dist/packages/_es/Ellipsis.js +2 -0
  21. package/dist/packages/_es/Empty.js +3 -0
  22. package/dist/packages/_es/Grid.js +1 -1
  23. package/dist/packages/_es/GridItem.js +2 -1
  24. package/dist/packages/_es/ImagePreview.js +1 -0
  25. package/dist/packages/_es/Input.js +2 -0
  26. package/dist/packages/_es/Invoice.js +5 -3
  27. package/dist/packages/_es/Navbar.js +6 -0
  28. package/dist/packages/_es/Noticebar.js +1 -0
  29. package/dist/packages/_es/Notify.js +3 -0
  30. package/dist/packages/_es/Picker.js +2 -0
  31. package/dist/packages/_es/Radio.js +1 -1
  32. package/dist/packages/_es/RadioGroup.js +1 -1
  33. package/dist/packages/_es/Searchbar.js +1 -0
  34. package/dist/packages/_es/ShortPassword.js +1 -0
  35. package/dist/packages/_es/Skeleton.js +10 -0
  36. package/dist/packages/_es/Sku.js +14 -0
  37. package/dist/packages/_es/Swiper.js +1 -0
  38. package/dist/packages/_es/TabbarItem.js +5 -0
  39. package/dist/packages/_es/Tabs.js +2 -0
  40. package/dist/packages/_es/Textarea.js +1 -0
  41. package/dist/packages/_es/Toast.js +8 -0
  42. package/dist/packages/_es/Tour.js +1 -0
  43. package/dist/packages/_es/Uploader.js +2 -0
  44. package/dist/packages/_es/Video.js +18 -0
  45. package/dist/packages/_es/{common-ceb98554.js → common-b9a5e726.js} +8 -0
  46. package/dist/packages/_es/{index-1bf0d8ef.js → index-f3a722c9.js} +37 -0
  47. package/dist/packages/_es/{index.vue_vue_type_script_lang-1291fceb.js → index.vue_vue_type_script_lang-22dfc112.js} +1 -0
  48. package/dist/packages/_es/{index.vue_vue_type_script_lang-d4c88f85.js → index.vue_vue_type_script_lang-442e4704.js} +1 -0
  49. package/dist/packages/actionsheet/style.mjs +2 -0
  50. package/dist/packages/address/style.mjs +3 -0
  51. package/dist/packages/addresslist/style.mjs +2 -0
  52. package/dist/packages/audio/style.mjs +1 -0
  53. package/dist/packages/audiooperate/style.mjs +1 -0
  54. package/dist/packages/calendar/index.scss +2 -2
  55. package/dist/packages/calendar/style.mjs +3 -0
  56. package/dist/packages/card/style.mjs +2 -0
  57. package/dist/packages/cascader/style.mjs +5 -0
  58. package/dist/packages/comment/style.mjs +1 -0
  59. package/dist/packages/datepicker/style.mjs +3 -0
  60. package/dist/packages/dialog/style.mjs +3 -0
  61. package/dist/packages/ecard/style.mjs +1 -0
  62. package/dist/packages/fixednav/style.mjs +1 -0
  63. package/dist/packages/form/style.mjs +1 -0
  64. package/dist/packages/formitem/style.mjs +1 -0
  65. package/dist/packages/imagepreview/style.mjs +5 -0
  66. package/dist/packages/invoice/style.mjs +7 -0
  67. package/dist/packages/locale/lang/zh-CN.js +1 -1
  68. package/dist/packages/menuitem/style.mjs +2 -0
  69. package/dist/packages/notify/style.mjs +2 -0
  70. package/dist/packages/numberkeyboard/style.mjs +2 -0
  71. package/dist/packages/picker/style.mjs +2 -0
  72. package/dist/packages/popover/style.mjs +2 -0
  73. package/dist/packages/popup/style.mjs +1 -0
  74. package/dist/packages/shortpassword/style.mjs +2 -0
  75. package/dist/packages/signature/style.mjs +1 -0
  76. package/dist/packages/skeleton/style.mjs +1 -0
  77. package/dist/packages/sku/style.mjs +4 -0
  78. package/dist/packages/tabbaritem/style.mjs +1 -0
  79. package/dist/packages/tabs/style.mjs +1 -0
  80. package/dist/packages/timeselect/style.mjs +2 -0
  81. package/dist/packages/tour/style.mjs +3 -0
  82. package/dist/packages/uploader/style.mjs +2 -0
  83. package/dist/smartips/web-types.json +10 -10
  84. package/dist/style.css +1 -1
  85. package/dist/styles/themes/default.scss +54 -54
  86. package/dist/styles/themes/jdb.scss +54 -54
  87. package/dist/styles/themes/jddkh.scss +54 -54
  88. package/dist/styles/themes/jdt.scss +54 -54
  89. package/dist/styles/variables-jdb.scss +0 -2
  90. package/dist/styles/variables-jddkh.scss +0 -2
  91. package/dist/styles/variables-jdt.scss +1 -3
  92. package/dist/styles/variables.scss +1 -3
  93. package/dist/types/index.d.ts +1 -1
  94. package/package.json +1 -1
@@ -41,14 +41,17 @@ const _sfc_main = create({
41
41
  type: Array,
42
42
  default: () => []
43
43
  },
44
+ // 市
44
45
  country: {
45
46
  type: Array,
46
47
  default: () => []
47
48
  },
49
+ // 县
48
50
  town: {
49
51
  type: Array,
50
52
  default: () => []
51
53
  },
54
+ // 镇
52
55
  isShowCustomAddress: {
53
56
  type: Boolean,
54
57
  default: true
@@ -13,26 +13,32 @@ const _sfc_main = create({
13
13
  type: String,
14
14
  default: ""
15
15
  },
16
+ // 静音
16
17
  muted: {
17
18
  type: Boolean,
18
19
  default: false
19
20
  },
21
+ // 自动播放
20
22
  autoplay: {
21
23
  type: Boolean,
22
24
  default: false
23
25
  },
26
+ // 循环播放
24
27
  loop: {
25
28
  type: Boolean,
26
29
  default: false
27
30
  },
31
+ // 是否预加载音频
28
32
  preload: {
29
33
  type: String,
30
34
  default: "auto"
31
35
  },
36
+ /* 总时长秒数 */
32
37
  second: {
33
38
  type: Number,
34
39
  default: 0
35
40
  },
41
+ // 展示的形式 controls 控制面板 progress 进度条 icon 图标 none 自定义
36
42
  type: {
37
43
  type: String,
38
44
  default: "progress"
@@ -7,6 +7,7 @@ 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 静音
10
11
  type: {
11
12
  type: String,
12
13
  default: () => "play"
@@ -33,7 +33,9 @@ const _sfc_main = create({
33
33
  const state = reactive({
34
34
  index: 1,
35
35
  showMax: false,
36
+ // 是否显示的最大头像个数
36
37
  maxIndex: 0
38
+ // avatarGroup里的avatar的个数
37
39
  });
38
40
  onMounted(() => {
39
41
  var _a, _b;
@@ -57,6 +57,7 @@ const _sfc_main = create({
57
57
  });
58
58
  return {
59
59
  classes,
60
+ // styles,
60
61
  avatarGroupRef
61
62
  };
62
63
  }
@@ -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-1bf0d8ef.js";
3
+ import { C as CalendarItem, U as Utils } from "./index-f3a722c9.js";
4
4
  import { P as Popup } from "./index-1006915b.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-1bf0d8ef.js";
1
+ import { C } from "./index-f3a722c9.js";
2
2
  import "vue";
3
3
  import "./_plugin-vue_export-helper-cc2b3d55.js";
4
4
  import "./component-81a4c1d0.js";
@@ -98,6 +98,7 @@ class Tree {
98
98
  parent.children = formatTree(nodes, parent, this.config);
99
99
  }
100
100
  }
101
+ // for test
101
102
  getNodeByValue(value) {
102
103
  let foundNode;
103
104
  eachTree(this.nodes, (node) => {
@@ -289,6 +290,7 @@ const _sfc_main$1 = create$1({
289
290
  emit("update:modelValue", emitValue, pathNodes);
290
291
  };
291
292
  const methods = {
293
+ // 选中一个节点,静默模式不触发事件
292
294
  async handleNode(node, silent) {
293
295
  const { disabled, loading } = node;
294
296
  if (!silent && disabled || !panes.value[tabsCursor.value]) {
@@ -5,10 +5,12 @@ import "../locale/lang";
5
5
  const { componentName, create } = createComponent("category");
6
6
  const _sfc_main = create({
7
7
  props: {
8
+ //分类模式
8
9
  type: {
9
10
  type: String,
10
11
  default: "classify"
11
12
  },
13
+ //左侧导航栏
12
14
  category: {
13
15
  type: Array,
14
16
  default: []
@@ -5,14 +5,17 @@ import "../locale/lang";
5
5
  const { componentName, create } = createComponent("category-pane");
6
6
  const _sfc_main = create({
7
7
  props: {
8
+ //分类模式
8
9
  type: {
9
10
  type: String,
10
11
  default: "classify"
11
12
  },
13
+ //右侧导航数据
12
14
  categoryChild: {
13
15
  type: Array,
14
16
  default: () => []
15
17
  },
18
+ //模式传入自定义数据
16
19
  customCategory: {
17
20
  type: Array,
18
21
  default: () => []
@@ -20,6 +20,7 @@ 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
23
24
  },
24
25
  emits: ["click"],
25
26
  setup(props, { emit }) {
@@ -44,6 +44,7 @@ const _sfc_main = create({
44
44
  default: 180
45
45
  }
46
46
  },
47
+ // components: { DownArrow },
47
48
  setup(props, ctx) {
48
49
  const collapse = inject("collapseParent");
49
50
  const parent = reactive(collapse);
@@ -13,6 +13,7 @@ const _sfc_main$3 = create$3({
13
13
  type: {
14
14
  type: String,
15
15
  default: "default"
16
+ // default,complex
16
17
  },
17
18
  info: {
18
19
  type: Object,
@@ -114,6 +115,7 @@ const _sfc_main$2 = create$2({
114
115
  type: {
115
116
  type: String,
116
117
  default: "one"
118
+ // one multi
117
119
  },
118
120
  videos: {
119
121
  type: Array,
@@ -216,6 +218,7 @@ const _sfc_main$1 = create$1({
216
218
  type: {
217
219
  type: String,
218
220
  default: "base"
221
+ // simple,base,complex
219
222
  },
220
223
  info: {
221
224
  type: Object,
@@ -300,10 +303,12 @@ const _sfc_main = create({
300
303
  headerType: {
301
304
  type: String,
302
305
  default: "default"
306
+ //头部展示风格 default,complex
303
307
  },
304
308
  imagesRows: {
305
309
  type: String,
306
310
  default: "one"
311
+ // 'one' 'multi'
307
312
  },
308
313
  ellipsis: {
309
314
  type: [String, Number, Boolean],
@@ -23,6 +23,7 @@ const _sfc_main = create({
23
23
  type: Boolean
24
24
  },
25
25
  startTime: {
26
+ // 可以是服务器当前时间
26
27
  type: [Number, String],
27
28
  validator(v) {
28
29
  const dateStr = new Date(v).toString().toLowerCase();
@@ -36,10 +37,12 @@ const _sfc_main = create({
36
37
  return dateStr !== "invalid date";
37
38
  }
38
39
  },
40
+ // 是否开启毫秒
39
41
  millisecond: {
40
42
  default: false,
41
43
  type: Boolean
42
44
  },
45
+ // 时间格式化
43
46
  format: {
44
47
  type: String,
45
48
  default: "HH:mm:ss"
@@ -48,6 +51,7 @@ const _sfc_main = create({
48
51
  type: Boolean,
49
52
  default: true
50
53
  },
54
+ // 倒计时时长,单位毫秒
51
55
  time: {
52
56
  type: [Number, String],
53
57
  default: 0
@@ -57,10 +61,14 @@ const _sfc_main = create({
57
61
  setup(props, { emit, slots }) {
58
62
  const state = reactive({
59
63
  restTime: 0,
64
+ // 倒计时剩余时间时间
60
65
  timer: null,
61
66
  counting: !props.paused && props.autoStart,
67
+ // 是否处于倒计时中
62
68
  handleEndTime: Date.now(),
69
+ // 最终截止时间
63
70
  diffTime: 0
71
+ // 设置了 startTime 时,与 date.now() 的差异
64
72
  });
65
73
  const classes = computed(() => {
66
74
  const prefixCls = componentName;
@@ -35,6 +35,7 @@ const _sfc_main = create({
35
35
  type: Boolean,
36
36
  default: true
37
37
  },
38
+ // 数字滚动
38
39
  numWidth: {
39
40
  type: Number,
40
41
  default: 20
@@ -47,6 +48,7 @@ const _sfc_main = create({
47
48
  type: Boolean,
48
49
  default: false
49
50
  },
51
+ // 自定义图片
50
52
  customBgImg: {
51
53
  type: String,
52
54
  default: ""
@@ -59,6 +61,7 @@ const _sfc_main = create({
59
61
  type: Number,
60
62
  default: 1
61
63
  },
64
+ // 抽奖
62
65
  type: {
63
66
  type: String,
64
67
  default: ""
@@ -100,14 +103,20 @@ const _sfc_main = create({
100
103
  to10_0: [0, 9, 8, 7, 6, 5, 4, 3, 2, 1, 1],
101
104
  timer: null,
102
105
  totalCount: 0,
106
+ //正整数
103
107
  pointNum: 0,
108
+ //小数位
104
109
  numberVal: 0,
110
+ //数字
105
111
  num_total_len: 0,
112
+ //数字长度
106
113
  relNum: 0,
114
+ //去除小数点
107
115
  customNumber: 1,
108
116
  prizeLevelTrun: 0,
109
117
  prizeY: [],
110
118
  prizeYPrev: [],
119
+ // machineTransition: 'none',
111
120
  finshMachine: 0,
112
121
  notPrize: [],
113
122
  typeMachine: ""
@@ -390,6 +399,7 @@ const _sfc_main = create({
390
399
  }
391
400
  scrollTime(
392
401
  i,
402
+ // parseFloat((this.machinePrizeNum-(this.prizeLevelTrun-1))*this.numHeight + turn + local),
393
403
  newLocation,
394
404
  local
395
405
  );
@@ -62,10 +62,12 @@ const _sfc_main = create({
62
62
  type: Function,
63
63
  default: null
64
64
  },
65
+ // 是否开启3D效果
65
66
  threeDimensional: {
66
67
  type: Boolean,
67
68
  default: true
68
69
  },
70
+ // 惯性滚动 时长
69
71
  swipeDuration: {
70
72
  type: [Number, String],
71
73
  default: 1e3
@@ -70,6 +70,7 @@ const _sfc_main = create({
70
70
  footerDirection: {
71
71
  type: String,
72
72
  default: "horizontal"
73
+ //vertical
73
74
  },
74
75
  customClass: {
75
76
  type: String,
@@ -235,6 +236,8 @@ class DialogOptions {
235
236
  __publicField(this, "teleport", "body");
236
237
  __publicField(this, "id", new Date().getTime());
237
238
  __publicField(this, "footerDirection", "horizontal");
239
+ //使用横纵方向 可选值 horizontal、vertical
240
+ // function
238
241
  __publicField(this, "onUpdate");
239
242
  __publicField(this, "onOk");
240
243
  __publicField(this, "onCancel");
@@ -42,7 +42,9 @@ const _sfc_main = create({
42
42
  const ellipsis = ref();
43
43
  const state = reactive({
44
44
  exceeded: false,
45
+ //是否超出
45
46
  expanded: false
47
+ //是否折叠
46
48
  });
47
49
  const classes = computed(() => {
48
50
  const prefixCls = componentName;
@@ -13,13 +13,16 @@ const _sfc_main = create({
13
13
  image: {
14
14
  type: String,
15
15
  default: "empty"
16
+ //默认empty
16
17
  },
17
18
  imageSize: {
18
19
  type: [Number, String],
20
+ // 图片大小,正方形
19
21
  default: ""
20
22
  },
21
23
  description: {
22
24
  type: String,
25
+ // 文字区
23
26
  default: ""
24
27
  }
25
28
  },
@@ -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-ceb98554.js";
3
+ import { c as component } from "./common-b9a5e726.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-ceb98554.js";
5
+ import { G as GRID_KEY } from "./common-b9a5e726.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,6 +29,7 @@ const _sfc_main = create({
29
29
  text: {
30
30
  type: String
31
31
  },
32
+ // router
32
33
  to: {
33
34
  type: [String, Object]
34
35
  },
@@ -296,6 +296,7 @@ const _sfc_main = create({
296
296
  closeIconPosition: {
297
297
  type: String,
298
298
  default: "top-right"
299
+ // top-right top-left
299
300
  },
300
301
  beforeClose: Function,
301
302
  isLoop: {
@@ -130,7 +130,9 @@ const _sfc_main = create({
130
130
  const state = reactive({
131
131
  focused: false,
132
132
  validateFailed: false,
133
+ // 校验失败
133
134
  validateMessage: ""
135
+ // 校验信息
134
136
  });
135
137
  const classes = computed(() => {
136
138
  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-d4c88f85.js";
6
- import { _ as _sfc_main$2 } from "./index.vue_vue_type_script_lang-1291fceb.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";
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,7 +39,9 @@ const _sfc_main = create({
39
39
  setup(props, { emit }) {
40
40
  const formRef = ref();
41
41
  const list = ref([]);
42
- const state = reactive({});
42
+ const state = reactive({
43
+ // list: []
44
+ });
43
45
  const classes = computed(() => {
44
46
  const prefixCls = componentName;
45
47
  return {
@@ -8,10 +8,15 @@ const _sfc_main = create({
8
8
  components: { Left },
9
9
  props: {
10
10
  leftShow: { type: Boolean, default: false },
11
+ //左侧 是否显示返回icon
11
12
  title: { type: String, default: "" },
13
+ //中间 文字标题
12
14
  titleIcon: { type: Boolean, default: false },
15
+ //中间
13
16
  leftText: { type: String, default: "" },
17
+ //左侧文字
14
18
  desc: { type: String, default: "" },
19
+ //右侧 按钮文字
15
20
  fixed: {
16
21
  type: Boolean,
17
22
  default: false
@@ -25,6 +30,7 @@ const _sfc_main = create({
25
30
  default: false
26
31
  },
27
32
  placeholder: {
33
+ // 生成一个等高的占位元素
28
34
  type: Boolean,
29
35
  default: true
30
36
  },
@@ -8,6 +8,7 @@ import "../locale/lang";
8
8
  const { componentName, create } = createComponent("noticebar");
9
9
  const _sfc_main = create({
10
10
  props: {
11
+ // 滚动方向 across 横向 vertical 纵向
11
12
  direction: {
12
13
  type: String,
13
14
  default: "across"
@@ -109,6 +109,9 @@ const defaultOptions = {
109
109
  duration: 3e3,
110
110
  className: "",
111
111
  onClose: Function,
112
+ // onClick: null,
113
+ // onOpened: null,
114
+ // textTimer: null,
112
115
  teleport: "",
113
116
  unmount: new Function()
114
117
  };
@@ -159,12 +159,14 @@ 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
+ // 当前选中项
162
163
  value: [String, Number],
163
164
  columnsType: String,
164
165
  column: {
165
166
  type: Array,
166
167
  default: () => []
167
168
  },
169
+ // 是否开启3D效果
168
170
  threeDimensional: {
169
171
  type: Boolean,
170
172
  default: true
@@ -1,4 +1,4 @@
1
- import { _ as _sfc_main } from "./index.vue_vue_type_script_lang-d4c88f85.js";
1
+ import { _ as _sfc_main } from "./index.vue_vue_type_script_lang-442e4704.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-1291fceb.js";
1
+ import { _ as _sfc_main } from "./index.vue_vue_type_script_lang-22dfc112.js";
2
2
  import "vue";
3
3
  import "./component-81a4c1d0.js";
4
4
  import "../locale/lang";
@@ -45,6 +45,7 @@ const _sfc_main = create({
45
45
  },
46
46
  focusStyle: {
47
47
  type: Object,
48
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
48
49
  default: () => {
49
50
  }
50
51
  },
@@ -42,6 +42,7 @@ const _sfc_main = create({
42
42
  },
43
43
  length: {
44
44
  type: [String, Number],
45
+ //4~6
45
46
  default: 6
46
47
  }
47
48
  },
@@ -7,42 +7,52 @@ const component = (components) => {
7
7
  return {
8
8
  components,
9
9
  props: {
10
+ //每行宽度
10
11
  width: {
11
12
  type: String,
12
13
  default: "100px"
13
14
  },
15
+ //每行高度
14
16
  height: {
15
17
  type: String,
16
18
  default: "100px"
17
19
  },
20
+ //是否显示动画
18
21
  animated: {
19
22
  type: Boolean,
20
23
  default: false
21
24
  },
25
+ //头像
22
26
  avatar: {
23
27
  type: Boolean,
24
28
  default: false
25
29
  },
30
+ //头像形状:正方形/圆形
26
31
  avatarShape: {
27
32
  type: String,
28
33
  default: "round"
29
34
  },
35
+ //头像大小
30
36
  avatarSize: {
31
37
  type: String,
32
38
  default: "50px"
33
39
  },
40
+ //是否显示骨架屏
34
41
  loading: {
35
42
  type: Boolean,
36
43
  default: true
37
44
  },
45
+ //标题/段落 圆角风格
38
46
  round: {
39
47
  type: Boolean,
40
48
  default: false
41
49
  },
50
+ //显示段落行数
42
51
  row: {
43
52
  type: String,
44
53
  default: "1"
45
54
  },
55
+ //是否显示段落标题
46
56
  title: {
47
57
  type: Boolean,
48
58
  default: true
@@ -121,6 +121,7 @@ const SkuSelect = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_rend
121
121
  const { componentName: componentName$2, create: create$2 } = createComponent("sku-stepper");
122
122
  const _sfc_main$2 = create$2({
123
123
  props: {
124
+ // 购买数量最大值
124
125
  stepperMax: {
125
126
  type: [Number, String],
126
127
  default: 99999
@@ -129,10 +130,12 @@ const _sfc_main$2 = create$2({
129
130
  type: [Number, String],
130
131
  default: 1
131
132
  },
133
+ // stepper 前文案提示
132
134
  stepperExtraText: {
133
135
  type: [Function, Boolean],
134
136
  default: false
135
137
  },
138
+ // 数量选择左侧文案
136
139
  stepperTitle: {
137
140
  type: String,
138
141
  default: "购买数量"
@@ -208,6 +211,7 @@ const SkuStepper = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_ren
208
211
  const { componentName: componentName$1, create: create$1 } = createComponent("sku-operate");
209
212
  const _sfc_main$1 = create$1({
210
213
  props: {
214
+ // 底部按钮配置 confirm cart buy
211
215
  btnOptions: {
212
216
  type: Array,
213
217
  default: () => ["confirm"]
@@ -216,10 +220,12 @@ const _sfc_main$1 = create$1({
216
220
  type: String,
217
221
  default: ""
218
222
  },
223
+ // 立即购买文案
219
224
  buyText: {
220
225
  type: String,
221
226
  default: "立即购买"
222
227
  },
228
+ // 加入购物车文案
223
229
  addCartText: {
224
230
  type: String,
225
231
  default: "加入购物车"
@@ -292,22 +298,27 @@ const _sfc_main = create({
292
298
  type: Object,
293
299
  default: {}
294
300
  },
301
+ // stepper 最大值
295
302
  stepperMax: {
296
303
  type: [Number, String],
297
304
  default: 99999
298
305
  },
306
+ // stepper 最小值
299
307
  stepperMin: {
300
308
  type: [Number, String],
301
309
  default: 1
302
310
  },
311
+ // 底部按钮配置 confirm cart buy
303
312
  btnOptions: {
304
313
  type: Array,
305
314
  default: () => ["confirm"]
306
315
  },
316
+ // 数量选择左侧文案
307
317
  stepperTitle: {
308
318
  type: String,
309
319
  default: ""
310
320
  },
321
+ // stepper 前面文案
311
322
  stepperExtraText: {
312
323
  type: [Function, Boolean],
313
324
  default: false
@@ -316,14 +327,17 @@ const _sfc_main = create({
316
327
  type: String,
317
328
  default: ""
318
329
  },
330
+ // 立即购买文案
319
331
  buyText: {
320
332
  type: String,
321
333
  default: ""
322
334
  },
335
+ // 加入购物车文案
323
336
  addCartText: {
324
337
  type: String,
325
338
  default: ""
326
339
  },
340
+ // 确定文案
327
341
  confirmText: {
328
342
  type: String,
329
343
  default: ""
@@ -19,6 +19,7 @@ const _sfc_main = create({
19
19
  direction: {
20
20
  type: String,
21
21
  default: "horizontal"
22
+ //horizontal and vertical
22
23
  },
23
24
  paginationVisible: {
24
25
  type: Boolean,