@nutui/nutui 4.0.10-beta.1 → 4.0.10

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 (160) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/nutui.es.js +1 -1
  3. package/dist/nutui.js +6550 -8291
  4. package/dist/nutui.umd.js +1 -1
  5. package/dist/packages/_es/ActionSheet.js +78 -111
  6. package/dist/packages/_es/Address.js +250 -375
  7. package/dist/packages/_es/AddressList.js +269 -354
  8. package/dist/packages/_es/Animate.js +41 -58
  9. package/dist/packages/_es/Audio.js +128 -197
  10. package/dist/packages/_es/AudioOperate.js +60 -71
  11. package/dist/packages/_es/Avatar.js +66 -89
  12. package/dist/packages/_es/AvatarGroup.js +23 -31
  13. package/dist/packages/_es/Backtop.js +59 -99
  14. package/dist/packages/_es/Badge.js +36 -47
  15. package/dist/packages/_es/Barrage.js +68 -147
  16. package/dist/packages/_es/Button.js +47 -66
  17. package/dist/packages/_es/Calendar.js +135 -157
  18. package/dist/packages/_es/CalendarItem.js +6 -6
  19. package/dist/packages/_es/Card.js +42 -56
  20. package/dist/packages/_es/Cascader.js +315 -474
  21. package/dist/packages/_es/Category.js +29 -39
  22. package/dist/packages/_es/CategoryPane.js +57 -83
  23. package/dist/packages/_es/Cell.js +56 -71
  24. package/dist/packages/_es/CellGroup.js +19 -27
  25. package/dist/packages/_es/Checkbox.js +109 -156
  26. package/dist/packages/_es/CheckboxGroup.js +38 -59
  27. package/dist/packages/_es/CircleProgress.js +67 -96
  28. package/dist/packages/_es/Col.js +23 -31
  29. package/dist/packages/_es/Collapse.js +33 -58
  30. package/dist/packages/_es/CollapseItem.js +78 -108
  31. package/dist/packages/_es/Comment.js +207 -279
  32. package/dist/packages/_es/ConfigProvider.js +37 -55
  33. package/dist/packages/_es/Countdown.js +100 -212
  34. package/dist/packages/_es/Countup.js +232 -445
  35. package/dist/packages/_es/DatePicker.js +162 -265
  36. package/dist/packages/_es/Dialog.js +161 -213
  37. package/dist/packages/_es/Divider.js +42 -57
  38. package/dist/packages/_es/Drag.js +70 -153
  39. package/dist/packages/_es/Ecard.js +64 -104
  40. package/dist/packages/_es/Elevator.js +143 -219
  41. package/dist/packages/_es/Ellipsis.js +95 -178
  42. package/dist/packages/_es/Empty.js +23 -39
  43. package/dist/packages/_es/FixedNav.js +93 -116
  44. package/dist/packages/_es/Form.js +107 -178
  45. package/dist/packages/_es/FormItem.js +48 -61
  46. package/dist/packages/_es/Grid.js +5 -6
  47. package/dist/packages/_es/GridItem.js +58 -84
  48. package/dist/packages/_es/Image.js +90 -129
  49. package/dist/packages/_es/ImagePreview.js +256 -412
  50. package/dist/packages/_es/Indicator.js +30 -34
  51. package/dist/packages/_es/InfiniteLoading.js +83 -136
  52. package/dist/packages/_es/Input.js +160 -264
  53. package/dist/packages/_es/InputNumber.js +81 -117
  54. package/dist/packages/_es/Interceptor-6e26b757.js +18 -0
  55. package/dist/packages/_es/Invoice.js +104 -130
  56. package/dist/packages/_es/Layout.js +3 -4
  57. package/dist/packages/_es/List.js +117 -215
  58. package/dist/packages/_es/Menu.js +95 -150
  59. package/dist/packages/_es/MenuItem.js +109 -154
  60. package/dist/packages/_es/Navbar.js +103 -119
  61. package/dist/packages/_es/Noticebar.js +197 -312
  62. package/dist/packages/_es/Notify.js +110 -166
  63. package/dist/packages/_es/NumberKeyboard.js +127 -202
  64. package/dist/packages/_es/Overlay.js +52 -80
  65. package/dist/packages/_es/Pagination.js +70 -100
  66. package/dist/packages/_es/Picker.js +275 -437
  67. package/dist/packages/_es/Popover.js +122 -225
  68. package/dist/packages/_es/Popup.js +4 -4
  69. package/dist/packages/_es/Price.js +44 -82
  70. package/dist/packages/_es/Progress.js +63 -79
  71. package/dist/packages/_es/PullRefresh.js +95 -173
  72. package/dist/packages/_es/Radio.js +4 -4
  73. package/dist/packages/_es/RadioGroup.js +3 -3
  74. package/dist/packages/_es/Range.js +204 -347
  75. package/dist/packages/_es/Rate.js +92 -141
  76. package/dist/packages/_es/Row.js +21 -27
  77. package/dist/packages/_es/Searchbar.js +123 -174
  78. package/dist/packages/_es/ShortPassword.js +69 -93
  79. package/dist/packages/_es/SideNavbar.js +49 -80
  80. package/dist/packages/_es/SideNavbarItem.js +22 -32
  81. package/dist/packages/_es/Signature.js +83 -146
  82. package/dist/packages/_es/Skeleton.js +110 -130
  83. package/dist/packages/_es/Sku.js +250 -343
  84. package/dist/packages/_es/Step.js +59 -86
  85. package/dist/packages/_es/Steps.js +26 -31
  86. package/dist/packages/_es/Sticky.js +4 -4
  87. package/dist/packages/_es/SubSideNavbar.js +52 -74
  88. package/dist/packages/_es/Swipe.js +83 -155
  89. package/dist/packages/_es/Swiper.js +174 -311
  90. package/dist/packages/_es/SwiperItem.js +28 -44
  91. package/dist/packages/_es/Switch.js +55 -68
  92. package/dist/packages/_es/TabPane.js +30 -41
  93. package/dist/packages/_es/Tabbar.js +41 -52
  94. package/dist/packages/_es/TabbarItem.js +61 -82
  95. package/dist/packages/_es/Table.js +109 -165
  96. package/dist/packages/_es/Tabs.js +240 -388
  97. package/dist/packages/_es/Tag.js +44 -61
  98. package/dist/packages/_es/Textarea.js +80 -124
  99. package/dist/packages/_es/TimeDetail.js +49 -76
  100. package/dist/packages/_es/TimePannel.js +34 -48
  101. package/dist/packages/_es/TimeSelect.js +47 -68
  102. package/dist/packages/_es/Toast.js +144 -218
  103. package/dist/packages/_es/Tour.js +138 -192
  104. package/dist/packages/_es/TrendArrow.js +57 -77
  105. package/dist/packages/_es/Uploader.js +234 -359
  106. package/dist/packages/_es/Video.js +191 -316
  107. package/dist/packages/_es/Watermark.js +84 -117
  108. package/dist/packages/_es/_plugin-vue_export-helper-dad06003.js +9 -0
  109. package/dist/packages/_es/common-d218746f.js +116 -0
  110. package/dist/packages/_es/component-234624bc.js +89 -0
  111. package/dist/packages/_es/index-14dfadc4.js +561 -0
  112. package/dist/packages/_es/index-192a3ef6.js +29 -0
  113. package/dist/packages/_es/index-360c5092.js +210 -0
  114. package/dist/packages/_es/index-496e6e05.js +24 -0
  115. package/dist/packages/_es/index-50eed3d9.js +7 -0
  116. package/dist/packages/_es/index-53ec2d4d.js +34 -0
  117. package/dist/packages/_es/index-fadb0974.js +8 -0
  118. package/dist/packages/_es/index.vue_vue_type_script_lang-1139b29a.js +43 -0
  119. package/dist/packages/_es/index.vue_vue_type_script_lang-43b774dd.js +77 -0
  120. package/dist/packages/_es/index.vue_vue_type_script_lang-f44c159d.js +110 -0
  121. package/dist/packages/_es/mountComponent-6d4ff200.js +23 -0
  122. package/dist/packages/_es/pxCheck-38173291.js +4 -0
  123. package/dist/packages/_es/raf-a74f1a06.js +16 -0
  124. package/dist/packages/_es/renderIcon-47498b32.js +5 -0
  125. package/dist/smartips/web-types.json +1 -1
  126. package/dist/style.css +1 -1
  127. package/dist/styles/themes/default.scss +154 -51
  128. package/dist/styles/themes/jdb.scss +154 -51
  129. package/dist/styles/themes/jddkh.scss +154 -51
  130. package/dist/styles/themes/jdt.scss +154 -51
  131. package/dist/types/__VUE/address/index.vue.d.ts +1 -1
  132. package/dist/types/__VUE/collapseitem/index.vue.d.ts +110 -3
  133. package/dist/types/__VUE/image/index.vue.d.ts +2 -2
  134. package/dist/types/__VUE/rate/index.vue.d.ts +110 -3
  135. package/dist/types/__VUE/searchbar/index.vue.d.ts +110 -3
  136. package/dist/types/__VUE/skeleton/index.vue.d.ts +2 -2
  137. package/dist/types/__VUE/swiper/index.vue.d.ts +1 -1
  138. package/dist/types/__VUE/table/common.d.ts +55 -2
  139. package/dist/types/__VUE/timeselect/index.vue.d.ts +1 -1
  140. package/dist/types/__VUE/watermark/index.vue.d.ts +1 -1
  141. package/dist/types/index.d.ts +1 -1
  142. package/package.json +2 -2
  143. package/dist/packages/_es/Interceptor-956b24fc.js +0 -29
  144. package/dist/packages/_es/_plugin-vue_export-helper-cc2b3d55.js +0 -10
  145. package/dist/packages/_es/common-b9a5e726.js +0 -145
  146. package/dist/packages/_es/component-81a4c1d0.js +0 -145
  147. package/dist/packages/_es/index-29892cda.js +0 -33
  148. package/dist/packages/_es/index-43c34ac6.js +0 -30
  149. package/dist/packages/_es/index-54d03fc1.js +0 -8
  150. package/dist/packages/_es/index-79c5dc33.js +0 -10
  151. package/dist/packages/_es/index-7a7385e4.js +0 -67
  152. package/dist/packages/_es/index-87422be8.js +0 -942
  153. package/dist/packages/_es/index-da0a7662.js +0 -259
  154. package/dist/packages/_es/index.vue_vue_type_script_lang-22dfc112.js +0 -46
  155. package/dist/packages/_es/index.vue_vue_type_script_lang-442e4704.js +0 -98
  156. package/dist/packages/_es/index.vue_vue_type_script_lang-cc5c4086.js +0 -151
  157. package/dist/packages/_es/mountComponent-8b24c346.js +0 -39
  158. package/dist/packages/_es/pxCheck-c6b9f6b7.js +0 -6
  159. package/dist/packages/_es/raf-729dad54.js +0 -25
  160. package/dist/packages/_es/renderIcon-3d0fd47c.js +0 -9
