@nutui/nutui 3.1.23-beta.6 → 3.2.2-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 +63 -1
- package/dist/nutui.es.js +1475 -1070
- package/dist/nutui.umd.js +1468 -1063
- package/dist/packages/_es/ActionSheet.js +4 -22
- package/dist/packages/_es/Address.js +79 -71
- package/dist/packages/_es/AddressList.js +7 -5
- package/dist/packages/_es/Animate.js +2 -21
- package/dist/packages/_es/Audio.js +39 -68
- package/dist/packages/_es/AudioOperate.js +3 -24
- package/dist/packages/_es/Avatar.js +8 -24
- package/dist/packages/_es/AvatarGroup.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 +7 -4
- 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 +51 -65
- 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 +31 -17
- package/dist/packages/_es/CheckboxGroup.js +14 -7
- package/dist/packages/_es/CircleProgress.js +1 -1
- package/dist/packages/_es/Col.js +5 -11
- package/dist/packages/_es/Collapse.js +22 -19
- package/dist/packages/_es/CollapseItem.js +30 -42
- package/dist/packages/_es/Comment.js +13 -9
- package/dist/packages/_es/ConfigProvider.js +8 -4
- package/dist/packages/_es/CountDown.js +40 -46
- package/dist/packages/_es/CountUp.js +39 -40
- package/dist/packages/_es/DatePicker.js +25 -33
- package/dist/packages/_es/Dialog.js +12 -27
- package/dist/packages/_es/Divider.js +7 -24
- package/dist/packages/_es/Drag.js +1 -1
- package/dist/packages/_es/Ecard.js +7 -4
- package/dist/packages/_es/Elevator.js +25 -38
- package/dist/packages/_es/Ellipsis.js +14 -28
- package/dist/packages/_es/Empty.js +1 -1
- package/dist/packages/_es/FixedNav.js +18 -14
- package/dist/packages/_es/Form.js +8 -4
- package/dist/packages/_es/FormItem.js +1 -1
- package/dist/packages/_es/Grid.js +1 -1
- package/dist/packages/_es/GridItem.js +6 -5
- package/dist/packages/_es/Icon.js +15 -11
- package/dist/packages/_es/Image.js +8 -24
- package/dist/packages/_es/ImagePreview.js +24 -39
- package/dist/packages/_es/Indicator.js +1 -1
- package/dist/packages/_es/InfiniteLoading.js +8 -33
- package/dist/packages/_es/Input.js +75 -69
- package/dist/packages/_es/InputNumber.js +20 -14
- package/dist/packages/_es/Layout.js +1 -1
- package/dist/packages/_es/List.js +10 -25
- package/dist/packages/_es/Menu.js +17 -10
- package/dist/packages/_es/MenuItem.js +5 -26
- package/dist/packages/_es/Navbar.js +10 -8
- package/dist/packages/_es/NoticeBar.js +20 -31
- package/dist/packages/_es/Notify.js +16 -32
- package/dist/packages/_es/NumberKeyboard.js +21 -16
- package/dist/packages/_es/OldPicker.js +47 -46
- package/dist/packages/_es/OverLay.js +11 -23
- package/dist/packages/_es/Pagination.js +1 -1
- package/dist/packages/_es/Picker.js +81 -59
- package/dist/packages/_es/Popover.js +58 -58
- package/dist/packages/_es/Popup.js +38 -43
- package/dist/packages/_es/Price.js +1 -1
- package/dist/packages/_es/Progress.js +4 -5
- package/dist/packages/_es/PullRefresh.js +5 -20
- package/dist/packages/_es/Radio.js +25 -13
- package/dist/packages/_es/RadioGroup.js +12 -5
- package/dist/packages/_es/Range.js +20 -33
- package/dist/packages/_es/Rate.js +5 -24
- package/dist/packages/_es/Row.js +5 -11
- package/dist/packages/_es/SearchBar.js +5 -24
- package/dist/packages/_es/ShortPassword.js +18 -11
- package/dist/packages/_es/SideNavBar.js +4 -22
- package/dist/packages/_es/SideNavBarItem.js +1 -1
- package/dist/packages/_es/Signature.js +15 -23
- package/dist/packages/_es/Skeleton.js +1 -1
- package/dist/packages/_es/Sku.js +24 -32
- package/dist/packages/_es/Step.js +9 -26
- package/dist/packages/_es/Steps.js +8 -4
- package/dist/packages/_es/Sticky.js +23 -12
- package/dist/packages/_es/SubSideNavBar.js +4 -22
- package/dist/packages/_es/Swipe.js +5 -24
- package/dist/packages/_es/Swiper.js +23 -14
- package/dist/packages/_es/SwiperItem.js +1 -1
- package/dist/packages/_es/Switch.js +15 -11
- package/dist/packages/_es/TabPane.js +1 -1
- package/dist/packages/_es/Tabbar.js +7 -4
- package/dist/packages/_es/TabbarItem.js +13 -14
- package/dist/packages/_es/Table.js +10 -25
- package/dist/packages/_es/Tabs.js +20 -29
- package/dist/packages/_es/Tag.js +11 -15
- package/dist/packages/_es/TextArea.js +8 -5
- package/dist/packages/_es/TimeDetail.js +5 -24
- package/dist/packages/_es/TimePannel.js +4 -22
- package/dist/packages/_es/TimeSelect.js +1 -1
- package/dist/packages/_es/Toast.js +22 -39
- package/dist/packages/_es/Uploader.js +54 -54
- package/dist/packages/_es/Video.js +22 -33
- package/dist/packages/_es/WaterMark.js +31 -44
- package/dist/packages/_es/common.js +21 -11
- 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 +26 -35
- 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/actionsheet/index.scss +17 -0
- package/dist/packages/address/index.scss +60 -0
- package/dist/packages/addresslist/index.scss +57 -17
- package/dist/packages/audio/index.scss +8 -0
- package/dist/packages/barrage/index.scss +7 -0
- package/dist/packages/button/index.scss +1 -0
- package/dist/packages/card/index.scss +8 -1
- package/dist/packages/category/index.scss +25 -4
- package/dist/packages/categorypane/index.scss +18 -65
- package/dist/packages/circleprogress/index.scss +6 -0
- package/dist/packages/collapseitem/index.scss +21 -0
- package/dist/packages/comment/index.scss +37 -0
- package/dist/packages/countup/index.scss +24 -3
- package/dist/packages/ecard/index.scss +31 -1
- package/dist/packages/elevator/index.scss +16 -0
- package/dist/packages/empty/index.scss +6 -0
- package/dist/packages/fixednav/index.scss +7 -0
- package/dist/packages/image/index.scss +12 -0
- package/dist/packages/infiniteloading/index.scss +18 -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 +8 -0
- package/dist/packages/noticebar/index.scss +13 -0
- package/dist/packages/numberkeyboard/index.scss +10 -0
- package/dist/packages/picker/index.scss +33 -0
- package/dist/packages/popup/index.scss +10 -0
- package/dist/packages/radio/index.scss +1 -0
- package/dist/packages/shortpassword/index.scss +20 -0
- package/dist/packages/sidenavbaritem/index.scss +9 -0
- package/dist/packages/sku/index.scss +40 -0
- package/dist/packages/step/index.scss +52 -0
- package/dist/packages/subsidenavbar/index.scss +12 -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/watermark/index.scss +1 -1
- package/dist/smartips/attributes.json +38 -2
- package/dist/smartips/tags.json +14 -4
- package/dist/smartips/web-types.json +86 -4
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +51 -51
- package/dist/styles/themes/jdb.scss +51 -51
- package/dist/styles/themes/jdt.scss +51 -51
- package/dist/styles/variables-jdb.scss +28 -7
- package/dist/styles/variables-jdt.scss +28 -7
- package/dist/styles/variables.scss +27 -7
- package/dist/types/__VUE/actionsheet/index.vue.d.ts +1 -1
- package/dist/types/__VUE/address/index.vue.d.ts +1 -1
- package/dist/types/__VUE/addresslist/index.vue.d.ts +1 -1
- package/dist/types/__VUE/audio/index.vue.d.ts +4 -1
- package/dist/types/__VUE/audiooperate/index.vue.d.ts +15 -72
- package/dist/types/__VUE/avatargroup/index.vue.d.ts +1 -1
- package/dist/types/__VUE/backtop/index.vue.d.ts +1 -1
- package/dist/types/__VUE/calendar/index.vue.d.ts +7 -0
- package/dist/types/__VUE/calendaritem/index.vue.d.ts +2 -2
- package/dist/types/__VUE/categorypane/index.vue.d.ts +1 -1
- package/dist/types/__VUE/cell/index.vue.d.ts +9 -2
- package/dist/types/__VUE/cellgroup/index.vue.d.ts +1 -1
- package/dist/types/__VUE/checkboxgroup/index.vue.d.ts +1 -1
- package/dist/types/__VUE/circleprogress/index.vue.d.ts +1 -1
- 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 +1 -1
- package/dist/types/__VUE/configprovider/index.vue.d.ts +1 -1
- package/dist/types/__VUE/countdown/index.vue.d.ts +1 -1
- package/dist/types/__VUE/countup/index.vue.d.ts +1 -1
- package/dist/types/__VUE/datepicker/index.vue.d.ts +1 -1
- package/dist/types/__VUE/fixednav/common.d.ts +56 -0
- package/dist/types/__VUE/fixednav/index.vue.d.ts +17 -9
- package/dist/types/__VUE/formitem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/griditem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +1 -1
- package/dist/types/__VUE/imagepreview/index.d.ts +7 -6
- package/dist/types/__VUE/imagepreview/index.vue.d.ts +4 -4
- package/dist/types/__VUE/imagepreview/types.d.ts +7 -0
- package/dist/types/__VUE/infiniteloading/index.vue.d.ts +1 -1
- package/dist/types/__VUE/input/index.vue.d.ts +4 -9
- package/dist/types/__VUE/inputnumber/index.vue.d.ts +15 -1
- package/dist/types/__VUE/menu/index.vue.d.ts +3 -0
- package/dist/types/__VUE/menuitem/index.vue.d.ts +1 -4
- package/dist/types/__VUE/noticebar/index.vue.d.ts +4 -4
- package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +1 -1
- package/dist/types/__VUE/oldpicker/Column.vue.d.ts +1 -1
- package/dist/types/__VUE/oldpicker/index.vue.d.ts +1 -1
- package/dist/types/__VUE/overlay/index.vue.d.ts +1 -1
- package/dist/types/__VUE/picker/Column.vue.d.ts +8 -0
- package/dist/types/__VUE/picker/index.vue.d.ts +28 -13
- package/dist/types/__VUE/popover/index.vue.d.ts +2 -2
- package/dist/types/__VUE/pullrefresh/index.vue.d.ts +1 -1
- package/dist/types/__VUE/radiogroup/index.vue.d.ts +1 -1
- package/dist/types/__VUE/row/index.vue.d.ts +2 -5
- package/dist/types/__VUE/searchbar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/shortpassword/index.vue.d.ts +1 -1
- package/dist/types/__VUE/sidenavbar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/sidenavbaritem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/signature/index.vue.d.ts +5 -2
- package/dist/types/__VUE/subsidenavbar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/swiperitem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/switch/index.vue.d.ts +2 -2
- package/dist/types/__VUE/tabbaritem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/tabpane/index.vue.d.ts +1 -1
- package/dist/types/__VUE/textarea/index.vue.d.ts +1 -1
- package/dist/types/__VUE/timedetail/index.vue.d.ts +1 -1
- package/dist/types/__VUE/timepannel/index.vue.d.ts +1 -1
- package/dist/types/__VUE/timeselect/index.vue.d.ts +1 -1
- package/dist/types/__VUE/uploader/index.vue.d.ts +7 -0
- package/dist/types/__VUE/uploader/uploader.d.ts +1 -0
- package/dist/types/__VUE/watermark/index.vue.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +2 -1
- package/dist/packages/index.d.ts +0 -3
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.
|
|
2
|
+
* @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 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";
|
|
@@ -85,13 +85,16 @@ const _sfc_main = create({
|
|
|
85
85
|
emit("update:modelValue", value);
|
|
86
86
|
emit("change", value, event);
|
|
87
87
|
};
|
|
88
|
-
watch(
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
88
|
+
watch(
|
|
89
|
+
() => props.modelValue,
|
|
90
|
+
(v) => {
|
|
91
|
+
if (updateType == "click") {
|
|
92
|
+
updateType = "";
|
|
93
|
+
} else {
|
|
94
|
+
emit("change", v);
|
|
95
|
+
}
|
|
93
96
|
}
|
|
94
|
-
|
|
97
|
+
);
|
|
95
98
|
return {
|
|
96
99
|
classes,
|
|
97
100
|
style,
|
|
@@ -108,12 +111,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
108
111
|
style: normalizeStyle(_ctx.style)
|
|
109
112
|
}, [
|
|
110
113
|
createElementVNode("view", _hoisted_1, [
|
|
111
|
-
_ctx.loading ? (openBlock(), createBlock(_component_nut_icon, {
|
|
114
|
+
_ctx.loading ? (openBlock(), createBlock(_component_nut_icon, mergeProps({
|
|
112
115
|
key: 0,
|
|
113
|
-
name: _ctx.name
|
|
116
|
+
name: _ctx.name
|
|
117
|
+
}, _ctx.$attrs, {
|
|
114
118
|
size: _ctx.size,
|
|
115
119
|
color: _ctx.color
|
|
116
|
-
}, null,
|
|
120
|
+
}), null, 16, ["name", "size", "color"])) : createCommentVNode("", true),
|
|
117
121
|
_ctx.activeText ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
118
122
|
withDirectives(createElementVNode("view", { class: "nut-switch-label open" }, toDisplayString(_ctx.activeText), 513), [
|
|
119
123
|
[vShow, _ctx.modelValue]
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.
|
|
2
|
+
* @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -59,9 +59,12 @@ const _sfc_main = create({
|
|
|
59
59
|
changeIndex
|
|
60
60
|
});
|
|
61
61
|
provide("parent", parentData);
|
|
62
|
-
watch(
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
watch(
|
|
63
|
+
() => props.visible,
|
|
64
|
+
(value) => {
|
|
65
|
+
parentData.modelValue = value;
|
|
66
|
+
}
|
|
67
|
+
);
|
|
65
68
|
return {
|
|
66
69
|
changeIndex
|
|
67
70
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.
|
|
2
|
+
* @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 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,24 +1,5 @@
|
|
|
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
1
|
/*!
|
|
21
|
-
* @nutui/nutui v3.
|
|
2
|
+
* @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
|
|
22
3
|
* (c) 2022 @jdf2e.
|
|
23
4
|
* Released under the MIT License.
|
|
24
5
|
*/
|
|
@@ -107,10 +88,14 @@ const component = (componentName2, translate2) => {
|
|
|
107
88
|
return [columns.key, columns.render];
|
|
108
89
|
});
|
|
109
90
|
};
|
|
110
|
-
watch(
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
91
|
+
watch(
|
|
92
|
+
() => props.data,
|
|
93
|
+
(val) => {
|
|
94
|
+
state.curData = val.slice();
|
|
95
|
+
}
|
|
96
|
+
);
|
|
97
|
+
return {
|
|
98
|
+
...toRefs(state),
|
|
114
99
|
classes,
|
|
115
100
|
cellClasses,
|
|
116
101
|
getColumnItem,
|
|
@@ -120,7 +105,7 @@ const component = (componentName2, translate2) => {
|
|
|
120
105
|
translate: translate2,
|
|
121
106
|
stylehead,
|
|
122
107
|
stylecolumn
|
|
123
|
-
}
|
|
108
|
+
};
|
|
124
109
|
}
|
|
125
110
|
};
|
|
126
111
|
};
|
|
@@ -1,21 +1,5 @@
|
|
|
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
|
-
};
|
|
17
1
|
/*!
|
|
18
|
-
* @nutui/nutui v3.
|
|
2
|
+
* @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
|
|
19
3
|
* (c) 2022 @jdf2e.
|
|
20
4
|
* Released under the MIT License.
|
|
21
5
|
*/
|
|
@@ -120,15 +104,21 @@ const component = {
|
|
|
120
104
|
}
|
|
121
105
|
findTabsIndex(props.modelValue);
|
|
122
106
|
};
|
|
123
|
-
watch(
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
107
|
+
watch(
|
|
108
|
+
() => {
|
|
109
|
+
var _a;
|
|
110
|
+
return (_a = slots.default) == null ? void 0 : _a.call(slots);
|
|
111
|
+
},
|
|
112
|
+
(vnodes) => {
|
|
113
|
+
init(vnodes);
|
|
114
|
+
}
|
|
115
|
+
);
|
|
116
|
+
watch(
|
|
117
|
+
() => props.modelValue,
|
|
118
|
+
(value) => {
|
|
119
|
+
findTabsIndex(value);
|
|
120
|
+
}
|
|
121
|
+
);
|
|
132
122
|
onMounted(init);
|
|
133
123
|
onActivated(init);
|
|
134
124
|
const contentStyle = computed(() => {
|
|
@@ -165,13 +155,14 @@ const component = {
|
|
|
165
155
|
emit("change", item);
|
|
166
156
|
}
|
|
167
157
|
};
|
|
168
|
-
return
|
|
158
|
+
return {
|
|
169
159
|
titles,
|
|
170
160
|
contentStyle,
|
|
171
161
|
tabsNavStyle,
|
|
172
162
|
titleStyle,
|
|
173
|
-
tabsActiveStyle
|
|
174
|
-
|
|
163
|
+
tabsActiveStyle,
|
|
164
|
+
...methods
|
|
165
|
+
};
|
|
175
166
|
}
|
|
176
167
|
};
|
|
177
168
|
const _hoisted_1 = ["onClick"];
|
package/dist/packages/_es/Tag.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.
|
|
2
|
+
* @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 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,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.
|
|
2
|
+
* @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -91,11 +91,14 @@ const _sfc_main = create({
|
|
|
91
91
|
textarea.style.height = height + "px";
|
|
92
92
|
}
|
|
93
93
|
};
|
|
94
|
-
watch(
|
|
95
|
-
|
|
96
|
-
|
|
94
|
+
watch(
|
|
95
|
+
() => props.modelValue,
|
|
96
|
+
() => {
|
|
97
|
+
if (props.autosize) {
|
|
98
|
+
nextTick(getContentHeight);
|
|
99
|
+
}
|
|
97
100
|
}
|
|
98
|
-
|
|
101
|
+
);
|
|
99
102
|
const emitChange = (value, event) => {
|
|
100
103
|
if (props.maxLength && value.length > Number(props.maxLength)) {
|
|
101
104
|
value = value.substring(0, Number(props.maxLength));
|
|
@@ -1,24 +1,5 @@
|
|
|
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
1
|
/*!
|
|
21
|
-
* @nutui/nutui v3.
|
|
2
|
+
* @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
|
|
22
3
|
* (c) 2022 @jdf2e.
|
|
23
4
|
* Released under the MIT License.
|
|
24
5
|
*/
|
|
@@ -70,13 +51,13 @@ const _sfc_main = create({
|
|
|
70
51
|
const handleTime = (time) => {
|
|
71
52
|
context.emit("select", time);
|
|
72
53
|
};
|
|
73
|
-
return
|
|
74
|
-
classes
|
|
75
|
-
|
|
54
|
+
return {
|
|
55
|
+
classes,
|
|
56
|
+
...toRefs(state),
|
|
76
57
|
getClass,
|
|
77
58
|
renderData,
|
|
78
59
|
handleTime
|
|
79
|
-
}
|
|
60
|
+
};
|
|
80
61
|
}
|
|
81
62
|
});
|
|
82
63
|
const _hoisted_1 = { class: "nut-timedetail__detail nut-timedetail__detail--moring" };
|
|
@@ -1,24 +1,5 @@
|
|
|
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
1
|
/*!
|
|
21
|
-
* @nutui/nutui v3.
|
|
2
|
+
* @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
|
|
22
3
|
* (c) 2022 @jdf2e.
|
|
23
4
|
* Released under the MIT License.
|
|
24
5
|
*/
|
|
@@ -55,10 +36,11 @@ const _sfc_main = create({
|
|
|
55
36
|
const handlePannel = (pannelKey) => {
|
|
56
37
|
context.emit("change", pannelKey);
|
|
57
38
|
};
|
|
58
|
-
return
|
|
39
|
+
return {
|
|
40
|
+
...toRefs(state),
|
|
59
41
|
classes,
|
|
60
42
|
handlePannel
|
|
61
|
-
}
|
|
43
|
+
};
|
|
62
44
|
}
|
|
63
45
|
});
|
|
64
46
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -1,28 +1,9 @@
|
|
|
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
1
|
/*!
|
|
21
|
-
* @nutui/nutui v3.
|
|
2
|
+
* @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
|
|
22
3
|
* (c) 2022 @jdf2e.
|
|
23
4
|
* Released under the MIT License.
|
|
24
5
|
*/
|
|
25
|
-
import { reactive, onMounted, watch, computed, resolveComponent, openBlock, createBlock, Transition, withCtx, withDirectives, createElementVNode, normalizeClass, normalizeStyle, createElementBlock, createVNode, createCommentVNode, toDisplayString, vShow, render } from "vue";
|
|
6
|
+
import { reactive, onMounted, watch, computed, resolveComponent, openBlock, createBlock, Transition, withCtx, withDirectives, createElementVNode, normalizeClass, normalizeStyle, createElementBlock, createVNode, mergeProps, createCommentVNode, toDisplayString, vShow, render } from "vue";
|
|
26
7
|
import { c as createComponent } from "./component.js";
|
|
27
8
|
import _sfc_main$1 from "./Icon.js";
|
|
28
9
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
@@ -125,11 +106,14 @@ const _sfc_main = create({
|
|
|
125
106
|
if (props.duration) {
|
|
126
107
|
show();
|
|
127
108
|
}
|
|
128
|
-
watch(
|
|
129
|
-
|
|
130
|
-
|
|
109
|
+
watch(
|
|
110
|
+
() => props.duration,
|
|
111
|
+
(val) => {
|
|
112
|
+
if (val) {
|
|
113
|
+
show();
|
|
114
|
+
}
|
|
131
115
|
}
|
|
132
|
-
|
|
116
|
+
);
|
|
133
117
|
const hasIcon = computed(() => {
|
|
134
118
|
if (props.type !== "text") {
|
|
135
119
|
return true;
|
|
@@ -195,11 +179,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
195
179
|
})
|
|
196
180
|
}, [
|
|
197
181
|
_ctx.hasIcon ? (openBlock(), createElementBlock("view", _hoisted_1, [
|
|
198
|
-
createVNode(_component_nut_icon, {
|
|
199
|
-
size: _ctx.iconSize,
|
|
182
|
+
createVNode(_component_nut_icon, mergeProps({ size: _ctx.iconSize }, _ctx.$attrs, {
|
|
200
183
|
color: "#ffffff",
|
|
201
184
|
name: _ctx.icon
|
|
202
|
-
}, null,
|
|
185
|
+
}), null, 16, ["size", "name"])
|
|
203
186
|
])) : createCommentVNode("", true),
|
|
204
187
|
_ctx.title ? (openBlock(), createElementBlock("div", _hoisted_2, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
|
|
205
188
|
createElementVNode("view", {
|
|
@@ -262,9 +245,9 @@ const updateToast = (opts) => {
|
|
|
262
245
|
if (container) {
|
|
263
246
|
const currentOpt = optsMap.find((item) => item.id === opts.id);
|
|
264
247
|
if (currentOpt) {
|
|
265
|
-
opts =
|
|
248
|
+
opts = { ...defaultOptions, ...currentOpt, ...opts };
|
|
266
249
|
} else {
|
|
267
|
-
opts =
|
|
250
|
+
opts = { ...defaultOptions, ...opts };
|
|
268
251
|
}
|
|
269
252
|
const instance = createVNode(Toast, opts);
|
|
270
253
|
render(instance, container);
|
|
@@ -282,7 +265,7 @@ const mountToast = (opts) => {
|
|
|
282
265
|
} else {
|
|
283
266
|
_id = new Date().getTime() + "";
|
|
284
267
|
}
|
|
285
|
-
opts =
|
|
268
|
+
opts = { ...defaultOptions, ...opts };
|
|
286
269
|
opts.id = _id;
|
|
287
270
|
idsMap.push(opts.id);
|
|
288
271
|
optsMap.push(opts);
|
|
@@ -302,27 +285,27 @@ const errorMsg = (msg) => {
|
|
|
302
285
|
const ToastFunction = {
|
|
303
286
|
text(msg, opts = {}) {
|
|
304
287
|
errorMsg(msg);
|
|
305
|
-
return mountToast(
|
|
288
|
+
return mountToast({ ...opts, type: "text", msg });
|
|
306
289
|
},
|
|
307
290
|
success(msg, opts = {}) {
|
|
308
291
|
errorMsg(msg);
|
|
309
|
-
return mountToast(
|
|
292
|
+
return mountToast({ icon: "success", ...opts, msg, type: "success" });
|
|
310
293
|
},
|
|
311
294
|
fail(msg, opts = {}) {
|
|
312
295
|
errorMsg(msg);
|
|
313
|
-
return mountToast(
|
|
296
|
+
return mountToast({ icon: "failure", ...opts, msg, type: "fail" });
|
|
314
297
|
},
|
|
315
298
|
warn(msg, opts = {}) {
|
|
316
299
|
errorMsg(msg);
|
|
317
|
-
return mountToast(
|
|
300
|
+
return mountToast({ icon: "tips", ...opts, msg, type: "warn" });
|
|
318
301
|
},
|
|
319
302
|
loading(msg, opts = {}) {
|
|
320
|
-
return mountToast(
|
|
321
|
-
icon: "loading"
|
|
322
|
-
|
|
303
|
+
return mountToast({
|
|
304
|
+
icon: "loading",
|
|
305
|
+
...opts,
|
|
323
306
|
msg,
|
|
324
307
|
type: "loading"
|
|
325
|
-
})
|
|
308
|
+
});
|
|
326
309
|
},
|
|
327
310
|
hide(id) {
|
|
328
311
|
clearToast(id);
|