@nutui/nutui 3.1.10-beta.1 → 3.1.11-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 (106) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +2 -2
  3. package/dist/nutui.d.ts +6 -6
  4. package/dist/nutui.es.js +1643 -1116
  5. package/dist/nutui.umd.js +1708 -1181
  6. package/dist/packages/_es/ActionSheet.js +10 -12
  7. package/dist/packages/_es/Address.js +31 -33
  8. package/dist/packages/_es/Avatar.js +5 -4
  9. package/dist/packages/_es/BackTop.js +5 -4
  10. package/dist/packages/_es/Badge.js +5 -4
  11. package/dist/packages/_es/Barrage.js +9 -8
  12. package/dist/packages/_es/Button.js +6 -5
  13. package/dist/packages/_es/Calendar.js +14 -16
  14. package/dist/packages/_es/Cell.js +5 -4
  15. package/dist/packages/_es/CellGroup.js +8 -7
  16. package/dist/packages/_es/Checkbox.js +3 -3
  17. package/dist/packages/_es/CheckboxGroup.js +2 -2
  18. package/dist/packages/_es/CircleProgress.js +5 -4
  19. package/dist/packages/_es/Col.js +5 -4
  20. package/dist/packages/_es/Collapse.js +8 -7
  21. package/dist/packages/_es/CollapseItem.js +6 -8
  22. package/dist/packages/_es/CountDown.js +5 -7
  23. package/dist/packages/_es/CountUp.js +26 -28
  24. package/dist/packages/_es/DatePicker.js +11 -13
  25. package/dist/packages/_es/Dialog.js +14 -25
  26. package/dist/packages/_es/Divider.js +5 -4
  27. package/dist/packages/_es/Drag.js +5 -4
  28. package/dist/packages/_es/Elevator.js +19 -21
  29. package/dist/packages/_es/FixedNav.js +9 -8
  30. package/dist/packages/_es/Icon.js +40 -6
  31. package/dist/packages/_es/ImagePreview.js +12 -13
  32. package/dist/packages/_es/InfiniteLoading.js +5 -7
  33. package/dist/packages/_es/Input.js +10 -9
  34. package/dist/packages/_es/InputNumber.js +8 -15
  35. package/dist/packages/_es/Layout.js +2 -2
  36. package/dist/packages/_es/Menu.js +203 -0
  37. package/dist/packages/_es/MenuItem.js +18 -171
  38. package/dist/packages/_es/Navbar.js +7 -6
  39. package/dist/packages/_es/NoticeBar.js +9 -11
  40. package/dist/packages/_es/Notify.js +10 -12
  41. package/dist/packages/_es/NumberKeyboard.js +5 -4
  42. package/dist/packages/_es/OverLay.js +5 -7
  43. package/dist/packages/_es/Pagination.js +7 -6
  44. package/dist/packages/_es/Picker.js +12 -14
  45. package/dist/packages/_es/Popover.js +10 -12
  46. package/dist/packages/_es/Popup.js +9 -11
  47. package/dist/packages/_es/Price.js +33 -14
  48. package/dist/packages/_es/Progress.js +5 -4
  49. package/dist/packages/_es/Radio.js +20 -7
  50. package/dist/packages/_es/RadioGroup.js +7 -3
  51. package/dist/packages/_es/Range.js +13 -15
  52. package/dist/packages/_es/Rate.js +8 -7
  53. package/dist/packages/_es/Row.js +5 -4
  54. package/dist/packages/_es/SearchBar.js +56 -55
  55. package/dist/packages/_es/ShortPassword.js +8 -7
  56. package/dist/packages/_es/Signature.js +5 -4
  57. package/dist/packages/_es/Sku.js +533 -0
  58. package/dist/packages/_es/Step.js +14 -11
  59. package/dist/packages/_es/Steps.js +2 -2
  60. package/dist/packages/_es/Swipe.js +5 -7
  61. package/dist/packages/_es/Swiper.js +12 -11
  62. package/dist/packages/_es/SwiperItem.js +5 -4
  63. package/dist/packages/_es/Switch.js +5 -4
  64. package/dist/packages/_es/TabPane.js +5 -4
  65. package/dist/packages/_es/Tabbar.js +5 -4
  66. package/dist/packages/_es/TabbarItem.js +9 -8
  67. package/dist/packages/_es/Tabs.js +43 -18
  68. package/dist/packages/_es/Tag.js +16 -18
  69. package/dist/packages/_es/TextArea.js +6 -5
  70. package/dist/packages/_es/TimeDetail.js +5 -7
  71. package/dist/packages/_es/TimePannel.js +5 -7
  72. package/dist/packages/_es/TimeSelect.js +5 -4
  73. package/dist/packages/_es/Toast.js +10 -12
  74. package/dist/packages/_es/Uploader.js +165 -89
  75. package/dist/packages/_es/Video.js +5 -7
  76. package/dist/packages/_es/component.js +1 -1
  77. package/dist/packages/_es/index.js +1 -1
  78. package/dist/packages/_es/index2.js +1 -1
  79. package/dist/packages/_es/plugin-vue_export-helper.js +12 -0
  80. package/dist/packages/_es/pxCheck.js +1 -1
  81. package/dist/packages/_es/raf.js +1 -1
  82. package/dist/packages/_es/style.css +160 -0
  83. package/dist/packages/button/index.scss +3 -0
  84. package/dist/packages/checkbox/index.scss +2 -0
  85. package/dist/packages/dialog/index.scss +2 -1
  86. package/dist/packages/menu/index.scss +70 -4
  87. package/dist/packages/price/index.scss +40 -3
  88. package/dist/packages/progress/index.scss +2 -0
  89. package/dist/packages/radio/index.scss +34 -4
  90. package/dist/packages/radiogroup/index.scss +20 -0
  91. package/dist/packages/searchbar/index.scss +35 -30
  92. package/dist/packages/sku/index.scss +147 -0
  93. package/dist/packages/tabs/index.scss +47 -19
  94. package/dist/packages/tag/index.scss +2 -1
  95. package/dist/packages/uploader/index.scss +94 -8
  96. package/dist/style.css +1 -1
  97. package/dist/style.es.js +2 -1
  98. package/dist/styles/mixins/index.scss +0 -4
  99. package/dist/styles/themes/default.scss +29 -30
  100. package/dist/styles/variables.scss +46 -6
  101. package/package.json +1 -1
  102. package/dist/packages/_es/Tab.js +0 -178
  103. package/dist/packages/_es/TabPanel.js +0 -29
  104. package/dist/packages/_es/index.vue_vue&type=script&lang.js +0 -44
  105. package/dist/packages/tab/index.scss +0 -182
  106. package/dist/packages/tabpanel/index.scss +0 -2
