@nutui/nutui 4.0.0-beta.15 → 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 (105) 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/AddressList.js +125 -177
  5. package/dist/packages/_es/Audio.js +6 -0
  6. package/dist/packages/_es/AudioOperate.js +1 -0
  7. package/dist/packages/_es/Avatar.js +2 -0
  8. package/dist/packages/_es/AvatarGroup.js +1 -0
  9. package/dist/packages/_es/Calendar.js +1 -1
  10. package/dist/packages/_es/CalendarItem.js +1 -1
  11. package/dist/packages/_es/Cascader.js +2 -0
  12. package/dist/packages/_es/Category.js +2 -0
  13. package/dist/packages/_es/CategoryPane.js +3 -0
  14. package/dist/packages/_es/Cell.js +1 -0
  15. package/dist/packages/_es/CollapseItem.js +1 -0
  16. package/dist/packages/_es/Comment.js +5 -0
  17. package/dist/packages/_es/Countdown.js +8 -0
  18. package/dist/packages/_es/Countup.js +10 -0
  19. package/dist/packages/_es/DatePicker.js +2 -0
  20. package/dist/packages/_es/Dialog.js +3 -0
  21. package/dist/packages/_es/Ellipsis.js +2 -0
  22. package/dist/packages/_es/Empty.js +3 -0
  23. package/dist/packages/_es/Grid.js +1 -1
  24. package/dist/packages/_es/GridItem.js +2 -1
  25. package/dist/packages/_es/ImagePreview.js +1 -0
  26. package/dist/packages/_es/Input.js +2 -0
  27. package/dist/packages/_es/Invoice.js +5 -3
  28. package/dist/packages/_es/Navbar.js +6 -0
  29. package/dist/packages/_es/Noticebar.js +1 -0
  30. package/dist/packages/_es/Notify.js +3 -0
  31. package/dist/packages/_es/Picker.js +2 -0
  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 +1 -0
  35. package/dist/packages/_es/ShortPassword.js +1 -0
  36. package/dist/packages/_es/Skeleton.js +10 -0
  37. package/dist/packages/_es/Sku.js +14 -0
  38. package/dist/packages/_es/Swiper.js +1 -0
  39. package/dist/packages/_es/TabbarItem.js +5 -0
  40. package/dist/packages/_es/Tabs.js +2 -0
  41. package/dist/packages/_es/Textarea.js +1 -0
  42. package/dist/packages/_es/Toast.js +8 -0
  43. package/dist/packages/_es/Tour.js +1 -0
  44. package/dist/packages/_es/Uploader.js +2 -0
  45. package/dist/packages/_es/Video.js +18 -0
  46. package/dist/packages/_es/{common-ceb98554.js → common-b9a5e726.js} +8 -0
  47. package/dist/packages/_es/{index-1bf0d8ef.js → index-f3a722c9.js} +37 -0
  48. package/dist/packages/_es/{index.vue_vue_type_script_lang-1291fceb.js → index.vue_vue_type_script_lang-22dfc112.js} +1 -0
  49. package/dist/packages/_es/{index.vue_vue_type_script_lang-d4c88f85.js → index.vue_vue_type_script_lang-442e4704.js} +1 -0
  50. package/dist/packages/actionsheet/style.mjs +2 -0
  51. package/dist/packages/address/style.mjs +3 -0
  52. package/dist/packages/addresslist/style.mjs +2 -0
  53. package/dist/packages/audio/style.mjs +1 -0
  54. package/dist/packages/audiooperate/style.mjs +1 -0
  55. package/dist/packages/avatar/index.scss +2 -1
  56. package/dist/packages/avatargroup/index.scss +1 -1
  57. package/dist/packages/button/index.scss +63 -1
  58. package/dist/packages/calendar/index.scss +2 -2
  59. package/dist/packages/calendar/style.mjs +3 -0
  60. package/dist/packages/card/style.mjs +2 -0
  61. package/dist/packages/cascader/style.mjs +5 -0
  62. package/dist/packages/comment/style.mjs +1 -0
  63. package/dist/packages/datepicker/style.mjs +3 -0
  64. package/dist/packages/dialog/style.mjs +3 -0
  65. package/dist/packages/ecard/style.mjs +1 -0
  66. package/dist/packages/fixednav/style.mjs +1 -0
  67. package/dist/packages/form/style.mjs +1 -0
  68. package/dist/packages/formitem/style.mjs +1 -0
  69. package/dist/packages/imagepreview/style.mjs +5 -0
  70. package/dist/packages/invoice/style.mjs +7 -0
  71. package/dist/packages/locale/lang/zh-CN.js +1 -1
  72. package/dist/packages/menuitem/style.mjs +2 -0
  73. package/dist/packages/notify/style.mjs +2 -0
  74. package/dist/packages/numberkeyboard/style.mjs +2 -0
  75. package/dist/packages/picker/style.mjs +2 -0
  76. package/dist/packages/popover/style.mjs +2 -0
  77. package/dist/packages/popup/style.mjs +1 -0
  78. package/dist/packages/shortpassword/style.mjs +2 -0
  79. package/dist/packages/signature/style.mjs +1 -0
  80. package/dist/packages/skeleton/style.mjs +1 -0
  81. package/dist/packages/sku/style.mjs +4 -0
  82. package/dist/packages/tabbaritem/style.mjs +1 -0
  83. package/dist/packages/tabs/style.mjs +1 -0
  84. package/dist/packages/timeselect/style.mjs +2 -0
  85. package/dist/packages/tour/style.mjs +3 -0
  86. package/dist/packages/uploader/style.mjs +2 -0
  87. package/dist/smartips/web-types.json +12 -12
  88. package/dist/style.css +1 -1
  89. package/dist/styles/reset.css +3 -0
  90. package/dist/styles/themes/default.scss +53 -53
  91. package/dist/styles/themes/jdb.scss +53 -53
  92. package/dist/styles/themes/jddkh.scss +53 -53
  93. package/dist/styles/themes/jdt.scss +53 -53
  94. package/dist/styles/variables-jdb.scss +0 -2
  95. package/dist/styles/variables-jddkh.scss +0 -2
  96. package/dist/styles/variables-jdt.scss +1 -3
  97. package/dist/styles/variables.scss +1 -3
  98. package/dist/types/__VUE/addresslist/components/GeneralShell.vue.d.ts +22 -6
  99. package/dist/types/__VUE/addresslist/index.vue.d.ts +2 -2
  100. package/dist/types/__VUE/cell/index.vue.d.ts +1 -1
  101. package/dist/types/__VUE/griditem/index.vue.d.ts +1 -1
  102. package/dist/types/__VUE/searchbar/index.vue.d.ts +1 -1
  103. package/dist/types/index.d.ts +1 -1
  104. package/package.json +2 -2
  105. package/dist/types/__VUE/addresslist/components/SwipeShell.vue.d.ts +0 -26
@@ -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,
@@ -10,6 +10,7 @@ const _sfc_main = create({
10
10
  components: { [Badge.name]: Badge },
11
11
  props: {
12
12
  tabTitle: {
13
+ // 标签页的标题
13
14
  type: String,
14
15
  default: ""
15
16
  },
@@ -17,9 +18,11 @@ const _sfc_main = create({
17
18
  type: String
18
19
  },
19
20
  icon: {
21
+ // 标签页显示的icon
20
22
  type: Object
21
23
  },
22
24
  href: {
25
+ // 标签页的跳转链接
23
26
  type: String,
24
27
  default: ""
25
28
  },
@@ -32,7 +35,9 @@ const _sfc_main = create({
32
35
  const parent = inject("parent");
33
36
  const state = reactive({
34
37
  unactiveColor: parent.unactiveColor,
38
+ // 未选中的颜色
35
39
  activeColor: parent.activeColor,
40
+ // 选中的颜色
36
41
  index: 0
37
42
  });
38
43
  const router = useRouter();
@@ -35,6 +35,7 @@ const _sfc_main = create({
35
35
  direction: {
36
36
  type: String,
37
37
  default: "horizontal"
38
+ //vertical
38
39
  },
39
40
  size: {
40
41
  type: String,
@@ -43,6 +44,7 @@ const _sfc_main = create({
43
44
  type: {
44
45
  type: String,
45
46
  default: "line"
47
+ //card、line、smile
46
48
  },
47
49
  titleScroll: {
48
50
  type: Boolean,
@@ -67,6 +67,7 @@ const _sfc_main = create({
67
67
  const styles = computed(() => {
68
68
  return {
69
69
  textAlign: props.textAlign
70
+ // resize: props.autosize ? 'vertical' : 'none'
70
71
  };
71
72
  });
72
73
  const getContentHeight = () => {
@@ -196,7 +196,9 @@ const defaultOptions = {
196
196
  msg: "",
197
197
  id: "",
198
198
  duration: 2e3,
199
+ //显示时间(毫秒)
199
200
  center: true,
201
+ // 未实现
200
202
  type: "text",
201
203
  title: "",
202
204
  customClass: "",
@@ -205,13 +207,19 @@ const defaultOptions = {
205
207
  iconSize: "20",
206
208
  icon: null,
207
209
  textAlignCenter: true,
210
+ // 未实现
208
211
  loadingRotate: true,
212
+ // 未实现
209
213
  bgColor: "",
210
214
  onClose: null,
215
+ // 未实现
211
216
  unmount: null,
212
217
  cover: false,
218
+ //透明遮罩层 // 未实现
213
219
  coverColor: "",
220
+ // 未实现
214
221
  closeOnClickOverlay: false
222
+ // 未实现
215
223
  };
216
224
  let idsMap = [];
217
225
  let optsMap = [];
@@ -19,6 +19,7 @@ const _sfc_main = create({
19
19
  type: {
20
20
  type: String,
21
21
  default: "step"
22
+ // tile
22
23
  },
23
24
  steps: {
24
25
  type: Array,
@@ -103,9 +103,11 @@ const _sfc_main = create({
103
103
  props: {
104
104
  name: { type: String, default: "file" },
105
105
  url: { type: String, default: "" },
106
+ // defaultFileList: { type: Array, default: () => new Array<FileItem>() },
106
107
  timeout: { type: [Number, String], default: 1e3 * 30 },
107
108
  fileList: { type: Array, default: () => [] },
108
109
  isPreview: { type: Boolean, default: true },
110
+ // picture、list
109
111
  listType: { type: String, default: "picture" },
110
112
  isDeletable: { type: Boolean, default: true },
111
113
  method: { type: String, default: "post" },
@@ -29,13 +29,17 @@ const _sfc_main = create({
29
29
  type: Object,
30
30
  default: {
31
31
  autoplay: false,
32
+ //是否自动播放
32
33
  volume: 0.5,
33
34
  poster: "",
34
35
  loop: false,
35
36
  controls: true,
36
37
  muted: false,
38
+ //是否静音
37
39
  disabled: false,
40
+ //禁止操作
38
41
  playsinline: false,
42
+ //行内展示
39
43
  touchPlay: false,
40
44
  preload: ""
41
45
  },
@@ -52,30 +56,44 @@ const _sfc_main = create({
52
56
  const state = reactive({
53
57
  videoElm: null,
54
58
  initial: true,
59
+ //控制封面的显示
55
60
  showToolbox: false,
61
+ //控制控制器和标题的显示
62
+ // 视频容器元素
56
63
  player: {
57
64
  $player: null,
58
65
  pos: null
59
66
  },
67
+ // progress进度条元素
60
68
  progressBar: {
61
69
  progressElm: null,
70
+ // 进度条DOM对象
62
71
  pos: null
63
72
  },
73
+ // video控制显示设置
64
74
  videoSet: {
65
75
  loaded: 0,
76
+ // 缓存长度
66
77
  displayTime: "00:00",
78
+ // 进度时间
67
79
  totalTime: "00:00",
80
+ // 总时间
68
81
  progress: {
69
82
  width: 0,
83
+ // 进度条长度
70
84
  current: 0
85
+ // 进度条当前位置
71
86
  }
72
87
  },
73
88
  state: {
74
89
  controlShow: true,
75
90
  vol: 0.5,
91
+ //音量
76
92
  currentTime: 0,
93
+ //当前时间
77
94
  fullScreen: false,
78
95
  playing: false,
96
+ //是否正在播放
79
97
  isLoading: false,
80
98
  isEnd: false,
81
99
  isError: false,
@@ -68,33 +68,41 @@ function useProvide(key, childName) {
68
68
  const { componentName } = createComponent("grid");
69
69
  const GRID_KEY = Symbol("grid");
70
70
  const gridProps = {
71
+ // 列数
71
72
  columnNum: {
72
73
  type: [Number, String],
73
74
  default: 4
74
75
  },
76
+ // 是否显示边框
75
77
  border: {
76
78
  type: Boolean,
77
79
  default: true
78
80
  },
81
+ // 格子之间间隔距离
79
82
  gutter: {
80
83
  type: [Number, String],
81
84
  default: 0
82
85
  },
86
+ // 是否内容居中
83
87
  center: {
84
88
  type: Boolean,
85
89
  default: true
86
90
  },
91
+ // 是否固定正方形
87
92
  square: {
88
93
  type: Boolean,
89
94
  default: false
90
95
  },
96
+ // 内容与文字翻转
91
97
  reverse: {
92
98
  type: Boolean,
93
99
  default: false
94
100
  },
101
+ // 内容排列方向
95
102
  direction: {
96
103
  type: String
97
104
  },
105
+ // 是否开启点击反馈
98
106
  clickable: {
99
107
  type: Boolean,
100
108
  default: false