@@ -1,36 +1,28 @@
1
- var __defProp = Object.defineProperty;
2
- var __defProps = Object.defineProperties;
3
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
- var __spreadValues = (a, b) => {
9
- for (var prop in b || (b = {}))
10
- if (__hasOwnProp.call(b, prop))
11
- __defNormalProp(a, prop, b[prop]);
12
- if (__getOwnPropSymbols)
13
- for (var prop of __getOwnPropSymbols(b)) {
14
- if (__propIsEnum.call(b, prop))
15
- __defNormalProp(a, prop, b[prop]);
16
- }
17
- return a;
18
- };
19
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- import { c as createComponent } from "./component-81a4c1d0.js";
21
- import { useSlots, computed, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, normalizeClass, createElementBlock, toDisplayString, createCommentVNode, renderSlot, Fragment, renderList, normalizeStyle } from "vue";
22
- import { P as Popup, p as popupProps } from "./index-da0a7662.js";
23
- import { Loading } from "@nutui/icons-vue";
24
- import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
1
+ var C = Object.defineProperty, T = Object.defineProperties;
2
+ var w = Object.getOwnPropertyDescriptors;
3
+ var d = Object.getOwnPropertySymbols;
4
+ var A = Object.prototype.hasOwnProperty, I = Object.prototype.propertyIsEnumerable;
5
+ var h = (e, t, n) => t in e ? C(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, m = (e, t) => {
6
+ for (var n in t || (t = {}))
7
+ A.call(t, n) && h(e, n, t[n]);
8
+ if (d)
9
+ for (var n of d(t))
10
+ I.call(t, n) && h(e, n, t[n]);
11
+ return e;
12
+ }, g = (e, t) => T(e, w(t));
13
+ import { c as O } from "./component-234624bc.js";
14
+ import { useSlots as $, computed as V, resolveComponent as f, openBlock as s, createBlock as y, withCtx as B, createElementVNode as _, normalizeClass as v, createElementBlock as l, toDisplayString as i, createCommentVNode as a, renderSlot as L, Fragment as D, renderList as H, normalizeStyle as N } from "vue";
15
+ import { P as k, p as P } from "./index-360c5092.js";
16
+ import { Loading as z } from "@nutui/icons-vue";
17
+ import { _ as E } from "./_plugin-vue_export-helper-dad06003.js";
25
18
  import "../locale/lang";
26
19
  import "./Overlay.js";
27
- const { componentName, create } = createComponent("action-sheet");
28
- const _sfc_main = create({
20
+ const { componentName: F, create: j } = O("action-sheet"), q = j({
29
21
  components: {
30
- [Popup.name]: Popup,
31
- Loading
22
+ [k.name]: k,
23
+ Loading: z
32
24
  },
33
- props: __spreadProps(__spreadValues({}, popupProps), {
25
+ props: g(m({}, P), {
34
26
  cancelTxt: {
35
27
  type: String,
36
28
  default: ""
@@ -65,110 +57,85 @@ const _sfc_main = create({
65
57
  },
66
58
  closeAbled: {
67
59
  type: Boolean,
68
- default: true
60
+ default: !0
69
61
  }
70
62
  }),
71
63
  emits: ["cancel", "close", "choose", "update:visible"],
72
- setup(props, { emit }) {
73
- const slotDefault = !!useSlots().default;
74
- const classes = computed(() => {
75
- const prefixCls = componentName;
76
- return {
77
- [prefixCls]: true
78
- };
79
- });
80
- const isHighlight = (item) => {
81
- return props.chooseTagValue && props.chooseTagValue === item[props.optionTag] ? props.color : "";
82
- };
83
- const cancelActionSheet = () => {
84
- emit("cancel");
85
- emit("update:visible", false);
86
- };
87
- const chooseItem = (item, index2) => {
88
- if (!item.disable && !item.loading) {
89
- emit("choose", item, index2);
90
- emit("update:visible", false);
91
- }
92
- };
93
- const close = (e) => {
94
- emit("close", e);
95
- emit("update:visible", false);
96
- };
64
+ setup(e, { emit: t }) {
65
+ const n = !!$().default, r = V(() => ({
66
+ [F]: !0
67
+ }));
97
68
  return {
98
- slotDefault,
99
- isHighlight,
100
- cancelActionSheet,
101
- chooseItem,
102
- close,
103
- classes
69
+ slotDefault: n,
70
+ isHighlight: (o) => e.chooseTagValue && e.chooseTagValue === o[e.optionTag] ? e.color : "",
71
+ cancelActionSheet: () => {
72
+ t("cancel"), t("update:visible", !1);
73
+ },
74
+ chooseItem: (o, c) => {
75
+ !o.disable && !o.loading && (t("choose", o, c), t("update:visible", !1));
76
+ },
77
+ close: (o) => {
78
+ t("close", o), t("update:visible", !1);
79
+ },
80
+ classes: r
104
81
  };
105
82
  }
106
- });
107
- const _hoisted_1 = {
83
+ }), G = {
108
84
  key: 0,
109
85
  class: "nut-action-sheet__title"
110
- };
111
- const _hoisted_2 = { key: 1 };
112
- const _hoisted_3 = {
86
+ }, J = { key: 1 }, K = {
113
87
  key: 0,
114
88
  class: "nut-action-sheet__item nut-action-sheet__desc"
115
- };
116
- const _hoisted_4 = {
89
+ }, M = {
117
90
  key: 1,
118
91
  class: "nut-action-sheet__menu"
119
- };
120
- const _hoisted_5 = ["onClick"];
121
- const _hoisted_6 = { key: 1 };
122
- const _hoisted_7 = { class: "nut-action-sheet__subdesc" };
123
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
124
- const _component_Loading = resolveComponent("Loading");
125
- const _component_nut_popup = resolveComponent("nut-popup");
126
- return openBlock(), createBlock(_component_nut_popup, {
127
- visible: _ctx.visible,
92
+ }, Q = ["onClick"], R = { key: 1 }, U = { class: "nut-action-sheet__subdesc" };
93
+ function W(e, t, n, r, b, S) {
94
+ const u = f("Loading"), p = f("nut-popup");
95
+ return s(), y(p, {
96
+ visible: e.visible,
128
97
  position: "bottom",
129
98
  round: "",
130
- onClickOverlay: _ctx.close,
131
- closeOnClickOverlay: _ctx.closeAbled
99
+ onClickOverlay: e.close,
100
+ closeOnClickOverlay: e.closeAbled
132
101
  }, {
133
- default: withCtx(() => [
134
- createElementVNode("view", {
135
- class: normalizeClass(_ctx.classes)
102
+ default: B(() => [
103
+ _("view", {
104
+ class: v(e.classes)
136
105
  }, [
137
- _ctx.title ? (openBlock(), createElementBlock("view", _hoisted_1, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
138
- renderSlot(_ctx.$slots, "default"),
139
- !_ctx.slotDefault ? (openBlock(), createElementBlock("view", _hoisted_2, [
140
- _ctx.description ? (openBlock(), createElementBlock("view", _hoisted_3, toDisplayString(_ctx.description), 1)) : createCommentVNode("", true),
141
- _ctx.menuItems.length ? (openBlock(), createElementBlock("view", _hoisted_4, [
142
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menuItems, (item, index2) => {
143
- return openBlock(), createElementBlock("view", {
144
- class: normalizeClass(["nut-action-sheet__item", {
145
- "nut-action-sheet__item--disabled": item.disable,
146
- "nut-action-sheet__item--loading": item.loading
147
- }]),
148
- style: normalizeStyle({ color: _ctx.isHighlight(item) || item.color }),
149
- key: index2,
150
- onClick: ($event) => _ctx.chooseItem(item, index2)
151
- }, [
152
- item.loading ? (openBlock(), createBlock(_component_Loading, {
153
- key: 0,
154
- name: "loading"
155
- })) : (openBlock(), createElementBlock("view", _hoisted_6, toDisplayString(item[_ctx.optionTag]), 1)),
156
- createElementVNode("view", _hoisted_7, toDisplayString(item[_ctx.optionSubTag]), 1)
157
- ], 14, _hoisted_5);
158
- }), 128))
159
- ])) : createCommentVNode("", true),
160
- _ctx.cancelTxt ? (openBlock(), createElementBlock("view", {
106
+ e.title ? (s(), l("view", G, i(e.title), 1)) : a("", !0),
107
+ L(e.$slots, "default"),
108
+ e.slotDefault ? a("", !0) : (s(), l("view", J, [
109
+ e.description ? (s(), l("view", K, i(e.description), 1)) : a("", !0),
110
+ e.menuItems.length ? (s(), l("view", M, [
111
+ (s(!0), l(D, null, H(e.menuItems, (o, c) => (s(), l("view", {
112
+ class: v(["nut-action-sheet__item", {
113
+ "nut-action-sheet__item--disabled": o.disable,
114
+ "nut-action-sheet__item--loading": o.loading
115
+ }]),
116
+ style: N({ color: e.isHighlight(o) || o.color }),
117
+ key: c,
118
+ onClick: (X) => e.chooseItem(o, c)
119
+ }, [
120
+ o.loading ? (s(), y(u, {
121
+ key: 0,
122
+ name: "loading"
123
+ })) : (s(), l("view", R, i(o[e.optionTag]), 1)),
124
+ _("view", U, i(o[e.optionSubTag]), 1)
125
+ ], 14, Q))), 128))
126
+ ])) : a("", !0),
127
+ e.cancelTxt ? (s(), l("view", {
161
128
  key: 2,
162
129
  class: "nut-action-sheet__cancel",
163
- onClick: _cache[0] || (_cache[0] = (...args) => _ctx.cancelActionSheet && _ctx.cancelActionSheet(...args))
164
- }, toDisplayString(_ctx.cancelTxt), 1)) : createCommentVNode("", true)
165
- ])) : createCommentVNode("", true)
130
+ onClick: t[0] || (t[0] = (...o) => e.cancelActionSheet && e.cancelActionSheet(...o))
131
+ }, i(e.cancelTxt), 1)) : a("", !0)
132
+ ]))
166
133
  ], 2)
167
134
  ]),
168
135
  _: 3
169
136
  }, 8, ["visible", "onClickOverlay", "closeOnClickOverlay"]);
170
137
  }
171
- const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
138
+ const le = /* @__PURE__ */ E(q, [["render", W]]);
172
139
  export {
173
- index as default
140
+ le as default
174
141
  };