@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.
- package/CHANGELOG.md +43 -0
- package/dist/nutui.d.ts +2 -1
- package/dist/nutui.es.js +1642 -926
- package/dist/nutui.umd.js +1648 -931
- package/dist/packages/_es/ActionSheet.js +1 -1
- package/dist/packages/_es/Address.js +1 -1
- package/dist/packages/_es/Avatar.js +1 -1
- package/dist/packages/_es/BackTop.js +1 -1
- package/dist/packages/_es/Badge.js +1 -1
- package/dist/packages/_es/Barrage.js +1 -1
- package/dist/packages/_es/Button.js +1 -1
- package/dist/packages/_es/Calendar.js +1 -1
- package/dist/packages/_es/Cell.js +1 -1
- package/dist/packages/_es/CellGroup.js +1 -1
- package/dist/packages/_es/Checkbox.js +1 -1
- package/dist/packages/_es/CheckboxGroup.js +2 -2
- package/dist/packages/_es/CircleProgress.js +1 -1
- package/dist/packages/_es/Col.js +1 -1
- package/dist/packages/_es/Collapse.js +1 -1
- package/dist/packages/_es/CollapseItem.js +1 -1
- package/dist/packages/_es/CountDown.js +1 -1
- package/dist/packages/_es/CountUp.js +1 -1
- package/dist/packages/_es/DatePicker.js +1 -1
- package/dist/packages/_es/Dialog.js +3 -12
- package/dist/packages/_es/Divider.js +1 -1
- package/dist/packages/_es/Drag.js +1 -1
- package/dist/packages/_es/Elevator.js +1 -1
- package/dist/packages/_es/FixedNav.js +1 -1
- package/dist/packages/_es/Icon.js +1 -1
- package/dist/packages/_es/ImagePreview.js +3 -2
- package/dist/packages/_es/InfiniteLoading.js +1 -1
- package/dist/packages/_es/Input.js +1 -1
- package/dist/packages/_es/InputNumber.js +1 -1
- package/dist/packages/_es/Layout.js +1 -1
- package/dist/packages/_es/Menu.js +83 -167
- package/dist/packages/_es/MenuItem.js +154 -15
- package/dist/packages/_es/Navbar.js +1 -1
- package/dist/packages/_es/NoticeBar.js +1 -1
- package/dist/packages/_es/Notify.js +1 -1
- package/dist/packages/_es/NumberKeyboard.js +1 -1
- package/dist/packages/_es/OverLay.js +1 -1
- package/dist/packages/_es/Pagination.js +1 -1
- package/dist/packages/_es/Picker.js +1 -1
- package/dist/packages/_es/Popover.js +1 -1
- package/dist/packages/_es/Popup.js +52 -13
- package/dist/packages/_es/Price.js +1 -1
- package/dist/packages/_es/Progress.js +1 -1
- package/dist/packages/_es/Radio.js +18 -5
- package/dist/packages/_es/RadioGroup.js +6 -2
- package/dist/packages/_es/Range.js +3 -31
- package/dist/packages/_es/Rate.js +1 -1
- package/dist/packages/_es/Row.js +1 -1
- package/dist/packages/_es/SearchBar.js +52 -49
- package/dist/packages/_es/ShortPassword.js +1 -1
- package/dist/packages/_es/Signature.js +1 -1
- package/dist/packages/_es/Sku.js +533 -0
- package/dist/packages/_es/Step.js +1 -1
- package/dist/packages/_es/Steps.js +1 -1
- package/dist/packages/_es/Swipe.js +1 -1
- package/dist/packages/_es/Swiper.js +2 -2
- package/dist/packages/_es/SwiperItem.js +1 -1
- package/dist/packages/_es/Switch.js +1 -1
- package/dist/packages/_es/TabPane.js +1 -1
- package/dist/packages/_es/Tabbar.js +1 -1
- package/dist/packages/_es/TabbarItem.js +1 -1
- package/dist/packages/_es/Tabs.js +2 -2
- package/dist/packages/_es/Tag.js +1 -1
- package/dist/packages/_es/TextArea.js +1 -1
- package/dist/packages/_es/TimeDetail.js +1 -1
- package/dist/packages/_es/TimePannel.js +1 -1
- package/dist/packages/_es/TimeSelect.js +1 -1
- package/dist/packages/_es/Toast.js +3 -3
- package/dist/packages/_es/Uploader.js +159 -73
- package/dist/packages/_es/Video.js +1 -1
- package/dist/packages/_es/component.js +1 -1
- package/dist/packages/_es/index.js +1 -1
- package/dist/packages/_es/index2.js +31 -8
- package/dist/packages/_es/index3.js +13 -0
- package/dist/packages/_es/plugin-vue_export-helper.js +4 -3
- package/dist/packages/_es/pxCheck.js +1 -1
- package/dist/packages/_es/raf.js +1 -1
- package/dist/packages/button/index.scss +3 -0
- package/dist/packages/menu/index.scss +32 -60
- package/dist/packages/menuitem/index.scss +36 -99
- package/dist/packages/progress/index.scss +2 -0
- package/dist/packages/radio/index.scss +32 -4
- package/dist/packages/radiogroup/index.scss +20 -0
- package/dist/packages/searchbar/index.scss +25 -29
- package/dist/packages/sku/index.scss +147 -0
- package/dist/packages/uploader/index.scss +95 -8
- package/dist/style.css +1 -1
- package/dist/styles/mixins/index.scss +0 -4
- package/dist/styles/themes/default.scss +31 -30
- package/dist/styles/variables.scss +40 -3
- package/package.json +2 -1
- 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.
|
|
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 {
|
|
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
|
-
|
|
54
|
-
type:
|
|
55
|
-
default:
|
|
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
|
-
|
|
66
|
-
type:
|
|
67
|
-
default:
|
|
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 = {
|
|
123
|
-
const _hoisted_2 = {
|
|
120
|
+
const _hoisted_1 = {
|
|
124
121
|
key: 0,
|
|
125
|
-
class: "
|
|
122
|
+
class: "nut-searchbar__search-icon nut-searchbar__left-search-icon"
|
|
126
123
|
};
|
|
127
|
-
const
|
|
128
|
-
const _hoisted_4 = {
|
|
124
|
+
const _hoisted_2 = {
|
|
129
125
|
key: 0,
|
|
130
|
-
class: "
|
|
126
|
+
class: "nut-searchbar__search-icon nut-searchbar__iptleft-search-icon"
|
|
131
127
|
};
|
|
132
|
-
const
|
|
133
|
-
const
|
|
134
|
-
const
|
|
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: "
|
|
132
|
+
class: "nut-searchbar__search-icon nut-searchbar__iptright-sarch-icon"
|
|
137
133
|
};
|
|
138
|
-
const
|
|
134
|
+
const _hoisted_6 = {
|
|
139
135
|
key: 1,
|
|
140
|
-
class: "
|
|
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",
|
|
145
|
-
|
|
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",
|
|
149
|
-
|
|
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",
|
|
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: "
|
|
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,
|
|
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: "
|
|
173
|
+
class: "nut-searchbar__input-clear"
|
|
172
174
|
}, [
|
|
173
175
|
createVNode(_component_nut_icon, {
|
|
174
|
-
name: "
|
|
175
|
-
size: "
|
|
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.
|
|
184
|
+
_ctx.$slots.rightin ? (openBlock(), createElementBlock("view", _hoisted_5, [
|
|
182
185
|
renderSlot(_ctx.$slots, "rightin")
|
|
183
186
|
])) : createCommentVNode("", true)
|
|
184
|
-
]),
|
|
185
|
-
_ctx.
|
|
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 };
|