@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
@@ -1,6 +1,6 @@
1
1
  import { c as createComponent } from "./component-81a4c1d0.js";
2
2
  import { useSlots, computed, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, normalizeClass, createElementBlock, toDisplayString, createCommentVNode, renderSlot, Fragment, renderList, normalizeStyle } from "vue";
3
- import { P as Popup, p as popupProps } from "./index-1006915b.js";
3
+ import { P as Popup, p as popupProps } from "./index-af79da1a.js";
4
4
  import { Loading } from "@nutui/icons-vue";
5
5
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
6
6
  import "../locale/lang";
@@ -1,6 +1,6 @@
1
1
  import { ref, computed, reactive, watch, toRefs, nextTick, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, renderSlot, withDirectives, createVNode, vShow, toDisplayString, createElementBlock, Fragment, renderList, normalizeClass, createCommentVNode, normalizeStyle, createTextVNode } from "vue";
2
2
  import { c as createComponent } from "./component-81a4c1d0.js";
3
- import { P as Popup, p as popupProps } from "./index-1006915b.js";
3
+ import { P as Popup, p as popupProps } from "./index-af79da1a.js";
4
4
  import Elevator from "./Elevator.js";
5
5
  import { Location, Location2, Check, Close, Left } from "@nutui/icons-vue";
6
6
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
@@ -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
@@ -6,8 +6,8 @@ import Button from "./Button.js";
6
6
  import Swipe from "./Swipe.js";
7
7
  import "../locale/lang";
8
8
  import "./index-7a7385e4.js";
9
- const { create: create$2 } = createComponent("addresslist-item");
10
- const { translate: translate$1 } = createComponent("addresslist");
9
+ const { create: create$2 } = createComponent("address-list-item");
10
+ const { translate: translate$1 } = createComponent("address-list");
11
11
  const _sfc_main$2 = create$2({
12
12
  components: { Del, Edit },
13
13
  props: {
@@ -86,7 +86,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
86
86
  ]);
87
87
  }
88
88
  const ItemContents = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2]]);
89
- const { create: create$1 } = createComponent("addresslist-general");
89
+ const { create: create$1 } = createComponent("address-list-general");
90
90
  const _sfc_main$1 = create$1({
91
91
  props: {
92
92
  item: {
@@ -104,7 +104,9 @@ const _sfc_main$1 = create$1({
104
104
  },
105
105
  emits: ["delIcon", "editIcon", "itemClick", "longDown", "longCopy", "longSet", "longDel", "swipeDel"],
106
106
  components: {
107
- ItemContents
107
+ ItemContents,
108
+ [Button.name]: Button,
109
+ [Swipe.name]: Swipe
108
110
  },
109
111
  setup(props, { emit }) {
110
112
  const renderCompontent = () => {
@@ -345,8 +347,7 @@ const _sfc_main = create({
345
347
  },
346
348
  components: {
347
349
  GeneralShell,
348
- [Button.name]: Button,
349
- [Swipe.name]: Swipe
350
+ [Button.name]: Button
350
351
  },
351
352
  emits: ["delIcon", "editIcon", "itemClick", "longCopy", "longSet", "longDel", "swipeDel", "add"],
352
353
  setup(props, { emit }) {
@@ -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,7 +1,7 @@
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";
4
- import { P as Popup } from "./index-1006915b.js";
3
+ import { C as CalendarItem, U as Utils } from "./index-f3a722c9.js";
4
+ import { P as Popup } from "./index-af79da1a.js";
5
5
  import { u as useExpose } from "./index-79c5dc33.js";
6
6
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
7
7
  import "../locale/lang";
@@ -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";
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => {
5
5
  return value;
6
6
  };
7
7
  import { computed, ref, watch, resolveComponent, openBlock, createBlock, withCtx, createElementBlock, Fragment, renderList, createElementVNode, normalizeClass, toDisplayString, createCommentVNode, createVNode } from "vue";
8
- import { P as Popup, p as popupProps } from "./index-1006915b.js";
8
+ import { P as Popup, p as popupProps } from "./index-af79da1a.js";
9
9
  import { c as createComponent } from "./component-81a4c1d0.js";
10
10
  import { Loading, Checklist } from "@nutui/icons-vue";
11
11
  import Tabs from "./Tabs.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]) {
@@ -521,7 +523,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
521
523
  "pop-class": "nut-cascader__popup",
522
524
  round: "",
523
525
  closeable: !_ctx.closeable,
524
- "close-icon": _ctx.closeIcon,
525
526
  "destroy-on-close": false,
526
527
  "close-icon-position": _ctx.closeIconPosition
527
528
  }, {
@@ -546,7 +547,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
546
547
  }, null, 8, ["onChange", "onPathChange", "modelValue", "options", "lazy", "lazy-load", "value-key", "text-key", "children-key", "convert-config", "visible"])
547
548
  ]),
548
549
  _: 1
549
- }, 8, ["visible", "closeable", "close-icon", "close-icon-position"])) : (openBlock(), createBlock(_component_nut_cascader_item, {
550
+ }, 8, ["visible", "closeable", "close-icon-position"])) : (openBlock(), createBlock(_component_nut_cascader_item, {
550
551
  key: 1,
551
552
  onChange: _ctx.onChange,
552
553
  onPathChange: _ctx.onPathChange,
@@ -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);
@@ -1,6 +1,6 @@
1
1
  import { resolveComponent, openBlock, createElementBlock, createElementVNode, createCommentVNode, normalizeClass, toDisplayString, renderSlot, createVNode, ref, watch, onMounted, Fragment, renderList, createBlock, computed, withCtx, normalizeStyle, createTextVNode } from "vue";
2
2
  import { c as createComponent } from "./component-81a4c1d0.js";
3
- import { Right, Fabulous, Comment, MoreX, JoySmile } from "@nutui/icons-vue";
3
+ import { Right, Fabulous, Comment, MoreX } from "@nutui/icons-vue";
4
4
  import Rate from "./Rate.js";
5
5
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
6
6
  import "../locale/lang";
@@ -9,10 +9,14 @@ import "./pxCheck-c6b9f6b7.js";
9
9
  import "./index-7a7385e4.js";
10
10
  const { componentName: componentName$3, create: create$3 } = createComponent("comment-header");
11
11
  const _sfc_main$3 = create$3({
12
+ components: {
13
+ [Rate.name]: Rate
14
+ },
12
15
  props: {
13
16
  type: {
14
17
  type: String,
15
18
  default: "default"
19
+ // default,complex
16
20
  },
17
21
  info: {
18
22
  type: Object,
@@ -72,6 +76,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
72
76
  "icon-size": "10",
73
77
  spacing: "5",
74
78
  readonly: "",
79
+ disabled: true,
75
80
  onChange: _ctx.handleClick
76
81
  }, null, 8, ["modelValue", "onChange"])
77
82
  ])
@@ -96,7 +101,8 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
96
101
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => _ctx.info.score = $event),
97
102
  "icon-size": "12",
98
103
  spacing: "3",
99
- readonly: ""
104
+ readonly: "",
105
+ disabled: true
100
106
  }, null, 8, ["modelValue"]),
101
107
  createElementVNode("i", {
102
108
  class: normalizeClass([`nut-comment-header__${_ctx.type}-score-i`])
@@ -114,6 +120,7 @@ const _sfc_main$2 = create$2({
114
120
  type: {
115
121
  type: String,
116
122
  default: "one"
123
+ // one multi
117
124
  },
118
125
  videos: {
119
126
  type: Array,
@@ -216,11 +223,11 @@ const _sfc_main$1 = create$1({
216
223
  type: {
217
224
  type: String,
218
225
  default: "base"
226
+ // simple,base,complex
219
227
  },
220
228
  info: {
221
229
  type: Object,
222
- default: () => {
223
- }
230
+ default: () => ({})
224
231
  },
225
232
  operation: {
226
233
  type: Array,
@@ -300,10 +307,12 @@ const _sfc_main = create({
300
307
  headerType: {
301
308
  type: String,
302
309
  default: "default"
310
+ //头部展示风格 default,complex
303
311
  },
304
312
  imagesRows: {
305
313
  type: String,
306
314
  default: "one"
315
+ // 'one' 'multi'
307
316
  },
308
317
  ellipsis: {
309
318
  type: [String, Number, Boolean],
@@ -319,13 +328,11 @@ const _sfc_main = create({
319
328
  },
320
329
  info: {
321
330
  type: Object,
322
- default: () => {
323
- }
331
+ default: () => ({})
324
332
  },
325
333
  follow: {
326
334
  type: Object,
327
- default: () => {
328
- }
335
+ default: () => ({})
329
336
  },
330
337
  labels: {
331
338
  type: Function,
@@ -337,12 +344,10 @@ const _sfc_main = create({
337
344
  }
338
345
  },
339
346
  components: {
340
- [Rate.name]: Rate,
341
347
  CommentHeader,
342
348
  CommentImages,
343
349
  CommentBottom,
344
- Right,
345
- JoySmile
350
+ Right
346
351
  },
347
352
  emits: ["click", "clickImages", "clickOperate"],
348
353
  setup(props, { emit }) {
@@ -401,7 +406,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
401
406
  class: "nut-comment__main",
402
407
  style: normalizeStyle(`-webkit-line-clamp:${_ctx.conEllipsis}`),
403
408
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args)),
404
- innerHTML: _ctx.info.content.replace(/\n/g, "<br>")
409
+ innerHTML: _ctx.info.content
405
410
  }, null, 12, _hoisted_1),
406
411
  createVNode(_component_comment_images, {
407
412
  images: _ctx.images,
@@ -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
@@ -7,7 +7,7 @@ var __publicField = (obj, key, value) => {
7
7
  import { ref, onMounted, watch, computed, resolveComponent, openBlock, createBlock, normalizeStyle, withCtx, createElementVNode, normalizeClass, createElementBlock, renderSlot, Fragment, createTextVNode, toDisplayString, createCommentVNode, resolveDynamicComponent, h } from "vue";
8
8
  import { c as createComponent } from "./component-81a4c1d0.js";
9
9
  import { f as funInterceptor } from "./interceptor-956b24fc.js";
10
- import { P as Popup, p as popupProps } from "./index-1006915b.js";
10
+ import { P as Popup, p as popupProps } from "./index-af79da1a.js";
11
11
  import Button from "./Button.js";
12
12
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
13
13
  import Overlay from "./Overlay.js";
@@ -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,
@@ -159,6 +160,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
159
160
  "close-on-click-overlay": _ctx.closeOnClickOverlay,
160
161
  "lock-scroll": _ctx.lockScroll,
161
162
  "pop-class": _ctx.popClass,
163
+ "overlay-class": _ctx.overlayClass,
164
+ "overlay-style": _ctx.overlayStyle,
162
165
  style: normalizeStyle(_ctx.popStyle),
163
166
  round: "",
164
167
  onClickOverlay: _ctx.closed,
@@ -217,7 +220,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
217
220
  ], 2)
218
221
  ]),
219
222
  _: 3
220
- }, 8, ["teleport", "visible", "close-on-click-overlay", "lock-scroll", "pop-class", "style", "onClickOverlay", "onClickCloseIcon"]);
223
+ }, 8, ["teleport", "visible", "close-on-click-overlay", "lock-scroll", "pop-class", "overlay-class", "overlay-style", "style", "onClickOverlay", "onClickCloseIcon"]);
221
224
  }
222
225
  const Dialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
223
226
  class DialogOptions {
@@ -235,6 +238,8 @@ class DialogOptions {
235
238
  __publicField(this, "teleport", "body");
236
239
  __publicField(this, "id", new Date().getTime());
237
240
  __publicField(this, "footerDirection", "horizontal");
241
+ //使用横纵方向 可选值 horizontal、vertical
242
+ // function
238
243
  __publicField(this, "onUpdate");
239
244
  __publicField(this, "onOk");
240
245
  __publicField(this, "onCancel");
@@ -247,7 +252,7 @@ class DialogOptions {
247
252
  __publicField(this, "noCancelBtn", false);
248
253
  __publicField(this, "okBtnDisabled", false);
249
254
  __publicField(this, "closeOnPopstate", false);
250
- __publicField(this, "lockScroll", false);
255
+ __publicField(this, "lockScroll", true);
251
256
  }
252
257
  }
253
258
  class DialogFunction {
@@ -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
  },
@@ -12,7 +12,7 @@ import Video from "./Video.js";
12
12
  import SwiperItem from "./SwiperItem.js";
13
13
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
14
14
  import { CircleClose } from "@nutui/icons-vue";
15
- import { P as Popup } from "./index-1006915b.js";
15
+ import { P as Popup } from "./index-af79da1a.js";
16
16
  import Swiper from "./Swiper.js";
17
17
  import { f as funInterceptor } from "./interceptor-956b24fc.js";
18
18
  import "../locale/lang";
@@ -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: {
@@ -28,14 +28,6 @@ const _sfc_main = create({
28
28
  type: String,
29
29
  default: ""
30
30
  },
31
- useWindow: {
32
- type: Boolean,
33
- default: true
34
- },
35
- containerId: {
36
- type: String,
37
- default: ""
38
- },
39
31
  useCapture: {
40
32
  type: Boolean,
41
33
  default: false
@@ -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 {
@@ -57,7 +57,7 @@ const _sfc_main = create({
57
57
  var _a;
58
58
  const scrollTop = (_a = list.value) == null ? void 0 : _a.scrollTop;
59
59
  state.start = Math.floor(scrollTop / props.height);
60
- if (end.value > state.list.length) {
60
+ if (end.value >= state.list.length) {
61
61
  emit("scroll-bottom");
62
62
  }
63
63
  state.startOffset = scrollTop - scrollTop % props.height;
@@ -1,6 +1,6 @@
1
1
  import { reactive, computed, inject, getCurrentInstance, onUnmounted, resolveComponent, withDirectives, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, vShow, createVNode, mergeProps, withCtx, Fragment, renderList, renderSlot, createCommentVNode, toDisplayString } 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 { Check } from "@nutui/icons-vue";
5
5
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
6
6
  import "../locale/lang";