@nutui/nutui 3.1.13 → 3.1.15
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 +39 -1
- package/README.md +3 -3
- package/dist/nutui.d.ts +8 -5
- package/dist/nutui.es.js +727 -413
- package/dist/nutui.umd.js +733 -416
- 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 -3
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 -1
- 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 +1 -1
- 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/cascader/index.scss +13 -13
- package/dist/packages/icon/index.scss +101 -11
- package/dist/packages/imagepreview/index.scss +1 -0
- package/dist/packages/menu/index.scss +10 -6
- package/dist/packages/menuitem/index.scss +8 -7
- package/dist/packages/noticebar/index.scss +11 -11
- package/dist/packages/picker/index.scss +2 -6
- 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 +47 -44
- package/dist/styles/themes/jdd.scss +2 -0
- package/dist/styles/variables.scss +72 -68
- package/package.json +7 -3
- package/dist/styles/.DS_Store +0 -0
|
@@ -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.15 Fri Jan 21 2022 15:38:52 GMT+0800 (GMT+08:00)
|
|
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.15 Fri Jan 21 2022 15:38:52 GMT+0800 (GMT+08:00)
|
|
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.15 Fri Jan 21 2022 15:38:52 GMT+0800 (GMT+08:00)
|
|
19
19
|
* (c) 2021 @jdf2e.
|
|
20
20
|
* Released under the MIT License.
|
|
21
21
|
*/
|
|
@@ -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.15 Fri Jan 21 2022 15:38:52 GMT+0800 (GMT+08:00)
|
|
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.15 Fri Jan 21 2022 15:38:52 GMT+0800 (GMT+08:00)
|
|
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.15 Fri Jan 21 2022 15:38:52 GMT+0800 (GMT+08:00)
|
|
22
22
|
* (c) 2021 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
@@ -106,7 +106,8 @@ const _sfc_main = create({
|
|
|
106
106
|
showSlot: true,
|
|
107
107
|
transitionName: `popup-fade-${props.position}`,
|
|
108
108
|
overLayCount: 1,
|
|
109
|
-
keepAlive: false
|
|
109
|
+
keepAlive: false,
|
|
110
|
+
closed: props.closeable
|
|
110
111
|
});
|
|
111
112
|
const [lockScroll, unlockScroll] = useLockScroll(() => props.lockScroll);
|
|
112
113
|
const classes = computed(() => {
|
|
@@ -203,6 +204,9 @@ const _sfc_main = create({
|
|
|
203
204
|
watch(() => props.position, (value) => {
|
|
204
205
|
value === "center" ? state.transitionName = "popup-fade" : state.transitionName = `popup-slide-${value}`;
|
|
205
206
|
});
|
|
207
|
+
watch(() => props.closeable, (value) => {
|
|
208
|
+
state.closed = value;
|
|
209
|
+
});
|
|
206
210
|
return __spreadProps(__spreadValues({}, toRefs(state)), {
|
|
207
211
|
popStyle,
|
|
208
212
|
classes,
|
|
@@ -245,7 +249,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
245
249
|
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
246
250
|
}, [
|
|
247
251
|
_ctx.showSlot ? renderSlot(_ctx.$slots, "default", { key: 0 }) : createCommentVNode("", true),
|
|
248
|
-
_ctx.
|
|
252
|
+
_ctx.closed ? (openBlock(), createElementBlock("view", {
|
|
249
253
|
key: 1,
|
|
250
254
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClickCloseIcon && _ctx.onClickCloseIcon(...args)),
|
|
251
255
|
class: normalizeClass(["nutui-popup__close-icon", "nutui-popup__close-icon--" + _ctx.closeIconPosition])
|
|
@@ -285,7 +289,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
285
289
|
onClick: _cache[3] || (_cache[3] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
286
290
|
}, [
|
|
287
291
|
_ctx.showSlot ? renderSlot(_ctx.$slots, "default", { key: 0 }) : createCommentVNode("", true),
|
|
288
|
-
_ctx.
|
|
292
|
+
_ctx.closed ? (openBlock(), createElementBlock("view", {
|
|
289
293
|
key: 1,
|
|
290
294
|
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.onClickCloseIcon && _ctx.onClickCloseIcon(...args)),
|
|
291
295
|
class: normalizeClass(["nutui-popup__close-icon", "nutui-popup__close-icon--" + _ctx.closeIconPosition])
|
|
@@ -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.15 Fri Jan 21 2022 15:38:52 GMT+0800 (GMT+08:00)
|
|
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.15 Fri Jan 21 2022 15:38:52 GMT+0800 (GMT+08:00)
|
|
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.15 Fri Jan 21 2022 15:38:52 GMT+0800 (GMT+08:00)
|
|
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.15 Fri Jan 21 2022 15:38:52 GMT+0800 (GMT+08:00)
|
|
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
|
@@ -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.15 Fri Jan 21 2022 15:38:52 GMT+0800 (GMT+08:00)
|
|
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.15 Fri Jan 21 2022 15:38:52 GMT+0800 (GMT+08:00)
|
|
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.15 Fri Jan 21 2022 15:38:52 GMT+0800 (GMT+08:00)
|
|
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.15 Fri Jan 21 2022 15:38:52 GMT+0800 (GMT+08:00)
|
|
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.15 Fri Jan 21 2022 15:38:52 GMT+0800 (GMT+08:00)
|
|
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
|