@nutui/nutui 3.1.19-beta.1 → 3.1.19-beta.2

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 (230) hide show
  1. package/README.md +9 -8
  2. package/dist/nutui.es.js +2875 -3576
  3. package/dist/nutui.umd.js +2965 -3579
  4. package/dist/packages/_es/ActionSheet.js +18 -12
  5. package/dist/packages/_es/Address.js +69 -78
  6. package/dist/packages/_es/Audio.js +12 -12
  7. package/dist/packages/_es/AudioOperate.js +1 -1
  8. package/dist/packages/_es/Avatar.js +3 -3
  9. package/dist/packages/_es/BackTop.js +110 -68
  10. package/dist/packages/_es/Badge.js +3 -3
  11. package/dist/packages/_es/Barrage.js +55 -62
  12. package/dist/packages/_es/Button.js +2 -2
  13. package/dist/packages/_es/Calendar.js +27 -32
  14. package/dist/packages/_es/CalendarItem.js +3 -3
  15. package/dist/packages/_es/Card.js +5 -6
  16. package/dist/packages/_es/Cascader.js +7 -7
  17. package/dist/packages/_es/Cell.js +11 -4
  18. package/dist/packages/_es/CellGroup.js +1 -1
  19. package/dist/packages/_es/Checkbox.js +13 -3
  20. package/dist/packages/_es/CheckboxGroup.js +2 -2
  21. package/dist/packages/_es/CircleProgress.js +40 -149
  22. package/dist/packages/_es/Col.js +1 -1
  23. package/dist/packages/_es/Collapse.js +8 -34
  24. package/dist/packages/_es/CollapseItem.js +59 -90
  25. package/dist/packages/_es/CountDown.js +5 -5
  26. package/dist/packages/_es/CountUp.js +51 -43
  27. package/dist/packages/_es/DatePicker.js +20 -21
  28. package/dist/packages/_es/Dialog.js +91 -12
  29. package/dist/packages/_es/Divider.js +4 -4
  30. package/dist/packages/_es/Drag.js +54 -92
  31. package/dist/packages/_es/Elevator.js +50 -75
  32. package/dist/packages/_es/Empty.js +3 -3
  33. package/dist/packages/_es/FixedNav.js +10 -11
  34. package/dist/packages/_es/Form.js +5 -9
  35. package/dist/packages/_es/FormItem.js +1 -1
  36. package/dist/packages/_es/Grid.js +1 -1
  37. package/dist/packages/_es/GridItem.js +26 -8
  38. package/dist/packages/_es/Icon.js +1 -1
  39. package/dist/packages/_es/ImagePreview.js +83 -14
  40. package/dist/packages/_es/Indicator.js +3 -3
  41. package/dist/packages/_es/InfiniteLoading.js +107 -93
  42. package/dist/packages/_es/Input.js +8 -8
  43. package/dist/packages/_es/InputNumber.js +16 -23
  44. package/dist/packages/_es/Layout.js +1 -1
  45. package/dist/packages/_es/List.js +34 -41
  46. package/dist/packages/_es/Menu.js +12 -15
  47. package/dist/packages/_es/MenuItem.js +7 -7
  48. package/dist/packages/_es/Navbar.js +4 -3
  49. package/dist/packages/_es/NoticeBar.js +40 -47
  50. package/dist/packages/_es/Notify.js +166 -27
  51. package/dist/packages/_es/NumberKeyboard.js +18 -8
  52. package/dist/packages/_es/OldPicker.js +120 -122
  53. package/dist/packages/_es/OverLay.js +25 -5
  54. package/dist/packages/_es/Pagination.js +14 -13
  55. package/dist/packages/_es/Picker.js +16 -39
  56. package/dist/packages/_es/Popover.js +29 -154
  57. package/dist/packages/_es/Popup.js +69 -6
  58. package/dist/packages/_es/Price.js +5 -17
  59. package/dist/packages/_es/Progress.js +8 -18
  60. package/dist/packages/_es/PullRefresh.js +1 -1
  61. package/dist/packages/_es/Radio.js +14 -4
  62. package/dist/packages/_es/RadioGroup.js +1 -1
  63. package/dist/packages/_es/Range.js +33 -46
  64. package/dist/packages/_es/Rate.js +19 -16
  65. package/dist/packages/_es/Row.js +1 -1
  66. package/dist/packages/_es/SearchBar.js +11 -12
  67. package/dist/packages/_es/ShortPassword.js +67 -89
  68. package/dist/packages/_es/SideNavBar.js +16 -5
  69. package/dist/packages/_es/SideNavBarItem.js +1 -1
  70. package/dist/packages/_es/Signature.js +88 -69
  71. package/dist/packages/_es/Skeleton.js +11 -8
  72. package/dist/packages/_es/Sku.js +57 -49
  73. package/dist/packages/_es/Step.js +1 -1
  74. package/dist/packages/_es/Steps.js +1 -1
  75. package/dist/packages/_es/Sticky.js +23 -28
  76. package/dist/packages/_es/SubSideNavBar.js +1 -1
  77. package/dist/packages/_es/Swipe.js +26 -39
  78. package/dist/packages/_es/Swiper.js +14 -32
  79. package/dist/packages/_es/SwiperItem.js +2 -2
  80. package/dist/packages/_es/Switch.js +3 -3
  81. package/dist/packages/_es/TabPane.js +1 -1
  82. package/dist/packages/_es/Tabbar.js +3 -3
  83. package/dist/packages/_es/TabbarItem.js +21 -11
  84. package/dist/packages/_es/Table.js +13 -13
  85. package/dist/packages/_es/Tabs.js +20 -21
  86. package/dist/packages/_es/Tag.js +4 -4
  87. package/dist/packages/_es/TextArea.js +42 -44
  88. package/dist/packages/_es/TimeDetail.js +3 -4
  89. package/dist/packages/_es/TimePannel.js +3 -3
  90. package/dist/packages/_es/TimeSelect.js +7 -8
  91. package/dist/packages/_es/Toast.js +170 -41
  92. package/dist/packages/_es/Uploader.js +138 -109
  93. package/dist/packages/_es/Video.js +9 -8
  94. package/dist/packages/_es/common.js +1 -1
  95. package/dist/packages/_es/component.js +135 -3
  96. package/dist/packages/_es/index.js +6 -44
  97. package/dist/packages/_es/index2.js +31 -8
  98. package/dist/packages/_es/index3.js +7 -58
  99. package/dist/packages/_es/index4.js +56 -413
  100. package/dist/packages/_es/{index.taro.js → index5.js} +113 -140
  101. package/dist/packages/_es/plugin-vue_export-helper.js +1 -1
  102. package/dist/packages/_es/pxCheck.js +1 -1
  103. package/dist/packages/_es/raf.js +19 -0
  104. package/dist/style.css +1 -1
  105. package/dist/styles/themes/default.scss +42 -42
  106. package/dist/styles/themes/jdt.scss +42 -42
  107. package/dist/types/__VUE/actionsheet/index.d.ts +269 -0
  108. package/dist/types/__VUE/address/index.d.ts +386 -0
  109. package/dist/types/__VUE/audio/index.d.ts +92 -0
  110. package/dist/types/__VUE/audiooperate/index.d.ts +68 -0
  111. package/dist/types/__VUE/avatar/index.d.ts +66 -0
  112. package/dist/types/__VUE/backtop/index.d.ts +105 -0
  113. package/dist/types/__VUE/badge/index.d.ts +94 -0
  114. package/dist/types/__VUE/barrage/index.d.ts +80 -0
  115. package/dist/types/__VUE/button/index.d.ts +116 -0
  116. package/dist/types/__VUE/calendar/index.d.ts +155 -0
  117. package/dist/types/__VUE/calendaritem/index.d.ts +195 -0
  118. package/dist/types/__VUE/card/index.d.ts +81 -0
  119. package/dist/types/__VUE/cascader/cascader-item.d.ts +76 -0
  120. package/dist/types/__VUE/cascader/helper.d.ts +8 -0
  121. package/dist/types/__VUE/cascader/index.d.ts +76 -0
  122. package/dist/types/__VUE/cascader/tree.d.ts +17 -0
  123. package/dist/types/__VUE/cascader/types.d.ts +30 -0
  124. package/dist/types/__VUE/cell/index.d.ts +109 -0
  125. package/dist/types/__VUE/cellgroup/index.d.ts +38 -0
  126. package/dist/types/__VUE/checkbox/index.d.ts +102 -0
  127. package/dist/types/__VUE/checkboxgroup/index.d.ts +39 -0
  128. package/dist/types/__VUE/circleprogress/index.d.ts +66 -0
  129. package/dist/types/__VUE/col/index.d.ts +42 -0
  130. package/dist/types/__VUE/collapse/index.d.ts +104 -0
  131. package/dist/types/__VUE/collapseitem/index.d.ts +83 -0
  132. package/dist/types/__VUE/countdown/index.d.ts +90 -0
  133. package/dist/types/__VUE/countup/index.d.ts +216 -0
  134. package/dist/types/__VUE/datepicker/index.d.ts +347 -0
  135. package/dist/types/__VUE/datepicker/utils.d.ts +5 -0
  136. package/dist/types/__VUE/dialog/index.d.ts +306 -0
  137. package/dist/types/__VUE/divider/index.d.ts +47 -0
  138. package/dist/types/__VUE/drag/index.d.ts +61 -0
  139. package/dist/types/__VUE/elevator/index.d.ts +71 -0
  140. package/dist/types/__VUE/empty/index.d.ts +46 -0
  141. package/dist/types/__VUE/fixednav/index.d.ts +96 -0
  142. package/dist/types/__VUE/form/common.d.ts +20 -0
  143. package/dist/types/__VUE/form/index.d.ts +32 -0
  144. package/dist/types/__VUE/form/types.d.ts +13 -0
  145. package/dist/types/__VUE/formitem/index.d.ts +120 -0
  146. package/dist/types/__VUE/formitem/types.d.ts +10 -0
  147. package/dist/types/__VUE/grid/common.d.ts +91 -0
  148. package/dist/types/__VUE/grid/index.d.ts +100 -0
  149. package/dist/types/__VUE/griditem/index.d.ts +80 -0
  150. package/dist/types/__VUE/icon/index.d.ts +74 -0
  151. package/dist/types/__VUE/imagepreview/index.d.ts +125 -0
  152. package/dist/types/__VUE/indicator/index.d.ts +70 -0
  153. package/dist/types/__VUE/infiniteloading/index.d.ts +140 -0
  154. package/dist/types/__VUE/input/index.d.ts +336 -0
  155. package/dist/types/__VUE/input/util.d.ts +5 -0
  156. package/dist/types/__VUE/inputnumber/index.d.ts +117 -0
  157. package/dist/types/__VUE/layout/index.d.ts +13 -0
  158. package/dist/types/__VUE/list/index.d.ts +48 -0
  159. package/dist/types/__VUE/menu/index.d.ts +51 -0
  160. package/dist/types/__VUE/menuitem/index.d.ts +77 -0
  161. package/dist/types/__VUE/navbar/index.d.ts +84 -0
  162. package/dist/types/__VUE/noticebar/index.d.ts +209 -0
  163. package/dist/types/__VUE/notify/index.d.ts +103 -0
  164. package/dist/types/__VUE/numberkeyboard/index.d.ts +123 -0
  165. package/dist/types/__VUE/oldpicker/Column.d.ts +96 -0
  166. package/dist/types/__VUE/oldpicker/commonProps.d.ts +22 -0
  167. package/dist/types/__VUE/oldpicker/index.d.ts +360 -0
  168. package/dist/types/__VUE/oldpicker/types.d.ts +24 -0
  169. package/dist/types/__VUE/overlay/index.d.ts +1614 -0
  170. package/dist/types/__VUE/pagination/index.d.ts +112 -0
  171. package/dist/types/__VUE/picker/Column.d.ts +90 -0
  172. package/dist/types/__VUE/picker/index.d.ts +342 -0
  173. package/dist/types/__VUE/picker/types.d.ts +26 -0
  174. package/dist/types/__VUE/popover/index.d.ts +233 -0
  175. package/dist/types/__VUE/popup/index.d.ts +1734 -0
  176. package/dist/types/__VUE/popup/use-lock-scroll.d.ts +5 -0
  177. package/dist/types/__VUE/price/index.d.ts +87 -0
  178. package/dist/types/__VUE/progress/index.d.ts +137 -0
  179. package/dist/types/__VUE/pullrefresh/index.d.ts +128 -0
  180. package/dist/types/__VUE/pullrefresh/use-touch.d.ts +20 -0
  181. package/dist/types/__VUE/pullrefresh/util.d.ts +6 -0
  182. package/dist/types/__VUE/radio/index.d.ts +90 -0
  183. package/dist/types/__VUE/radiogroup/index.d.ts +48 -0
  184. package/dist/types/__VUE/range/index.d.ts +156 -0
  185. package/dist/types/__VUE/rate/index.d.ts +142 -0
  186. package/dist/types/__VUE/row/index.d.ts +63 -0
  187. package/dist/types/__VUE/searchbar/index.d.ts +100 -0
  188. package/dist/types/__VUE/shortpassword/index.d.ts +136 -0
  189. package/dist/types/__VUE/sidenavbar/index.d.ts +36 -0
  190. package/dist/types/__VUE/sidenavbaritem/index.d.ts +41 -0
  191. package/dist/types/__VUE/signature/index.d.ts +73 -0
  192. package/dist/types/__VUE/skeleton/common.d.ts +63 -0
  193. package/dist/types/__VUE/skeleton/index.d.ts +117 -0
  194. package/dist/types/__VUE/sku/components/SkuHeader.d.ts +27 -0
  195. package/dist/types/__VUE/sku/components/SkuOperate.d.ts +70 -0
  196. package/dist/types/__VUE/sku/components/SkuSelect.d.ts +30 -0
  197. package/dist/types/__VUE/sku/components/SkuStepper.d.ts +67 -0
  198. package/dist/types/__VUE/sku/index.d.ts +300 -0
  199. package/dist/types/__VUE/step/index.d.ts +70 -0
  200. package/dist/types/__VUE/steps/index.d.ts +47 -0
  201. package/dist/types/__VUE/sticky/index.d.ts +63 -0
  202. package/dist/types/__VUE/subsidenavbar/index.d.ts +54 -0
  203. package/dist/types/__VUE/swipe/index.d.ts +69 -0
  204. package/dist/types/__VUE/swiper/index.d.ts +163 -0
  205. package/dist/types/__VUE/swiper/use-touch.d.ts +20 -0
  206. package/dist/types/__VUE/swiperitem/index.d.ts +24 -0
  207. package/dist/types/__VUE/switch/index.d.ts +136 -0
  208. package/dist/types/__VUE/tabbar/index.d.ts +84 -0
  209. package/dist/types/__VUE/tabbaritem/index.d.ts +108 -0
  210. package/dist/types/__VUE/table/common.d.ts +54 -0
  211. package/dist/types/__VUE/table/index.d.ts +75 -0
  212. package/dist/types/__VUE/table/renderColumn.d.ts +20 -0
  213. package/dist/types/__VUE/table/types.d.ts +19 -0
  214. package/dist/types/__VUE/tabpane/index.d.ts +47 -0
  215. package/dist/types/__VUE/tabs/index.d.ts +128 -0
  216. package/dist/types/__VUE/tag/index.d.ts +89 -0
  217. package/dist/types/__VUE/textarea/index.d.ts +120 -0
  218. package/dist/types/__VUE/timedetail/index.d.ts +48 -0
  219. package/dist/types/__VUE/timepannel/index.d.ts +43 -0
  220. package/dist/types/__VUE/timeselect/index.d.ts +82 -0
  221. package/dist/types/__VUE/toast/index.d.ts +149 -0
  222. package/dist/types/__VUE/uploader/index.d.ts +258 -0
  223. package/dist/types/__VUE/uploader/uploader.d.ts +25 -0
  224. package/dist/types/__VUE/video/index.d.ts +123 -0
  225. package/dist/{index.d.ts → types/index.d.ts} +0 -0
  226. package/dist/types/nutui.d.ts +92 -0
  227. package/package.json +14 -5
  228. package/dist/nutui.d.ts +0 -104
  229. package/dist/packages/_es/use-lock-scroll.js +0 -23
  230. package/dist/packages/_es/util.js +0 -47
