@nutui/nutui 3.2.0 → 3.2.2
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 +62 -0
- package/README.md +5 -3
- package/dist/nutui.es.js +1563 -1402
- package/dist/nutui.umd.js +1567 -1405
- package/dist/packages/_es/ActionSheet.js +22 -4
- package/dist/packages/_es/Address.js +39 -20
- package/dist/packages/_es/AddressList.js +2 -4
- package/dist/packages/_es/Animate.js +21 -2
- package/dist/packages/_es/Audio.js +22 -5
- package/dist/packages/_es/AudioOperate.js +22 -5
- package/dist/packages/_es/Avatar.js +23 -9
- package/dist/packages/_es/AvatarGroup.js +1 -1
- package/dist/packages/_es/BackTop.js +2 -2
- package/dist/packages/_es/Badge.js +1 -1
- package/dist/packages/_es/Barrage.js +1 -1
- package/dist/packages/_es/Button.js +6 -5
- package/dist/packages/_es/Calendar.js +10 -4
- package/dist/packages/_es/CalendarItem.js +1 -1
- package/dist/packages/_es/Card.js +1 -1
- package/dist/packages/_es/Cascader.js +46 -19
- package/dist/packages/_es/Category.js +2 -2
- package/dist/packages/_es/CategoryPane.js +10 -10
- package/dist/packages/_es/Cell.js +8 -9
- 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 +5 -11
- package/dist/packages/_es/Collapse.js +1 -1
- package/dist/packages/_es/CollapseItem.js +36 -17
- package/dist/packages/_es/Comment.js +1 -1
- package/dist/packages/_es/ConfigProvider.js +1 -1
- package/dist/packages/_es/CountDown.js +23 -5
- package/dist/packages/_es/CountUp.js +22 -5
- package/dist/packages/_es/DatePicker.js +31 -9
- package/dist/packages/_es/Dialog.js +23 -5
- package/dist/packages/_es/Divider.js +24 -7
- package/dist/packages/_es/Drag.js +4 -4
- package/dist/packages/_es/Ecard.js +1 -1
- package/dist/packages/_es/Elevator.js +24 -5
- package/dist/packages/_es/Ellipsis.js +21 -2
- package/dist/packages/_es/Empty.js +1 -1
- package/dist/packages/_es/FixedNav.js +18 -14
- package/dist/packages/_es/Form.js +2 -2
- package/dist/packages/_es/FormItem.js +5 -4
- package/dist/packages/_es/Grid.js +1 -1
- package/dist/packages/_es/GridItem.js +6 -5
- package/dist/packages/_es/Icon.js +1 -1
- package/dist/packages/_es/Image.js +21 -2
- package/dist/packages/_es/ImagePreview.js +28 -13
- package/dist/packages/_es/Indicator.js +1 -1
- package/dist/packages/_es/InfiniteLoading.js +27 -14
- package/dist/packages/_es/Input.js +70 -68
- package/dist/packages/_es/InputNumber.js +20 -14
- package/dist/packages/_es/Invoice.js +156 -0
- package/dist/packages/_es/Layout.js +1 -1
- package/dist/packages/_es/List.js +22 -4
- package/dist/packages/_es/Menu.js +6 -5
- package/dist/packages/_es/MenuItem.js +25 -8
- package/dist/packages/_es/Navbar.js +11 -9
- package/dist/packages/_es/NoticeBar.js +26 -9
- package/dist/packages/_es/Notify.js +34 -13
- package/dist/packages/_es/NumberKeyboard.js +10 -12
- package/dist/packages/_es/OldPicker.js +28 -12
- package/dist/packages/_es/OverLay.js +20 -5
- package/dist/packages/_es/Pagination.js +1 -1
- package/dist/packages/_es/Picker.js +63 -17
- package/dist/packages/_es/Popover.js +25 -10
- package/dist/packages/_es/Popup.js +31 -17
- package/dist/packages/_es/Price.js +1 -1
- package/dist/packages/_es/Progress.js +4 -5
- package/dist/packages/_es/PullRefresh.js +20 -5
- package/dist/packages/_es/Radio.js +3 -3
- package/dist/packages/_es/RadioGroup.js +1 -1
- package/dist/packages/_es/Range.js +24 -5
- package/dist/packages/_es/Rate.js +24 -5
- package/dist/packages/_es/Row.js +5 -11
- package/dist/packages/_es/SearchBar.js +44 -11
- package/dist/packages/_es/ShortPassword.js +1 -1
- package/dist/packages/_es/SideNavBar.js +22 -4
- package/dist/packages/_es/SideNavBarItem.js +1 -1
- package/dist/packages/_es/Signature.js +21 -2
- package/dist/packages/_es/Skeleton.js +1 -1
- package/dist/packages/_es/Sku.js +22 -4
- package/dist/packages/_es/Step.js +27 -8
- package/dist/packages/_es/Steps.js +1 -1
- package/dist/packages/_es/Sticky.js +1 -1
- package/dist/packages/_es/SubSideNavBar.js +22 -4
- package/dist/packages/_es/Swipe.js +24 -5
- package/dist/packages/_es/Swiper.js +1 -1
- package/dist/packages/_es/SwiperItem.js +1 -1
- package/dist/packages/_es/Switch.js +6 -5
- package/dist/packages/_es/TabPane.js +1 -1
- package/dist/packages/_es/Tabbar.js +1 -1
- package/dist/packages/_es/TabbarItem.js +13 -14
- package/dist/packages/_es/Table.js +22 -4
- package/dist/packages/_es/Tabs.js +32 -10
- package/dist/packages/_es/Tag.js +11 -15
- package/dist/packages/_es/TextArea.js +1 -1
- package/dist/packages/_es/TimeDetail.js +24 -5
- package/dist/packages/_es/TimePannel.js +22 -4
- package/dist/packages/_es/TimeSelect.js +1 -1
- package/dist/packages/_es/Toast.js +46 -25
- package/dist/packages/_es/Uploader.js +49 -30
- package/dist/packages/_es/Video.js +24 -6
- package/dist/packages/_es/WaterMark.js +21 -5
- package/dist/packages/_es/common.js +2 -2
- package/dist/packages/_es/component.js +5 -5
- 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/index4.js +1 -1
- package/dist/packages/_es/index5.js +28 -11
- 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/style.css +1 -111
- package/dist/packages/address/index.scss +17 -0
- package/dist/packages/addresslist/index.scss +57 -17
- package/dist/packages/button/index.scss +1 -0
- package/dist/packages/category/index.scss +25 -4
- package/dist/packages/categorypane/index.scss +18 -65
- package/dist/packages/fixednav/index.scss +7 -0
- package/dist/packages/invoice/index.scss +33 -0
- package/dist/packages/locale/lang/baseLang.js +1 -1
- package/dist/packages/locale/lang/en-US.js +1 -1
- package/dist/packages/locale/lang/id-ID.js +1 -1
- package/dist/packages/locale/lang/index.js +1 -1
- package/dist/packages/locale/lang/zh-CN.js +1 -1
- package/dist/packages/locale/lang/zh-TW.js +1 -1
- package/dist/packages/menu/index.scss +14 -2
- package/dist/packages/menuitem/index.scss +11 -1
- package/dist/packages/navbar/index.scss +6 -8
- package/dist/packages/picker/index.scss +8 -0
- package/dist/packages/price/index.scss +1 -1
- package/dist/packages/radio/index.scss +1 -0
- package/dist/packages/searchbar/index.scss +2 -0
- package/dist/packages/step/index.scss +52 -0
- package/dist/packages/swiper/index.scss +2 -0
- package/dist/packages/swiperitem/index.scss +3 -0
- package/dist/packages/tag/index.scss +20 -0
- package/dist/packages/textarea/index.scss +4 -1
- package/dist/packages/toast/index.scss +3 -0
- package/dist/packages/watermark/index.scss +1 -1
- package/dist/smartips/attributes.json +70 -14
- package/dist/smartips/tags.json +34 -15
- package/dist/smartips/web-types.json +150 -16
- package/dist/style.css +1 -1
- package/dist/style.es.js +1 -1
- package/dist/styles/themes/default.scss +55 -54
- package/dist/styles/themes/jdb.scss +55 -54
- package/dist/styles/themes/jdt.scss +55 -54
- package/dist/styles/variables-jdb.scss +26 -8
- package/dist/styles/variables-jdt.scss +26 -8
- package/dist/styles/variables.scss +25 -8
- package/dist/types/__VUE/actionsheet/index.vue.d.ts +3 -3
- package/dist/types/__VUE/address/index.vue.d.ts +4 -4
- package/dist/types/__VUE/audiooperate/index.vue.d.ts +14 -71
- package/dist/types/__VUE/avatar/index.vue.d.ts +4 -4
- package/dist/types/__VUE/avatargroup/index.vue.d.ts +2 -2
- package/dist/types/__VUE/backtop/index.vue.d.ts +5 -8
- package/dist/types/__VUE/badge/index.vue.d.ts +2 -2
- package/dist/types/__VUE/button/index.vue.d.ts +2 -2
- package/dist/types/__VUE/calendar/index.vue.d.ts +8 -1
- package/dist/types/__VUE/calendaritem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/cascader/index.vue.d.ts +2 -2
- package/dist/types/__VUE/cell/index.vue.d.ts +15 -8
- package/dist/types/__VUE/col/index.vue.d.ts +2 -5
- package/dist/types/__VUE/collapse/index.vue.d.ts +2 -2
- package/dist/types/__VUE/collapseitem/index.vue.d.ts +2 -2
- package/dist/types/__VUE/datepicker/index.vue.d.ts +9 -2
- package/dist/types/__VUE/dialog/index.vue.d.ts +2 -2
- package/dist/types/__VUE/divider/index.vue.d.ts +2 -2
- package/dist/types/__VUE/fixednav/common.d.ts +56 -0
- package/dist/types/__VUE/fixednav/index.vue.d.ts +18 -10
- package/dist/types/__VUE/formitem/index.vue.d.ts +1 -0
- package/dist/types/__VUE/grid/index.vue.d.ts +5 -5
- package/dist/types/__VUE/griditem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/imagepreview/index.d.ts +7 -6
- package/dist/types/__VUE/imagepreview/index.vue.d.ts +3 -3
- package/dist/types/__VUE/imagepreview/types.d.ts +7 -0
- package/dist/types/__VUE/input/index.vue.d.ts +8 -14
- package/dist/types/__VUE/inputnumber/index.vue.d.ts +14 -0
- package/dist/types/__VUE/invoice/index.vue.d.ts +48 -0
- package/dist/types/__VUE/menu/index.vue.d.ts +5 -2
- package/dist/types/__VUE/menuitem/index.vue.d.ts +0 -3
- package/dist/types/__VUE/noticebar/index.vue.d.ts +3 -3
- package/dist/types/__VUE/notify/index.d.ts +15 -5
- package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +2 -2
- package/dist/types/__VUE/oldpicker/index.vue.d.ts +3 -3
- package/dist/types/__VUE/picker/Column.vue.d.ts +8 -0
- package/dist/types/__VUE/picker/index.vue.d.ts +20 -3
- package/dist/types/__VUE/popover/index.vue.d.ts +6 -6
- package/dist/types/__VUE/popup/index.vue.d.ts +4 -4
- package/dist/types/__VUE/radio/index.vue.d.ts +3 -3
- package/dist/types/__VUE/range/index.vue.d.ts +1 -1
- package/dist/types/__VUE/rate/index.vue.d.ts +2 -2
- package/dist/types/__VUE/row/index.vue.d.ts +2 -5
- package/dist/types/__VUE/searchbar/index.vue.d.ts +18 -3
- package/dist/types/__VUE/shortpassword/index.vue.d.ts +1 -1
- package/dist/types/__VUE/sku/index.vue.d.ts +3 -3
- package/dist/types/__VUE/step/index.vue.d.ts +2 -2
- package/dist/types/__VUE/swipe/index.vue.d.ts +2 -2
- package/dist/types/__VUE/switch/index.vue.d.ts +2 -2
- package/dist/types/__VUE/tabbaritem/index.vue.d.ts +2 -2
- package/dist/types/__VUE/toast/index.vue.d.ts +5 -2
- package/dist/types/__VUE/uploader/index.vue.d.ts +2 -2
- package/dist/types/__VUE/video/index.vue.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/nutui.d.ts +2 -1
- package/package.json +2 -1
|
@@ -1,9 +1,28 @@
|
|
|
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));
|
|
1
20
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
21
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
|
|
3
22
|
* (c) 2022 @jdf2e.
|
|
4
23
|
* Released under the MIT License.
|
|
5
24
|
*/
|
|
6
|
-
import { getCurrentInstance, inject, reactive, computed, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createBlock, Fragment, toDisplayString, createCommentVNode, renderSlot } from "vue";
|
|
25
|
+
import { getCurrentInstance, inject, reactive, computed, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createBlock, mergeProps, Fragment, toDisplayString, createCommentVNode, renderSlot } from "vue";
|
|
7
26
|
import { c as createComponent } from "./component.js";
|
|
8
27
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
9
28
|
import "../locale/lang";
|
|
@@ -59,12 +78,11 @@ const _sfc_main = create({
|
|
|
59
78
|
const handleClickStep = () => {
|
|
60
79
|
parent["onEmit"](index2.value);
|
|
61
80
|
};
|
|
62
|
-
return {
|
|
63
|
-
...toRefs(state),
|
|
81
|
+
return __spreadProps(__spreadValues({}, toRefs(state)), {
|
|
64
82
|
index: index2,
|
|
65
83
|
classes,
|
|
66
84
|
handleClickStep
|
|
67
|
-
};
|
|
85
|
+
});
|
|
68
86
|
}
|
|
69
87
|
});
|
|
70
88
|
const _hoisted_1 = { class: "nut-step-head" };
|
|
@@ -92,13 +110,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
92
110
|
createElementVNode("view", {
|
|
93
111
|
class: normalizeClass(["nut-step-icon", [!_ctx.dot ? _ctx.icon ? "is-icon" : "is-text" : ""]])
|
|
94
112
|
}, [
|
|
95
|
-
_ctx.icon ? (openBlock(), createBlock(_component_nut_icon, {
|
|
113
|
+
_ctx.icon ? (openBlock(), createBlock(_component_nut_icon, mergeProps({
|
|
96
114
|
key: 0,
|
|
97
|
-
class: "nut-step-icon-inner"
|
|
115
|
+
class: "nut-step-icon-inner"
|
|
116
|
+
}, _ctx.$attrs, {
|
|
98
117
|
color: _ctx.iconColor,
|
|
99
118
|
name: _ctx.icon,
|
|
100
119
|
size: _ctx.size
|
|
101
|
-
}, null,
|
|
120
|
+
}), null, 16, ["color", "name", "size"])) : _ctx.dot ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [], 64)) : (openBlock(), createElementBlock("view", _hoisted_3, toDisplayString(_ctx.index), 1))
|
|
102
121
|
], 2)
|
|
103
122
|
]),
|
|
104
123
|
createElementVNode("view", _hoisted_4, [
|
|
@@ -1,5 +1,24 @@
|
|
|
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));
|
|
1
20
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
21
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
|
|
3
22
|
* (c) 2022 @jdf2e.
|
|
4
23
|
* Released under the MIT License.
|
|
5
24
|
*/
|
|
@@ -46,12 +65,11 @@ const _sfc_main = create({
|
|
|
46
65
|
onMounted(() => {
|
|
47
66
|
state.direction = props.open ? "" : "up";
|
|
48
67
|
});
|
|
49
|
-
return {
|
|
50
|
-
...toRefs(state),
|
|
68
|
+
return __spreadProps(__spreadValues({}, toRefs(state)), {
|
|
51
69
|
classes,
|
|
52
70
|
style,
|
|
53
71
|
handleClick
|
|
54
|
-
};
|
|
72
|
+
});
|
|
55
73
|
}
|
|
56
74
|
});
|
|
57
75
|
const _hoisted_1 = ["ikey"];
|
|
@@ -1,5 +1,24 @@
|
|
|
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));
|
|
1
20
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
21
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
|
|
3
22
|
* (c) 2022 @jdf2e.
|
|
4
23
|
* Released under the MIT License.
|
|
5
24
|
*/
|
|
@@ -144,15 +163,15 @@ const _sfc_main = create({
|
|
|
144
163
|
}
|
|
145
164
|
}
|
|
146
165
|
};
|
|
147
|
-
return {
|
|
166
|
+
return __spreadProps(__spreadValues({
|
|
148
167
|
classes,
|
|
149
|
-
touchStyle
|
|
150
|
-
|
|
168
|
+
touchStyle
|
|
169
|
+
}, touchMethods), {
|
|
151
170
|
leftRef,
|
|
152
171
|
rightRef,
|
|
153
172
|
open,
|
|
154
173
|
close
|
|
155
|
-
};
|
|
174
|
+
});
|
|
156
175
|
}
|
|
157
176
|
});
|
|
158
177
|
const _hoisted_1 = {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { computed, watch, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, createBlock, createCommentVNode, Fragment, withDirectives, toDisplayString, vShow } from "vue";
|
|
6
|
+
import { computed, watch, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, createBlock, mergeProps, createCommentVNode, Fragment, withDirectives, toDisplayString, vShow } 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
|
import "../locale/lang";
|
|
@@ -108,12 +108,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
108
108
|
style: normalizeStyle(_ctx.style)
|
|
109
109
|
}, [
|
|
110
110
|
createElementVNode("view", _hoisted_1, [
|
|
111
|
-
_ctx.loading ? (openBlock(), createBlock(_component_nut_icon, {
|
|
111
|
+
_ctx.loading ? (openBlock(), createBlock(_component_nut_icon, mergeProps({
|
|
112
112
|
key: 0,
|
|
113
|
-
name: _ctx.name
|
|
113
|
+
name: _ctx.name
|
|
114
|
+
}, _ctx.$attrs, {
|
|
114
115
|
size: _ctx.size,
|
|
115
116
|
color: _ctx.color
|
|
116
|
-
}, null,
|
|
117
|
+
}), null, 16, ["name", "size", "color"])) : createCommentVNode("", true),
|
|
117
118
|
_ctx.activeText ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
118
119
|
withDirectives(createElementVNode("view", { class: "nut-switch-label open" }, toDisplayString(_ctx.activeText), 513), [
|
|
119
120
|
[vShow, _ctx.modelValue]
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -90,6 +90,7 @@ const _sfc_main = create({
|
|
|
90
90
|
return null;
|
|
91
91
|
});
|
|
92
92
|
watch(choosed, (value, oldValue) => {
|
|
93
|
+
var _a, _b;
|
|
93
94
|
state.active = value;
|
|
94
95
|
let index2 = value;
|
|
95
96
|
if (props.name) {
|
|
@@ -97,20 +98,18 @@ const _sfc_main = create({
|
|
|
97
98
|
return item.name == value;
|
|
98
99
|
});
|
|
99
100
|
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
location.replace(to);
|
|
111
|
-
}
|
|
101
|
+
if ((_a = parent.children[index2]) == null ? void 0 : _a.href) {
|
|
102
|
+
window.location.href = parent.children[index2].href;
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
if ((_b = parent.children[index2]) == null ? void 0 : _b.to) {
|
|
106
|
+
let to = parent.children[index2].to;
|
|
107
|
+
if (to && router) {
|
|
108
|
+
router.push(to);
|
|
109
|
+
} else {
|
|
110
|
+
location.replace(to);
|
|
112
111
|
}
|
|
113
|
-
}
|
|
112
|
+
}
|
|
114
113
|
});
|
|
115
114
|
return {
|
|
116
115
|
state,
|
|
@@ -1,5 +1,24 @@
|
|
|
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));
|
|
1
20
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
21
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
|
|
3
22
|
* (c) 2022 @jdf2e.
|
|
4
23
|
* Released under the MIT License.
|
|
5
24
|
*/
|
|
@@ -91,8 +110,7 @@ const component = (componentName2, translate2) => {
|
|
|
91
110
|
watch(() => props.data, (val) => {
|
|
92
111
|
state.curData = val.slice();
|
|
93
112
|
});
|
|
94
|
-
return {
|
|
95
|
-
...toRefs(state),
|
|
113
|
+
return __spreadProps(__spreadValues({}, toRefs(state)), {
|
|
96
114
|
classes,
|
|
97
115
|
cellClasses,
|
|
98
116
|
getColumnItem,
|
|
@@ -102,7 +120,7 @@ const component = (componentName2, translate2) => {
|
|
|
102
120
|
translate: translate2,
|
|
103
121
|
stylehead,
|
|
104
122
|
stylecolumn
|
|
105
|
-
};
|
|
123
|
+
});
|
|
106
124
|
}
|
|
107
125
|
};
|
|
108
126
|
};
|
|
@@ -1,9 +1,25 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __spreadValues = (a, b) => {
|
|
7
|
+
for (var prop in b || (b = {}))
|
|
8
|
+
if (__hasOwnProp.call(b, prop))
|
|
9
|
+
__defNormalProp(a, prop, b[prop]);
|
|
10
|
+
if (__getOwnPropSymbols)
|
|
11
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
+
if (__propIsEnum.call(b, prop))
|
|
13
|
+
__defNormalProp(a, prop, b[prop]);
|
|
14
|
+
}
|
|
15
|
+
return a;
|
|
16
|
+
};
|
|
1
17
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
18
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
|
|
3
19
|
* (c) 2022 @jdf2e.
|
|
4
20
|
* Released under the MIT License.
|
|
5
21
|
*/
|
|
6
|
-
import { c as createComponent } from "./component.js";
|
|
22
|
+
import { T as TypeOfFun, c as createComponent } from "./component.js";
|
|
7
23
|
import { p as pxCheck } from "./pxCheck.js";
|
|
8
24
|
import { provide, computed, ref, watch, onMounted, onActivated, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, renderSlot, Fragment, renderList, createCommentVNode, createVNode, toDisplayString } from "vue";
|
|
9
25
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
@@ -70,18 +86,25 @@ const component = {
|
|
|
70
86
|
const titles = ref([]);
|
|
71
87
|
const renderTitles = (vnodes) => {
|
|
72
88
|
vnodes.forEach((vnode, index2) => {
|
|
73
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
89
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
74
90
|
let type = vnode.type;
|
|
75
91
|
type = type.name || type;
|
|
76
92
|
if (type == "nut-tabpane") {
|
|
77
93
|
let title = new Title();
|
|
78
94
|
if (((_a = vnode.props) == null ? void 0 : _a.title) || ((_b = vnode.props) == null ? void 0 : _b["pane-key"]) || ((_c = vnode.props) == null ? void 0 : _c["paneKey"])) {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
95
|
+
let paneKeyType = TypeOfFun((_d = vnode.props) == null ? void 0 : _d["pane-key"]);
|
|
96
|
+
let paneIndex = paneKeyType == "number" || paneKeyType == "string" ? String((_e = vnode.props) == null ? void 0 : _e["pane-key"]) : null;
|
|
97
|
+
let camelPaneKeyType = TypeOfFun((_f = vnode.props) == null ? void 0 : _f["paneKey"]);
|
|
98
|
+
let camelPaneIndex = camelPaneKeyType == "number" || camelPaneKeyType == "string" ? String((_g = vnode.props) == null ? void 0 : _g["paneKey"]) : null;
|
|
99
|
+
title.title = (_h = vnode.props) == null ? void 0 : _h.title;
|
|
100
|
+
title.paneKey = paneIndex || camelPaneIndex || String(index2);
|
|
101
|
+
title.disabled = (_i = vnode.props) == null ? void 0 : _i.disabled;
|
|
82
102
|
}
|
|
83
103
|
titles.value.push(title);
|
|
84
104
|
} else {
|
|
105
|
+
if (vnode.children == " ") {
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
85
108
|
renderTitles(vnode.children);
|
|
86
109
|
}
|
|
87
110
|
});
|
|
@@ -149,14 +172,13 @@ const component = {
|
|
|
149
172
|
emit("change", item);
|
|
150
173
|
}
|
|
151
174
|
};
|
|
152
|
-
return {
|
|
175
|
+
return __spreadValues({
|
|
153
176
|
titles,
|
|
154
177
|
contentStyle,
|
|
155
178
|
tabsNavStyle,
|
|
156
179
|
titleStyle,
|
|
157
|
-
tabsActiveStyle
|
|
158
|
-
|
|
159
|
-
};
|
|
180
|
+
tabsActiveStyle
|
|
181
|
+
}, methods);
|
|
160
182
|
}
|
|
161
183
|
};
|
|
162
184
|
const _hoisted_1 = ["onClick"];
|
package/dist/packages/_es/Tag.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -47,23 +47,19 @@ const _sfc_main = create({
|
|
|
47
47
|
};
|
|
48
48
|
});
|
|
49
49
|
const getStyle = () => {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
50
|
+
const style = {};
|
|
51
|
+
if (textColor.value) {
|
|
52
|
+
style.color = textColor.value;
|
|
53
|
+
} else if (color.value && plain.value) {
|
|
54
|
+
style.color = color.value;
|
|
55
55
|
}
|
|
56
56
|
if (plain.value) {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
};
|
|
57
|
+
style.background = "#fff";
|
|
58
|
+
style["border-color"] = color.value;
|
|
59
|
+
} else if (color.value) {
|
|
60
|
+
style.background = color.value;
|
|
62
61
|
}
|
|
63
|
-
return
|
|
64
|
-
color: "",
|
|
65
|
-
background: ""
|
|
66
|
-
};
|
|
62
|
+
return style;
|
|
67
63
|
};
|
|
68
64
|
const onClose = (event) => {
|
|
69
65
|
event.stopPropagation();
|
|
@@ -1,5 +1,24 @@
|
|
|
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));
|
|
1
20
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
21
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
|
|
3
22
|
* (c) 2022 @jdf2e.
|
|
4
23
|
* Released under the MIT License.
|
|
5
24
|
*/
|
|
@@ -51,13 +70,13 @@ const _sfc_main = create({
|
|
|
51
70
|
const handleTime = (time) => {
|
|
52
71
|
context.emit("select", time);
|
|
53
72
|
};
|
|
54
|
-
return {
|
|
55
|
-
classes
|
|
56
|
-
|
|
73
|
+
return __spreadProps(__spreadValues({
|
|
74
|
+
classes
|
|
75
|
+
}, toRefs(state)), {
|
|
57
76
|
getClass,
|
|
58
77
|
renderData,
|
|
59
78
|
handleTime
|
|
60
|
-
};
|
|
79
|
+
});
|
|
61
80
|
}
|
|
62
81
|
});
|
|
63
82
|
const _hoisted_1 = { class: "nut-timedetail__detail nut-timedetail__detail--moring" };
|
|
@@ -1,5 +1,24 @@
|
|
|
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));
|
|
1
20
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
21
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
|
|
3
22
|
* (c) 2022 @jdf2e.
|
|
4
23
|
* Released under the MIT License.
|
|
5
24
|
*/
|
|
@@ -36,11 +55,10 @@ const _sfc_main = create({
|
|
|
36
55
|
const handlePannel = (pannelKey) => {
|
|
37
56
|
context.emit("change", pannelKey);
|
|
38
57
|
};
|
|
39
|
-
return {
|
|
40
|
-
...toRefs(state),
|
|
58
|
+
return __spreadProps(__spreadValues({}, toRefs(state)), {
|
|
41
59
|
classes,
|
|
42
60
|
handlePannel
|
|
43
|
-
};
|
|
61
|
+
});
|
|
44
62
|
}
|
|
45
63
|
});
|
|
46
64
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|