@nutui/nutui 3.1.15-beta.0 → 3.1.16
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 +57 -0
- package/README.md +3 -3
- package/dist/nutui.d.ts +8 -5
- package/dist/nutui.es.js +826 -644
- package/dist/nutui.umd.js +832 -647
- 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 +9 -6
- 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 +1 -1
- 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 +2 -2
- 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/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 +41 -38
- package/dist/styles/themes/jdd.scss +2 -0
- package/dist/styles/variables.scss +72 -68
- package/package.json +7 -3
|
@@ -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 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2021 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
@@ -310,7 +310,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
310
310
|
class: "nut-range-button",
|
|
311
311
|
style: normalizeStyle(_ctx.buttonStyle)
|
|
312
312
|
}, [
|
|
313
|
-
!_ctx.hiddenTag ? (openBlock(), createElementBlock("view", _hoisted_6, toDisplayString(_ctx.curValue(
|
|
313
|
+
!_ctx.hiddenTag ? (openBlock(), createElementBlock("view", _hoisted_6, toDisplayString(_ctx.curValue()), 1)) : createCommentVNode("", true)
|
|
314
314
|
], 4))
|
|
315
315
|
], 40, _hoisted_5))
|
|
316
316
|
], 4)
|
package/dist/packages/_es/Row.js
CHANGED
|
@@ -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 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2021 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
@@ -0,0 +1,104 @@
|
|
|
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
|
+
/*!
|
|
21
|
+
* @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
|
|
22
|
+
* (c) 2021 @jdf2e.
|
|
23
|
+
* Released under the MIT License.
|
|
24
|
+
*/
|
|
25
|
+
import { ref, reactive, computed, onMounted, toRefs, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot } from "vue";
|
|
26
|
+
import { c as createComponent } from "./component.js";
|
|
27
|
+
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
28
|
+
const { componentName, create } = createComponent("sidenavbar");
|
|
29
|
+
const _sfc_main = create({
|
|
30
|
+
props: {
|
|
31
|
+
offset: {
|
|
32
|
+
type: [String, Number],
|
|
33
|
+
default: 15
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
emits: [],
|
|
37
|
+
setup: (props, context) => {
|
|
38
|
+
const list = ref(null);
|
|
39
|
+
const state = reactive({
|
|
40
|
+
count: 1,
|
|
41
|
+
observer: null
|
|
42
|
+
});
|
|
43
|
+
const classes = computed(() => {
|
|
44
|
+
const prefixCls = componentName;
|
|
45
|
+
return {
|
|
46
|
+
[prefixCls]: true
|
|
47
|
+
};
|
|
48
|
+
});
|
|
49
|
+
const setPaddingLeft = (nodeList, level = 1) => {
|
|
50
|
+
for (let i = 0; i < nodeList.length; i++) {
|
|
51
|
+
let item = nodeList[i];
|
|
52
|
+
item.children[0].style.paddingLeft = props.offset * level + "px";
|
|
53
|
+
if (!item.className.includes("nut-sidenavbaritem")) {
|
|
54
|
+
setPaddingLeft(Array.from(item.children[1].children), ++state.count);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
state.count--;
|
|
58
|
+
};
|
|
59
|
+
const handleSlots = () => {
|
|
60
|
+
let childNodes = list.value.childNodes;
|
|
61
|
+
if (childNodes.length) {
|
|
62
|
+
childNodes = Array.from(childNodes).filter((item) => item.nodeType !== 3).map((item) => {
|
|
63
|
+
return item;
|
|
64
|
+
});
|
|
65
|
+
setPaddingLeft(childNodes);
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
onMounted(() => {
|
|
69
|
+
handleSlots();
|
|
70
|
+
state.observer = new MutationObserver(function() {
|
|
71
|
+
state.count = 1;
|
|
72
|
+
handleSlots();
|
|
73
|
+
});
|
|
74
|
+
state.observer.observe(list.value, {
|
|
75
|
+
attributes: false,
|
|
76
|
+
childList: true,
|
|
77
|
+
characterData: false,
|
|
78
|
+
subtree: false
|
|
79
|
+
});
|
|
80
|
+
});
|
|
81
|
+
return __spreadProps(__spreadValues({}, toRefs(state)), {
|
|
82
|
+
list,
|
|
83
|
+
classes
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
const _hoisted_1 = { class: "nut-sidenavbar__content" };
|
|
88
|
+
const _hoisted_2 = {
|
|
89
|
+
class: "nut-sidenavbar__content__list",
|
|
90
|
+
ref: "list"
|
|
91
|
+
};
|
|
92
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
93
|
+
return openBlock(), createElementBlock("view", {
|
|
94
|
+
class: normalizeClass(_ctx.classes)
|
|
95
|
+
}, [
|
|
96
|
+
createElementVNode("view", _hoisted_1, [
|
|
97
|
+
createElementVNode("view", _hoisted_2, [
|
|
98
|
+
renderSlot(_ctx.$slots, "default")
|
|
99
|
+
], 512)
|
|
100
|
+
])
|
|
101
|
+
], 2);
|
|
102
|
+
}
|
|
103
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
104
|
+
export { index as default };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
|
|
3
|
+
* (c) 2021 @jdf2e.
|
|
4
|
+
* Released under the MIT License.
|
|
5
|
+
*/
|
|
6
|
+
import { computed, openBlock, createElementBlock, withModifiers, createElementVNode, toDisplayString } from "vue";
|
|
7
|
+
import { c as createComponent } from "./component.js";
|
|
8
|
+
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
9
|
+
const { componentName, create } = createComponent("sidenavbaritem");
|
|
10
|
+
const _sfc_main = create({
|
|
11
|
+
props: {
|
|
12
|
+
title: {
|
|
13
|
+
type: String,
|
|
14
|
+
default: ""
|
|
15
|
+
},
|
|
16
|
+
ikey: {
|
|
17
|
+
type: String,
|
|
18
|
+
default: ""
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
emits: ["click"],
|
|
22
|
+
setup: (props, context) => {
|
|
23
|
+
const classes = computed(() => {
|
|
24
|
+
const prefixCls = componentName;
|
|
25
|
+
return {
|
|
26
|
+
[prefixCls]: true
|
|
27
|
+
};
|
|
28
|
+
});
|
|
29
|
+
const handleClick = () => {
|
|
30
|
+
context.emit("click");
|
|
31
|
+
};
|
|
32
|
+
return {
|
|
33
|
+
classes,
|
|
34
|
+
handleClick
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
const _hoisted_1 = ["ikey"];
|
|
39
|
+
const _hoisted_2 = { class: "nut-sidenavbaritem__title" };
|
|
40
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
41
|
+
return openBlock(), createElementBlock("view", {
|
|
42
|
+
class: "nut-sidenavbaritem",
|
|
43
|
+
onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["stop"])),
|
|
44
|
+
ikey: _ctx.ikey
|
|
45
|
+
}, [
|
|
46
|
+
createElementVNode("span", _hoisted_2, toDisplayString(_ctx.title), 1)
|
|
47
|
+
], 8, _hoisted_1);
|
|
48
|
+
}
|
|
49
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
50
|
+
export { index as default };
|
package/dist/packages/_es/Sku.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
2
|
+
* @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2021 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -359,7 +359,6 @@ const _sfc_main = create({
|
|
|
359
359
|
}
|
|
360
360
|
});
|
|
361
361
|
onMounted(() => {
|
|
362
|
-
console.log("\u66F4\u65B0\u53C2\u6570");
|
|
363
362
|
});
|
|
364
363
|
const getSlots = (name) => slots[name];
|
|
365
364
|
const selectSku = (skus) => {
|
|
@@ -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 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2021 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
@@ -0,0 +1,104 @@
|
|
|
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
|
+
/*!
|
|
21
|
+
* @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
|
|
22
|
+
* (c) 2021 @jdf2e.
|
|
23
|
+
* Released under the MIT License.
|
|
24
|
+
*/
|
|
25
|
+
import { reactive, computed, onMounted, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, withModifiers, toDisplayString, createVNode, normalizeStyle, renderSlot } from "vue";
|
|
26
|
+
import { c as createComponent } from "./component.js";
|
|
27
|
+
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
28
|
+
const { componentName, create } = createComponent("subsidenavbar");
|
|
29
|
+
const _sfc_main = create({
|
|
30
|
+
props: {
|
|
31
|
+
title: {
|
|
32
|
+
type: String,
|
|
33
|
+
default: ""
|
|
34
|
+
},
|
|
35
|
+
ikey: {
|
|
36
|
+
type: [String, Number],
|
|
37
|
+
default: ""
|
|
38
|
+
},
|
|
39
|
+
open: {
|
|
40
|
+
type: Boolean,
|
|
41
|
+
default: true
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
emits: ["title-click"],
|
|
45
|
+
setup: (props, context) => {
|
|
46
|
+
const state = reactive({
|
|
47
|
+
direction: ""
|
|
48
|
+
});
|
|
49
|
+
const classes = computed(() => {
|
|
50
|
+
const prefixCls = componentName;
|
|
51
|
+
return {
|
|
52
|
+
[prefixCls]: true
|
|
53
|
+
};
|
|
54
|
+
});
|
|
55
|
+
const style = computed(() => {
|
|
56
|
+
return {
|
|
57
|
+
height: !state.direction ? "auto" : "0px"
|
|
58
|
+
};
|
|
59
|
+
});
|
|
60
|
+
const handleClick = () => {
|
|
61
|
+
context.emit("title-click");
|
|
62
|
+
state.direction = !state.direction ? "up" : "";
|
|
63
|
+
};
|
|
64
|
+
onMounted(() => {
|
|
65
|
+
state.direction = props.open ? "" : "up";
|
|
66
|
+
});
|
|
67
|
+
return __spreadProps(__spreadValues({}, toRefs(state)), {
|
|
68
|
+
classes,
|
|
69
|
+
style,
|
|
70
|
+
handleClick
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
const _hoisted_1 = ["ikey"];
|
|
75
|
+
const _hoisted_2 = { class: "nut-subsidenavbar__title__text" };
|
|
76
|
+
const _hoisted_3 = { class: "nut-subsidenavbar__title__icon" };
|
|
77
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
78
|
+
const _component_nut_icon = resolveComponent("nut-icon");
|
|
79
|
+
return openBlock(), createElementBlock("view", {
|
|
80
|
+
class: normalizeClass(_ctx.classes),
|
|
81
|
+
ikey: _ctx.ikey
|
|
82
|
+
}, [
|
|
83
|
+
createElementVNode("view", {
|
|
84
|
+
class: "nut-subsidenavbar__title",
|
|
85
|
+
onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["stop"]))
|
|
86
|
+
}, [
|
|
87
|
+
createElementVNode("span", _hoisted_2, toDisplayString(_ctx.title), 1),
|
|
88
|
+
createElementVNode("span", _hoisted_3, [
|
|
89
|
+
createVNode(_component_nut_icon, {
|
|
90
|
+
name: "down-arrow",
|
|
91
|
+
class: normalizeClass(_ctx.direction)
|
|
92
|
+
}, null, 8, ["class"])
|
|
93
|
+
])
|
|
94
|
+
]),
|
|
95
|
+
createElementVNode("view", {
|
|
96
|
+
class: normalizeClass(["nut-subsidenavbar__list", !_ctx.direction ? "nutFadeIn" : "nutFadeOut"]),
|
|
97
|
+
style: normalizeStyle(_ctx.style)
|
|
98
|
+
}, [
|
|
99
|
+
renderSlot(_ctx.$slots, "default")
|
|
100
|
+
], 6)
|
|
101
|
+
], 10, _hoisted_1);
|
|
102
|
+
}
|
|
103
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
104
|
+
export { index as default };
|
|
@@ -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 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2021 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
2
|
+
* @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2021 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -32,6 +32,10 @@ const _sfc_main = create({
|
|
|
32
32
|
activeColor: {
|
|
33
33
|
type: String,
|
|
34
34
|
default: ""
|
|
35
|
+
},
|
|
36
|
+
safeAreaInsetBottom: {
|
|
37
|
+
type: Boolean,
|
|
38
|
+
default: false
|
|
35
39
|
}
|
|
36
40
|
},
|
|
37
41
|
emits: ["tab-switch", "update:visible"],
|
|
@@ -64,7 +68,7 @@ const _sfc_main = create({
|
|
|
64
68
|
});
|
|
65
69
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
66
70
|
return openBlock(), createElementBlock("view", {
|
|
67
|
-
class: normalizeClass(["nut-tabbar", { "nut-tabbar-bottom": _ctx.bottom }])
|
|
71
|
+
class: normalizeClass(["nut-tabbar", { "nut-tabbar-bottom": _ctx.bottom, "nut-tabbar-safebottom": _ctx.safeAreaInsetBottom }])
|
|
68
72
|
}, [
|
|
69
73
|
renderSlot(_ctx.$slots, "default")
|
|
70
74
|
], 2);
|
|
@@ -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 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2021 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
@@ -90,6 +90,11 @@ const component = (componentName2) => {
|
|
|
90
90
|
state.curData = typeof item.sorter === "function" ? state.curData.sort(item.sorter) : item.sorter === "default" ? state.curData.sort() : state.curData;
|
|
91
91
|
}
|
|
92
92
|
};
|
|
93
|
+
const sortDataItem = () => {
|
|
94
|
+
return props.columns.map((value) => {
|
|
95
|
+
return value.key;
|
|
96
|
+
});
|
|
97
|
+
};
|
|
93
98
|
watch(() => props.data, (val) => {
|
|
94
99
|
state.curData = val.slice();
|
|
95
100
|
});
|
|
@@ -97,7 +102,8 @@ const component = (componentName2) => {
|
|
|
97
102
|
classes,
|
|
98
103
|
cellClasses,
|
|
99
104
|
getColumnItem,
|
|
100
|
-
handleSorterClick
|
|
105
|
+
handleSorterClick,
|
|
106
|
+
sortDataItem
|
|
101
107
|
});
|
|
102
108
|
}
|
|
103
109
|
};
|
|
@@ -155,7 +161,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
155
161
|
class: "nut-table__main__body__tr",
|
|
156
162
|
key: item
|
|
157
163
|
}, [
|
|
158
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
164
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.sortDataItem(), (value) => {
|
|
159
165
|
return openBlock(), createElementBlock("span", {
|
|
160
166
|
class: normalizeClass(["nut-table__main__body__tr__td", _ctx.cellClasses(_ctx.getColumnItem(value))]),
|
|
161
167
|
key: value
|
|
@@ -19,7 +19,7 @@ var __publicField = (obj, key, value) => {
|
|
|
19
19
|
return value;
|
|
20
20
|
};
|
|
21
21
|
/*!
|
|
22
|
-
* @nutui/nutui v3.1.
|
|
22
|
+
* @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
|
|
23
23
|
* (c) 2021 @jdf2e.
|
|
24
24
|
* Released under the MIT License.
|
|
25
25
|
*/
|
package/dist/packages/_es/Tag.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
2
|
+
* @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2021 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -44,6 +44,10 @@ const _sfc_main = create({
|
|
|
44
44
|
autosize: {
|
|
45
45
|
type: Boolean,
|
|
46
46
|
default: false
|
|
47
|
+
},
|
|
48
|
+
autofocus: {
|
|
49
|
+
type: Boolean,
|
|
50
|
+
default: false
|
|
47
51
|
}
|
|
48
52
|
},
|
|
49
53
|
emits: ["update:modelValue", "change", "blur", "focus"],
|
|
@@ -65,8 +69,8 @@ const _sfc_main = create({
|
|
|
65
69
|
if (props.maxLength && value.length > Number(props.maxLength)) {
|
|
66
70
|
value = value.substring(0, Number(props.maxLength));
|
|
67
71
|
}
|
|
68
|
-
emit("change", value, event);
|
|
69
72
|
emit("update:modelValue", value, event);
|
|
73
|
+
emit("change", value, event);
|
|
70
74
|
};
|
|
71
75
|
const change = (event) => {
|
|
72
76
|
const input = event.target;
|
|
@@ -98,7 +102,7 @@ const _sfc_main = create({
|
|
|
98
102
|
};
|
|
99
103
|
}
|
|
100
104
|
});
|
|
101
|
-
const _hoisted_1 = ["rows", "disabled", "readonly", "value", "maxlength", "placeholder"];
|
|
105
|
+
const _hoisted_1 = ["rows", "disabled", "readonly", "value", "maxlength", "placeholder", "autofocus"];
|
|
102
106
|
const _hoisted_2 = {
|
|
103
107
|
key: 0,
|
|
104
108
|
class: "nut-textarea__limit"
|
|
@@ -118,7 +122,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
118
122
|
onBlur: _cache[1] || (_cache[1] = (...args) => _ctx.blur && _ctx.blur(...args)),
|
|
119
123
|
onFocus: _cache[2] || (_cache[2] = (...args) => _ctx.focus && _ctx.focus(...args)),
|
|
120
124
|
maxlength: _ctx.maxLength,
|
|
121
|
-
placeholder: _ctx.placeholder
|
|
125
|
+
placeholder: _ctx.placeholder,
|
|
126
|
+
autofocus: _ctx.autofocus
|
|
122
127
|
}, null, 44, _hoisted_1),
|
|
123
128
|
_ctx.limitShow ? (openBlock(), createElementBlock("view", _hoisted_2, toDisplayString(_ctx.modelValue ? _ctx.modelValue.length : 0) + "/" + toDisplayString(_ctx.maxLength), 1)) : createCommentVNode("", true)
|
|
124
129
|
], 2);
|
|
@@ -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 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2021 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
@@ -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 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2021 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
@@ -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 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2021 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
@@ -19,7 +19,7 @@ var __publicField = (obj, key, value) => {
|
|
|
19
19
|
return value;
|
|
20
20
|
};
|
|
21
21
|
/*!
|
|
22
|
-
* @nutui/nutui v3.1.
|
|
22
|
+
* @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
|
|
23
23
|
* (c) 2021 @jdf2e.
|
|
24
24
|
* Released under the MIT License.
|
|
25
25
|
*/
|
|
@@ -287,8 +287,9 @@ const _sfc_main = create({
|
|
|
287
287
|
if (oversizes.length) {
|
|
288
288
|
emit("oversize", oversizes);
|
|
289
289
|
}
|
|
290
|
-
|
|
291
|
-
|
|
290
|
+
let currentFileLength = files.length + fileList.length;
|
|
291
|
+
if (currentFileLength > maximum) {
|
|
292
|
+
files.splice(files.length - (currentFileLength - maximum));
|
|
292
293
|
}
|
|
293
294
|
return files;
|
|
294
295
|
};
|
|
@@ -298,7 +299,8 @@ const _sfc_main = create({
|
|
|
298
299
|
fileList.splice(index2, 1);
|
|
299
300
|
emit("delete", {
|
|
300
301
|
file,
|
|
301
|
-
fileList
|
|
302
|
+
fileList,
|
|
303
|
+
index: index2
|
|
302
304
|
});
|
|
303
305
|
} else {
|
|
304
306
|
console.log("\u7528\u6237\u963B\u6B62\u4E86\u5220\u9664\uFF01");
|
|
@@ -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 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2021 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|