@@ -18,140 +18,18 @@ var __spreadValues = (a, b) => {
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  /*!
21
- * @nutui/nutui v3.1.19-beta.1 Sat Apr 02 2022 16:26:37 GMT+0800 (中国标准时间)
21
+ * @nutui/nutui v3.1.19-beta.2 Thu Apr 07 2022 17:52:31 GMT+0800 (中国标准时间)
22
22
  * (c) 2022 @jdf2e.
23
23
  * Released under the MIT License.
24
24
  */
25
- import { toRefs, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, createBlock, createCommentVNode, renderSlot, ref, reactive, onMounted, watch, withModifiers, Fragment, renderList, createVNode, toDisplayString } from "vue";
25
+ import { ref, reactive, toRefs, computed, onMounted, watch, resolveComponent, openBlock, createElementBlock, withModifiers, normalizeClass, createElementVNode, renderSlot, Fragment, normalizeStyle, renderList, createVNode, createCommentVNode, toDisplayString } from "vue";
26
26
  import { c as createComponent } from "./component.js";
27
- import { _ as _sfc_main$2, P as Popup, p as popupProps } from "./index4.js";
27
+ import Popup, { popupProps } from "./Popup.js";
28
+ import Button from "./Button.js";
28
29
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
29
- import { u as useTaroRect } from "./index.js";
30
- import Taro from "@tarojs/taro";
31
- import "./use-lock-scroll.js";
30
+ import "./OverLay.js";
31
+ import "./Icon.js";
32
32
  import "./pxCheck.js";
33
- const { componentName: componentName$1, create: create$1 } = createComponent("button");
34
- const _sfc_main$1 = create$1({
35
- components: {
36
- [_sfc_main$2.name]: _sfc_main$2
37
- },
38
- props: {
39
- color: String,
40
- shape: {
41
- type: String,
42
- default: "round"
43
- },
44
- plain: {
45
- type: Boolean,
46
- default: false
47
- },
48
- loading: {
49
- type: Boolean,
50
- default: false
51
- },
52
- disabled: {
53
- type: Boolean,
54
- default: false
55
- },
56
- type: {
57
- type: String,
58
- default: "default"
59
- },
60
- size: {
61
- type: String,
62
- default: "normal"
63
- },
64
- block: {
65
- type: Boolean,
66
- default: false
67
- },
68
- icon: {
69
- type: String,
70
- default: ""
71
- },
72
- iconClassPrefix: {
73
- type: String,
74
- default: "nut-icon"
75
- },
76
- iconFontClassName: {
77
- type: String,
78
- default: "nutui-iconfont"
79
- }
80
- },
81
- emits: ["click"],
82
- setup(props, { emit, slots }) {
83
- const { type, size, shape, disabled, loading, color, plain, block } = toRefs(props);
84
- const handleClick = (event) => {
85
- if (!loading.value && !disabled.value) {
86
- emit("click", event);
87
- }
88
- };
89
- const classes = computed(() => {
90
- const prefixCls = componentName$1;
91
- return {
92
- [prefixCls]: true,
93
- [`${prefixCls}--${type.value}`]: type.value,
94
- [`${prefixCls}--${size.value}`]: size.value,
95
- [`${prefixCls}--${shape.value}`]: shape.value,
96
- [`${prefixCls}--plain`]: plain.value,
97
- [`${prefixCls}--block`]: block.value,
98
- [`${prefixCls}--disabled`]: disabled.value,
99
- [`${prefixCls}--loading`]: loading.value
100
- };
101
- });
102
- const getStyle = computed(() => {
103
- var _a;
104
- const style = {};
105
- if (color == null ? void 0 : color.value) {
106
- if (plain.value) {
107
- style.color = color.value;
108
- style.background = "#fff";
109
- if (!((_a = color.value) == null ? void 0 : _a.includes("gradient"))) {
110
- style.borderColor = color.value;
111
- }
112
- } else {
113
- style.color = "#fff";
114
- style.background = color.value;
115
- }
116
- }
117
- return style;
118
- });
119
- return {
120
- handleClick,
121
- classes,
122
- getStyle
123
- };
124
- }
125
- });
126
- const _hoisted_1$1 = { class: "nut-button__warp" };
127
- function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
128
- const _component_nut_icon = resolveComponent("nut-icon");
129
- return openBlock(), createElementBlock("view", {
130
- class: normalizeClass(_ctx.classes),
131
- style: normalizeStyle(_ctx.getStyle),
132
- onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
133
- }, [
134
- createElementVNode("view", _hoisted_1$1, [
135
- _ctx.loading ? (openBlock(), createBlock(_component_nut_icon, {
136
- key: 0,
137
- class: "nut-icon-loading"
138
- })) : createCommentVNode("", true),
139
- _ctx.icon && !_ctx.loading ? (openBlock(), createBlock(_component_nut_icon, {
140
- key: 1,
141
- name: _ctx.icon,
142
- "class-prefix": _ctx.iconClassPrefix,
143
- "font-class-name": _ctx.iconFontClassName
144
- }, null, 8, ["name", "class-prefix", "font-class-name"])) : createCommentVNode("", true),
145
- _ctx.$slots.default ? (openBlock(), createElementBlock("view", {
146
- key: 2,
147
- class: normalizeClass({ text: _ctx.icon || _ctx.loading })
148
- }, [
149
- renderSlot(_ctx.$slots, "default")
150
- ], 2)) : createCommentVNode("", true)
151
- ])
152
- ], 6);
153
- }
154
- var Button = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
155
33
  const { componentName, create } = createComponent("popover");
