@nutui/nutui 3.2.6 → 3.2.8-beta.0

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 (239) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/README.md +11 -1
  3. package/dist/nutui.es.js +2685 -4599
  4. package/dist/nutui.umd.js +2684 -4600
  5. package/dist/packages/_es/ActionSheet.js +2 -5
  6. package/dist/packages/_es/Address.js +162 -250
  7. package/dist/packages/_es/AddressList.js +229 -307
  8. package/dist/packages/_es/Animate.js +1 -1
  9. package/dist/packages/_es/Audio.js +1 -1
  10. package/dist/packages/_es/AudioOperate.js +1 -1
  11. package/dist/packages/_es/Avatar.js +1 -1
  12. package/dist/packages/_es/AvatarGroup.js +1 -1
  13. package/dist/packages/_es/BackTop.js +1 -1
  14. package/dist/packages/_es/Badge.js +1 -1
  15. package/dist/packages/_es/Barrage.js +1 -1
  16. package/dist/packages/_es/Button.js +1 -1
  17. package/dist/packages/_es/Calendar.js +11 -4
  18. package/dist/packages/_es/CalendarItem.js +1 -1
  19. package/dist/packages/_es/Card.js +1 -1
  20. package/dist/packages/_es/Cascader.js +2 -5
  21. package/dist/packages/_es/Category.js +1 -1
  22. package/dist/packages/_es/CategoryPane.js +1 -1
  23. package/dist/packages/_es/Cell.js +1 -1
  24. package/dist/packages/_es/CellGroup.js +1 -1
  25. package/dist/packages/_es/Checkbox.js +1 -1
  26. package/dist/packages/_es/CheckboxGroup.js +1 -1
  27. package/dist/packages/_es/CircleProgress.js +2 -2
  28. package/dist/packages/_es/Col.js +1 -1
  29. package/dist/packages/_es/Collapse.js +4 -11
  30. package/dist/packages/_es/CollapseItem.js +12 -12
  31. package/dist/packages/_es/Comment.js +1 -1
  32. package/dist/packages/_es/ConfigProvider.js +1 -1
  33. package/dist/packages/_es/CountDown.js +2 -10
  34. package/dist/packages/_es/CountUp.js +1 -1
  35. package/dist/packages/_es/DatePicker.js +8 -17
  36. package/dist/packages/_es/Dialog.js +38 -63
  37. package/dist/packages/_es/Divider.js +1 -1
  38. package/dist/packages/_es/Drag.js +1 -1
  39. package/dist/packages/_es/Ecard.js +1 -1
  40. package/dist/packages/_es/Elevator.js +9 -3
  41. package/dist/packages/_es/Ellipsis.js +3 -3
  42. package/dist/packages/_es/Empty.js +1 -1
  43. package/dist/packages/_es/FixedNav.js +1 -1
  44. package/dist/packages/_es/Form.js +39 -31
  45. package/dist/packages/_es/FormItem.js +1 -1
  46. package/dist/packages/_es/Grid.js +2 -2
  47. package/dist/packages/_es/GridItem.js +1 -1
  48. package/dist/packages/_es/Icon.js +1 -1
  49. package/dist/packages/_es/Image.js +1 -1
  50. package/dist/packages/_es/ImagePreview.js +131 -214
  51. package/dist/packages/_es/Indicator.js +4 -4
  52. package/dist/packages/_es/InfiniteLoading.js +9 -2
  53. package/dist/packages/_es/Input.js +109 -132
  54. package/dist/packages/_es/InputNumber.js +1 -1
  55. package/dist/packages/_es/Invoice.js +1 -1
  56. package/dist/packages/_es/Layout.js +1 -1
  57. package/dist/packages/_es/List.js +1 -1
  58. package/dist/packages/_es/Menu.js +14 -1
  59. package/dist/packages/_es/MenuItem.js +14 -8
  60. package/dist/packages/_es/Navbar.js +1 -1
  61. package/dist/packages/_es/NoticeBar.js +1 -1
  62. package/dist/packages/_es/Notify.js +5 -7
  63. package/dist/packages/_es/NumberKeyboard.js +4 -4
  64. package/dist/packages/_es/OverLay.js +60 -63
  65. package/dist/packages/_es/Pagination.js +1 -1
  66. package/dist/packages/_es/Picker.js +25 -50
  67. package/dist/packages/_es/Popover.js +111 -930
  68. package/dist/packages/_es/Popup.js +108 -261
  69. package/dist/packages/_es/Price.js +1 -1
  70. package/dist/packages/_es/Progress.js +1 -1
  71. package/dist/packages/_es/Radio.js +1 -1
  72. package/dist/packages/_es/RadioGroup.js +1 -1
  73. package/dist/packages/_es/Range.js +1 -1
  74. package/dist/packages/_es/Rate.js +1 -1
  75. package/dist/packages/_es/Row.js +1 -1
  76. package/dist/packages/_es/SearchBar.js +1 -1
  77. package/dist/packages/_es/ShortPassword.js +4 -4
  78. package/dist/packages/_es/SideNavBar.js +1 -1
  79. package/dist/packages/_es/SideNavBarItem.js +1 -1
  80. package/dist/packages/_es/Signature.js +1 -1
  81. package/dist/packages/_es/Skeleton.js +19 -24
  82. package/dist/packages/_es/Sku.js +4 -7
  83. package/dist/packages/_es/Step.js +1 -1
  84. package/dist/packages/_es/Steps.js +1 -1
  85. package/dist/packages/_es/Sticky.js +1 -1
  86. package/dist/packages/_es/SubSideNavBar.js +1 -1
  87. package/dist/packages/_es/Swipe.js +1 -1
  88. package/dist/packages/_es/Swiper.js +1 -1
  89. package/dist/packages/_es/SwiperItem.js +1 -1
  90. package/dist/packages/_es/Switch.js +1 -1
  91. package/dist/packages/_es/TabPane.js +1 -1
  92. package/dist/packages/_es/Tabbar.js +1 -1
  93. package/dist/packages/_es/TabbarItem.js +24 -10
  94. package/dist/packages/_es/Table.js +1 -1
  95. package/dist/packages/_es/Tabs.js +2 -2
  96. package/dist/packages/_es/Tag.js +1 -1
  97. package/dist/packages/_es/TextArea.js +1 -1
  98. package/dist/packages/_es/TimeDetail.js +1 -1
  99. package/dist/packages/_es/TimePannel.js +1 -1
  100. package/dist/packages/_es/TimeSelect.js +4 -4
  101. package/dist/packages/_es/Toast.js +5 -6
  102. package/dist/packages/_es/TrendArrow.js +1 -1
  103. package/dist/packages/_es/Uploader.js +7 -7
  104. package/dist/packages/_es/Video.js +3 -2
  105. package/dist/packages/_es/WaterMark.js +1 -1
  106. package/dist/packages/_es/common.js +1 -1
  107. package/dist/packages/_es/component.js +22 -2
  108. package/dist/packages/_es/index.js +1 -1
  109. package/dist/packages/_es/index2.js +1 -1
  110. package/dist/packages/_es/index3.js +1 -1
  111. package/dist/packages/_es/index4.js +1 -1
  112. package/dist/packages/_es/index5.js +8 -2
  113. package/dist/packages/_es/interceptor.js +32 -0
  114. package/dist/packages/_es/mountComponent.js +42 -0
  115. package/dist/packages/_es/plugin-vue_export-helper.js +1 -1
  116. package/dist/packages/_es/props.js +80 -0
  117. package/dist/packages/_es/pxCheck.js +1 -1
  118. package/dist/packages/_es/raf.js +1 -1
  119. package/dist/packages/_es/style.css +1 -1
  120. package/dist/packages/address/index.scss +12 -3
  121. package/dist/packages/addresslist/index.scss +61 -101
  122. package/dist/packages/card/index.scss +1 -0
  123. package/dist/packages/ellipsis/index.scss +4 -0
  124. package/dist/packages/formitem/index.scss +2 -0
  125. package/dist/packages/imagepreview/index.scss +14 -1
  126. package/dist/packages/inputnumber/index.scss +5 -1
  127. package/dist/packages/locale/lang/baseLang.js +1 -1
  128. package/dist/packages/locale/lang/en-US.js +1 -1
  129. package/dist/packages/locale/lang/id-ID.js +1 -1
  130. package/dist/packages/locale/lang/index.js +1 -1
  131. package/dist/packages/locale/lang/zh-CN.js +1 -1
  132. package/dist/packages/locale/lang/zh-TW.js +1 -1
  133. package/dist/packages/menuitem/index.scss +0 -14
  134. package/dist/packages/notify/index.scss +2 -2
  135. package/dist/packages/overlay/index.scss +2 -1
  136. package/dist/packages/picker/index.scss +20 -12
  137. package/dist/packages/popover/index.scss +191 -363
  138. package/dist/packages/popup/index.scss +3 -14
  139. package/dist/packages/signature/index.scss +6 -2
  140. package/dist/packages/skeleton/index.scss +21 -19
  141. package/dist/packages/sticky/index.scss +3 -0
  142. package/dist/packages/tabbaritem/index.scss +4 -0
  143. package/dist/packages/timeselect/index.scss +0 -1
  144. package/dist/smartips/attributes.json +91 -111
  145. package/dist/smartips/tags.json +22 -35
  146. package/dist/smartips/web-types.json +162 -221
  147. package/dist/style.css +1 -1
  148. package/dist/styles/font/config.json +4 -0
  149. package/dist/styles/font/demo_index.html +118 -26
  150. package/dist/styles/font/iconfont.css +23 -7
  151. package/dist/styles/font/iconfont.js +6 -6
  152. package/dist/styles/font/iconfont.json +35 -7
  153. package/dist/styles/font/iconfont.ttf +0 -0
  154. package/dist/styles/font/iconfont.woff +0 -0
  155. package/dist/styles/font/iconfont.woff2 +0 -0
  156. package/dist/styles/themes/default.scss +52 -54
  157. package/dist/styles/themes/jdb.scss +52 -54
  158. package/dist/styles/themes/jddkh.scss +52 -54
  159. package/dist/styles/themes/jdt.scss +52 -54
  160. package/dist/styles/variables-jdb.scss +8 -1
  161. package/dist/styles/variables-jddkh.scss +8 -1
  162. package/dist/styles/variables-jdt.scss +8 -1
  163. package/dist/styles/variables.scss +17 -1
  164. package/dist/types/__VUE/actionsheet/index.vue.d.ts +58 -54
  165. package/dist/types/__VUE/address/index.vue.d.ts +71 -91
  166. package/dist/types/__VUE/addresslist/components/GeneralShell.vue.d.ts +29 -9
  167. package/dist/types/__VUE/addresslist/components/ItemContents.vue.d.ts +4 -13
  168. package/dist/types/__VUE/addresslist/components/SwipeShell.vue.d.ts +9 -9
  169. package/dist/types/__VUE/addresslist/index.vue.d.ts +23 -20
  170. package/dist/types/__VUE/audio/index.vue.d.ts +4 -4
  171. package/dist/types/__VUE/avatar/index.vue.d.ts +2 -2
  172. package/dist/types/__VUE/avatargroup/index.vue.d.ts +1 -1
  173. package/dist/types/__VUE/backtop/index.vue.d.ts +1 -1
  174. package/dist/types/__VUE/badge/index.vue.d.ts +1 -1
  175. package/dist/types/__VUE/button/index.vue.d.ts +1 -1
  176. package/dist/types/__VUE/calendar/index.vue.d.ts +11 -0
  177. package/dist/types/__VUE/calendaritem/index.vue.d.ts +15 -5
  178. package/dist/types/__VUE/cascader/index.vue.d.ts +47 -52
  179. package/dist/types/__VUE/cell/index.vue.d.ts +5 -5
  180. package/dist/types/__VUE/collapseitem/index.vue.d.ts +1 -1
  181. package/dist/types/__VUE/countdown/index.vue.d.ts +0 -1
  182. package/dist/types/__VUE/countdown/util.d.ts +0 -1
  183. package/dist/types/__VUE/countup/index.vue.d.ts +2 -2
  184. package/dist/types/__VUE/datepicker/index.vue.d.ts +55 -60
  185. package/dist/types/__VUE/dialog/index.d.ts +0 -3
  186. package/dist/types/__VUE/dialog/index.vue.d.ts +48 -57
  187. package/dist/types/__VUE/elevator/index.vue.d.ts +2 -1
  188. package/dist/types/__VUE/form/common.d.ts +4 -2
  189. package/dist/types/__VUE/form/index.vue.d.ts +4 -4
  190. package/dist/types/__VUE/grid/index.vue.d.ts +2 -2
  191. package/dist/types/__VUE/image/index.vue.d.ts +1 -1
  192. package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +27 -20
  193. package/dist/types/__VUE/imagepreview/index.d.ts +19 -5
  194. package/dist/types/__VUE/imagepreview/index.vue.d.ts +56 -42
  195. package/dist/types/__VUE/imagepreview/types.d.ts +44 -0
  196. package/dist/types/__VUE/indicator/index.vue.d.ts +1 -0
  197. package/dist/types/__VUE/input/index.vue.d.ts +37 -26
  198. package/dist/types/__VUE/invoice/index.vue.d.ts +1 -1
  199. package/dist/types/__VUE/menuitem/index.vue.d.ts +3 -1
  200. package/dist/types/__VUE/navbar/index.vue.d.ts +1 -1
  201. package/dist/types/__VUE/noticebar/index.vue.d.ts +4 -4
  202. package/dist/types/__VUE/notify/index.vue.d.ts +3 -3
  203. package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +3 -3
  204. package/dist/types/__VUE/overlay/index.vue.d.ts +11 -12
  205. package/dist/types/__VUE/picker/Column.vue.d.ts +4 -6
  206. package/dist/types/__VUE/picker/index.vue.d.ts +60 -67
  207. package/dist/types/__VUE/popover/index.vue.d.ts +36 -139
  208. package/dist/types/__VUE/popup/common.d.ts +103 -0
  209. package/dist/types/__VUE/popup/index.vue.d.ts +55 -1591
  210. package/dist/types/__VUE/popup/props.d.ts +82 -0
  211. package/dist/types/__VUE/range/index.vue.d.ts +7 -7
  212. package/dist/types/__VUE/shortpassword/index.vue.d.ts +4 -4
  213. package/dist/types/__VUE/skeleton/common.d.ts +2 -3
  214. package/dist/types/__VUE/skeleton/index.vue.d.ts +2 -3
  215. package/dist/types/__VUE/sku/index.vue.d.ts +56 -61
  216. package/dist/types/__VUE/step/index.vue.d.ts +1 -1
  217. package/dist/types/__VUE/swiper/index.vue.d.ts +1 -1
  218. package/dist/types/__VUE/tabbaritem/index.vue.d.ts +2 -1
  219. package/dist/types/__VUE/timeselect/index.vue.d.ts +3 -3
  220. package/dist/types/__VUE/toast/index.vue.d.ts +1 -1
  221. package/dist/types/__VUE/uploader/index.vue.d.ts +15 -6
  222. package/dist/types/__VUE/video/index.vue.d.ts +5 -5
  223. package/dist/types/index.d.ts +1 -1
  224. package/dist/types/nutui.d.ts +1 -3
  225. package/package.json +3 -3
  226. package/dist/packages/_es/OldPicker.js +0 -486
  227. package/dist/packages/_es/PullRefresh.js +0 -349
  228. package/dist/packages/oldpicker/index.scss +0 -133
  229. package/dist/packages/pullrefresh/index.scss +0 -71
  230. package/dist/types/__VUE/addresslist/components/LongPressShell.vue.d.ts +0 -47
  231. package/dist/types/__VUE/datepicker/utils.d.ts +0 -5
  232. package/dist/types/__VUE/oldpicker/Column.vue.d.ts +0 -96
  233. package/dist/types/__VUE/oldpicker/commonProps.d.ts +0 -22
  234. package/dist/types/__VUE/oldpicker/index.vue.d.ts +0 -369
  235. package/dist/types/__VUE/oldpicker/types.d.ts +0 -24
  236. package/dist/types/__VUE/popup/use-lock-scroll.d.ts +0 -5
  237. package/dist/types/__VUE/pullrefresh/index.vue.d.ts +0 -128
  238. package/dist/types/__VUE/pullrefresh/use-touch.d.ts +0 -20
  239. package/dist/types/__VUE/pullrefresh/util.d.ts +0 -6