@@ -1,13 +1,14 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.10-beta.1 Thu Oct 28 2021 09:26:47 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.11-beta.0 Sat Nov 13 2021 21:43:55 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import { computed, resolveComponent, openBlock, createElementBlock, normalizeClass, Fragment, renderList, normalizeStyle, createVNode, createBlock, createCommentVNode } from "vue";
7
7
  import { c as createComponent } from "./component.js";
8
8
  import { p as pxCheck } from "./pxCheck.js";
9
+ import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
9
10
  const { componentName, create } = createComponent("rate");
10
- var _sfc_main = create({
11
+ const _sfc_main = create({
11
12
  props: {
12
13
  count: {
13
14
  type: [String, Number],
@@ -62,16 +63,16 @@ var _sfc_main = create({
62
63
  [prefixCls]: true
63
64
  };
64
65
  });
65
- const onClick = (e, index) => {
66
+ const onClick = (e, index2) => {
66
67
  e.preventDefault();
67
68
  e.stopPropagation();
68
69
  if (props.disabled || props.readonly)
69
70
  return;
70
71
  let value = 0;
71
- if (index === 1 && props.modelValue === index)
72
+ if (index2 === 1 && props.modelValue === index2)
72
73
  ;
73
74
  else {
74
- value = index;
75
+ value = index2;
75
76
  if (props.allowHalf) {
76
77
  if ((e == null ? void 0 : e.target).className.includes("__icon--half")) {
77
78
  value -= 0.5;
@@ -124,5 +125,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
124
125
  }), 128))
125
126
  ], 2);
126
127
  }
127
- _sfc_main.render = _sfc_render;
128
- export { _sfc_main as default };
128
+ var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
129
+ export { index as default };
@@ -1,12 +1,13 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.10-beta.1 Thu Oct 28 2021 09:26:47 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.11-beta.0 Sat Nov 13 2021 21:43:55 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import { provide, openBlock, createElementBlock, normalizeClass, renderSlot } from "vue";
7
7
  import { c as createComponent } from "./component.js";
8
+ import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
8
9
  const { componentName, create } = createComponent("row");
9
- var _sfc_main = create({
10
+ const _sfc_main = create({
10
11
  props: {
11
12
  type: {
12
13
  type: String,
@@ -56,5 +57,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
56
57
  renderSlot(_ctx.$slots, "default")
57
58
  ], 2);
58
59
  }
59
- _sfc_main.render = _sfc_render;
60
- export { _sfc_main as default };
60
+ var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
61
+ export { index as default };
@@ -17,20 +17,16 @@ var __spreadValues = (a, b) => {
17
17
  return a;
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- var __require = typeof require !== "undefined" ? require : (x) => {
21
- throw new Error('Dynamic require of "' + x + '" is not supported');
22
- };
23
20
  /*!
24
- * @nutui/nutui v3.1.10-beta.1 Thu Oct 28 2021 09:26:47 GMT+0800 (中国标准时间)
21
+ * @nutui/nutui v3.1.11-beta.0 Sat Nov 13 2021 21:43:55 GMT+0800 (中国标准时间)
25
22
  * (c) 2021 @jdf2e.
26
23
  * Released under the MIT License.
27
24
  */
28
- import { toRefs, reactive, resolveComponent, openBlock, createElementBlock, renderSlot, createCommentVNode, createElementVNode, withModifiers, withDirectives, createVNode, vShow } from "vue";
25
+ import { reactive, computed, toRefs, resolveComponent, openBlock, createElementBlock, normalizeStyle, renderSlot, createCommentVNode, createElementVNode, withModifiers, withDirectives, createVNode, vShow } from "vue";
29
26
  import { c as createComponent } from "./component.js";
30
- import { _ as _sfc_main$1 } from "./index.vue_vue&type=script&lang.js";
31
- import "./pxCheck.js";
27
+ import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
32
28
  const { create } = createComponent("searchbar");
33
- var _sfc_main = create({
29
+ const _sfc_main = create({
34
30
  props: {
35
31
  modelValue: {
36
32
  type: [String, Number],
@@ -52,32 +48,30 @@ var _sfc_main = create({
52
48
  type: Boolean,
53
49
  default: true
54
50
  },
55
- hasLeftIn: {
56
- type: Boolean,
57
- default: true
58
- },
59
- hasLeftOut: {
60
- type: Boolean,
61
- default: true
62
- },
63
- hasRightIn: {
64
- type: Boolean,
65
- default: true
51
+ background: {
52
+ type: String,
53
+ default: ""
66
54
  },
67
- hasRightOut: {
68
- type: Boolean,
69
- default: true
55
+ inputBackground: {
56
+ type: String,
57
+ default: ""
70
58
  }
71
59
  },
72
- components: {
73
- [_sfc_main$1.name]: _sfc_main$1
74
- },
75
60
  emits: ["change", "update:modelValue", "blur", "focus", "clear", "search"],
76
61
  setup(props, { emit }) {
77
- toRefs(props);
78
62
  const state = reactive({
79
63
  active: false
80
64
  });
65
+ const searchbarStyle = computed(() => {
66
+ return {
67
+ background: props.background
68
+ };
69
+ });
70
+ const inputSearchbarStyle = computed(() => {
71
+ return {
72
+ background: props.inputBackground
73
+ };
74
+ });
81
75
  const valueChange = (event) => {
82
76
  const input = event.target;
83
77
  let val = input.value;
@@ -117,47 +111,53 @@ var _sfc_main = create({
117
111
  valueFocus,
118
112
  valueBlur,
119
113
  handleClear,
120
- handleSubmit
114
+ handleSubmit,
115
+ searchbarStyle,
116
+ inputSearchbarStyle
121
117
  });
122
118
  }
123
119
  });
124
- const _hoisted_1 = { class: "nut-searchbar" };
125
- const _hoisted_2 = {
120
+ const _hoisted_1 = {
126
121
  key: 0,
127
- class: "search-icon left-search-icon"
122
+ class: "nut-searchbar__search-icon nut-searchbar__left-search-icon"
128
123
  };
129
- const _hoisted_3 = { class: "search-input" };
130
- const _hoisted_4 = {
124
+ const _hoisted_2 = {
131
125
  key: 0,
132
- class: "search-icon iptleft-search-icon"
126
+ class: "nut-searchbar__search-icon nut-searchbar__iptleft-search-icon"
133
127
  };
134
- const _hoisted_5 = { class: "input-inner" };
135
- const _hoisted_6 = ["type", "maxlength", "placeholder", "value"];
136
- const _hoisted_7 = {
128
+ const _hoisted_3 = { class: "nut-searchbar__input-inner" };
129
+ const _hoisted_4 = ["type", "maxlength", "placeholder", "value"];
130
+ const _hoisted_5 = {
137
131
  key: 1,
138
- class: "search-icon iptright-sarch-icon"
132
+ class: "nut-searchbar__search-icon nut-searchbar__iptright-sarch-icon"
139
133
  };
140
- const _hoisted_8 = {
134
+ const _hoisted_6 = {
141
135
  key: 1,
142
- class: "search-icon right-search-icon"
136
+ class: "nut-searchbar__search-icon nut-searchbar__right-search-icon"
143
137
  };
144
138
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
145
139
  const _component_nut_icon = resolveComponent("nut-icon");
146
- return openBlock(), createElementBlock("view", _hoisted_1, [
147
- _ctx.hasLeftOut ? (openBlock(), createElementBlock("view", _hoisted_2, [
140
+ return openBlock(), createElementBlock("view", {
141
+ class: "nut-searchbar",
142
+ style: normalizeStyle(_ctx.searchbarStyle)
143
+ }, [
144
+ _ctx.$slots.leftout ? (openBlock(), createElementBlock("view", _hoisted_1, [
148
145
  renderSlot(_ctx.$slots, "leftout")
149
146
  ])) : createCommentVNode("", true),
150
- createElementVNode("view", _hoisted_3, [
151
- _ctx.hasLeftIn ? (openBlock(), createElementBlock("view", _hoisted_4, [
147
+ createElementVNode("view", {
148
+ class: "nut-searchbar__search-input",
149
+ style: normalizeStyle(_ctx.inputSearchbarStyle)
150
+ }, [
151
+ _ctx.$slots.leftin ? (openBlock(), createElementBlock("view", _hoisted_2, [
152
152
  renderSlot(_ctx.$slots, "leftin")
153
153
  ])) : createCommentVNode("", true),
154
- createElementVNode("view", _hoisted_5, [
154
+ createElementVNode("view", _hoisted_3, [
155
155
  createElementVNode("form", {
156
156
  action: "#",
157
157
  onSubmit: _cache[3] || (_cache[3] = withModifiers((...args) => _ctx.handleSubmit && _ctx.handleSubmit(...args), ["prevent"]))
158
158
  }, [
159
159
  createElementVNode("input", {
160
- class: "input-bar",
160
+ class: "nut-searchbar__input-bar",
161
161
  type: _ctx.inputType,
162
162
  maxlength: _ctx.maxLength,
163
163
  placeholder: _ctx.placeholder,
@@ -165,29 +165,30 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
165
165
  onInput: _cache[0] || (_cache[0] = (...args) => _ctx.valueChange && _ctx.valueChange(...args)),
166
166
  onFocus: _cache[1] || (_cache[1] = (...args) => _ctx.valueFocus && _ctx.valueFocus(...args)),
167
167
  onBlur: _cache[2] || (_cache[2] = (...args) => _ctx.valueBlur && _ctx.valueBlur(...args))
168
- }, null, 40, _hoisted_6)
168
+ }, null, 40, _hoisted_4)
169
169
  ], 32),
170
170
  _ctx.clearable ? withDirectives((openBlock(), createElementBlock("view", {
171
171
  key: 0,
172
172
  onClick: _cache[4] || (_cache[4] = (...args) => _ctx.handleClear && _ctx.handleClear(...args)),
173
- class: "input-clear"
173
+ class: "nut-searchbar__input-clear"
174
174
  }, [
175
175
  createVNode(_component_nut_icon, {
176
- name: "mask-close",
177
- size: "12px"
176
+ name: "circle-close",
177
+ size: "12",
178
+ color: "#555"
178
179
  })
179
180
  ], 512)), [
180
181
  [vShow, _ctx.modelValue.length > 0]
181
182
  ]) : createCommentVNode("", true)
182
183
  ]),
183
- _ctx.hasRightIn ? (openBlock(), createElementBlock("view", _hoisted_7, [
184
+ _ctx.$slots.rightin ? (openBlock(), createElementBlock("view", _hoisted_5, [
184
185
  renderSlot(_ctx.$slots, "rightin")
185
186
  ])) : createCommentVNode("", true)
186
- ]),
187
- _ctx.hasRightIn ? (openBlock(), createElementBlock("view", _hoisted_8, [
187
+ ], 4),
188
+ _ctx.$slots.rightout ? (openBlock(), createElementBlock("view", _hoisted_6, [
188
189
  renderSlot(_ctx.$slots, "rightout")
189
190
  ])) : createCommentVNode("", true)
190
- ]);
191
+ ], 4);
191
192
  }
192
- _sfc_main.render = _sfc_render;
193
- export { _sfc_main as default };
193
+ var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
194
+ export { index as default };
@@ -1,12 +1,13 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.10-beta.1 Thu Oct 28 2021 09:26:47 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.11-beta.0 Sat Nov 13 2021 21:43:55 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import { ref, computed, watch, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, toDisplayString, withDirectives, normalizeStyle, vModelText, Fragment, renderList, createCommentVNode } from "vue";
7
7
  import { c as createComponent } from "./component.js";
8
+ import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
8
9
  const { create } = createComponent("shortpassword");
9
- var _sfc_main = create({
10
+ const _sfc_main = create({
10
11
  props: {
11
12
  title: {
12
13
  type: String,
@@ -178,12 +179,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
178
179
  class: "nut-shortpsd-fake",
179
180
  onClick: _cache[2] || (_cache[2] = (...args) => _ctx.focus && _ctx.focus(...args))
180
181
  }, [
181
- (openBlock(true), createElementBlock(Fragment, null, renderList(new Array(_ctx.comLen), (sublen, index) => {
182
+ (openBlock(true), createElementBlock(Fragment, null, renderList(new Array(_ctx.comLen), (sublen, index2) => {
182
183
  return openBlock(), createElementBlock("view", {
183
184
  class: "nut-shortpsd-li",
184
- key: index
185
+ key: index2
185
186
  }, [
186
- String(_ctx.realInput).length > index ? (openBlock(), createElementBlock("view", _hoisted_5)) : createCommentVNode("", true)
187
+ String(_ctx.realInput).length > index2 ? (openBlock(), createElementBlock("view", _hoisted_5)) : createCommentVNode("", true)
187
188
  ]);
188
189
  }), 128))
189
190
  ])
@@ -216,5 +217,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
216
217
  }, 8, ["visible", "onClickCloseIcon", "close-on-click-overlay", "onClickOverlay"])
217
218
  ]);
218
219
  }
219
- _sfc_main.render = _sfc_render;
220
- export { _sfc_main as default };
220
+ var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
221
+ export { index as default };
@@ -1,12 +1,13 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.10-beta.1 Thu Oct 28 2021 09:26:47 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.11-beta.0 Sat Nov 13 2021 21:43:55 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import { ref, computed, reactive, onMounted, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, toDisplayString, createVNode, withCtx, createTextVNode } from "vue";
7
7
  import { c as createComponent } from "./component.js";
8
+ import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
8
9
  const { componentName, create } = createComponent("signature");
9
- var _sfc_main = create({
10
+ const _sfc_main = create({
10
11
  props: {
11
12
  customClass: {
12
13
  type: String,
@@ -162,5 +163,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
162
163
  })
163
164
  ], 2);
164
165
  }
165
- _sfc_main.render = _sfc_render;
166
- export { _sfc_main as default };
166
+ var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
167
+ export { index as default };