156
34
  const _sfc_main = create({
157
35
  inheritAttrs: false,
@@ -203,15 +81,15 @@ const _sfc_main = create({
203
81
  [`${prefixCls}--${location.value}`]: location.value
204
82
  };
205
83
  });
206
- const getReference = async () => {
207
- const refe = await useTaroRect(reference, Taro);
208
- state.elWidth = refe.width;
209
- state.elHeight = refe.height;
210
- };
84
+ function getReference() {
85
+ state.elWidth = reference.value.offsetWidth;
86
+ state.elHeight = reference.value.offsetHeight;
87
+ }
211
88
  const getStyle = computed(() => {
212
89
  const style = {};
213
90
  if (location.value == "top") {
214
- style.bottom = state.elHeight + 10 + "px";
91
+ style.bottom = state.elHeight + 20 + "px";
92
+ style.left = 0 + "px";
215
93
  } else if (location.value == "right") {
216
94
  style.top = 0 + "px";
217
95
  style.right = -state.elWidth + "px";
@@ -219,7 +97,8 @@ const _sfc_main = create({
219
97
  style.top = 0 + "px";
220
98
  style.left = -state.elWidth + "px";
221
99
  } else {
222
- style.top = state.elHeight + 10 + "px";
100
+ style.top = state.elHeight + 20 + "px";
101
+ style.left = 0 + "px";
223
102
  }
224
103
  return style;
225
104
  });
@@ -241,9 +120,7 @@ const _sfc_main = create({
241
120
  return style;
242
121
  });
243
122
  onMounted(() => {
244
- setTimeout(() => {
245
- getReference();
246
- }, 200);
123
+ getReference();
247
124
  });
248
125
  watch(() => props.visible, (value) => {
249
126
  showPopup.value = value;
@@ -260,10 +137,12 @@ const _sfc_main = create({
260
137
  emit("close");
261
138
  emit("update:visible", false);
262
139
  };
263
- const chooseItem = (item, index) => {
264
- emit("choose", item, index);
140
+ const chooseItem = (item, index2) => {
141
+ if (item.disabled) {
142
+ return;
143
+ }
144
+ emit("choose", item, index2);
265
145
  };
266
- const refRandomId = Math.random().toString(36).slice(-8);
267
146
  return {
268
147
  classes,
269
148
  showPopup,
@@ -275,12 +154,11 @@ const _sfc_main = create({
275
154
  getReference,
276
155
  reference,
277
156
  getStyle,
278
- getArrowStyle,
279
- refRandomId
157
+ getArrowStyle
280
158
  };
281
159
  }
282
160
  });
283
- const _hoisted_1 = ["id"];
161
+ const _hoisted_1 = { ref: "reference" };
284
162
  const _hoisted_2 = ["onClick"];
285
163
  const _hoisted_3 = { class: "title-name" };
286
164
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
@@ -289,12 +167,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
289
167
  onClick: _cache[1] || (_cache[1] = withModifiers((...args) => _ctx.openPopover && _ctx.openPopover(...args), ["stop"])),
290
168
  class: normalizeClass(_ctx.classes)
291
169
  }, [
292
- createElementVNode("div", {
293
- ref: "reference",
294
- id: "reference-" + _ctx.refRandomId
295
- }, [
170
+ createElementVNode("div", _hoisted_1, [
296
171
  renderSlot(_ctx.$slots, "reference")
297
- ], 8, _hoisted_1),
172
+ ], 512),
298
173
  _ctx.showPopup ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
299
174
  createElementVNode("view", {
300
175
  class: "more-background",
@@ -309,11 +184,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
309
184
  style: normalizeStyle(_ctx.getArrowStyle)
310
185
  }, null, 6),
311
186
  renderSlot(_ctx.$slots, "content"),
312
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.list, (item, index) => {
187
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.list, (item, index2) => {
313
188
  return openBlock(), createElementBlock("view", {
314
- key: index,
189
+ key: index2,
315
190
  class: normalizeClass({ "title-item": true, disabled: item.disabled }),
316
- onClick: withModifiers(($event) => _ctx.chooseItem(item, index), ["stop"])
191
+ onClick: withModifiers(($event) => _ctx.chooseItem(item, index2), ["stop"])
317
192
  }, [
318
193
  item.icon ? renderSlot(_ctx.$slots, "default", { key: 0 }, () => [
319
194
  createVNode(_component_nut_icon, {
@@ -328,5 +203,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
328
203
  ], 64)) : createCommentVNode("", true)
329
204
  ], 2);
330
205
  }
331
- var index_taro = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
332
- export { index_taro as default };
206
+ var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
207
+ export { index as default };
@@ -18,17 +18,33 @@ var __spreadValues = (a, b) => {
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  /*!
21
- * @nutui/nutui v3.1.19-beta.1 Sat Apr 02 2022 16:26:37 GMT+0800 (中国标准时间)
21
+ * @nutui/nutui v3.1.19-beta.2 Thu Apr 07 2022 17:52:31 GMT+0800 (中国标准时间)
22
22
  * (c) 2022 @jdf2e.
23
23
  * Released under the MIT License.
24
24
  */
25
- import { reactive, computed, onMounted, onBeforeUnmount, onBeforeMount, onActivated, onDeactivated, watch, toRefs, resolveComponent, openBlock, createElementBlock, createBlock, normalizeClass, normalizeStyle, createCommentVNode, createVNode, Transition, withCtx, withDirectives, createElementVNode, renderSlot, vShow } from "vue";
26
- import { u as useLockScroll } from "./use-lock-scroll.js";
25
+ import { reactive, computed, onMounted, onBeforeUnmount, onBeforeMount, onActivated, onDeactivated, watch, toRefs, resolveComponent, openBlock, createBlock, Teleport, normalizeClass, normalizeStyle, createCommentVNode, createVNode, Transition, withCtx, withDirectives, createElementVNode, renderSlot, createElementBlock, vShow } from "vue";
27
26
  import overlay, { overlayProps } from "./OverLay.js";
28
27
  import _sfc_main$1 from "./Icon.js";
29
28
  import { c as createComponent } from "./component.js";
30
29
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
31
30
  import "./pxCheck.js";
31
+ let count = 0;
32
+ const CLSNAME = "nut-overflow-hidden";
33
+ const useLockScroll = (isLock) => {
34
+ const lock = () => {
35
+ if (isLock()) {
36
+ !count && document.body.classList.add(CLSNAME);
37
+ count++;
38
+ }
39
+ };
40
+ const unlock = () => {
41
+ if (isLock() && count) {
42
+ count--;
43
+ !count && document.body.classList.remove(CLSNAME);
44
+ }
45
+ };
46
+ return [lock, unlock];
47
+ };
32
48
  const { componentName, create } = createComponent("popup");
33
49
  let _zIndex = 2e3;
34
50
  const popupProps = __spreadProps(__spreadValues({}, overlayProps), {
@@ -71,10 +87,13 @@ const popupProps = __spreadProps(__spreadValues({}, overlayProps), {
71
87
  round: {
72
88
  type: Boolean,
73
89
  default: false
90
+ },
91
+ isWrapTeleport: {
92
+ type: Boolean,
93
+ default: true
74
94
  }
75
95
  });
76
96
  const _sfc_main = create({
77
- children: [overlay],
78
97
  components: {
79
98
  [overlay.name]: overlay,
80
99
  [_sfc_main$1.name]: _sfc_main$1
@@ -199,10 +218,14 @@ const _sfc_main = create({
199
218
  });
200
219
  }
201
220
  });
221
+ const _hoisted_1 = { key: 1 };
202
222
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
203
223
  const _component_nut_overlay = resolveComponent("nut-overlay");
204
224
  const _component_nut_icon = resolveComponent("nut-icon");
205
- return openBlock(), createElementBlock("view", null, [
225
+ return _ctx.isWrapTeleport ? (openBlock(), createBlock(Teleport, {
226
+ key: 0,
227
+ to: _ctx.teleport
228
+ }, [
206
229
  _ctx.overlay ? (openBlock(), createBlock(_component_nut_overlay, {
207
230
  key: 0,
208
231
  visible: _ctx.visible,
@@ -242,7 +265,47 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
242
265
  ]),
243
266
  _: 3
244
267
  }, 8, ["name", "onAfterEnter", "onAfterLeave"])
245
- ]);
268
+ ], 8, ["to"])) : (openBlock(), createElementBlock("view", _hoisted_1, [
269
+ _ctx.overlay ? (openBlock(), createBlock(_component_nut_overlay, {
270
+ key: 0,
271
+ visible: _ctx.visible,
272
+ "close-on-click-overlay": _ctx.closeOnClickOverlay,
273
+ class: normalizeClass(_ctx.overlayClass),
274
+ style: normalizeStyle(_ctx.overlayStyle),
275
+ "z-index": _ctx.zIndex,
276
+ "lock-scroll": _ctx.lockScroll,
277
+ duration: _ctx.duration,
278
+ onClick: _ctx.onClickOverlay
279
+ }, null, 8, ["visible", "close-on-click-overlay", "class", "style", "z-index", "lock-scroll", "duration", "onClick"])) : createCommentVNode("", true),
280
+ createVNode(Transition, {
281
+ name: _ctx.transitionName,
282
+ onAfterEnter: _ctx.onOpened,
283
+ onAfterLeave: _ctx.onClosed
284
+ }, {
285
+ default: withCtx(() => [
286
+ withDirectives(createElementVNode("view", {
287
+ class: normalizeClass(_ctx.classes),
288
+ style: normalizeStyle(_ctx.popStyle),
289
+ onClick: _cache[3] || (_cache[3] = (...args) => _ctx.onClick && _ctx.onClick(...args))
290
+ }, [
291
+ _ctx.showSlot ? renderSlot(_ctx.$slots, "default", { key: 0 }) : createCommentVNode("", true),
292
+ _ctx.closed ? (openBlock(), createElementBlock("view", {
293
+ key: 1,
294
+ onClick: _cache[2] || (_cache[2] = (...args) => _ctx.onClickCloseIcon && _ctx.onClickCloseIcon(...args)),
295
+ class: normalizeClass(["nutui-popup__close-icon", "nutui-popup__close-icon--" + _ctx.closeIconPosition])
296
+ }, [
297
+ createVNode(_component_nut_icon, {
298
+ name: _ctx.closeIcon,
299
+ size: "12px"
300
+ }, null, 8, ["name"])
301
+ ], 2)) : createCommentVNode("", true)
302
+ ], 6), [
303
+ [vShow, _ctx.visible]
304
+ ])
305
+ ]),
306
+ _: 3
307
+ }, 8, ["name", "onAfterEnter", "onAfterLeave"])
308
+ ]));
246
309
  }
247
310
  var Popup = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
248
311
  export { Popup as default, popupProps };
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.19-beta.1 Sat Apr 02 2022 16:26:37 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.19-beta.2 Thu Apr 07 2022 17:52:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -44,17 +44,8 @@ const _sfc_main = create({
44
44
  [componentName]: true
45
45
  };
46
46
  });
47
- const replaceSpecialChar = (url) => {
48
- url = url.replace(/"/g, '"');
49
- url = url.replace(/&/g, "&");
50
- url = url.replace(/&lt;/g, "<");
51
- url = url.replace(/&gt;/g, ">");
52
- url = url.replace(/&nbsp;/g, " ");
53
- url = url.replace(/&yen;/g, "\uFFE5");
54
- return url;
55
- };
56
47
  const showSymbol = computed(() => {
57
- const symbol = props.needSymbol ? replaceSpecialChar(props.symbol) : "";
48
+ const symbol = props.needSymbol ? props.symbol : "";
58
49
  return symbol;
59
50
  });
60
51
  const checkPoint = (price) => {
@@ -95,8 +86,7 @@ const _sfc_main = create({
95
86
  showSymbol,
96
87
  checkPoint,
97
88
  formatThousands,
98
- formatDecimal,
99
- replaceSpecialChar
89
+ formatDecimal
100
90
  };
101
91
  }
102
92
  });
@@ -109,7 +99,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
109
99
  _ctx.needSymbol && _ctx.position == "before" ? (openBlock(), createElementBlock("view", {
110
100
  key: 0,
111
101
  class: normalizeClass(["nut-price--symbol", `nut-price--symbol-${_ctx.size}`]),
112
- decode: "true",
113
102
  innerHTML: _ctx.showSymbol
114
103
  }, null, 10, _hoisted_1)) : createCommentVNode("", true),
115
104
  createElementVNode("view", {
@@ -125,10 +114,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
125
114
  _ctx.needSymbol && _ctx.position == "after" ? (openBlock(), createElementBlock("view", {
126
115
  key: 2,
127
116
  class: normalizeClass(["nut-price--symbol", `nut-price--symbol-${_ctx.size}`]),
128
- decode: "true",
129
117
  innerHTML: _ctx.showSymbol
130
118
  }, null, 10, _hoisted_2)) : createCommentVNode("", true)
131
119
  ], 2);
132
120
  }
133
- var index_taro = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
134
- export { index_taro as default };
121
+ var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
122
+ export { index as default };
@@ -1,11 +1,10 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.19-beta.1 Sat Apr 02 2022 16:26:37 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.19-beta.2 Thu Apr 07 2022 17:52:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import { ref, computed, onMounted, resolveComponent, openBlock, createElementBlock, createElementVNode, normalizeClass, normalizeStyle, toDisplayString, createCommentVNode, createBlock } from "vue";
7
7
  import { c as createComponent } from "./component.js";
8
- import { eventCenter, getCurrentInstance } from "@tarojs/taro";
9
8
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
10
9
  const { create } = createComponent("progress");
11
10
  const _sfc_main = create({
@@ -21,7 +20,7 @@ const _sfc_main = create({
21
20
  },
22
21
  status: {
23
22
  type: String,
24
- default: "text"
23
+ default: ""
25
24
  },
26
25
  strokeWidth: {
27
26
  type: [Number, String],
@@ -64,8 +63,6 @@ const _sfc_main = create({
64
63
  const height = ref(props.strokeWidth + "px");
65
64
  const progressOuter = ref();
66
65
  const insideText = ref();
67
- const refRandomId = Math.random().toString(36).slice(-8);
68
- const randRef = ref(refRandomId);
69
66
  const bgStyle = computed(() => {
70
67
  return {
71
68
  width: props.percentage + "%",
@@ -78,28 +75,22 @@ const _sfc_main = create({
78
75
  };
79
76
  });
80
77
  onMounted(() => {
81
- eventCenter.once(getCurrentInstance().router.onReady, () => {
82
- });
83
78
  });
84
79
  return {
85
80
  height,
86
81
  bgStyle,
87
82
  textStyle,
88
83
  progressOuter,
89
- insideText,
90
- randRef
84
+ insideText
91
85
  };
92
86
  }
93
87
  });
94
88
  const _hoisted_1 = { class: "nut-progress" };
95
- const _hoisted_2 = ["id"];
96
- const _hoisted_3 = ["id"];
97
89
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
98
90
  const _component_nut_icon = resolveComponent("nut-icon");
99
91
  return openBlock(), createElementBlock("div", _hoisted_1, [
100
92
  createElementVNode("div", {
101
93
  class: normalizeClass(["nut-progress-outer", [_ctx.showText && !_ctx.textInside ? "nut-progress-outer-part" : "", _ctx.size ? "nut-progress-" + _ctx.size : ""]]),
102
- id: "nut-progress-outer-taro-" + _ctx.randRef,
103
94
  ref: "progressOuter",
104
95
  style: normalizeStyle({ height: _ctx.height })
105
96
  }, [
@@ -111,7 +102,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
111
102
  key: 0,
112
103
  class: "nut-progress-text nut-progress-insidetext",
113
104
  ref: "insideText",
114
- id: "nut-progress-insidetext-taro-" + _ctx.randRef,
115
105
  style: normalizeStyle({
116
106
  lineHeight: _ctx.height,
117
107
  left: `${_ctx.percentage}%`,
@@ -122,15 +112,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
122
112
  createElementVNode("span", {
123
113
  style: normalizeStyle(_ctx.textStyle)
124
114
  }, toDisplayString(_ctx.percentage) + toDisplayString(_ctx.isShowPercentage ? "%" : ""), 5)
125
- ], 12, _hoisted_3)) : createCommentVNode("", true)
115
+ ], 4)) : createCommentVNode("", true)
126
116
  ], 6)
127
- ], 14, _hoisted_2),
117
+ ], 6),
128
118
  _ctx.showText && !_ctx.textInside ? (openBlock(), createElementBlock("div", {
129
119
  key: 0,
130
120
  class: "nut-progress-text",
131
121
  style: normalizeStyle({ lineHeight: _ctx.height })
132
122
  }, [
133
- _ctx.status == "text" || _ctx.status == "active" ? (openBlock(), createElementBlock("span", {
123
+ _ctx.status == "active" || _ctx.status == "" ? (openBlock(), createElementBlock("span", {
134
124
  key: 0,
135
125
  style: normalizeStyle(_ctx.textStyle)
136
126
  }, toDisplayString(_ctx.percentage) + toDisplayString(_ctx.isShowPercentage ? "%" : ""), 5)) : _ctx.status == "icon" ? (openBlock(), createBlock(_component_nut_icon, {
@@ -142,5 +132,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
142
132
  ], 4)) : createCommentVNode("", true)
143
133
  ]);
144
134
  }
145
- var index_taro = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
146
- export { index_taro as default };
135
+ var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
136
+ export { index as default };
@@ -15,7 +15,7 @@ var __spreadValues = (a, b) => {
15
15
  return a;
16
16
  };
17
17
  /*!
18
- * @nutui/nutui v3.1.19-beta.1 Sat Apr 02 2022 16:26:37 GMT+0800 (中国标准时间)
18
+ * @nutui/nutui v3.1.19-beta.2 Thu Apr 07 2022 17:52:31 GMT+0800 (中国标准时间)
19
19
  * (c) 2022 @jdf2e.
20
20
  * Released under the MIT License.
21
21
  */
@@ -1,11 +1,11 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.19-beta.1 Sat Apr 02 2022 16:26:37 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.19-beta.2 Thu Apr 07 2022 17:52:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import { inject, computed, h } from "vue";
7
- import _sfc_main$1 from "./Icon.js";
8
7
  import { c as createComponent } from "./component.js";
8
+ import _sfc_main$1 from "./Icon.js";
9
9
  import "./pxCheck.js";
10
10
  const { componentName, create } = createComponent("radio");
11
11
  const _sfc_main = create({
@@ -33,6 +33,14 @@ const _sfc_main = create({
33
33
  iconSize: {
34
34
  type: [String, Number],
35
35
  default: ""
36
+ },
37
+ iconClassPrefix: {
38
+ type: String,
39
+ default: "nut-icon"
40
+ },
41
+ iconFontClassName: {
42
+ type: String,
43
+ default: "nutui-iconfont"
36
44
  }
37
45
  },
38
46
  setup(props, { emit, slots }) {
@@ -47,11 +55,13 @@ const _sfc_main = create({
47
55
  return parent.position;
48
56
  });
49
57
  const renderIcon = () => {
50
- const { iconName, iconSize, iconActiveName } = props;
58
+ const { iconName, iconSize, iconActiveName, iconClassPrefix, iconFontClassName } = props;
51
59
  return h(_sfc_main$1, {
52
60
  name: isCurValue.value ? iconActiveName : iconName,
53
61
  size: iconSize,
54
- class: color.value
62
+ class: color.value,
63
+ classPrefix: iconClassPrefix,
64
+ fontClassName: iconFontClassName
55
65
  });
56
66
  };
57
67
  const renderLabel = () => {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.19-beta.1 Sat Apr 02 2022 16:26:37 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.19-beta.2 Thu Apr 07 2022 17:52:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */