@nutui/nutui 3.2.7 → 3.2.8-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 (200) hide show
  1. package/dist/nutui.es.js +1932 -3372
  2. package/dist/nutui.umd.js +1929 -3370
  3. package/dist/packages/_es/ActionSheet.js +2 -5
  4. package/dist/packages/_es/Address.js +162 -250
  5. package/dist/packages/_es/AddressList.js +229 -307
  6. package/dist/packages/_es/Animate.js +1 -1
  7. package/dist/packages/_es/Audio.js +1 -1
  8. package/dist/packages/_es/AudioOperate.js +1 -1
  9. package/dist/packages/_es/Avatar.js +1 -1
  10. package/dist/packages/_es/AvatarGroup.js +1 -1
  11. package/dist/packages/_es/BackTop.js +1 -1
  12. package/dist/packages/_es/Badge.js +1 -1
  13. package/dist/packages/_es/Barrage.js +1 -1
  14. package/dist/packages/_es/Button.js +1 -1
  15. package/dist/packages/_es/Calendar.js +1 -1
  16. package/dist/packages/_es/CalendarItem.js +1 -1
  17. package/dist/packages/_es/Card.js +1 -1
  18. package/dist/packages/_es/Cascader.js +2 -5
  19. package/dist/packages/_es/Category.js +1 -1
  20. package/dist/packages/_es/CategoryPane.js +1 -1
  21. package/dist/packages/_es/Cell.js +1 -1
  22. package/dist/packages/_es/CellGroup.js +1 -1
  23. package/dist/packages/_es/Checkbox.js +1 -1
  24. package/dist/packages/_es/CheckboxGroup.js +1 -1
  25. package/dist/packages/_es/CircleProgress.js +2 -2
  26. package/dist/packages/_es/Col.js +1 -1
  27. package/dist/packages/_es/Collapse.js +4 -11
  28. package/dist/packages/_es/CollapseItem.js +8 -5
  29. package/dist/packages/_es/Comment.js +1 -1
  30. package/dist/packages/_es/ConfigProvider.js +1 -1
  31. package/dist/packages/_es/CountDown.js +2 -10
  32. package/dist/packages/_es/CountUp.js +1 -1
  33. package/dist/packages/_es/DatePicker.js +8 -17
  34. package/dist/packages/_es/Dialog.js +38 -63
  35. package/dist/packages/_es/Divider.js +1 -1
  36. package/dist/packages/_es/Drag.js +1 -1
  37. package/dist/packages/_es/Ecard.js +1 -1
  38. package/dist/packages/_es/Elevator.js +2 -2
  39. package/dist/packages/_es/Ellipsis.js +1 -1
  40. package/dist/packages/_es/Empty.js +1 -1
  41. package/dist/packages/_es/FixedNav.js +1 -1
  42. package/dist/packages/_es/Form.js +39 -31
  43. package/dist/packages/_es/FormItem.js +1 -1
  44. package/dist/packages/_es/Grid.js +2 -2
  45. package/dist/packages/_es/GridItem.js +1 -1
  46. package/dist/packages/_es/Icon.js +1 -1
  47. package/dist/packages/_es/Image.js +1 -1
  48. package/dist/packages/_es/ImagePreview.js +126 -220
  49. package/dist/packages/_es/Indicator.js +4 -4
  50. package/dist/packages/_es/InfiniteLoading.js +1 -1
  51. package/dist/packages/_es/Input.js +107 -123
  52. package/dist/packages/_es/InputNumber.js +1 -1
  53. package/dist/packages/_es/Invoice.js +1 -1
  54. package/dist/packages/_es/Layout.js +1 -1
  55. package/dist/packages/_es/List.js +1 -1
  56. package/dist/packages/_es/Menu.js +14 -1
  57. package/dist/packages/_es/MenuItem.js +10 -7
  58. package/dist/packages/_es/Navbar.js +1 -1
  59. package/dist/packages/_es/NoticeBar.js +1 -1
  60. package/dist/packages/_es/Notify.js +5 -7
  61. package/dist/packages/_es/NumberKeyboard.js +4 -4
  62. package/dist/packages/_es/OverLay.js +60 -63
  63. package/dist/packages/_es/Pagination.js +1 -1
  64. package/dist/packages/_es/Picker.js +25 -50
  65. package/dist/packages/_es/Popover.js +111 -930
  66. package/dist/packages/_es/Popup.js +105 -217
  67. package/dist/packages/_es/Price.js +1 -1
  68. package/dist/packages/_es/Progress.js +1 -1
  69. package/dist/packages/_es/Radio.js +1 -1
  70. package/dist/packages/_es/RadioGroup.js +1 -1
  71. package/dist/packages/_es/Range.js +1 -1
  72. package/dist/packages/_es/Rate.js +1 -1
  73. package/dist/packages/_es/Row.js +1 -1
  74. package/dist/packages/_es/SearchBar.js +1 -1
  75. package/dist/packages/_es/ShortPassword.js +4 -4
  76. package/dist/packages/_es/SideNavBar.js +1 -1
  77. package/dist/packages/_es/SideNavBarItem.js +1 -1
  78. package/dist/packages/_es/Signature.js +1 -1
  79. package/dist/packages/_es/Skeleton.js +1 -1
  80. package/dist/packages/_es/Sku.js +4 -7
  81. package/dist/packages/_es/Step.js +1 -1
  82. package/dist/packages/_es/Steps.js +1 -1
  83. package/dist/packages/_es/Sticky.js +1 -1
  84. package/dist/packages/_es/SubSideNavBar.js +1 -1
  85. package/dist/packages/_es/Swipe.js +1 -1
  86. package/dist/packages/_es/Swiper.js +1 -1
  87. package/dist/packages/_es/SwiperItem.js +1 -1
  88. package/dist/packages/_es/Switch.js +1 -1
  89. package/dist/packages/_es/TabPane.js +1 -1
  90. package/dist/packages/_es/Tabbar.js +1 -1
  91. package/dist/packages/_es/TabbarItem.js +2 -2
  92. package/dist/packages/_es/Table.js +1 -1
  93. package/dist/packages/_es/Tabs.js +2 -2
  94. package/dist/packages/_es/Tag.js +1 -1
  95. package/dist/packages/_es/TextArea.js +1 -1
  96. package/dist/packages/_es/TimeDetail.js +1 -1
  97. package/dist/packages/_es/TimePannel.js +1 -1
  98. package/dist/packages/_es/TimeSelect.js +4 -4
  99. package/dist/packages/_es/Toast.js +5 -6
  100. package/dist/packages/_es/TrendArrow.js +1 -1
  101. package/dist/packages/_es/Uploader.js +2 -2
  102. package/dist/packages/_es/Video.js +1 -1
  103. package/dist/packages/_es/WaterMark.js +1 -1
  104. package/dist/packages/_es/common.js +1 -1
  105. package/dist/packages/_es/component.js +22 -2
  106. package/dist/packages/_es/index.js +1 -1
  107. package/dist/packages/_es/index2.js +1 -1
  108. package/dist/packages/_es/index3.js +1 -1
  109. package/dist/packages/_es/index4.js +1 -1
  110. package/dist/packages/_es/index5.js +1 -1
  111. package/dist/packages/_es/interceptor.js +32 -0
  112. package/dist/packages/_es/mountComponent.js +42 -0
  113. package/dist/packages/_es/plugin-vue_export-helper.js +1 -1
  114. package/dist/packages/_es/props.js +80 -0
  115. package/dist/packages/_es/pxCheck.js +1 -1
  116. package/dist/packages/_es/raf.js +1 -1
  117. package/dist/packages/_es/style.css +1 -1
  118. package/dist/packages/address/index.scss +7 -2
  119. package/dist/packages/addresslist/index.scss +61 -101
  120. package/dist/packages/imagepreview/index.scss +9 -1
  121. package/dist/packages/inputnumber/index.scss +5 -1
  122. package/dist/packages/locale/lang/baseLang.js +1 -1
  123. package/dist/packages/locale/lang/en-US.js +1 -1
  124. package/dist/packages/locale/lang/id-ID.js +1 -1
  125. package/dist/packages/locale/lang/index.js +1 -1
  126. package/dist/packages/locale/lang/zh-CN.js +1 -1
  127. package/dist/packages/locale/lang/zh-TW.js +1 -1
  128. package/dist/packages/menuitem/index.scss +0 -15
  129. package/dist/packages/notify/index.scss +2 -2
  130. package/dist/packages/overlay/index.scss +2 -1
  131. package/dist/packages/picker/index.scss +20 -12
  132. package/dist/packages/popover/index.scss +191 -363
  133. package/dist/packages/popup/index.scss +3 -14
  134. package/dist/smartips/attributes.json +59 -55
  135. package/dist/smartips/tags.json +16 -19
  136. package/dist/smartips/web-types.json +115 -113
  137. package/dist/style.css +1 -1
  138. package/dist/styles/themes/default.scss +54 -55
  139. package/dist/styles/themes/jdb.scss +54 -55
  140. package/dist/styles/themes/jddkh.scss +54 -55
  141. package/dist/styles/themes/jdt.scss +54 -55
  142. package/dist/styles/variables.scss +9 -0
  143. package/dist/types/__VUE/actionsheet/index.vue.d.ts +61 -57
  144. package/dist/types/__VUE/address/index.vue.d.ts +74 -94
  145. package/dist/types/__VUE/addresslist/components/GeneralShell.vue.d.ts +29 -9
  146. package/dist/types/__VUE/addresslist/components/ItemContents.vue.d.ts +4 -13
  147. package/dist/types/__VUE/addresslist/components/SwipeShell.vue.d.ts +9 -9
  148. package/dist/types/__VUE/addresslist/index.vue.d.ts +23 -20
  149. package/dist/types/__VUE/calendar/index.vue.d.ts +1 -1
  150. package/dist/types/__VUE/cascader/index.vue.d.ts +49 -54
  151. package/dist/types/__VUE/cell/index.vue.d.ts +1 -1
  152. package/dist/types/__VUE/countdown/index.vue.d.ts +0 -1
  153. package/dist/types/__VUE/countdown/util.d.ts +0 -1
  154. package/dist/types/__VUE/datepicker/index.vue.d.ts +57 -62
  155. package/dist/types/__VUE/dialog/index.d.ts +0 -3
  156. package/dist/types/__VUE/dialog/index.vue.d.ts +52 -61
  157. package/dist/types/__VUE/divider/index.vue.d.ts +1 -1
  158. package/dist/types/__VUE/fixednav/index.vue.d.ts +1 -1
  159. package/dist/types/__VUE/form/common.d.ts +4 -2
  160. package/dist/types/__VUE/form/index.vue.d.ts +4 -4
  161. package/dist/types/__VUE/grid/index.vue.d.ts +1 -1
  162. package/dist/types/__VUE/image/index.vue.d.ts +1 -1
  163. package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +27 -20
  164. package/dist/types/__VUE/imagepreview/index.d.ts +19 -5
  165. package/dist/types/__VUE/imagepreview/index.vue.d.ts +57 -43
  166. package/dist/types/__VUE/imagepreview/types.d.ts +44 -0
  167. package/dist/types/__VUE/indicator/index.vue.d.ts +1 -0
  168. package/dist/types/__VUE/input/index.vue.d.ts +35 -23
  169. package/dist/types/__VUE/inputnumber/index.vue.d.ts +1 -1
  170. package/dist/types/__VUE/invoice/index.vue.d.ts +1 -1
  171. package/dist/types/__VUE/menu/index.vue.d.ts +1 -1
  172. package/dist/types/__VUE/menuitem/index.vue.d.ts +3 -3
  173. package/dist/types/__VUE/notify/index.vue.d.ts +3 -3
  174. package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +4 -4
  175. package/dist/types/__VUE/overlay/index.vue.d.ts +12 -13
  176. package/dist/types/__VUE/picker/Column.vue.d.ts +0 -2
  177. package/dist/types/__VUE/picker/index.vue.d.ts +59 -66
  178. package/dist/types/__VUE/popover/index.vue.d.ts +40 -143
  179. package/dist/types/__VUE/popup/common.d.ts +103 -0
  180. package/dist/types/__VUE/popup/index.vue.d.ts +57 -1593
  181. package/dist/types/__VUE/popup/props.d.ts +82 -0
  182. package/dist/types/__VUE/rate/index.vue.d.ts +1 -1
  183. package/dist/types/__VUE/shortpassword/index.vue.d.ts +5 -5
  184. package/dist/types/__VUE/sku/index.vue.d.ts +59 -64
  185. package/dist/types/__VUE/swipe/index.vue.d.ts +2 -2
  186. package/dist/types/__VUE/switch/index.vue.d.ts +1 -1
  187. package/dist/types/__VUE/tabbar/index.vue.d.ts +1 -1
  188. package/dist/types/__VUE/timeselect/index.vue.d.ts +3 -3
  189. package/dist/types/__VUE/video/index.vue.d.ts +2 -2
  190. package/dist/types/index.d.ts +1 -1
  191. package/dist/types/nutui.d.ts +1 -2
  192. package/package.json +2 -3
  193. package/dist/packages/_es/PullRefresh.js +0 -349
  194. package/dist/packages/pullrefresh/index.scss +0 -71
  195. package/dist/types/__VUE/addresslist/components/LongPressShell.vue.d.ts +0 -47
  196. package/dist/types/__VUE/datepicker/utils.d.ts +0 -5
  197. package/dist/types/__VUE/popup/use-lock-scroll.d.ts +0 -5
  198. package/dist/types/__VUE/pullrefresh/index.vue.d.ts +0 -128
  199. package/dist/types/__VUE/pullrefresh/use-touch.d.ts +0 -20
  200. package/dist/types/__VUE/pullrefresh/util.d.ts +0 -6
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.7 Fri Nov 18 2022 19:57:44 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.8-beta.1 Fri Dec 02 2022 14:18:21 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.7 Fri Nov 18 2022 19:57:44 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.8-beta.1 Fri Dec 02 2022 14:18:21 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.7 Fri Nov 18 2022 19:57:44 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.8-beta.1 Fri Dec 02 2022 14:18:21 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.7 Fri Nov 18 2022 19:57:44 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.8-beta.1 Fri Dec 02 2022 14:18:21 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.7 Fri Nov 18 2022 19:57:44 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.8-beta.1 Fri Dec 02 2022 14:18:21 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -36,7 +36,7 @@ const _sfc_main = create({
36
36
  type: [Boolean],
37
37
  default: false
38
38
  },
39
- isWrapTeleport: {
39
+ teleportDisable: {
40
40
  type: Boolean,
41
41
  default: false
42
42
  }
@@ -84,7 +84,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
84
84
  position: "bottom",
85
85
  closeable: "",
86
86
  round: "",
87
- isWrapTeleport: _ctx.isWrapTeleport,
87
+ teleportDisable: _ctx.teleportDisable,
88
88
  visible: _ctx.visible,
89
89
  style: normalizeStyle(_ctx.popStyle),
90
90
  "lock-scroll": _ctx.lockScroll,
@@ -111,7 +111,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
111
111
  ], 2)
112
112
  ]),
113
113
  _: 3
114
- }, 8, ["isWrapTeleport", "visible", "style", "lock-scroll", "onClickOverlay", "onClickCloseIcon"]);
114
+ }, 8, ["teleportDisable", "visible", "style", "lock-scroll", "onClickOverlay", "onClickCloseIcon"]);
115
115
  }
116
116
  var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
117
117
  export { index as default };
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.7 Fri Nov 18 2022 19:57:44 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.8-beta.1 Fri Dec 02 2022 14:18:21 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -8,6 +8,7 @@ import { c as createComponent } from "./component.js";
8
8
  import _sfc_main$1 from "./Icon.js";
9
9
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
10
10
  import "../locale/lang";
11
+ import { C as CreateComponent } from "./mountComponent.js";
11
12
  import "./pxCheck.js";
12
13
  const { create } = createComponent("toast");
13
14
  const _sfc_main = create({
@@ -272,11 +273,9 @@ const mountToast = (opts) => {
272
273
  opts.id = _id;
273
274
  idsMap.push(opts.id);
274
275
  optsMap.push(opts);
275
- const container = document.createElement("div");
276
- container.id = opts.id;
277
- const instance = createVNode(Toast, opts);
278
- render(instance, container);
279
- document.body.appendChild(container);
276
+ CreateComponent(opts, {
277
+ wrapper: Toast
278
+ });
280
279
  return ToastFunction;
281
280
  };
282
281
  const errorMsg = (msg) => {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.7 Fri Nov 18 2022 19:57:44 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.8-beta.1 Fri Dec 02 2022 14:18:21 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,10 +1,10 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.7 Fri Nov 18 2022 19:57:44 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.8-beta.1 Fri Dec 02 2022 14:18:21 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import { reactive, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, renderSlot, Fragment, createCommentVNode, renderList, createElementVNode, toDisplayString, createVNode, createBlock, mergeProps, createTextVNode } from "vue";
7
- import { c as createComponent, i as isPromise } from "./component.js";
7
+ import { c as createComponent, d as isPromise } from "./component.js";
8
8
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
9
9
  import "../locale/lang";
10
10
  class UploadOptions {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.7 Fri Nov 18 2022 19:57:44 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.8-beta.1 Fri Dec 02 2022 14:18:21 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.7 Fri Nov 18 2022 19:57:44 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.8-beta.1 Fri Dec 02 2022 14:18:21 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.7 Fri Nov 18 2022 19:57:44 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.8-beta.1 Fri Dec 02 2022 14:18:21 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.7 Fri Nov 18 2022 19:57:44 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.8-beta.1 Fri Dec 02 2022 14:18:21 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -41,11 +41,16 @@ const TypeOfFun = (value) => {
41
41
  return "unknow";
42
42
  }
43
43
  };
44
+ const isArray = Array.isArray;
45
+ const isDate = (val) => val instanceof Date;
44
46
  const isFunction = (val) => typeof val === "function";
47
+ const isString = (val) => typeof val === "string";
45
48
  const isObject = (val) => val !== null && typeof val === "object";
46
49
  const isPromise = (val) => {
47
50
  return isObject(val) && isFunction(val.then) && isFunction(val.catch);
48
51
  };
52
+ const docu = document;
53
+ const body = docu.body;
49
54
  const getPropByPath = (obj, keyPath) => {
50
55
  try {
51
56
  return keyPath.split(".").reduce((prev, curr) => prev[curr], obj);
@@ -82,6 +87,21 @@ function myFixed(num, digit = 2) {
82
87
  num = parseFloat(num);
83
88
  return (Math.round((num + Number.EPSILON) * Math.pow(10, digit)) / Math.pow(10, digit)).toFixed(digit);
84
89
  }
90
+ function preventDefault(event, isStopPropagation) {
91
+ if (typeof event.cancelable !== "boolean" || event.cancelable) {
92
+ event.preventDefault();
93
+ }
94
+ if (isStopPropagation) {
95
+ event.stopPropagation();
96
+ }
97
+ }
98
+ const padZero = (num, length = 2) => {
99
+ num += "";
100
+ while (num.length < length) {
101
+ num = "0" + num;
102
+ }
103
+ return num.toString();
104
+ };
85
105
  function createComponent(name) {
86
106
  const componentName = "nut-" + name;
87
107
  return {
@@ -106,4 +126,4 @@ function createComponent(name) {
106
126
  }
107
127
  };
108
128
  }
109
- export { TypeOfFun as T, isObject as a, createComponent as c, floatData as f, getPropByPath as g, isPromise as i, myFixed as m };
129
+ export { TypeOfFun as T, preventDefault as a, body as b, createComponent as c, isPromise as d, isObject as e, isString as f, getPropByPath as g, isFunction as h, isDate as i, isArray as j, floatData as k, myFixed as m, padZero as p };
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.7 Fri Nov 18 2022 19:57:44 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.8-beta.1 Fri Dec 02 2022 14:18:21 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.7 Fri Nov 18 2022 19:57:44 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.8-beta.1 Fri Dec 02 2022 14:18:21 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.7 Fri Nov 18 2022 19:57:44 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.8-beta.1 Fri Dec 02 2022 14:18:21 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.7 Fri Nov 18 2022 19:57:44 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.8-beta.1 Fri Dec 02 2022 14:18:21 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.7 Fri Nov 18 2022 19:57:44 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.8-beta.1 Fri Dec 02 2022 14:18:21 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -0,0 +1,32 @@
1
+ /*!
2
+ * @nutui/nutui v3.2.8-beta.1 Fri Dec 02 2022 14:18:21 GMT+0800 (中国标准时间)
3
+ * (c) 2022 @jdf2e.
4
+ * Released under the MIT License.
5
+ */
6
+ import { d as isPromise } from "./component.js";
7
+ const funInterceptor = (interceptor, {
8
+ args = [],
9
+ done,
10
+ canceled
11
+ }) => {
12
+ if (interceptor) {
13
+ const returnVal = interceptor.apply(null, args);
14
+ if (isPromise(returnVal)) {
15
+ returnVal.then((value) => {
16
+ if (value) {
17
+ done();
18
+ } else if (canceled) {
19
+ canceled();
20
+ }
21
+ }).catch(() => {
22
+ });
23
+ } else if (returnVal) {
24
+ done();
25
+ } else if (canceled) {
26
+ canceled();
27
+ }
28
+ } else {
29
+ done();
30
+ }
31
+ };
32
+ export { funInterceptor as f };
@@ -0,0 +1,42 @@
1
+ /*!
2
+ * @nutui/nutui v3.2.8-beta.1 Fri Dec 02 2022 14:18:21 GMT+0800 (中国标准时间)
3
+ * (c) 2022 @jdf2e.
4
+ * Released under the MIT License.
5
+ */
6
+ import { createApp } from "vue";
7
+ import { f as isString, h as isFunction } from "./component.js";
8
+ const CreateComponent = (options, component) => {
9
+ let elWarp = document.body;
10
+ const teleport = options.teleport || "body";
11
+ if (teleport != "body") {
12
+ if (isString(teleport)) {
13
+ elWarp = document.querySelector(teleport);
14
+ } else {
15
+ elWarp = options.teleport;
16
+ }
17
+ }
18
+ const root = document.createElement("view");
19
+ const name = component.name && component.name + "-";
20
+ const id1 = options.id || new Date().getTime();
21
+ root.id = name + id1;
22
+ let Wrapper = {};
23
+ if (isFunction(component.wrapper)) {
24
+ Wrapper = component.wrapper(elWarp, root);
25
+ } else {
26
+ Wrapper = component.wrapper;
27
+ }
28
+ const instance = createApp(Wrapper, options);
29
+ const componens = component.components;
30
+ componens && componens.forEach((comp) => {
31
+ instance.use(comp);
32
+ });
33
+ elWarp.appendChild(root);
34
+ return {
35
+ instance: instance.mount(root),
36
+ unmount: () => {
37
+ instance.unmount();
38
+ elWarp.removeChild(root);
39
+ }
40
+ };
41
+ };
42
+ export { CreateComponent as C };
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.7 Fri Nov 18 2022 19:57:44 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.8-beta.1 Fri Dec 02 2022 14:18:21 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -0,0 +1,80 @@
1
+ /*!
2
+ * @nutui/nutui v3.2.8-beta.1 Fri Dec 02 2022 14:18:21 GMT+0800 (中国标准时间)
3
+ * (c) 2022 @jdf2e.
4
+ * Released under the MIT License.
5
+ */
6
+ const popupProps = {
7
+ visible: {
8
+ type: Boolean,
9
+ default: false
10
+ },
11
+ zIndex: {
12
+ type: [Number, String],
13
+ default: 2e3
14
+ },
15
+ duration: {
16
+ type: [Number, String],
17
+ default: 0.3
18
+ },
19
+ lockScroll: {
20
+ type: Boolean,
21
+ default: false
22
+ },
23
+ closeOnClickOverlay: {
24
+ type: Boolean,
25
+ default: true
26
+ },
27
+ position: {
28
+ type: String,
29
+ default: "center"
30
+ },
31
+ transition: {
32
+ type: String,
33
+ default: ""
34
+ },
35
+ style: {
36
+ type: Object,
37
+ default: {}
38
+ },
39
+ popClass: {
40
+ type: String,
41
+ default: ""
42
+ },
43
+ closeable: {
44
+ type: Boolean,
45
+ default: false
46
+ },
47
+ closeIconPosition: {
48
+ type: String,
49
+ default: "top-right"
50
+ },
51
+ closeIcon: {
52
+ type: String,
53
+ default: "close"
54
+ },
55
+ destroyOnClose: {
56
+ type: Boolean,
57
+ default: true
58
+ },
59
+ teleport: {
60
+ type: [String, Element],
61
+ default: "body"
62
+ },
63
+ overlay: {
64
+ type: Boolean,
65
+ default: true
66
+ },
67
+ round: {
68
+ type: Boolean,
69
+ default: false
70
+ },
71
+ teleportDisable: {
72
+ type: Boolean,
73
+ default: false
74
+ },
75
+ safeAreaInsetBottom: {
76
+ type: Boolean,
77
+ default: false
78
+ }
79
+ };
80
+ export { popupProps as p };
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.7 Fri Nov 18 2022 19:57:44 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.8-beta.1 Fri Dec 02 2022 14:18:21 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.7 Fri Nov 18 2022 19:57:44 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.8-beta.1 Fri Dec 02 2022 14:18:21 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -13,4 +13,4 @@ from {
13
13
  to {
14
14
  transform: translateX(var(--01d702ea));
15
15
  }
16
- }/* @import './index.scss'; */
16
+ }
@@ -9,7 +9,7 @@
9
9
  }
10
10
 
11
11
  .custom-address {
12
- .region-tab {
12
+ .nut-address-region-tab {
13
13
  color: $dark-color;
14
14
  }
15
15
  .region-con {
@@ -63,7 +63,7 @@
63
63
  // 请选择
64
64
  .custom-address {
65
65
  display: block;
66
- .region-tab {
66
+ .nut-address-region-tab {
67
67
  position: relative;
68
68
  margin-top: 32px;
69
69
  padding: 0 20px;
@@ -235,4 +235,9 @@
235
235
  color: $white;
236
236
  }
237
237
  }
238
+
239
+ &-select-icon {
240
+ margin-right: $address-item-margin-right;
241
+ color: $address-icon-color !important;
242
+ }
238
243
  }
@@ -1,34 +1,19 @@
1
1
  .nut-theme-dark {
2
2
  .nut-addresslist {
3
- .nut-long-press-shell {
4
- &__contain {
5
- background-color: $dark-background2;
6
- border-bottom: 1px solid $dark-color-gray;
7
- color: $dark-color;
8
- &-mask {
9
- background-color: $dark-color3;
10
- &-copy {
11
- color: $dark-color-gray;
12
- background-color: $dark-color;
13
- }
14
- }
15
- }
16
- }
17
- .nut-swipe-shell,
18
- .nut-general-shell {
3
+ &-swipe,
4
+ &-general {
19
5
  background-color: $dark-background2;
20
6
  border-bottom: 1px solid $dark-color-gray;
21
7
  color: $dark-color;
22
- }
23
- .nut-item-contents {
24
- &__info {
25
- &-contact {
26
- &-default {
27
- background: $addresslist-contnts-contact-default;
28
- color: $addresslist-contnts-contact-color;
29
- }
8
+ &__mask {
9
+ background-color: $dark-color3;
10
+ &-copy {
11
+ color: $dark-color-gray;
12
+ background-color: $dark-color;
30
13
  }
31
14
  }
15
+ }
16
+ &-item {
32
17
  &__addr {
33
18
  color: $dark-color-gray;
34
19
  }
@@ -40,73 +25,11 @@
40
25
  }
41
26
  .nut-addresslist {
42
27
  overflow: hidden;
43
- .nut-long-press-shell {
44
- &__contain {
45
- width: 100%;
46
- min-height: 76px;
47
- padding: 5px 10px;
48
- background-color: $addresslist-bg;
49
- border-bottom: 1px solid $addresslist-border;
50
- color: $addresslist-font-color;
51
- font-size: $addresslist-font-size;
52
- display: flex;
53
- align-items: center;
54
- position: relative;
55
- box-sizing: border-box;
56
- &-mask {
57
- position: absolute;
58
- top: 0;
59
- left: 0;
60
- bottom: 0;
61
- right: 0;
62
- background-color: $addresslist-mask-bg;
63
- display: flex;
64
- justify-content: space-around;
65
- align-items: center;
66
- padding: 0 40px;
67
- z-index: 2001;
68
- &-copy,
69
- &-set,
70
- &-del {
71
- height: 55px;
72
- width: 55px;
73
- border-radius: 50%;
74
- text-align: center;
75
- background-color: $white;
76
- font-size: 14px;
77
- display: flex;
78
- justify-content: center;
79
- align-items: center;
80
- }
81
- &-set {
82
- color: $white;
83
- background-color: $addresslist-set-bg;
84
- }
85
- &-del {
86
- color: $white;
87
- background-color: $addresslist-del-bg;
88
- }
89
- }
90
- }
91
- //设置mask
92
- &__mask-bottom {
93
- position: fixed;
94
- top: 0;
95
- bottom: 0;
96
- left: 0;
97
- right: 0;
98
- z-index: 2000;
99
- background-color: transparent;
100
- }
28
+ &:last-child {
29
+ padding-bottom: 84px;
101
30
  }
102
- .nut-long-press-shell:last-child {
103
- &__contain {
104
- border-bottom: none;
105
- }
106
- }
107
- .nut-swipe-shell,
108
- .nut-general-shell {
109
- // width:100%;
31
+ &-swipe,
32
+ &-general {
110
33
  min-height: 76px;
111
34
  padding: 5px 10px;
112
35
  background-color: $addresslist-bg;
@@ -116,15 +39,46 @@
116
39
  display: flex;
117
40
  align-items: center;
118
41
  position: relative;
119
- }
120
- .nut-swipe-shell:last-child,
121
- .nut-general-shell:last-child {
122
- border-bottom: none;
123
- }
124
- .nut-item-contents {
125
- &__contain {
126
- width: 100%;
42
+ &:last-child {
43
+ border-bottom: none;
44
+ }
45
+ &__mask {
46
+ position: absolute;
47
+ top: 0;
48
+ left: 0;
49
+ bottom: 0;
50
+ right: 0;
51
+ background-color: $addresslist-mask-bg;
52
+ display: flex;
53
+ justify-content: space-around;
54
+ align-items: center;
55
+ padding: 0 40px;
56
+ z-index: 2001;
57
+ &-copy,
58
+ &-set,
59
+ &-del {
60
+ height: 55px;
61
+ width: 55px;
62
+ border-radius: 50%;
63
+ text-align: center;
64
+ background-color: $white;
65
+ font-size: 14px;
66
+ display: flex;
67
+ justify-content: center;
68
+ align-items: center;
69
+ }
70
+ &-set {
71
+ color: $white;
72
+ background-color: $addresslist-set-bg;
73
+ }
74
+ &-del {
75
+ color: $white;
76
+ background-color: $addresslist-del-bg;
77
+ }
127
78
  }
79
+ }
80
+ &-item {
81
+ width: 100%;
128
82
  &__info {
129
83
  display: flex;
130
84
  justify-content: space-between;
@@ -178,7 +132,13 @@
178
132
  background-color: $addresslist-bg;
179
133
  box-sizing: border-box;
180
134
  }
181
- }
182
- .nut-addresslist:last-child {
183
- padding-bottom: 84px;
135
+ .nut-addresslist__mask-bottom {
136
+ position: fixed;
137
+ top: 0;
138
+ bottom: 0;
139
+ left: 0;
140
+ right: 0;
141
+ z-index: 2000;
142
+ background-color: transparent;
143
+ }
184
144
  }
@@ -40,6 +40,13 @@
40
40
  z-index: 2002;
41
41
  top: 50px;
42
42
  right: 15px;
43
+
44
+ &-right {
45
+ right: 10px;
46
+ }
47
+ &-left {
48
+ left: 10px;
49
+ }
43
50
  }
44
51
 
45
52
  .popup-bg {
@@ -52,11 +59,12 @@
52
59
  background-color: transparent;
53
60
  }
54
61
  }
55
- .custom-pop {
62
+ .nut-imagepreview-custom-pop {
56
63
  height: 100%;
57
64
  background: transparent !important;
58
65
  display: flex;
59
66
  align-items: center;
67
+ width: 100%;
60
68
  }
61
69
  .nut-imagepreview-swiper .nut-swiper-item {
62
70
  display: flex;