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

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 (124) hide show
  1. package/dist/nutui.es.js +1 -1
  2. package/dist/nutui.umd.cjs +2 -2
  3. package/dist/packages/_es/ActionSheet.js +1 -1
  4. package/dist/packages/_es/Address.js +4 -1
  5. package/dist/packages/_es/AddressList.js +7 -6
  6. package/dist/packages/_es/Audio.js +6 -0
  7. package/dist/packages/_es/AudioOperate.js +1 -0
  8. package/dist/packages/_es/Avatar.js +2 -0
  9. package/dist/packages/_es/AvatarGroup.js +1 -0
  10. package/dist/packages/_es/Calendar.js +2 -2
  11. package/dist/packages/_es/CalendarItem.js +1 -1
  12. package/dist/packages/_es/Cascader.js +4 -3
  13. package/dist/packages/_es/Category.js +2 -0
  14. package/dist/packages/_es/CategoryPane.js +3 -0
  15. package/dist/packages/_es/Cell.js +1 -0
  16. package/dist/packages/_es/CollapseItem.js +1 -0
  17. package/dist/packages/_es/Comment.js +17 -12
  18. package/dist/packages/_es/Countdown.js +8 -0
  19. package/dist/packages/_es/Countup.js +10 -0
  20. package/dist/packages/_es/DatePicker.js +2 -0
  21. package/dist/packages/_es/Dialog.js +8 -3
  22. package/dist/packages/_es/Ellipsis.js +2 -0
  23. package/dist/packages/_es/Empty.js +3 -0
  24. package/dist/packages/_es/Grid.js +1 -1
  25. package/dist/packages/_es/GridItem.js +2 -1
  26. package/dist/packages/_es/ImagePreview.js +2 -1
  27. package/dist/packages/_es/InfiniteLoading.js +0 -8
  28. package/dist/packages/_es/Input.js +2 -0
  29. package/dist/packages/_es/Invoice.js +5 -3
  30. package/dist/packages/_es/List.js +1 -1
  31. package/dist/packages/_es/MenuItem.js +1 -1
  32. package/dist/packages/_es/Navbar.js +6 -0
  33. package/dist/packages/_es/Noticebar.js +5 -1
  34. package/dist/packages/_es/Notify.js +4 -1
  35. package/dist/packages/_es/NumberKeyboard.js +1 -1
  36. package/dist/packages/_es/Overlay.js +1 -1
  37. package/dist/packages/_es/Picker.js +2 -0
  38. package/dist/packages/_es/Popover.js +1 -2
  39. package/dist/packages/_es/Popup.js +1 -1
  40. package/dist/packages/_es/PullRefresh.js +5 -8
  41. package/dist/packages/_es/Radio.js +1 -1
  42. package/dist/packages/_es/RadioGroup.js +1 -1
  43. package/dist/packages/_es/Searchbar.js +1 -0
  44. package/dist/packages/_es/ShortPassword.js +2 -1
  45. package/dist/packages/_es/Signature.js +12 -1
  46. package/dist/packages/_es/Skeleton.js +11 -3
  47. package/dist/packages/_es/Sku.js +25 -7
  48. package/dist/packages/_es/Swiper.js +1 -4
  49. package/dist/packages/_es/TabbarItem.js +5 -0
  50. package/dist/packages/_es/Tabs.js +2 -0
  51. package/dist/packages/_es/Textarea.js +1 -0
  52. package/dist/packages/_es/TimeDetail.js +0 -4
  53. package/dist/packages/_es/TimeSelect.js +2 -2
  54. package/dist/packages/_es/Toast.js +8 -0
  55. package/dist/packages/_es/Tour.js +2 -1
  56. package/dist/packages/_es/Uploader.js +2 -0
  57. package/dist/packages/_es/Video.js +18 -0
  58. package/dist/packages/_es/{common-ceb98554.js → common-b9a5e726.js} +8 -0
  59. package/dist/packages/_es/{index-1006915b.js → index-af79da1a.js} +1 -1
  60. package/dist/packages/_es/{index-1bf0d8ef.js → index-f3a722c9.js} +37 -0
  61. package/dist/packages/_es/{index.vue_vue_type_script_lang-1291fceb.js → index.vue_vue_type_script_lang-22dfc112.js} +1 -0
  62. package/dist/packages/_es/{index.vue_vue_type_script_lang-d4c88f85.js → index.vue_vue_type_script_lang-442e4704.js} +1 -0
  63. package/dist/packages/actionsheet/style.mjs +2 -0
  64. package/dist/packages/address/style.mjs +3 -0
  65. package/dist/packages/addresslist/style.mjs +2 -0
  66. package/dist/packages/audio/style.mjs +1 -0
  67. package/dist/packages/audiooperate/style.mjs +1 -0
  68. package/dist/packages/calendar/index.scss +2 -2
  69. package/dist/packages/calendar/style.mjs +3 -0
  70. package/dist/packages/card/style.mjs +2 -0
  71. package/dist/packages/cascader/style.mjs +5 -0
  72. package/dist/packages/comment/index.scss +5 -0
  73. package/dist/packages/comment/style.mjs +1 -0
  74. package/dist/packages/datepicker/style.mjs +3 -0
  75. package/dist/packages/dialog/style.mjs +3 -0
  76. package/dist/packages/ecard/style.mjs +1 -0
  77. package/dist/packages/fixednav/style.mjs +1 -0
  78. package/dist/packages/form/style.mjs +1 -0
  79. package/dist/packages/formitem/style.mjs +1 -0
  80. package/dist/packages/imagepreview/style.mjs +5 -0
  81. package/dist/packages/inputnumber/index.scss +0 -2
  82. package/dist/packages/invoice/style.mjs +7 -0
  83. package/dist/packages/locale/lang/zh-CN.js +1 -1
  84. package/dist/packages/menuitem/style.mjs +2 -0
  85. package/dist/packages/noticebar/index.scss +2 -0
  86. package/dist/packages/notify/style.mjs +2 -0
  87. package/dist/packages/numberkeyboard/style.mjs +2 -0
  88. package/dist/packages/picker/style.mjs +2 -0
  89. package/dist/packages/popover/style.mjs +2 -0
  90. package/dist/packages/popup/style.mjs +1 -0
  91. package/dist/packages/radio/index.scss +0 -1
  92. package/dist/packages/shortpassword/style.mjs +2 -0
  93. package/dist/packages/signature/index.scss +2 -2
  94. package/dist/packages/signature/style.mjs +1 -0
  95. package/dist/packages/skeleton/style.mjs +1 -0
  96. package/dist/packages/sku/style.mjs +4 -0
  97. package/dist/packages/step/index.scss +1 -9
  98. package/dist/packages/sticky/index.scss +1 -0
  99. package/dist/packages/tabbaritem/style.mjs +1 -0
  100. package/dist/packages/tabs/style.mjs +1 -0
  101. package/dist/packages/timedetail/index.scss +0 -5
  102. package/dist/packages/timeselect/style.mjs +2 -0
  103. package/dist/packages/tour/style.mjs +3 -0
  104. package/dist/packages/uploader/style.mjs +2 -0
  105. package/dist/smartips/web-types.json +39 -57
  106. package/dist/style.css +1 -1
  107. package/dist/styles/themes/default.scss +51 -51
  108. package/dist/styles/themes/jdb.scss +51 -51
  109. package/dist/styles/themes/jddkh.scss +51 -51
  110. package/dist/styles/themes/jdt.scss +51 -51
  111. package/dist/styles/variables-jdb.scss +1 -7
  112. package/dist/styles/variables-jddkh.scss +1 -6
  113. package/dist/styles/variables-jdt.scss +2 -7
  114. package/dist/styles/variables.scss +2 -7
  115. package/dist/types/__VUE/comment/components/CmtBottom.vue.d.ts +2 -2
  116. package/dist/types/__VUE/comment/index.vue.d.ts +4 -4
  117. package/dist/types/__VUE/infiniteloading/index.vue.d.ts +0 -18
  118. package/dist/types/__VUE/popover/index.vue.d.ts +0 -9
  119. package/dist/types/__VUE/pullrefresh/index.vue.d.ts +0 -9
  120. package/dist/types/__VUE/swiper/index.vue.d.ts +0 -9
  121. package/dist/types/__VUE/timedetail/index.vue.d.ts +0 -9
  122. package/dist/types/__VUE/tour/index.vue.d.ts +1 -1
  123. package/dist/types/index.d.ts +1 -1
  124. package/package.json +1 -1
