@nutui/nutui 3.1.10 → 3.1.12-beta.1

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 (109) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/nutui.d.ts +5 -1
  3. package/dist/nutui.es.js +4041 -3518
  4. package/dist/nutui.umd.js +4084 -3627
  5. package/dist/packages/_es/ActionSheet.js +13 -12
  6. package/dist/packages/_es/Address.js +63 -49
  7. package/dist/packages/_es/Avatar.js +4 -5
  8. package/dist/packages/_es/BackTop.js +72 -109
  9. package/dist/packages/_es/Badge.js +4 -5
  10. package/dist/packages/_es/Barrage.js +63 -57
  11. package/dist/packages/_es/Button.js +5 -6
  12. package/dist/packages/_es/Calendar.js +27 -18
  13. package/dist/packages/_es/Card.js +104 -0
  14. package/dist/packages/_es/Cell.js +5 -13
  15. package/dist/packages/_es/CellGroup.js +4 -5
  16. package/dist/packages/_es/Checkbox.js +3 -3
  17. package/dist/packages/_es/CheckboxGroup.js +9 -4
  18. package/dist/packages/_es/CircleProgress.js +142 -46
  19. package/dist/packages/_es/Col.js +4 -5
  20. package/dist/packages/_es/Collapse.js +35 -10
  21. package/dist/packages/_es/CollapseItem.js +80 -35
  22. package/dist/packages/_es/CountDown.js +7 -5
  23. package/dist/packages/_es/CountUp.js +34 -31
  24. package/dist/packages/_es/DatePicker.js +451 -219
  25. package/dist/packages/_es/Dialog.js +13 -87
  26. package/dist/packages/_es/Divider.js +5 -6
  27. package/dist/packages/_es/Drag.js +76 -50
  28. package/dist/packages/_es/Elevator.js +81 -52
  29. package/dist/packages/_es/FixedNav.js +8 -9
  30. package/dist/packages/_es/Form.js +137 -0
  31. package/dist/packages/_es/FormItem.js +109 -0
  32. package/dist/packages/_es/Icon.js +6 -40
  33. package/dist/packages/_es/ImagePreview.js +23 -21
  34. package/dist/packages/_es/InfiniteLoading.js +95 -109
  35. package/dist/packages/_es/Input.js +22 -21
  36. package/dist/packages/_es/InputNumber.js +24 -18
  37. package/dist/packages/_es/Layout.js +2 -2
  38. package/dist/packages/_es/Menu.js +89 -171
  39. package/dist/packages/_es/MenuItem.js +155 -18
  40. package/dist/packages/_es/Navbar.js +7 -7
  41. package/dist/packages/_es/NoticeBar.js +39 -26
  42. package/dist/packages/_es/Notify.js +30 -166
  43. package/dist/packages/_es/NumberKeyboard.js +10 -6
  44. package/dist/packages/_es/OverLay.js +22 -29
  45. package/dist/packages/_es/Pagination.js +8 -9
  46. package/dist/packages/_es/Picker.js +61 -447
  47. package/dist/packages/_es/Popover.js +146 -25
  48. package/dist/packages/_es/Popup.js +18 -39
  49. package/dist/packages/_es/Price.js +18 -7
  50. package/dist/packages/_es/Progress.js +23 -12
  51. package/dist/packages/_es/Radio.js +20 -7
  52. package/dist/packages/_es/RadioGroup.js +7 -3
  53. package/dist/packages/_es/Range.js +38 -59
  54. package/dist/packages/_es/Rate.js +16 -20
  55. package/dist/packages/_es/Row.js +4 -5
  56. package/dist/packages/_es/SearchBar.js +7 -5
  57. package/dist/packages/_es/ShortPassword.js +89 -59
  58. package/dist/packages/_es/Signature.js +70 -71
  59. package/dist/packages/_es/Sku.js +508 -0
  60. package/dist/packages/_es/Step.js +10 -8
  61. package/dist/packages/_es/Steps.js +2 -2
  62. package/dist/packages/_es/Swipe.js +42 -27
  63. package/dist/packages/_es/Swiper.js +17 -418
  64. package/dist/packages/_es/SwiperItem.js +14 -39
  65. package/dist/packages/_es/Switch.js +4 -5
  66. package/dist/packages/_es/TabPane.js +4 -5
  67. package/dist/packages/_es/Tabbar.js +4 -5
  68. package/dist/packages/_es/TabbarItem.js +8 -9
  69. package/dist/packages/_es/Tabs.js +23 -17
  70. package/dist/packages/_es/Tag.js +5 -6
  71. package/dist/packages/_es/TextArea.js +16 -12
  72. package/dist/packages/_es/TimeDetail.js +7 -5
  73. package/dist/packages/_es/TimePannel.js +7 -5
  74. package/dist/packages/_es/TimeSelect.js +12 -7
  75. package/dist/packages/_es/Toast.js +41 -163
  76. package/dist/packages/_es/Uploader.js +210 -164
  77. package/dist/packages/_es/commonProps.js +30 -0
  78. package/dist/packages/_es/component.js +1 -1
  79. package/dist/packages/_es/index.js +1 -1
  80. package/dist/packages/_es/index.taro.vue_vue&type=script&lang.js +44 -0
  81. package/dist/packages/_es/index2.js +44 -8
  82. package/dist/packages/_es/index3.js +419 -0
  83. package/dist/packages/_es/pxCheck.js +1 -1
  84. package/dist/packages/_es/raf.js +1 -1
  85. package/dist/packages/_es/use-lock-scroll.js +23 -0
  86. package/dist/packages/_es/util.js +47 -0
  87. package/dist/packages/button/index.scss +9 -0
  88. package/dist/packages/card/index.scss +97 -0
  89. package/dist/packages/checkbox/index.scss +1 -1
  90. package/dist/packages/form/index.scss +2 -0
  91. package/dist/packages/formitem/index.scss +60 -0
  92. package/dist/packages/menu/index.scss +32 -60
  93. package/dist/packages/menuitem/index.scss +36 -99
  94. package/dist/packages/numberkeyboard/index.scss +1 -1
  95. package/dist/packages/progress/index.scss +2 -0
  96. package/dist/packages/radio/index.scss +32 -4
  97. package/dist/packages/radiogroup/index.scss +20 -0
  98. package/dist/packages/sku/index.scss +147 -0
  99. package/dist/packages/switch/index.scss +1 -1
  100. package/dist/packages/uploader/index.scss +95 -8
  101. package/dist/style.css +1 -1
  102. package/dist/style.es.js +1 -2
  103. package/dist/styles/mixins/index.scss +0 -4
  104. package/dist/styles/themes/default.scss +34 -30
  105. package/dist/styles/variables.scss +45 -3
  106. package/package.json +3 -2
  107. package/dist/packages/_es/Video.js +0 -405
  108. package/dist/packages/_es/plugin-vue_export-helper.js +0 -12
  109. package/dist/packages/_es/style.css +0 -160