@@ -1,241 +1,129 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.6 Fri Nov 04 2022 18:06:53 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.7 Fri Dec 02 2022 14:12:17 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
- import { ref, reactive, computed, onMounted, onBeforeUnmount, onBeforeMount, onActivated, onDeactivated, watch, toRefs, resolveComponent, openBlock, createBlock, Teleport, normalizeClass, normalizeStyle, createCommentVNode, createVNode, Transition, withCtx, withDirectives, createElementVNode, renderSlot, createElementBlock, mergeProps, vShow } from "vue";
7
- import overlay, { overlayProps } from "./OverLay.js";
8
- import _sfc_main$1 from "./Icon.js";
9
6
  import { c as createComponent } from "./component.js";
7
+ import { reactive, computed, watch, watchEffect, toRefs, resolveComponent, openBlock, createBlock, Teleport, mergeProps, createCommentVNode, createVNode, Transition, withCtx, withDirectives, createElementVNode, normalizeClass, normalizeStyle, renderSlot, createElementBlock, vShow } from "vue";
8
+ import { p as popupProps } from "./props.js";
10
9
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
11
10
  import "../locale/lang";
12
- import "./pxCheck.js";
13
- let count = 0;
14
- const CLSNAME = "nut-overflow-hidden";
15
- const useLockScroll = (isLock) => {
16
- const lock = () => {
17
- if (isLock()) {
18
- !count && document.body.classList.add(CLSNAME);
19
- count++;
20
- }
21
- };
22
- const unlock = () => {
23
- if (isLock() && count) {
24
- count--;
25
- !count && document.body.classList.remove(CLSNAME);
11
+ const initIndex = 2e3;
12
+ let _zIndex = initIndex;
13
+ const component = (componentName2) => {
14
+ return {
15
+ components: {},
16
+ props: {
17
+ ...popupProps
18
+ },
19
+ emits: ["click-pop", "click-close-icon", "open", "close", "opend", "closed", "click-overlay", "update:visible"],
20
+ setup(props, { emit }) {
21
+ const state = reactive({
22
+ zIndex: props.zIndex,
23
+ showSlot: true,
24
+ closed: props.closeable
25
+ });
26
+ const classes = computed(() => {
27
+ const prefixCls = componentName2;
28
+ return {
29
+ [prefixCls]: true,
30
+ ["round"]: props.round,
31
+ [`popup-${props.position}`]: true,
32
+ [`popup-${props.position}--safebottom`]: props.position === "bottom" && props.safeAreaInsetBottom,
33
+ [props.popClass]: true
34
+ };
35
+ });
36
+ const popStyle = computed(() => {
37
+ return {
38
+ zIndex: state.zIndex,
39
+ transitionDuration: `${props.duration}s`,
40
+ ...props.style
41
+ };
42
+ });
43
+ const transitionName = computed(() => {
44
+ return props.transition ? props.transition : `popup-slide-${props.position}`;
45
+ });
46
+ const open = () => {
47
+ if (props.zIndex !== initIndex) {
48
+ _zIndex = Number(props.zIndex);
49
+ }
50
+ emit("update:visible", true);
51
+ state.zIndex = ++_zIndex;
52
+ if (props.destroyOnClose) {
53
+ state.showSlot = true;
54
+ }
55
+ emit("open");
56
+ };
57
+ const close = () => {
58
+ emit("update:visible", false);
59
+ emit("close");
60
+ if (props.destroyOnClose) {
61
+ setTimeout(() => {
62
+ state.showSlot = false;
63
+ }, +props.duration * 1e3);
64
+ }
65
+ };
66
+ const onClick = (e) => {
67
+ emit("click-pop", e);
68
+ };
69
+ const onClickCloseIcon = (e) => {
70
+ e.stopPropagation();
71
+ emit("click-close-icon", e);
72
+ emit("update:visible", false);
73
+ };
74
+ const onClickOverlay = (e) => {
75
+ if (props.closeOnClickOverlay) {
76
+ emit("click-overlay", e);
77
+ emit("update:visible", false);
78
+ }
79
+ };
80
+ const onOpened = (e) => {
81
+ emit("opend", e);
82
+ };
83
+ const onClosed = (e) => {
84
+ emit("closed", e);
85
+ };
86
+ watch(
87
+ () => props.visible,
88
+ (val) => {
89
+ props.visible ? open() : close();
90
+ }
91
+ );
92
+ watchEffect(() => {
93
+ state.closed = props.closeable;
94
+ });
95
+ return {
96
+ ...toRefs(state),
97
+ popStyle,
98
+ transitionName,
99
+ classes,
100
+ onClick,
101
+ onClickCloseIcon,
102
+ onClickOverlay,
103
+ onOpened,
104
+ onClosed
105
+ };
26
106
  }
27
107
  };
28
- return [lock, unlock];
29
108
  };
30
109
  const { componentName, create } = createComponent("popup");
31
- let _zIndex = 2e3;
32
- const popupProps = {
33
- ...overlayProps,
34
- position: {
35
- type: String,
36
- default: "center"
37
- },
38
- transition: String,
39
- style: {
40
- type: Object
41
- },
42
- popClass: {
43
- type: String,
44
- default: ""
45
- },
46
- closeable: {
47
- type: Boolean,
48
- default: false
49
- },
50
- closeIconPosition: {
51
- type: String,
52
- default: "top-right"
53
- },
54
- closeIcon: {
55
- type: String,
56
- default: "close"
57
- },
58
- destroyOnClose: {
59
- type: Boolean,
60
- default: true
61
- },
62
- teleport: {
63
- type: [String, Element],
64
- default: "body"
65
- },
66
- overlay: {
67
- type: Boolean,
68
- default: true
69
- },
70
- round: {
71
- type: Boolean,
72
- default: false
73
- },
74
- isWrapTeleport: {
75
- type: Boolean,
76
- default: true
77
- },
78
- safeAreaInsetBottom: {
79
- type: Boolean,
80
- default: false
81
- }
82
- };
83
- const _sfc_main = create({
84
- components: {
85
- [overlay.name]: overlay,
86
- [_sfc_main$1.name]: _sfc_main$1
87
- },
88
- props: {
89
- ...popupProps
90
- },
91
- emits: ["click", "click-close-icon", "open", "close", "opend", "closed", "update:visible", "click-overlay"],
92
- setup(props, { emit }) {
93
- const popupRef = ref();
94
- const state = reactive({
95
- zIndex: props.zIndex,
96
- showSlot: true,
97
- transitionName: `popup-fade-${props.position}`,
98
- overLayCount: 1,
99
- keepAlive: false,
100
- closed: props.closeable
101
- });
102
- const [lockScroll, unlockScroll] = useLockScroll(() => props.lockScroll);
103
- const classes = computed(() => {
104
- const prefixCls = componentName;
105
- return {
106
- [prefixCls]: true,
107
- ["round"]: props.round,
108
- [`popup-${props.position}`]: true,
109
- [`popup-${props.position}--safebottom`]: props.position === "bottom" && props.safeAreaInsetBottom,
110
- [props.popClass]: true
111
- };
112
- });
113
- const popStyle = computed(() => {
114
- return {
115
- zIndex: state.zIndex,
116
- animationDuration: props.duration ? `${props.duration}s` : "initial",
117
- ...props.style
118
- };
119
- });
120
- const open = () => {
121
- if (props.zIndex != 2e3) {
122
- _zIndex = Number(props.zIndex);
123
- }
124
- emit("update:visible", true);
125
- lockScroll();
126
- state.zIndex = ++_zIndex;
127
- if (props.destroyOnClose) {
128
- state.showSlot = true;
129
- }
130
- emit("open");
131
- };
132
- const close = () => {
133
- unlockScroll();
134
- emit("update:visible", false);
135
- emit("close");
136
- if (props.destroyOnClose) {
137
- setTimeout(() => {
138
- state.showSlot = false;
139
- }, +props.duration * 1e3);
140
- }
141
- };
142
- const onClick = (e) => {
143
- emit("click", e);
144
- };
145
- const onClickCloseIcon = (e) => {
146
- emit("click-close-icon", e);
147
- close();
148
- };
149
- const onClickOverlay = (e) => {
150
- if (props.closeOnClickOverlay) {
151
- emit("click-overlay", e);
152
- close();
153
- }
154
- };
155
- const onOpened = (e) => {
156
- emit("opend", e);
157
- };
158
- const onClosed = (e) => {
159
- emit("closed", e);
160
- };
161
- onMounted(() => {
162
- props.transition ? state.transitionName = props.transition : state.transitionName = `popup-slide-${props.position}`;
163
- props.visible && open();
164
- });
165
- onBeforeUnmount(() => {
166
- props.visible && close();
167
- });
168
- onBeforeMount(() => {
169
- if (props.visible) {
170
- unlockScroll();
171
- }
172
- });
173
- onActivated(() => {
174
- if (state.keepAlive) {
175
- emit("update:visible", true);
176
- state.keepAlive = false;
177
- }
178
- });
179
- onDeactivated(() => {
180
- if (props.visible) {
181
- close();
182
- state.keepAlive = true;
183
- }
184
- });
185
- watch(
186
- () => props.visible,
187
- (value) => {
188
- if (value) {
189
- open();
190
- } else {
191
- close();
192
- }
193
- }
194
- );
195
- watch(
196
- () => props.position,
197
- (value) => {
198
- value === "center" ? state.transitionName = "popup-fade" : state.transitionName = `popup-slide-${value}`;
199
- }
200
- );
201
- watch(
202
- () => props.closeable,
203
- (value) => {
204
- state.closed = value;
205
- }
206
- );
207
- return {
208
- ...toRefs(state),
209
- popStyle,
210
- classes,
211
- onClick,
212
- onClickCloseIcon,
213
- onClickOverlay,
214
- onOpened,
215
- onClosed,
216
- popupRef
217
- };
218
- }
219
- });
220
- const _hoisted_1 = { key: 1 };
110
+ const _sfc_main = create(component(componentName));
221
111
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
222
112
  const _component_nut_overlay = resolveComponent("nut-overlay");
223
113
  const _component_nut_icon = resolveComponent("nut-icon");
224
- return _ctx.isWrapTeleport ? (openBlock(), createBlock(Teleport, {
225
- key: 0,
226
- to: _ctx.teleport
114
+ return openBlock(), createBlock(Teleport, {
115
+ to: _ctx.teleport,
116
+ disabled: !_ctx.teleportDisable
227
117
  }, [
228
- _ctx.overlay ? (openBlock(), createBlock(_component_nut_overlay, {
118
+ _ctx.overlay ? (openBlock(), createBlock(_component_nut_overlay, mergeProps({
229
119
  key: 0,
230
120
  visible: _ctx.visible,
231
121
  "close-on-click-overlay": _ctx.closeOnClickOverlay,
232
- class: normalizeClass(_ctx.overlayClass),
233
- style: normalizeStyle(_ctx.overlayStyle),
234
122
  "z-index": _ctx.zIndex,
235
123
  "lock-scroll": _ctx.lockScroll,
236
124
  duration: _ctx.duration,
237
125
  onClick: _ctx.onClickOverlay
238
- }, null, 8, ["visible", "close-on-click-overlay", "class", "style", "z-index", "lock-scroll", "duration", "onClick"])) : createCommentVNode("", true),
126
+ }, _ctx.$attrs), null, 16, ["visible", "close-on-click-overlay", "z-index", "lock-scroll", "duration", "onClick"])) : createCommentVNode("", true),
239
127
  createVNode(Transition, {
240
128
  name: _ctx.transitionName,
241
129
  onAfterEnter: _ctx.onOpened,
@@ -245,14 +133,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
245
133
  withDirectives(createElementVNode("view", {
246
134
  class: normalizeClass(_ctx.classes),
247
135
  style: normalizeStyle(_ctx.popStyle),
248
- onClick: _cache[1] || (_cache[1] = (...args) => _ctx.onClick && _ctx.onClick(...args)),
249
- ref: "popupRef"
136
+ onClick: _cache[1] || (_cache[1] = (...args) => _ctx.onClick && _ctx.onClick(...args))
250
137
  }, [
251
138
  _ctx.showSlot ? renderSlot(_ctx.$slots, "default", { key: 0 }) : createCommentVNode("", true),
252
139
  _ctx.closed ? (openBlock(), createElementBlock("view", {
253
140
  key: 1,
254
141
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClickCloseIcon && _ctx.onClickCloseIcon(...args)),
255
- class: normalizeClass(["nutui-popup__close-icon", "nutui-popup__close-icon--" + _ctx.closeIconPosition])
142
+ class: normalizeClass(["nut-popup__close-icon", "nut-popup__close-icon--" + _ctx.closeIconPosition])
256
143
  }, [
257
144
  createVNode(_component_nut_icon, mergeProps(_ctx.$attrs, {
258
145
  name: _ctx.closeIcon,
@@ -265,47 +152,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
265
152
  ]),
266
153
  _: 3
267
154
  }, 8, ["name", "onAfterEnter", "onAfterLeave"])
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
- ]));
155
+ ], 8, ["to", "disabled"]);
309
156
  }
310
157
  var Popup = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
311
- export { Popup as default, popupProps };
158
+ export { Popup as default };
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.6 Fri Nov 04 2022 18:06:53 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.7 Fri Dec 02 2022 14:12:17 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.6 Fri Nov 04 2022 18:06:53 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.7 Fri Dec 02 2022 14:12:17 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.6 Fri Nov 04 2022 18:06:53 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.7 Fri Dec 02 2022 14:12:17 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.6 Fri Nov 04 2022 18:06:53 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.7 Fri Dec 02 2022 14:12:17 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.6 Fri Nov 04 2022 18:06:53 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.7 Fri Dec 02 2022 14:12:17 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.6 Fri Nov 04 2022 18:06:53 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.7 Fri Dec 02 2022 14:12:17 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.6 Fri Nov 04 2022 18:06:53 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.7 Fri Dec 02 2022 14:12:17 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.6 Fri Nov 04 2022 18:06:53 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.7 Fri Dec 02 2022 14:12:17 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.6 Fri Nov 04 2022 18:06:53 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.7 Fri Dec 02 2022 14:12:17 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -46,7 +46,7 @@ const _sfc_main = create({
46
46
  type: [String, Number],
47
47
  default: 6
48
48
  },
49
- isWrapTeleport: {
49
+ teleportDisable: {
50
50
  type: Boolean,
51
51
  default: true
52
52
  }
@@ -174,7 +174,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
174
174
  onClickCloseIcon: _ctx.closeIcon,
175
175
  "close-on-click-overlay": _ctx.closeOnClickOverlay,
176
176
  onClickOverlay: _ctx.close,
177
- isWrapTeleport: _ctx.isWrapTeleport
177
+ teleportDisable: _ctx.teleportDisable
178
178
  }, {
179
179
  default: withCtx(() => [
180
180
  createElementVNode("view", _hoisted_1, toDisplayString(_ctx.title || _ctx.translate("title")), 1),
@@ -231,7 +231,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
231
231
  ])) : createCommentVNode("", true)
232
232
  ]),
233
233
  _: 1
234
- }, 8, ["visible", "onClickCloseIcon", "close-on-click-overlay", "onClickOverlay", "isWrapTeleport"])
234
+ }, 8, ["visible", "onClickCloseIcon", "close-on-click-overlay", "onClickOverlay", "teleportDisable"])
235
235
  ]);
236
236
  }
