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