@@ -1,13 +1,13 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.10 Fri Nov 05 2021 19:52:49 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.11 Wed Nov 24 2021 14:54:38 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
- import { computed, ref, onMounted, onUnmounted, onDeactivated, watch, nextTick, openBlock, createElementBlock, normalizeClass, createElementVNode } from "vue";
6
+ import { ref, computed, onMounted, onUnmounted, onDeactivated, watch, reactive, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, normalizeStyle, toDisplayString } from "vue";
7
7
  import { c as createComponent } from "./component.js";
8
- import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
8
+ import Taro from "@tarojs/taro";
9
9
  const { componentName, create } = createComponent("barrage");
10
- const _sfc_main = create({
10
+ var _sfc_main = create({
11
11
  props: {
12
12
  danmu: {
13
13
  type: Array,
@@ -15,7 +15,7 @@ const _sfc_main = create({
15
15
  },
16
16
  frequency: {
17
17
  type: Number,
18
- default: 500
18
+ default: 200
19
19
  },
20
20
  speeds: {
21
21
  type: Number,
@@ -36,83 +36,89 @@ const _sfc_main = create({
36
36
  },
37
37
  emits: ["click"],
38
38
  setup(props, { emit }) {
39
+ const timeId = ref(new Date().getTime());
40
+ const danmuList = ref(props.danmu);
41
+ const rows = ref(props.rows);
42
+ const top = ref(props.top);
43
+ const speeds = props.speeds;
39
44
  const classes = computed(() => {
40
45
  const prefixCls = componentName;
41
46
  return {
42
- [prefixCls]: true
47
+ [prefixCls]: true,
48
+ ["dmBody" + timeId.value]: true
43
49
  };
44
50
  });
45
- let dmBody = ref(document.createElement("div"));
46
- let dmContainer = ref(document.createElement("div"));
47
- let timer = 0;
48
- const danmuList = ref(props.danmu);
49
- const rows = ref(props.rows);
50
- const top = ref(props.top);
51
- const index2 = ref(0);
52
- const speeds = props.speeds;
53
- const danmuCWidth = ref(0);
54
51
  onMounted(() => {
55
- danmuCWidth.value = dmBody.value.offsetWidth;
56
- run();
52
+ runStep();
57
53
  });
58
54
  onUnmounted(() => {
59
- clearInterval(timer);
60
- timer = 0;
55
+ danmuList.value = [];
61
56
  });
62
57
  onDeactivated(() => {
63
- clearInterval(timer);
64
- timer = 0;
58
+ danmuList.value = [];
65
59
  });
66
60
  watch(() => props.danmu, (newValue, oldVlaue) => {
67
61
  danmuList.value = [...newValue];
68
62
  });
69
63
  const add = (word) => {
70
- const _index = index2.value % danmuList.value.length;
71
- danmuList.value.splice(_index, 0, word);
72
- };
73
- const run = () => {
74
- clearInterval(timer);
75
- timer = 0;
76
- timer = setInterval(() => {
77
- play();
78
- run();
79
- }, props.frequency);
64
+ danmuList.value = [...danmuList.value, word];
65
+ runStep();
80
66
  };
81
- const play = () => {
82
- const _index = props.loop ? index2.value % danmuList.value.length : index2.value;
83
- let el = document.createElement(`view`);
84
- el.innerHTML = danmuList.value[_index];
85
- el.classList.add("dmitem");
86
- dmContainer.value.appendChild(el);
87
- nextTick(() => {
88
- const width = el.offsetWidth;
89
- const height = el.offsetHeight;
90
- el.classList.add("move");
91
- el.style.animationDuration = `${speeds}ms`;
92
- el.style.top = _index % rows.value * (height + top.value) + 20 + "px";
93
- el.style.width = width + 20 + "px";
94
- el.style.setProperty("--move-distance", `-${danmuCWidth.value}px`);
95
- el.dataset.index = `${_index}`;
96
- el.addEventListener("animationend", () => {
97
- dmContainer.value.removeChild(el);
67
+ const getNode = (index) => {
68
+ const query = Taro.createSelectorQuery();
69
+ setTimeout(() => {
70
+ let width = 100;
71
+ query.select(".dmBody" + timeId.value).boundingClientRect((rec) => {
72
+ width = rec.width || 300;
98
73
  });
99
- index2.value++;
74
+ query.select(".dmitem" + index).boundingClientRect((recs) => {
75
+ let height = recs.height;
76
+ let nodeTop = index % rows.value * (height + top.value) + 20 + "px";
77
+ styleInfo(index, nodeTop, width);
78
+ }).exec();
79
+ }, 500);
80
+ };
81
+ const runStep = () => {
82
+ danmuList.value.forEach((item, index) => {
83
+ getNode(index);
100
84
  });
101
85
  };
102
- return { classes, danmuList, dmBody, dmContainer, add };
86
+ let styleList = reactive([]);
87
+ const styleInfo = (index, nodeTop, width) => {
88
+ let timeIndex = index - rows.value > 0 ? index - rows.value : 0;
89
+ let list = styleList;
90
+ let time = list[timeIndex] ? Number(list[timeIndex]["--time"]) : 0;
91
+ let obj = {
92
+ top: nodeTop,
93
+ "--time": `${props.frequency * index + time}`,
94
+ animationDuration: `${speeds}ms`,
95
+ animationIterationCount: `${props.loop ? "infinite" : 1}`,
96
+ animationDelay: `${props.frequency * index + time}ms`,
97
+ "--move-distance": `-${width}px`
98
+ };
99
+ styleList.push(obj);
100
+ };
101
+ return { classes, danmuList, add, styleList };
103
102
  }
104
103
  });
105
104
  const _hoisted_1 = {
106
- ref: "dmContainer",
107
- class: "dmContainer"
105
+ class: "dmContainer",
106
+ id: "dmContainer"
108
107
  };
109
108
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
110
109
  return openBlock(), createElementBlock("view", {
111
- ref: "dmBody",
112
- class: normalizeClass(_ctx.classes)
110
+ class: normalizeClass(["dmBody", _ctx.classes])
113
111
  }, [
114
- createElementVNode("view", _hoisted_1, null, 512)
112
+ createElementVNode("view", _hoisted_1, [
113
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.danmuList, (item, index) => {
114
+ return openBlock(), createElementBlock("view", {
115
+ key: "danmu" + index,
116
+ class: normalizeClass(["dmitem", "dmitem" + index, "move"]),
117
+ style: normalizeStyle(_ctx.styleList[index])
118
+ }, toDisplayString(item.length > 8 ? item.substr(0, 8) + "..." : item), 7);
119
+ }), 128))
120
+ ])
115
121
  ], 2);
116
122
  }
117
- var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
118
- export { index as default };
123
+ _sfc_main.render = _sfc_render;
124
+ export { _sfc_main as default };
@@ -1,15 +1,14 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.10 Fri Nov 05 2021 19:52:49 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.11 Wed Nov 24 2021 14:54:38 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import { toRefs, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, createBlock, createCommentVNode, renderSlot } from "vue";
7
7
  import { c as createComponent } from "./component.js";
8
- import _sfc_main$1 from "./Icon.js";
9
- import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
8
+ import { _ as _sfc_main$1 } from "./index.taro.vue_vue&type=script&lang.js";
10
9
  import "./pxCheck.js";
11
10
  const { componentName, create } = createComponent("button");
12
- const _sfc_main = create({
11
+ var _sfc_main = create({
13
12
  components: {
14
13
  [_sfc_main$1.name]: _sfc_main$1
15
14
  },
@@ -120,5 +119,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
120
119
  ])
121
120
  ], 6);
122
121
  }
123
- var Button = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
124
- export { Button as default };
122
+ _sfc_main.render = _sfc_render;
123
+ export { _sfc_main as default };
@@ -14,22 +14,24 @@ var __spreadValues = (a, b) => {
14
14
  }
15
15
  return a;
16
16
  };
17
+ var __require = typeof require !== "undefined" ? require : (x) => {
18
+ throw new Error('Dynamic require of "' + x + '" is not supported');
19
+ };
17
20
  /*!
18
- * @nutui/nutui v3.1.10 Fri Nov 05 2021 19:52:49 GMT+0800 (中国标准时间)
21
+ * @nutui/nutui v3.1.11 Wed Nov 24 2021 14:54:38 GMT+0800 (中国标准时间)
19
22
  * (c) 2021 @jdf2e.
20
23
  * Released under the MIT License.
21
24
  */
22
25
  import { ref, reactive, watch, toRefs, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, toDisplayString, createCommentVNode, renderList, withModifiers, resolveComponent, createBlock, withCtx, createVNode } from "vue";
23
26
  import { c as createComponent } from "./component.js";
24
27
  import { r as requestAniFrame } from "./raf.js";
25
- import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
26
28
  const Utils = {
27
29
  isLeapYear: function(y) {
28
30
  return y % 4 == 0 && y % 100 != 0 || y % 400 == 0;
29
31
  },
30
32
  getWhatDay: function(year, month, day) {
31
33
  const date = new Date(year + "/" + month + "/" + day);
32
- const index2 = date.getDay();
34
+ const index = date.getDay();
33
35
  const dayNames = [
34
36
  "\u661F\u671F\u65E5",
35
37
  "\u661F\u671F\u4E00",
@@ -39,7 +41,7 @@ const Utils = {
39
41
  "\u661F\u671F\u4E94",
40
42
  "\u661F\u671F\u516D"
41
43
  ];
42
- return dayNames[index2];
44
+ return dayNames[index];
43
45
  },
44
46
  getMonthPreDay: function(year, month) {
45
47
  const date = new Date(year + "/" + month + "/01");
@@ -105,7 +107,7 @@ const Utils = {
105
107
  }
106
108
  };
107
109
  const { create: create$1 } = createComponent("calendar-item");
108
- const _sfc_main$1 = create$1({
110
+ var _sfc_main$1 = create$1({
109
111
  props: {
110
112
  type: {
111
113
  type: String,
@@ -537,10 +539,10 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
537
539
  createElementVNode("view", _hoisted_2, toDisplayString(_ctx.yearMonthTitle), 1)
538
540
  ], 64)) : createCommentVNode("", true),
539
541
  createElementVNode("view", _hoisted_3, [
540
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.weeks, (item, index2) => {
542
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.weeks, (item, index) => {
541
543
  return openBlock(), createElementBlock("view", {
542
544
  class: "calendar-week-item",
543
- key: index2
545
+ key: index
544
546
  }, toDisplayString(item), 1);
545
547
  }), 128))
546
548
  ], 512)
@@ -554,10 +556,10 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
554
556
  }, [
555
557
  createElementVNode("view", _hoisted_4, [
556
558
  createElementVNode("view", _hoisted_5, toDisplayString(!_ctx.unLoadPrev ? "\u52A0\u8F7D\u4E0A\u4E00\u4E2A\u6708" : "\u6CA1\u6709\u66F4\u65E9\u6708\u4EFD"), 1),
557
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.monthsData, (month, index2) => {
559
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.monthsData, (month, index) => {
558
560
  return openBlock(), createElementBlock("view", {
559
561
  class: "calendar-month",
560
- key: index2
562
+ key: index
561
563
  }, [
562
564
  createElementVNode("view", _hoisted_6, toDisplayString(month.title), 1),
563
565
  createElementVNode("view", _hoisted_7, [
@@ -589,11 +591,11 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
589
591
  ])) : createCommentVNode("", true)
590
592
  ], 2);
591
593
  }
592
- var CalendarItem = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
594
+ _sfc_main$1.render = _sfc_render$1;
593
595
  const { create } = createComponent("calendar");
594
- const _sfc_main = create({
596
+ var _sfc_main = create({
595
597
  components: {
596
- [CalendarItem.name]: CalendarItem
598
+ [_sfc_main$1.name]: _sfc_main$1
597
599
  },
598
600
  props: {
599
601
  type: {
@@ -610,7 +612,7 @@ const _sfc_main = create({
610
612
  },
611
613
  visible: {
612
614
  type: Boolean,
613
- default: false
615
+ default: true
614
616
  },
615
617
  title: {
616
618
  type: String,
@@ -630,11 +632,14 @@ const _sfc_main = create({
630
632
  },
631
633
  emits: ["choose", "close", "update:visible"],
632
634
  setup(props, { emit }) {
635
+ let show = ref(props.visible);
633
636
  const calendarRef = ref(null);
634
637
  const update = () => {
638
+ show.value = false;
635
639
  emit("update:visible", false);
636
640
  };
637
641
  const close = () => {
642
+ show.value = false;
638
643
  emit("close");
639
644
  emit("update:visible", false);
640
645
  };
@@ -645,7 +650,11 @@ const _sfc_main = create({
645
650
  const closePopup = () => {
646
651
  close();
647
652
  };
653
+ watch(() => props.visible, (value) => {
654
+ show.value = value;
655
+ });
648
656
  return {
657
+ show,
649
658
  closePopup,
650
659
  update,
651
660
  close,
@@ -659,16 +668,16 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
659
668
  const _component_nut_popup = resolveComponent("nut-popup");
660
669
  return _ctx.poppable ? (openBlock(), createBlock(_component_nut_popup, {
661
670
  key: 0,
662
- visible: _ctx.visible,
671
+ visible: _ctx.show,
672
+ "onUpdate:visible": _cache[0] || (_cache[0] = ($event) => _ctx.show = $event),
663
673
  position: "bottom",
664
674
  round: "",
665
- closeable: true,
675
+ closeable: "",
666
676
  onClickOverlay: _ctx.closePopup,
667
677
  onClickCloseIcon: _ctx.closePopup
668
678
  }, {
669
679
  default: withCtx(() => [
670
680
  createVNode(_component_nut_calendar_item, {
671
- props: "",
672
681
  ref: "calendarRef",
673
682
  type: _ctx.type,
674
683
  "is-auto-back-fill": _ctx.isAutoBackFill,
@@ -696,5 +705,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
696
705
  onChoose: _ctx.choose
697
706
  }, null, 8, ["type", "is-auto-back-fill", "poppable", "title", "default-value", "start-date", "end-date", "onClose", "onChoose"]));
698
707
  }
699
- var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
700
- export { index as default };
708
+ _sfc_main.render = _sfc_render;
709
+ export { _sfc_main as default };
@@ -0,0 +1,104 @@
1
+ /*!
2
+ * @nutui/nutui v3.1.11 Wed Nov 24 2021 14:54:38 GMT+0800 (中国标准时间)
3
+ * (c) 2021 @jdf2e.
4
+ * Released under the MIT License.
5
+ */
6
+ import { c as createComponent } from "./component.js";
7
+ import { resolveComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, renderSlot, createVNode, createBlock, createCommentVNode, Fragment, withCtx, createTextVNode } from "vue";
8
+ const { create } = createComponent("card");
9
+ var _sfc_main = create({
10
+ props: {
11
+ imgUrl: {
12
+ type: String,
13
+ default: ""
14
+ },
15
+ title: {
16
+ type: String,
17
+ default: ""
18
+ },
19
+ price: {
20
+ type: String,
21
+ default: ""
22
+ },
23
+ vipPrice: {
24
+ type: String,
25
+ default: ""
26
+ },
27
+ shopDesc: {
28
+ type: String,
29
+ default: ""
30
+ },
31
+ delivery: {
32
+ type: String,
33
+ default: ""
34
+ },
35
+ shopName: {
36
+ type: String,
37
+ default: ""
38
+ }
39
+ },
40
+ setup(props, { emit, slots }) {
41
+ const isHaveSlot = (slot) => {
42
+ return slots[slot];
43
+ };
44
+ return {
45
+ isHaveSlot
46
+ };
47
+ }
48
+ });
49
+ const _hoisted_1 = { class: "nut-card" };
50
+ const _hoisted_2 = { class: "nut-card__left" };
51
+ const _hoisted_3 = ["src"];
52
+ const _hoisted_4 = { class: "nut-card__right" };
53
+ const _hoisted_5 = { class: "nut-card__right__title" };
54
+ const _hoisted_6 = { class: "nut-card__right__price" };
55
+ const _hoisted_7 = { class: "nut-card__right__other" };
56
+ const _hoisted_8 = { class: "nut-card__right__shop" };
57
+ const _hoisted_9 = { class: "nut-card__right__shop__name" };
58
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
59
+ const _component_nut_price = resolveComponent("nut-price");
60
+ const _component_nut_tag = resolveComponent("nut-tag");
61
+ return openBlock(), createElementBlock("div", _hoisted_1, [
62
+ createElementVNode("div", _hoisted_2, [
63
+ createElementVNode("img", {
64
+ src: _ctx.imgUrl,
65
+ alt: ""
66
+ }, null, 8, _hoisted_3)
67
+ ]),
68
+ createElementVNode("div", _hoisted_4, [
69
+ createElementVNode("div", _hoisted_5, toDisplayString(_ctx.title), 1),
70
+ renderSlot(_ctx.$slots, "prolist"),
71
+ createElementVNode("div", _hoisted_6, [
72
+ createVNode(_component_nut_price, { price: _ctx.price }, null, 8, ["price"]),
73
+ _ctx.isHaveSlot("origin") ? renderSlot(_ctx.$slots, "origin", { key: 0 }) : (openBlock(), createBlock(_component_nut_price, {
74
+ key: 1,
75
+ class: "nut-card__right__price__origin",
76
+ price: _ctx.vipPrice
77
+ }, null, 8, ["price"])),
78
+ _ctx.isHaveSlot("tag") ? renderSlot(_ctx.$slots, "tag", { key: 2 }) : createCommentVNode("", true)
79
+ ]),
80
+ createElementVNode("div", _hoisted_7, [
81
+ _ctx.isHaveSlot("shop-tag") ? renderSlot(_ctx.$slots, "shop-tag", { key: 0 }) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
82
+ createVNode(_component_nut_tag, { type: "danger" }, {
83
+ default: withCtx(() => [
84
+ createTextVNode(toDisplayString(_ctx.shopDesc), 1)
85
+ ]),
86
+ _: 1
87
+ }),
88
+ createVNode(_component_nut_tag, { plain: "" }, {
89
+ default: withCtx(() => [
90
+ createTextVNode(toDisplayString(_ctx.delivery), 1)
91
+ ]),
92
+ _: 1
93
+ })
94
+ ], 64))
95
+ ]),
96
+ createElementVNode("div", _hoisted_8, [
97
+ createElementVNode("div", _hoisted_9, toDisplayString(_ctx.shopName), 1),
98
+ renderSlot(_ctx.$slots, "footer")
99
+ ])
100
+ ])
101
+ ]);
102
+ }
103
+ _sfc_main.render = _sfc_render;
104
+ export { _sfc_main as default };
@@ -1,22 +1,20 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.10 Fri Nov 05 2021 19:52:49 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.11 Wed Nov 24 2021 14:54:38 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import { computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot, createBlock, createCommentVNode, Fragment, createElementVNode, toDisplayString, createTextVNode } from "vue";
7
7
  import { c as createComponent } from "./component.js";
8
- import { useRouter } from "vue-router";
9
8
  import { p as pxCheck } from "./pxCheck.js";
10
- import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
11
9
  const { componentName, create } = createComponent("cell");
12
- const _sfc_main = create({
10
+ var _sfc_main = create({
13
11
  props: {
14
12
  title: { type: String, default: "" },
15
13
  subTitle: { type: String, default: "" },
16
14
  desc: { type: String, default: "" },
17
15
  descTextAlign: { type: String, default: "right" },
18
16
  isLink: { type: Boolean, default: false },
19
- to: [String, Object],
17
+ to: { type: String, default: "" },
20
18
  replace: { type: Boolean, default: false },
21
19
  roundRadius: { type: [String, Number], default: "" },
22
20
  url: { type: String, default: "" },
@@ -31,7 +29,6 @@ const _sfc_main = create({
31
29
  [`${prefixCls}--clickable`]: props.isLink || props.to
32
30
  };
33
31
  });
34
- const router = useRouter();
35
32
  const baseStyle = computed(() => {
36
33
  return {
37
34
  borderRadius: pxCheck(props.roundRadius)
@@ -39,11 +36,6 @@ const _sfc_main = create({
39
36
  });
40
37
  const handleClick = (event) => {
41
38
  emit("click", event);
42
- if (props.to && router) {
43
- router[props.replace ? "replace" : "push"](props.to);
44
- } else if (props.url) {
45
- props.replace ? location.replace(props.url) : location.href = props.url;
46
- }
47
39
  };
48
40
  return {
49
41
  handleClick,
@@ -91,5 +83,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
91
83
  ])
92
84
  ], 6);
93
85
  }
94
- var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
95
- export { index as default };
86
+ _sfc_main.render = _sfc_render;
87
+ export { _sfc_main as default };
@@ -1,13 +1,12 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.10 Fri Nov 05 2021 19:52:49 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.11 Wed Nov 24 2021 14:54:38 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import { computed, openBlock, createElementBlock, normalizeClass, renderSlot, toDisplayString, createCommentVNode, createElementVNode } from "vue";
7
7
  import { c as createComponent } from "./component.js";
8
- import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
9
8
  const { componentName, create } = createComponent("cell-group");
10
- const _sfc_main = create({
9
+ var _sfc_main = create({
11
10
  props: {
12
11
  title: { type: String, default: "" }
13
12
  },
@@ -38,5 +37,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
38
37
  ])
39
38
  ], 2);
40
39
  }
41
- var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
42
- export { index as default };
40
+ _sfc_main.render = _sfc_render;
41
+ export { _sfc_main as default };
@@ -1,14 +1,14 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.10 Fri Nov 05 2021 19:52:49 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.11 Wed Nov 24 2021 14:54:38 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import { inject, computed, onMounted, getCurrentInstance, h } from "vue";
7
7
  import { c as createComponent } from "./component.js";
8
- import _sfc_main$1 from "./Icon.js";
8
+ import { _ as _sfc_main$1 } from "./index.taro.vue_vue&type=script&lang.js";
9
9
  import "./pxCheck.js";
10
10
  const { create, componentName } = createComponent("checkbox");
11
- const _sfc_main = create({
11
+ var _sfc_main = create({
12
12
  components: {
13
13
  nutIcon: _sfc_main$1
14
14
  },
@@ -1,13 +1,18 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.10 Fri Nov 05 2021 19:52:49 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.11 Wed Nov 24 2021 14:54:38 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
- import { reactive, provide, computed, watch, h } from "vue";
6
+ import { getCurrentInstance, reactive, provide, computed, watch, h } from "vue";
7
7
  import { c as createComponent } from "./component.js";
8
- import { u as useExpose } from "./index2.js";
8
+ function useExpose(apis) {
9
+ const instance = getCurrentInstance();
10
+ if (instance) {
11
+ Object.assign(instance.proxy, apis);
12
+ }
13
+ }
9
14
  const { create, componentName } = createComponent("checkboxgroup");
10
- const _sfc_main = create({
15
+ var _sfc_main = create({
11
16
  props: {
12
17
  modelValue: {
13
18
  type: Array,