237
237
  var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.6 Fri Nov 04 2022 18:06:53 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.7 Fri Dec 02 2022 14:12:17 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.6 Fri Nov 04 2022 18:06:53 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.7 Fri Dec 02 2022 14:12:17 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.6 Fri Nov 04 2022 18:06:53 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.7 Fri Dec 02 2022 14:12:17 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.6 Fri Nov 04 2022 18:06:53 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.7 Fri Dec 02 2022 14:12:17 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -59,13 +59,12 @@ const component = {
59
59
  [`${prefixCls}--${avatarShape.value}`]: avatarShape.value
60
60
  };
61
61
  });
62
- const blockClass = computed(() => {
63
- const prefixCls = "blockClass";
62
+ const getBlockClass = (prefixCls) => {
64
63
  return {
65
64
  [prefixCls]: true,
66
65
  [`${prefixCls}--round`]: round.value
67
66
  };
68
- });
67
+ };
69
68
  const getStyle = () => {
70
69
  if (avatarSize.value) {
71
70
  return {
@@ -83,7 +82,7 @@ const component = {
83
82
  return {
84
83
  avatarShape,
85
84
  avatarClass,
86
- blockClass,
85
+ getBlockClass,
87
86
  getStyle
88
87
  };
89
88
  }
@@ -100,11 +99,6 @@ const _hoisted_3 = {
100
99
  class: "skeleton-animation"
101
100
  };
102
101
  const _hoisted_4 = { class: "content" };
103
- const _hoisted_5 = { class: "content-line" };
104
- const _hoisted_6 = {
105
- key: 0,
106
- class: "title"
107
- };
108
102
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
109
103
  const _component_nut_avatar = resolveComponent("nut-avatar");
110
104
  return !_ctx.loading ? (openBlock(), createElementBlock("view", _hoisted_1, [
@@ -116,24 +110,25 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
116
110
  key: 0,
117
111
  class: normalizeClass(_ctx.avatarClass),
118
112
  shape: _ctx.avatarShape,
119
- style: normalizeStyle(_ctx.getStyle()),
120
- "bg-color": "rgb(239, 239, 239)"
113
+ style: normalizeStyle(_ctx.getStyle())
121
114
  }, null, 8, ["class", "shape", "style"])) : createCommentVNode("", true),
122
- Number(_ctx.row) == 1 ? (openBlock(), createElementBlock("view", {
123
- key: 1,
124
- class: normalizeClass(_ctx.blockClass),
125
- style: normalizeStyle({ width: _ctx.width, height: _ctx.height })
126
- }, null, 6)) : createCommentVNode("", true),
127
- createElementVNode("view", _hoisted_5, [
128
- _ctx.title ? (openBlock(), createElementBlock("view", _hoisted_6)) : createCommentVNode("", true),
129
- (openBlock(true), createElementBlock(Fragment, null, renderList(Number(_ctx.row), (item, index2) => {
115
+ createElementVNode("view", {
116
+ class: "content-line",
117
+ style: normalizeStyle({ width: _ctx.width })
118
+ }, [
119
+ _ctx.title ? (openBlock(), createElementBlock("view", {
120
+ key: 0,
121
+ class: normalizeClass(_ctx.getBlockClass("blockTitle")),
122
+ style: normalizeStyle({ height: _ctx.height })
123
+ }, null, 6)) : createCommentVNode("", true),
124
+ (openBlock(true), createElementBlock(Fragment, null, renderList(Number(_ctx.row), (_) => {
130
125
  return openBlock(), createElementBlock("view", {
131
- key: index2,
132
- class: normalizeClass(_ctx.blockClass),
133
- style: normalizeStyle({ width: _ctx.width, height: _ctx.height })
126
+ key: _,
127
+ class: normalizeClass(_ctx.getBlockClass("blockLine")),
128
+ style: normalizeStyle({ height: _ctx.height })
134
129
  }, null, 6);
135
130
  }), 128))
136
- ])
131
+ ], 4)
137
132
  ])
138
133
  ]));
139
134
  }
@@ -1,16 +1,13 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.6 Fri Nov 04 2022 18:06:53 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.7 Fri Dec 02 2022 14:12:17 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import { resolveComponent, openBlock, createElementBlock, createElementVNode, renderSlot, createBlock, createCommentVNode, toDisplayString, ref, watch, onMounted, Fragment, renderList, normalizeClass, createVNode, withCtx, createSlots } from "vue";
7
7
  import { c as createComponent, T as TypeOfFun } from "./component.js";
8
8
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
9
- import { popupProps } from "./Popup.js";
9
+ import { p as popupProps } from "./props.js";
10
10
  import "../locale/lang";
11
- import "./OverLay.js";
12
- import "./Icon.js";
13
- import "./pxCheck.js";
14
11
  const { componentName: componentName$4, create: create$4, translate: translate$1 } = createComponent("sku-header");
15
12
  const _sfc_main$4 = create$4({
16
13
  props: {
@@ -439,7 +436,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
439
436
  onClickOverlay: _cache[2] || (_cache[2] = ($event) => _ctx.closePopup("overlay")),
440
437
  onClose: _cache[3] || (_cache[3] = ($event) => _ctx.closePopup("close")),
441
438
  style: { "height": "75%" },
442
- isWrapTeleport: _ctx.isWrapTeleport,
439
+ teleportDisable: _ctx.teleportDisable,
443
440
  teleport: _ctx.teleport
444
441
  }, {
445
442
  default: withCtx(() => [
@@ -506,7 +503,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
506
503
  ])
507
504
  ]),
508
505
  _: 3
509
- }, 8, ["visible", "isWrapTeleport", "teleport"]);
506
+ }, 8, ["visible", "teleportDisable", "teleport"]);
510
507
  }
511
508
  var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
512
509
  export { index as default };
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.6 Fri Nov 04 2022 18:06:53 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.7 Fri Dec 02 2022 14:12:17 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.6 Fri Nov 04 2022 18:06:53 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.7 Fri Dec 02 2022 14:12:17 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */