@nutui/nutui 3.1.14 → 3.1.16-beta.1
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 +36 -0
- package/README.md +3 -3
- package/dist/nutui.d.ts +8 -5
- package/dist/nutui.es.js +1016 -740
- package/dist/nutui.umd.js +1022 -743
- package/dist/packages/_es/ActionSheet.js +1 -1
- package/dist/packages/_es/Address.js +2 -4
- 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/Card.js +1 -1
- package/dist/packages/_es/Cascader.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 +1 -1
- 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 +11 -3
- package/dist/packages/_es/CountDown.js +1 -1
- package/dist/packages/_es/CountUp.js +1 -1
- package/dist/packages/_es/DatePicker.js +2 -4
- package/dist/packages/_es/Dialog.js +1 -1
- 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/Empty.js +1 -1
- package/dist/packages/_es/FixedNav.js +1 -1
- package/dist/packages/_es/Form.js +10 -7
- package/dist/packages/_es/FormItem.js +1 -1
- package/dist/packages/_es/Grid.js +1 -1
- package/dist/packages/_es/GridItem.js +1 -1
- package/dist/packages/_es/Icon.js +1 -1
- package/dist/packages/_es/ImagePreview.js +104 -10
- package/dist/packages/_es/Indicator.js +1 -1
- package/dist/packages/_es/InfiniteLoading.js +1 -1
- package/dist/packages/_es/Input.js +15 -10
- package/dist/packages/_es/InputNumber.js +2 -2
- package/dist/packages/_es/Layout.js +1 -1
- package/dist/packages/_es/Menu.js +3 -3
- package/dist/packages/_es/MenuItem.js +1 -1
- package/dist/packages/_es/Navbar.js +6 -32
- package/dist/packages/_es/NoticeBar.js +2 -2
- 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 +170 -189
- package/dist/packages/_es/Popover.js +1 -1
- package/dist/packages/_es/Popup.js +8 -4
- package/dist/packages/_es/Price.js +1 -1
- package/dist/packages/_es/Progress.js +1 -1
- package/dist/packages/_es/Radio.js +1 -1
- package/dist/packages/_es/RadioGroup.js +1 -1
- package/dist/packages/_es/Range.js +2 -2
- package/dist/packages/_es/Rate.js +1 -1
- package/dist/packages/_es/Row.js +1 -1
- package/dist/packages/_es/SearchBar.js +1 -1
- package/dist/packages/_es/ShortPassword.js +1 -1
- package/dist/packages/_es/SideNavBar.js +104 -0
- package/dist/packages/_es/SideNavBarItem.js +50 -0
- package/dist/packages/_es/Signature.js +1 -1
- package/dist/packages/_es/Skeleton.js +1 -1
- package/dist/packages/_es/Sku.js +1 -2
- package/dist/packages/_es/Step.js +1 -1
- package/dist/packages/_es/Steps.js +1 -1
- package/dist/packages/_es/SubSideNavBar.js +104 -0
- package/dist/packages/_es/Swipe.js +1 -1
- package/dist/packages/_es/Swiper.js +1 -1
- 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 +6 -2
- package/dist/packages/_es/TabbarItem.js +1 -1
- package/dist/packages/_es/Table.js +9 -3
- package/dist/packages/_es/Tabs.js +1 -1
- package/dist/packages/_es/Tag.js +1 -1
- package/dist/packages/_es/TextArea.js +9 -4
- 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 +1 -1
- package/dist/packages/_es/Uploader.js +6 -4
- package/dist/packages/_es/Video.js +1 -1
- package/dist/packages/_es/common.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 +1 -1
- package/dist/packages/_es/index3.js +1 -1
- package/dist/packages/_es/plugin-vue_export-helper.js +1 -1
- package/dist/packages/_es/pxCheck.js +1 -1
- package/dist/packages/_es/raf.js +1 -1
- package/dist/packages/_es/util.js +1 -1
- package/dist/packages/actionsheet/index.scss +2 -2
- package/dist/packages/address/index.scss +2 -0
- package/dist/packages/button/index.scss +3 -0
- package/dist/packages/cascader/index.scss +13 -13
- package/dist/packages/icon/index.scss +101 -11
- package/dist/packages/imagepreview/index.scss +1 -0
- package/dist/packages/input/index.scss +4 -1
- package/dist/packages/menu/index.scss +10 -6
- package/dist/packages/menuitem/index.scss +9 -8
- package/dist/packages/navbar/index.scss +8 -34
- package/dist/packages/noticebar/index.scss +11 -11
- package/dist/packages/picker/index.scss +74 -22
- package/dist/packages/progress/index.scss +2 -8
- package/dist/packages/shortpassword/index.scss +6 -6
- package/dist/packages/sidenavbar/index.scss +14 -0
- package/dist/packages/sidenavbaritem/index.scss +10 -0
- package/dist/packages/sku/index.scss +1 -1
- package/dist/packages/subsidenavbar/index.scss +39 -0
- package/dist/packages/tabbar/index.scss +5 -1
- package/dist/packages/textarea/index.scss +1 -1
- package/dist/style.css +1 -1
- package/dist/styles/animation/icon.scss +245 -0
- package/dist/styles/animation/index.scss +1 -0
- package/dist/styles/font/config.json +36 -0
- package/dist/styles/font/demo_index.html +26 -3
- package/dist/styles/font/iconfont.css +7 -3
- package/dist/styles/font/iconfont.js +1 -1
- package/dist/styles/font/iconfont.json +7 -0
- package/dist/styles/font/iconfont.ttf +0 -0
- package/dist/styles/font/iconfont.woff +0 -0
- package/dist/styles/font/iconfont.woff2 +0 -0
- package/dist/styles/themes/default.scss +37 -34
- package/dist/styles/themes/jdd.scss +2 -0
- package/dist/styles/variables.scss +72 -68
- package/package.json +7 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
2
|
+
* @nutui/nutui v3.1.16-beta.1 Thu Jan 27 2022 18:18:31 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2021 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -72,6 +72,10 @@ const _sfc_main = create({
|
|
|
72
72
|
clearable: {
|
|
73
73
|
type: Boolean,
|
|
74
74
|
default: true
|
|
75
|
+
},
|
|
76
|
+
hasBorder: {
|
|
77
|
+
type: Boolean,
|
|
78
|
+
default: true
|
|
75
79
|
}
|
|
76
80
|
},
|
|
77
81
|
emits: ["change", "update:modelValue", "blur", "focus", "clear"],
|
|
@@ -82,7 +86,8 @@ const _sfc_main = create({
|
|
|
82
86
|
return {
|
|
83
87
|
[prefixCls]: true,
|
|
84
88
|
[`${prefixCls}-disabled`]: props.disabled,
|
|
85
|
-
[`${prefixCls}-require`]: props.requireShow
|
|
89
|
+
[`${prefixCls}-require`]: props.requireShow,
|
|
90
|
+
[`${prefixCls}-border`]: props.hasBorder
|
|
86
91
|
};
|
|
87
92
|
});
|
|
88
93
|
const styles = computed(() => {
|
|
@@ -114,7 +119,7 @@ const _sfc_main = create({
|
|
|
114
119
|
const valueBlur = (event) => {
|
|
115
120
|
setTimeout(() => {
|
|
116
121
|
active.value = false;
|
|
117
|
-
},
|
|
122
|
+
}, 200);
|
|
118
123
|
const input = event.target;
|
|
119
124
|
let value = input.value;
|
|
120
125
|
if (props.maxLength && value.length > Number(props.maxLength)) {
|
|
@@ -138,20 +143,20 @@ const _sfc_main = create({
|
|
|
138
143
|
};
|
|
139
144
|
}
|
|
140
145
|
});
|
|
141
|
-
const _hoisted_1 = {
|
|
142
|
-
const _hoisted_2 = {
|
|
146
|
+
const _hoisted_1 = {
|
|
143
147
|
key: 0,
|
|
144
|
-
class: "label
|
|
148
|
+
class: "nut-input-label"
|
|
145
149
|
};
|
|
150
|
+
const _hoisted_2 = { class: "label-string" };
|
|
146
151
|
const _hoisted_3 = ["type", "maxlength", "placeholder", "disabled", "readonly", "value"];
|
|
147
152
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
148
153
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
149
154
|
return openBlock(), createElementBlock("view", {
|
|
150
155
|
class: normalizeClass(_ctx.classes)
|
|
151
156
|
}, [
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
]),
|
|
157
|
+
_ctx.label ? (openBlock(), createElementBlock("view", _hoisted_1, [
|
|
158
|
+
createElementVNode("view", _hoisted_2, toDisplayString(_ctx.label), 1)
|
|
159
|
+
])) : createCommentVNode("", true),
|
|
155
160
|
createElementVNode("input", {
|
|
156
161
|
class: "input-text",
|
|
157
162
|
style: normalizeStyle(_ctx.styles),
|
|
@@ -166,7 +171,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
166
171
|
onBlur: _cache[2] || (_cache[2] = (...args) => _ctx.valueBlur && _ctx.valueBlur(...args))
|
|
167
172
|
}, null, 44, _hoisted_3),
|
|
168
173
|
_ctx.clearable && !_ctx.readonly ? withDirectives((openBlock(), createElementBlock("view", {
|
|
169
|
-
key:
|
|
174
|
+
key: 1,
|
|
170
175
|
onClick: _cache[3] || (_cache[3] = (...args) => _ctx.handleClear && _ctx.handleClear(...args)),
|
|
171
176
|
class: "nut-textinput-clear"
|
|
172
177
|
}, [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
2
|
+
* @nutui/nutui v3.1.16-beta.1 Thu Jan 27 2022 18:18:31 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2021 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -65,8 +65,8 @@ const _sfc_main = create({
|
|
|
65
65
|
};
|
|
66
66
|
const emitChange = (value, event) => {
|
|
67
67
|
let output_value = fixedDecimalPlaces(value);
|
|
68
|
-
emit("change", output_value, event);
|
|
69
68
|
emit("update:modelValue", output_value, event);
|
|
69
|
+
emit("change", output_value, event);
|
|
70
70
|
};
|
|
71
71
|
const addAllow = (value = Number(props.modelValue)) => {
|
|
72
72
|
return value < Number(props.max) && !props.disabled;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
2
|
+
* @nutui/nutui v3.1.16-beta.1 Thu Jan 27 2022 18:18:31 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2021 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -12,7 +12,7 @@ const _sfc_main = create({
|
|
|
12
12
|
props: {
|
|
13
13
|
activeColor: {
|
|
14
14
|
type: String,
|
|
15
|
-
default: "
|
|
15
|
+
default: ""
|
|
16
16
|
},
|
|
17
17
|
overlay: {
|
|
18
18
|
type: Boolean,
|
|
@@ -95,7 +95,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
95
95
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.children, (item, index2) => {
|
|
96
96
|
return openBlock(), createElementBlock("view", {
|
|
97
97
|
key: index2,
|
|
98
|
-
class: normalizeClass(["nut-menu__item", { disabled: item.disabled }]),
|
|
98
|
+
class: normalizeClass(["nut-menu__item", { disabled: item.disabled, active: item.state.showPopup }]),
|
|
99
99
|
onClick: ($event) => !item.disabled && _ctx.toggleItem(index2),
|
|
100
100
|
style: normalizeStyle({ color: item.state.showPopup ? _ctx.activeColor : "" })
|
|
101
101
|
}, [
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
2
|
+
* @nutui/nutui v3.1.16-beta.1 Thu Jan 27 2022 18:18:31 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2021 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { ref, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createBlock, createCommentVNode, toDisplayString,
|
|
6
|
+
import { ref, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createBlock, createCommentVNode, toDisplayString, renderSlot, normalizeStyle } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
8
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
9
9
|
const { componentName, create } = createComponent("navbar");
|
|
@@ -12,12 +12,6 @@ const _sfc_main = create({
|
|
|
12
12
|
leftShow: { type: Boolean, default: true },
|
|
13
13
|
title: { type: String, default: "" },
|
|
14
14
|
titIcon: { type: String, default: "" },
|
|
15
|
-
tabs: {
|
|
16
|
-
type: Array,
|
|
17
|
-
defaul: () => {
|
|
18
|
-
return [];
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
15
|
icon: { type: String, default: "" },
|
|
22
16
|
desc: { type: String, default: "" },
|
|
23
17
|
defaultIndex: {
|
|
@@ -47,11 +41,6 @@ const _sfc_main = create({
|
|
|
47
41
|
[prefixCls]: true
|
|
48
42
|
};
|
|
49
43
|
});
|
|
50
|
-
function switchTitle(id, name) {
|
|
51
|
-
activeIndex.value = id;
|
|
52
|
-
console.log(id);
|
|
53
|
-
emit("switch-tab", activeIndex.value, name);
|
|
54
|
-
}
|
|
55
44
|
function handleLeft() {
|
|
56
45
|
emit("on-click-back");
|
|
57
46
|
}
|
|
@@ -82,14 +71,11 @@ const _sfc_main = create({
|
|
|
82
71
|
handleSend,
|
|
83
72
|
handleSlot,
|
|
84
73
|
handleSends,
|
|
85
|
-
switchTitle,
|
|
86
74
|
activeIndex
|
|
87
75
|
};
|
|
88
76
|
}
|
|
89
77
|
});
|
|
90
78
|
const _hoisted_1 = { class: "nut-navbar__left" };
|
|
91
|
-
const _hoisted_2 = { class: "tab-title" };
|
|
92
|
-
const _hoisted_3 = ["onClick"];
|
|
93
79
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
94
80
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
95
81
|
return openBlock(), createElementBlock("view", {
|
|
@@ -103,8 +89,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
103
89
|
onClick: _ctx.handleLeft
|
|
104
90
|
}, null, 8, ["onClick"])) : createCommentVNode("", true)
|
|
105
91
|
]),
|
|
106
|
-
|
|
107
|
-
key: 0,
|
|
92
|
+
createElementVNode("view", {
|
|
108
93
|
class: normalizeClass(["nut-navbar__title", { icon: _ctx.icon }])
|
|
109
94
|
}, [
|
|
110
95
|
_ctx.title ? (openBlock(), createElementBlock("view", {
|
|
@@ -117,21 +102,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
117
102
|
name: _ctx.titIcon,
|
|
118
103
|
onClick: _ctx.handleCenterIcon
|
|
119
104
|
}, null, 8, ["name", "onClick"])) : createCommentVNode("", true),
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
return openBlock(), createElementBlock("view", {
|
|
123
|
-
class: normalizeClass([
|
|
124
|
-
"tab-title-box",
|
|
125
|
-
{ "nut-tab-active": _ctx.activeIndex == item.id || _ctx.activeIndex == index2 }
|
|
126
|
-
]),
|
|
127
|
-
onClick: ($event) => _ctx.switchTitle(item.id, item.name),
|
|
128
|
-
key: item.id
|
|
129
|
-
}, toDisplayString(item.name), 11, _hoisted_3);
|
|
130
|
-
}), 128))
|
|
131
|
-
])
|
|
132
|
-
], 2)) : createCommentVNode("", true),
|
|
105
|
+
renderSlot(_ctx.$slots, "content")
|
|
106
|
+
], 2),
|
|
133
107
|
_ctx.desc || _ctx.icon ? (openBlock(), createElementBlock("view", {
|
|
134
|
-
key:
|
|
108
|
+
key: 0,
|
|
135
109
|
class: normalizeClass(["nut-navbar__right", { icon: _ctx.icon }])
|
|
136
110
|
}, [
|
|
137
111
|
_ctx.desc ? (openBlock(), createElementBlock("view", {
|
|
@@ -18,7 +18,7 @@ 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.16-beta.1 Thu Jan 27 2022 18:18:31 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2021 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
@@ -321,7 +321,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
321
321
|
onWebkitAnimationEnd: _cache[1] || (_cache[1] = (...args) => _ctx.onAnimationEnd && _ctx.onAnimationEnd(...args))
|
|
322
322
|
}, [
|
|
323
323
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
324
|
-
createTextVNode(
|
|
324
|
+
createTextVNode(toDisplayString(_ctx.text), 1)
|
|
325
325
|
])
|
|
326
326
|
], 38)
|
|
327
327
|
], 512),
|
|
@@ -18,7 +18,7 @@ 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.16-beta.1 Thu Jan 27 2022 18:18:31 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2021 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
@@ -15,7 +15,7 @@ var __spreadValues = (a, b) => {
|
|
|
15
15
|
return a;
|
|
16
16
|
};
|
|
17
17
|
/*!
|
|
18
|
-
* @nutui/nutui v3.1.
|
|
18
|
+
* @nutui/nutui v3.1.16-beta.1 Thu Jan 27 2022 18:18:31 GMT+0800 (中国标准时间)
|
|
19
19
|
* (c) 2021 @jdf2e.
|
|
20
20
|
* Released under the MIT License.
|
|
21
21
|
*/
|