@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
@@ -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
@@ -1,4 +1,4 @@
1
- import { resolveComponent, openBlock, createElementBlock, createElementVNode, renderSlot, toDisplayString, createCommentVNode, createVNode, createTextVNode, ref, createBlock, withCtx, reactive, computed, watch, onMounted, normalizeClass, Fragment, renderList, createSlots } from "vue";
1
+ import { resolveComponent, openBlock, createElementBlock, createElementVNode, renderSlot, toDisplayString, createCommentVNode, createVNode, createTextVNode, ref, h, createBlock, resolveDynamicComponent, withCtx, reactive, computed, watch, onMounted, normalizeClass, Fragment, renderList, createSlots } from "vue";
2
2
  import { c as createComponent, n as floatData } from "./component-81a4c1d0.js";
3
3
  import { Del, Edit } from "@nutui/icons-vue";
4
4
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
@@ -6,9 +6,9 @@ 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$3 } = createComponent("addresslist-item");
9
+ const { create: create$2 } = createComponent("addresslist-item");
10
10
  const { translate: translate$1 } = createComponent("addresslist");
11
- const _sfc_main$3 = create$3({
11
+ const _sfc_main$2 = create$2({
12
12
  components: { Del, Edit },
13
13
  props: {
14
14
  item: {
@@ -38,7 +38,7 @@ const _sfc_main$3 = create$3({
38
38
  };
39
39
  }
40
40
  });
41
- const _hoisted_1$2 = { class: "nut-address-list-item__info" };
41
+ const _hoisted_1$1 = { class: "nut-address-list-item__info" };
42
42
  const _hoisted_2$1 = { class: "nut-address-list-item__info-contact" };
43
43
  const _hoisted_3$1 = { class: "nut-address-list-item__info-contact-name" };
44
44
  const _hoisted_4$1 = { class: "nut-address-list-item__info-contact-tel" };
@@ -48,14 +48,14 @@ const _hoisted_5$1 = {
48
48
  };
49
49
  const _hoisted_6$1 = { class: "nut-address-list-item__info-handle" };
50
50
  const _hoisted_7$1 = { class: "nut-address-list-item__addr" };
51
- function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
51
+ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
52
52
  const _component_Del = resolveComponent("Del");
53
53
  const _component_Edit = resolveComponent("Edit");
54
54
  return openBlock(), createElementBlock("div", {
55
55
  class: "nut-address-list-item",
56
56
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.contentsClick && _ctx.contentsClick(...args))
57
57
  }, [
58
- createElementVNode("div", _hoisted_1$2, [
58
+ createElementVNode("div", _hoisted_1$1, [
59
59
  createElementVNode("div", _hoisted_2$1, [
60
60
  renderSlot(_ctx.$slots, "contentTop", {}, () => [
61
61
  createElementVNode("div", _hoisted_3$1, toDisplayString(_ctx.item.addressName), 1),
@@ -85,103 +85,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
85
85
  ])
86
86
  ]);
87
87
  }
88
- const ItemContents = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3]]);
89
- const { create: create$2 } = createComponent("addresslist-swipe");
90
- const _sfc_main$2 = create$2({
91
- props: {
92
- item: {
93
- type: Object,
94
- default: {}
95
- }
96
- },
97
- emits: ["delIcon", "editIcon", "itemClick", "swipeDel"],
98
- components: {
99
- ItemContents
100
- },
101
- setup(props, { emit }) {
102
- const moveRef = ref(false);
103
- const delClick = (event) => {
104
- emit("delIcon", event, props.item);
105
- event.stopPropagation();
106
- };
107
- const editClick = (event) => {
108
- emit("editIcon", event, props.item);
109
- event.stopPropagation();
110
- };
111
- const itemClick = (event) => {
112
- if (moveRef.value)
113
- return;
114
- emit("itemClick", event, props.item);
115
- event.stopPropagation();
116
- };
117
- const swipeDelClick = (event) => {
118
- emit("swipeDel", event, props.item);
119
- event.stopPropagation();
120
- };
121
- const swipestart = () => {
122
- moveRef.value = false;
123
- };
124
- const swipemove = () => {
125
- moveRef.value = true;
126
- };
127
- return {
128
- delClick,
129
- editClick,
130
- itemClick,
131
- swipeDelClick,
132
- swipestart,
133
- swipemove
134
- };
135
- }
136
- });
137
- const _hoisted_1$1 = { class: "nut-address-list-swipe" };
138
- function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
139
- const _component_item_contents = resolveComponent("item-contents");
140
- const _component_nut_button = resolveComponent("nut-button");
141
- const _component_nut_swipe = resolveComponent("nut-swipe");
142
- return openBlock(), createBlock(_component_nut_swipe, null, {
143
- right: withCtx(() => [
144
- renderSlot(_ctx.$slots, "swiperightbtn", {}, () => [
145
- createVNode(_component_nut_button, {
146
- shape: "square",
147
- style: { "height": "100%" },
148
- type: "danger",
149
- onClick: _ctx.swipeDelClick
150
- }, {
151
- default: withCtx(() => [
152
- createTextVNode("删除")
153
- ]),
154
- _: 1
155
- }, 8, ["onClick"])
156
- ])
157
- ]),
158
- default: withCtx(() => [
159
- createElementVNode("div", _hoisted_1$1, [
160
- createVNode(_component_item_contents, {
161
- item: _ctx.item,
162
- onDelIcon: _ctx.delClick,
163
- onEditIcon: _ctx.editClick,
164
- onItemClick: _ctx.itemClick,
165
- onTouchmove: _ctx.swipemove,
166
- onTouchstart: _ctx.swipestart
167
- }, {
168
- contentTop: withCtx(() => [
169
- renderSlot(_ctx.$slots, "contentInfo")
170
- ]),
171
- contentIcon: withCtx(() => [
172
- renderSlot(_ctx.$slots, "contentIcons")
173
- ]),
174
- contentAddr: withCtx(() => [
175
- renderSlot(_ctx.$slots, "contentAddrs")
176
- ]),
177
- _: 3
178
- }, 8, ["item", "onDelIcon", "onEditIcon", "onItemClick", "onTouchmove", "onTouchstart"])
179
- ])
180
- ]),
181
- _: 3
182
- });
183
- }
184
- const SwipeShell = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2]]);
88
+ const ItemContents = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2]]);
185
89
  const { create: create$1 } = createComponent("addresslist-general");
186
90
  const _sfc_main$1 = create$1({
187
91
  props: {
@@ -192,27 +96,52 @@ const _sfc_main$1 = create$1({
192
96
  longPress: {
193
97
  type: Boolean,
194
98
  default: false
99
+ },
100
+ swipeEdition: {
101
+ type: Boolean,
102
+ default: false
195
103
  }
196
104
  },
197
- emits: ["delIcon", "editIcon", "itemClick", "longDown", "longCopy", "longSet", "longDel"],
105
+ emits: ["delIcon", "editIcon", "itemClick", "longDown", "longCopy", "longSet", "longDel", "swipeDel"],
198
106
  components: {
199
107
  ItemContents
200
108
  },
201
109
  setup(props, { emit }) {
110
+ const renderCompontent = () => {
111
+ return h(ItemContents, {
112
+ item: props.item,
113
+ onDelIcon(event) {
114
+ delClick(event);
115
+ },
116
+ onEditIcon(event) {
117
+ editClick(event);
118
+ },
119
+ onItemClick(event) {
120
+ itemClick(event);
121
+ }
122
+ });
123
+ };
202
124
  let loop = null;
125
+ const moveRef = ref(false);
203
126
  const showMaskRef = ref(false);
204
- const delShellClick = (event) => {
127
+ const delClick = (event) => {
205
128
  emit("delIcon", event, props.item);
206
129
  event.stopPropagation();
207
130
  };
208
- const editShellClick = (event) => {
131
+ const editClick = (event) => {
209
132
  emit("editIcon", event, props.item);
210
133
  event.stopPropagation();
211
134
  };
212
- const itemShellClick = (event) => {
135
+ const itemClick = (event) => {
136
+ if (moveRef.value)
137
+ return;
213
138
  emit("itemClick", event, props.item);
214
139
  event.stopPropagation();
215
140
  };
141
+ const delLongClick = (event) => {
142
+ emit("longDel", event, props.item);
143
+ event.stopPropagation();
144
+ };
216
145
  const holdingFunc = (event) => {
217
146
  loop = 0;
218
147
  showMaskRef.value = true;
@@ -240,10 +169,6 @@ const _sfc_main$1 = create$1({
240
169
  emit("longSet", event, props.item);
241
170
  event.stopPropagation();
242
171
  };
243
- const delClick = (event) => {
244
- emit("longDel", event, props.item);
245
- event.stopPropagation();
246
- };
247
172
  const maskClick = (event) => {
248
173
  if (loop != 0) {
249
174
  showMaskRef.value = false;
@@ -251,23 +176,40 @@ const _sfc_main$1 = create$1({
251
176
  event.stopPropagation();
252
177
  event.preventDefault();
253
178
  };
179
+ const swipeDelClick = (event) => {
180
+ emit("swipeDel", event, props.item);
181
+ event.stopPropagation();
182
+ };
183
+ const swipestart = () => {
184
+ moveRef.value = false;
185
+ };
186
+ const swipemove = () => {
187
+ moveRef.value = true;
188
+ };
254
189
  return {
255
- delShellClick,
256
- editShellClick,
257
- itemShellClick,
190
+ renderCompontent,
191
+ showMaskRef,
192
+ itemClick,
193
+ editClick,
194
+ delClick,
195
+ delLongClick,
258
196
  holddownstart,
259
197
  holddownmove,
260
198
  holddownend,
261
- showMaskRef,
262
- delClick,
263
199
  copyCLick,
264
200
  hideMaskClick,
265
201
  setDefault,
266
- maskClick
202
+ maskClick,
203
+ swipeDelClick,
204
+ swipestart,
205
+ swipemove
267
206
  };
268
207
  }
269
208
  });
270
- const _hoisted_1 = { class: "nut-address-list-general" };
209
+ const _hoisted_1 = {
210
+ key: 0,
211
+ class: "nut-address-list-general"
212
+ };
271
213
  const _hoisted_2 = /* @__PURE__ */ createElementVNode("div", { class: "nut-address-list-mask-contain" }, [
272
214
  /* @__PURE__ */ createTextVNode(" 复制"),
273
215
  /* @__PURE__ */ createElementVNode("br"),
@@ -292,14 +234,12 @@ const _hoisted_6 = /* @__PURE__ */ createElementVNode("div", { class: "nut-addre
292
234
  const _hoisted_7 = [
293
235
  _hoisted_6
294
236
  ];
237
+ const _hoisted_8 = { class: "nut-address-list-swipe" };
295
238
  function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
296
- const _component_item_contents = resolveComponent("item-contents");
297
- return openBlock(), createElementBlock("div", _hoisted_1, [
298
- createVNode(_component_item_contents, {
299
- item: _ctx.item,
300
- onDelIcon: _ctx.delShellClick,
301
- onEditIcon: _ctx.editShellClick,
302
- onItemClick: _ctx.itemShellClick,
239
+ const _component_nut_button = resolveComponent("nut-button");
240
+ const _component_nut_swipe = resolveComponent("nut-swipe");
241
+ return !_ctx.swipeEdition ? (openBlock(), createElementBlock("div", _hoisted_1, [
242
+ (openBlock(), createBlock(resolveDynamicComponent(_ctx.renderCompontent()), {
303
243
  onTouchstart: _ctx.holddownstart,
304
244
  onTouchend: _ctx.holddownend,
305
245
  onTouchmove: _ctx.holddownmove
@@ -314,7 +254,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
314
254
  renderSlot(_ctx.$slots, "contentAddrs")
315
255
  ]),
316
256
  _: 3
317
- }, 8, ["item", "onDelIcon", "onEditIcon", "onItemClick", "onTouchstart", "onTouchend", "onTouchmove"]),
257
+ }, 40, ["onTouchstart", "onTouchend", "onTouchmove"])),
318
258
  _ctx.longPress && _ctx.showMaskRef ? (openBlock(), createElementBlock("div", {
319
259
  key: 0,
320
260
  class: "nut-address-list-general__mask",
@@ -331,7 +271,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
331
271
  }, _hoisted_5),
332
272
  createElementVNode("div", {
333
273
  class: "nut-address-list-general__mask-del",
334
- onClick: _cache[2] || (_cache[2] = (...args) => _ctx.delClick && _ctx.delClick(...args))
274
+ onClick: _cache[2] || (_cache[2] = (...args) => _ctx.delLongClick && _ctx.delLongClick(...args))
335
275
  }, _hoisted_7)
336
276
  ])
337
277
  ])) : createCommentVNode("", true),
@@ -340,7 +280,43 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
340
280
  class: "nut-address-list__mask-bottom",
341
281
  onClick: _cache[4] || (_cache[4] = (...args) => _ctx.hideMaskClick && _ctx.hideMaskClick(...args))
342
282
  })) : createCommentVNode("", true)
343
- ]);
283
+ ])) : (openBlock(), createBlock(_component_nut_swipe, { key: 1 }, {
284
+ right: withCtx(() => [
285
+ renderSlot(_ctx.$slots, "swiperightbtn", {}, () => [
286
+ createVNode(_component_nut_button, {
287
+ shape: "square",
288
+ style: { "height": "100%" },
289
+ type: "danger",
290
+ onClick: _ctx.swipeDelClick
291
+ }, {
292
+ default: withCtx(() => [
293
+ createTextVNode("删除")
294
+ ]),
295
+ _: 1
296
+ }, 8, ["onClick"])
297
+ ])
298
+ ]),
299
+ default: withCtx(() => [
300
+ createElementVNode("div", _hoisted_8, [
301
+ (openBlock(), createBlock(resolveDynamicComponent(_ctx.renderCompontent()), {
302
+ onTouchmove: _ctx.swipemove,
303
+ onTouchstart: _ctx.swipestart
304
+ }, {
305
+ contentTop: withCtx(() => [
306
+ renderSlot(_ctx.$slots, "contentInfo")
307
+ ]),
308
+ contentIcon: withCtx(() => [
309
+ renderSlot(_ctx.$slots, "contentIcons")
310
+ ]),
311
+ contentAddr: withCtx(() => [
312
+ renderSlot(_ctx.$slots, "contentAddrs")
313
+ ]),
314
+ _: 3
315
+ }, 40, ["onTouchmove", "onTouchstart"]))
316
+ ])
317
+ ]),
318
+ _: 3
319
+ }));
344
320
  }
345
321
  const GeneralShell = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
346
322
  const { componentName, create, translate } = createComponent("address-list");
@@ -368,7 +344,6 @@ const _sfc_main = create({
368
344
  }
369
345
  },
370
346
  components: {
371
- SwipeShell,
372
347
  GeneralShell,
373
348
  [Button.name]: Button,
374
349
  [Swipe.name]: Swipe
@@ -453,16 +428,16 @@ const _sfc_main = create({
453
428
  });
454
429
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
455
430
  const _component_general_shell = resolveComponent("general-shell");
456
- const _component_swipe_shell = resolveComponent("swipe-shell");
457
431
  const _component_nut_button = resolveComponent("nut-button");
458
432
  return openBlock(), createElementBlock("div", {
459
433
  class: normalizeClass(_ctx.classes)
460
434
  }, [
461
- !_ctx.swipeEdition ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.dataArray, (item, index2) => {
435
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.dataArray, (item, index2) => {
462
436
  return openBlock(), createBlock(_component_general_shell, {
463
437
  key: index2,
464
438
  item,
465
439
  longPress: _ctx.longPress,
440
+ swipeEdition: _ctx.swipeEdition,
466
441
  onDelIcon: _ctx.clickDelIcon,
467
442
  onEditIcon: _ctx.clickEditIcon,
468
443
  onItemClick: _ctx.clickContentItem,
@@ -470,46 +445,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
470
445
  onLongCopy: _ctx.clickLongCopy,
471
446
  onLongSet: _ctx.clickLongSet,
472
447
  onLongDel: _ctx.clickLongDel
473
- }, createSlots({ _: 2 }, [
474
- _ctx.longPress ? {
475
- name: "contentInfo",
476
- fn: withCtx(() => [
477
- renderSlot(_ctx.$slots, "iteminfos")
478
- ]),
479
- key: "0"
480
- } : void 0,
481
- _ctx.longPress ? {
482
- name: "contentIcons",
483
- fn: withCtx(() => [
484
- renderSlot(_ctx.$slots, "itemicon")
485
- ]),
486
- key: "1"
487
- } : void 0,
488
- _ctx.longPress ? {
489
- name: "contentAddrs",
490
- fn: withCtx(() => [
491
- renderSlot(_ctx.$slots, "itemaddr")
492
- ]),
493
- key: "2"
494
- } : void 0,
495
- _ctx.longPress ? {
496
- name: "longpressAll",
497
- fn: withCtx(() => [
498
- renderSlot(_ctx.$slots, "longpressbtns")
499
- ]),
500
- key: "3"
501
- } : void 0
502
- ]), 1032, ["item", "longPress", "onDelIcon", "onEditIcon", "onItemClick", "onSwipeDel", "onLongCopy", "onLongSet", "onLongDel"]);
503
- }), 128)) : createCommentVNode("", true),
504
- _ctx.swipeEdition ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.dataArray, (item, index2) => {
505
- return openBlock(), createBlock(_component_swipe_shell, {
506
- key: index2,
507
- item,
508
- onDelIcon: _ctx.clickDelIcon,
509
- onEditIcon: _ctx.clickEditIcon,
510
- onItemClick: _ctx.clickContentItem,
511
- onSwipeDel: _ctx.clickSwipeDel
512
- }, {
448
+ }, createSlots({
513
449
  contentInfo: withCtx(() => [
514
450
  renderSlot(_ctx.$slots, "iteminfos")
515
451
  ]),
@@ -519,14 +455,26 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
519
455
  contentAddrs: withCtx(() => [
520
456
  renderSlot(_ctx.$slots, "itemaddr")
521
457
  ]),
522
- swiperightbtn: withCtx(() => [
523
- renderSlot(_ctx.$slots, "swiperight")
524
- ]),
525
458
  _: 2
526
- }, 1032, ["item", "onDelIcon", "onEditIcon", "onItemClick", "onSwipeDel"]);
527
- }), 128)) : createCommentVNode("", true),
459
+ }, [
460
+ _ctx.longPress ? {
461
+ name: "longpressAll",
462
+ fn: withCtx(() => [
463
+ renderSlot(_ctx.$slots, "longpressbtns")
464
+ ]),
465
+ key: "0"
466
+ } : void 0,
467
+ _ctx.swipeEdition ? {
468
+ name: "swiperightbtn",
469
+ fn: withCtx(() => [
470
+ renderSlot(_ctx.$slots, "swiperight")
471
+ ]),
472
+ key: "1"
473
+ } : void 0
474
+ ]), 1032, ["item", "longPress", "swipeEdition", "onDelIcon", "onEditIcon", "onItemClick", "onSwipeDel", "onLongCopy", "onLongSet", "onLongDel"]);
475
+ }), 128)),
528
476
  _ctx.showBottomButton ? (openBlock(), createElementBlock("div", {
529
- key: 2,
477
+ key: 0,
530
478
  class: "nut-address-list__bottom",
531
479
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.addAddress && _ctx.addAddress(...args))
532
480
  }, [
@@ -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],