@@ -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"
@@ -228,6 +229,9 @@ const _sfc_main = create({
228
229
  emit("click", item);
229
230
  };
230
231
  const handleClickIcon = () => {
232
+ if (props.closeMode) {
233
+ state.showNoticebar = !props.closeMode;
234
+ }
231
235
  emit("close", state.scrollList[0]);
232
236
  };
233
237
  onMounted(() => {
@@ -326,7 +330,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
326
330
  ], 6)), [
327
331
  [vShow, _ctx.showNoticebar]
328
332
  ]) : createCommentVNode("", true),
329
- _ctx.scrollList.length > 0 && _ctx.direction == "vertical" ? (openBlock(), createElementBlock("view", {
333
+ _ctx.scrollList.length > 0 && _ctx.direction == "vertical" && _ctx.showNoticebar ? (openBlock(), createElementBlock("view", {
330
334
  key: 1,
331
335
  class: "nut-noticebar__vertical",
332
336
  style: normalizeStyle(_ctx.barStyle)
@@ -1,6 +1,6 @@
1
1
  import { ref, watch, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, normalizeClass, normalizeStyle, renderSlot, createElementBlock, Fragment, createTextVNode, toDisplayString, createVNode, render, onMounted, h } from "vue";
2
2
  import { c as createComponent } from "./component-81a4c1d0.js";
3
- import { P as Popup } from "./index-1006915b.js";
3
+ import { P as Popup } from "./index-af79da1a.js";
4
4
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
5
5
  import "../locale/lang";
6
6
  import "./Overlay.js";
@@ -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
  };
@@ -1,6 +1,6 @@
1
1
  import { ref, computed, watch, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, toDisplayString, createCommentVNode, Fragment, renderList, normalizeClass, createTextVNode } from "vue";
2
2
  import { c as createComponent } from "./component-81a4c1d0.js";
3
- import { P as Popup } from "./index-1006915b.js";
3
+ import { P as Popup } from "./index-af79da1a.js";
4
4
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
5
5
  import "../locale/lang";
6
6
  import "./Overlay.js";
@@ -36,7 +36,7 @@ const _sfc_main = create({
36
36
  },
37
37
  lockScroll: {
38
38
  type: Boolean,
39
- default: false
39
+ default: true
40
40
  },
41
41
  overlayClass: {
42
42
  type: String,
@@ -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
@@ -2,7 +2,7 @@ import { ref, computed, onMounted, watch, resolveComponent, openBlock, createEle
2
2
  import { i as isArray, c as createComponent } from "./component-81a4c1d0.js";
3
3
  import { r as renderIcon } from "./renderIcon-3d0fd47c.js";
4
4
  import { u as useRect } from "./index-29892cda.js";
5
- import { P as Popup } from "./index-1006915b.js";
5
+ import { P as Popup } from "./index-af79da1a.js";
6
6
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
7
7
  import "../locale/lang";
8
8
  import "./Overlay.js";
@@ -21,7 +21,6 @@ const _sfc_main = create({
21
21
  arrowOffset: { type: Number, default: 0 },
22
22
  customClass: { type: String, default: "" },
23
23
  showArrow: { type: Boolean, default: true },
24
- iconPrefix: { type: String, default: "nut-icon" },
25
24
  duration: { type: [Number, String], default: 0.3 },
26
25
  overlay: { type: Boolean, default: false },
27
26
  overlayClass: { type: String, default: "" },
@@ -1,4 +1,4 @@
1
- import { P } from "./index-1006915b.js";
1
+ import { P } from "./index-af79da1a.js";
2
2
  import "vue";
3
3
  import "./_plugin-vue_export-helper-cc2b3d55.js";
4
4
  import "./component-81a4c1d0.js";
@@ -25,10 +25,10 @@ const _sfc_main = create({
25
25
  type: String,
26
26
  default: translate("loading")
27
27
  },
28
- completeTxt: {
29
- type: String,
30
- default: ""
31
- },
28
+ // completeTxt: {
29
+ // type: String,
30
+ // default: ''
31
+ // },
32
32
  headHeight: {
33
33
  type: [String, Number],
34
34
  default: 50
@@ -67,8 +67,6 @@ const _sfc_main = create({
67
67
  return !slots.loosing ? props.loosingTxt : "";
68
68
  case "loading":
69
69
  return !slots.loading ? props.loadingTxt : "";
70
- case "complete":
71
- return !slots.complete ? props.completeTxt : "";
72
70
  }
73
71
  });
74
72
  const getStyle = computed(() => {
@@ -204,8 +202,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
204
202
  createElementVNode("div", _hoisted_1, toDisplayString(_ctx.getPullStatus), 1),
205
203
  _ctx.status == "pulling" ? renderSlot(_ctx.$slots, "pulling", { key: 1 }) : createCommentVNode("", true),
206
204
  _ctx.status == "loosing" ? renderSlot(_ctx.$slots, "loosing", { key: 2 }) : createCommentVNode("", true),
207
- _ctx.status == "loading" ? renderSlot(_ctx.$slots, "loading", { key: 3 }) : createCommentVNode("", true),
208
- _ctx.status == "complete" ? renderSlot(_ctx.$slots, "complete", { key: 4 }) : createCommentVNode("", true)
205
+ _ctx.status == "loading" ? renderSlot(_ctx.$slots, "loading", { key: 3 }) : createCommentVNode("", true)
209
206
  ], 4),
210
207
  renderSlot(_ctx.$slots, "default")
211
208
  ], 4)
@@ -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
  },
@@ -1,6 +1,6 @@
1
1
  import { ref, computed, watch, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, toDisplayString, Fragment, renderList, createCommentVNode } from "vue";
2
2
  import { c as createComponent } from "./component-81a4c1d0.js";
3
- import { P as Popup } from "./index-1006915b.js";
3
+ import { P as Popup } from "./index-af79da1a.js";
4
4
  import { Tips } from "@nutui/icons-vue";
5
5
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
6
6
  import "../locale/lang";
@@ -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
  },
@@ -104,6 +104,15 @@ const _sfc_main = create({
104
104
  const confirm = () => {
105
105
  onSave(canvas.value);
106
106
  };
107
+ const isCanvasBlank = (canvas2) => {
108
+ if (!canvas2) {
109
+ return true;
110
+ }
111
+ var blank = document.createElement("canvas");
112
+ blank.width = canvas2.width;
113
+ blank.height = canvas2.height;
114
+ return (canvas2 == null ? void 0 : canvas2.toDataURL()) == blank.toDataURL();
115
+ };
107
116
  const onSave = (canvas2) => {
108
117
  let dataurl;
109
118
  switch (props.type) {
@@ -114,8 +123,10 @@ const _sfc_main = create({
114
123
  dataurl = canvas2.toDataURL("image/jpeg", 0.8);
115
124
  break;
116
125
  }
126
+ const _canvas = isCanvasBlank(canvas2) ? "请绘制签名" : canvas2;
127
+ const _filePath = isCanvasBlank(canvas2) ? "" : dataurl;
117
128
  clear();
118
- emit("confirm", canvas2, dataurl);
129
+ emit("confirm", _canvas, _filePath);
119
130
  };
120
131
  onMounted(() => {
121
132
  if (isCanvasSupported()) {
@@ -1,5 +1,5 @@
1
1
  import { c as createComponent } from "./component-81a4c1d0.js";
2
- import { toRefs, computed, onMounted, resolveComponent, openBlock, createElementBlock, renderSlot, createCommentVNode, createElementVNode, createBlock, normalizeClass, normalizeStyle, Fragment, renderList } from "vue";
2
+ import { toRefs, computed, resolveComponent, openBlock, createElementBlock, renderSlot, createCommentVNode, createElementVNode, createBlock, normalizeClass, normalizeStyle, Fragment, renderList } from "vue";
3
3
  import Avatar from "./Avatar.js";
4
4
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
5
5
  import "../locale/lang";
@@ -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
@@ -75,8 +85,6 @@ const component = (components) => {
75
85
  height: "50px"
76
86
  };
77
87
  };
78
- onMounted(() => {
79
- });
80
88
  return {
81
89
  avatarShape,
82
90
  avatarClass,
@@ -1,13 +1,13 @@
1
1
  import { resolveComponent, openBlock, createElementBlock, createElementVNode, renderSlot, createBlock, createCommentVNode, toDisplayString, ref, watch, onMounted, Fragment, renderList, normalizeClass, createVNode, withCtx, createSlots } from "vue";
2
+ import Price from "./Price.js";
2
3
  import { c as createComponent, T as TypeOfFun } from "./component-81a4c1d0.js";
3
4
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
4
- import { p as popupProps, P as Popup } from "./index-1006915b.js";
5
- import Price from "./Price.js";
6
5
  import InputNumber from "./InputNumber.js";
6
+ import { p as popupProps, P as Popup } from "./index-af79da1a.js";
7
7
  import "../locale/lang";
8
- import "./Overlay.js";
9
- import "@nutui/icons-vue";
10
8
  import "./pxCheck-c6b9f6b7.js";
9
+ import "@nutui/icons-vue";
10
+ import "./Overlay.js";
11
11
  const { componentName: componentName$4, create: create$4, translate: translate$1 } = createComponent("sku-header");
12
12
  const _sfc_main$4 = create$4({
13
13
  props: {
@@ -17,6 +17,9 @@ const _sfc_main$4 = create$4({
17
17
  }
18
18
  },
19
19
  emits: [],
20
+ components: {
21
+ [Price.name]: Price
22
+ },
20
23
  setup(props, { emit, slots }) {
21
24
  const getSlots = (name) => slots[name];
22
25
  return {
@@ -121,6 +124,7 @@ const SkuSelect = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_rend
121
124
  const { componentName: componentName$2, create: create$2 } = createComponent("sku-stepper");
122
125
  const _sfc_main$2 = create$2({
123
126
  props: {
127
+ // 购买数量最大值
124
128
  stepperMax: {
125
129
  type: [Number, String],
126
130
  default: 99999
@@ -129,16 +133,21 @@ const _sfc_main$2 = create$2({
129
133
  type: [Number, String],
130
134
  default: 1
131
135
  },
136
+ // stepper 前文案提示
132
137
  stepperExtraText: {
133
138
  type: [Function, Boolean],
134
139
  default: false
135
140
  },
141
+ // 数量选择左侧文案
136
142
  stepperTitle: {
137
143
  type: String,
138
144
  default: "购买数量"
139
145
  }
140
146
  },
141
147
  emits: ["click", "changeSku", "changeStepper", "clickBtnOptions", "overLimit", "reduce", "add"],
148
+ components: {
149
+ [InputNumber.name]: InputNumber
150
+ },
142
151
  setup(props, { emit }) {
143
152
  const goodsCount = ref(props.stepperMin);
144
153
  onMounted(() => {
@@ -208,6 +217,7 @@ const SkuStepper = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_ren
208
217
  const { componentName: componentName$1, create: create$1 } = createComponent("sku-operate");
209
218
  const _sfc_main$1 = create$1({
210
219
  props: {
220
+ // 底部按钮配置 confirm cart buy
211
221
  btnOptions: {
212
222
  type: Array,
213
223
  default: () => ["confirm"]
@@ -216,10 +226,12 @@ const _sfc_main$1 = create$1({
216
226
  type: String,
217
227
  default: ""
218
228
  },
229
+ // 立即购买文案
219
230
  buyText: {
220
231
  type: String,
221
232
  default: "立即购买"
222
233
  },
234
+ // 加入购物车文案
223
235
  addCartText: {
224
236
  type: String,
225
237
  default: "加入购物车"
@@ -292,22 +304,27 @@ const _sfc_main = create({
292
304
  type: Object,
293
305
  default: {}
294
306
  },
307
+ // stepper 最大值
295
308
  stepperMax: {
296
309
  type: [Number, String],
297
310
  default: 99999
298
311
  },
312
+ // stepper 最小值
299
313
  stepperMin: {
300
314
  type: [Number, String],
301
315
  default: 1
302
316
  },
317
+ // 底部按钮配置 confirm cart buy
303
318
  btnOptions: {
304
319
  type: Array,
305
320
  default: () => ["confirm"]
306
321
  },
322
+ // 数量选择左侧文案
307
323
  stepperTitle: {
308
324
  type: String,
309
325
  default: ""
310
326
  },
327
+ // stepper 前面文案
311
328
  stepperExtraText: {
312
329
  type: [Function, Boolean],
313
330
  default: false
@@ -316,14 +333,17 @@ const _sfc_main = create({
316
333
  type: String,
317
334
  default: ""
318
335
  },
336
+ // 立即购买文案
319
337
  buyText: {
320
338
  type: String,
321
339
  default: ""
322
340
  },
341
+ // 加入购物车文案
323
342
  addCartText: {
324
343
  type: String,
325
344
  default: ""
326
345
  },
346
+ // 确定文案
327
347
  confirmText: {
328
348
  type: String,
329
349
  default: ""
@@ -346,9 +366,7 @@ const _sfc_main = create({
346
366
  SkuSelect,
347
367
  SkuStepper,
348
368
  SkuOperate,
349
- [Popup.name]: Popup,
350
- [Price.name]: Price,
351
- [InputNumber.name]: InputNumber
369
+ [Popup.name]: Popup
352
370
  },
353
371
  setup(props, { emit, slots }) {
354
372
  const showPopup = ref(props.visible);
@@ -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,
@@ -55,10 +56,6 @@ const _sfc_main = create({
55
56
  isStopPropagation: {
56
57
  type: Boolean,
57
58
  default: true
58
- },
59
- isCenter: {
60
- type: Boolean,
61
- default: false
62
59
  }
63
60
  },
64
61
  emits: ["change"],
@@ -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 = () => {
@@ -11,10 +11,6 @@ const _sfc_main = create({
11
11
  default: () => {
12
12
  return [];
13
13
  }
14
- },
15
- detailKey: {
16
- type: [Number, String],
17
- default: 0
18
14
  }
19
15
  },
20
16
  emits: ["select"],
@@ -1,6 +1,6 @@
1
1
  import { computed, provide, resolveComponent, openBlock, createBlock, normalizeStyle, withCtx, createElementVNode, normalizeClass, createElementBlock, toDisplayString, renderSlot } from "vue";
2
2
  import { c as createComponent } from "./component-81a4c1d0.js";
3
- import { P as Popup } from "./index-1006915b.js";
3
+ import { P as Popup } from "./index-af79da1a.js";
4
4
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
5
5
  import "../locale/lang";
6
6
  import "./Overlay.js";
@@ -35,7 +35,7 @@ const _sfc_main = create({
35
35
  },
36
36
  lockScroll: {
37
37
  type: [Boolean],
38
- default: false
38
+ default: true
39
39
  },
40
40
  teleportDisable: {
41
41
  type: Boolean,
@@ -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 = [];
@@ -6,7 +6,7 @@ import Popover from "./Popover.js";
6
6
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
7
7
  import "../locale/lang";
8
8
  import "./renderIcon-3d0fd47c.js";
9
- import "./index-1006915b.js";
9
+ import "./index-af79da1a.js";
10
10
  import "./Overlay.js";
11
11
  const { create } = createComponent("tour");
12
12
  const _sfc_main = create({
@@ -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,