@nutui/nutui 3.2.2 → 3.2.4-beta.0
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 +53 -0
- package/README.md +4 -4
- package/dist/nutui.es.js +2136 -1419
- package/dist/nutui.umd.js +2145 -1427
- package/dist/packages/_es/ActionSheet.js +4 -22
- package/dist/packages/_es/Address.js +63 -57
- package/dist/packages/_es/AddressList.js +12 -9
- package/dist/packages/_es/Animate.js +2 -21
- package/dist/packages/_es/Audio.js +11 -25
- package/dist/packages/_es/AudioOperate.js +3 -23
- package/dist/packages/_es/Avatar.js +6 -21
- 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 +74 -22
- package/dist/packages/_es/Button.js +1 -1
- package/dist/packages/_es/Calendar.js +17 -9
- package/dist/packages/_es/CalendarItem.js +1 -1
- package/dist/packages/_es/Card.js +1 -1
- package/dist/packages/_es/Cascader.js +72 -68
- package/dist/packages/_es/Category.js +1 -1
- package/dist/packages/_es/CategoryPane.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 +31 -17
- package/dist/packages/_es/CheckboxGroup.js +14 -7
- package/dist/packages/_es/CircleProgress.js +4 -4
- package/dist/packages/_es/Col.js +1 -1
- package/dist/packages/_es/Collapse.js +22 -19
- package/dist/packages/_es/CollapseItem.js +18 -32
- 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 +41 -40
- package/dist/packages/_es/DatePicker.js +25 -33
- package/dist/packages/_es/Dialog.js +13 -28
- package/dist/packages/_es/Divider.js +7 -24
- package/dist/packages/_es/Drag.js +2 -2
- package/dist/packages/_es/Ecard.js +8 -5
- package/dist/packages/_es/Elevator.js +27 -39
- package/dist/packages/_es/Ellipsis.js +21 -31
- package/dist/packages/_es/Empty.js +1 -1
- package/dist/packages/_es/FixedNav.js +1 -1
- package/dist/packages/_es/Form.js +23 -12
- 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 +15 -11
- package/dist/packages/_es/Image.js +8 -24
- package/dist/packages/_es/ImagePreview.js +34 -48
- package/dist/packages/_es/Indicator.js +1 -1
- package/dist/packages/_es/InfiniteLoading.js +5 -24
- package/dist/packages/_es/Input.js +8 -5
- package/dist/packages/_es/InputNumber.js +1 -1
- package/dist/packages/_es/Invoice.js +10 -25
- package/dist/packages/_es/Layout.js +1 -1
- package/dist/packages/_es/List.js +21 -30
- package/dist/packages/_es/Menu.js +13 -7
- package/dist/packages/_es/MenuItem.js +2 -21
- package/dist/packages/_es/Navbar.js +1 -1
- package/dist/packages/_es/NoticeBar.js +18 -29
- package/dist/packages/_es/Notify.js +16 -32
- package/dist/packages/_es/NumberKeyboard.js +23 -18
- package/dist/packages/_es/OldPicker.js +47 -46
- package/dist/packages/_es/OverLay.js +11 -23
- package/dist/packages/_es/Pagination.js +6 -6
- package/dist/packages/_es/Picker.js +66 -59
- package/dist/packages/_es/Popover.js +55 -52
- package/dist/packages/_es/Popup.js +35 -40
- package/dist/packages/_es/Price.js +1 -1
- package/dist/packages/_es/Progress.js +2 -2
- 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 +6 -24
- package/dist/packages/_es/Row.js +1 -1
- package/dist/packages/_es/SearchBar.js +6 -25
- package/dist/packages/_es/ShortPassword.js +18 -11
- package/dist/packages/_es/SideNavBar.js +6 -24
- package/dist/packages/_es/SideNavBarItem.js +1 -1
- package/dist/packages/_es/Signature.js +2 -21
- package/dist/packages/_es/Skeleton.js +1 -1
- package/dist/packages/_es/Sku.js +30 -35
- package/dist/packages/_es/Step.js +4 -22
- 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 +10 -7
- package/dist/packages/_es/TabPane.js +1 -1
- package/dist/packages/_es/Tabbar.js +7 -4
- package/dist/packages/_es/TabbarItem.js +1 -1
- package/dist/packages/_es/Table.js +10 -25
- package/dist/packages/_es/Tabs.js +99 -34
- package/dist/packages/_es/Tag.js +1 -2
- 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 +21 -37
- package/dist/packages/_es/TrendArrow.js +131 -0
- package/dist/packages/_es/Uploader.js +40 -34
- package/dist/packages/_es/Video.js +22 -33
- package/dist/packages/_es/WaterMark.js +31 -41
- package/dist/packages/_es/common.js +21 -11
- package/dist/packages/_es/component.js +13 -6
- 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 +39 -41
- 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 +16 -1
- package/dist/packages/barrage/index.scss +27 -18
- package/dist/packages/ellipsis/index.scss +1 -0
- package/dist/packages/index.d.ts +5 -0
- package/dist/packages/list/index.scss +0 -1
- 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/picker/index.scss +14 -0
- package/dist/packages/tabbar/index.scss +3 -2
- package/dist/packages/trendarrow/index.scss +17 -0
- package/dist/smartips/attributes.json +76 -12
- package/dist/smartips/tags.json +30 -10
- package/dist/smartips/web-types.json +164 -13
- package/dist/style.css +1 -1
- package/dist/style.es.js +1 -1
- package/dist/styles/font/config.json +3 -1
- package/dist/styles/font/demo_index.html +51 -5
- package/dist/styles/font/iconfont.css +11 -3
- package/dist/styles/font/iconfont.js +64 -61
- package/dist/styles/font/iconfont.json +14 -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 +53 -52
- package/dist/styles/themes/jdb.scss +53 -52
- package/dist/styles/themes/jdt.scss +53 -52
- package/dist/styles/variables-jdb.scss +4 -1
- package/dist/styles/variables-jdt.scss +4 -1
- package/dist/styles/variables.scss +4 -1
- package/dist/types/__VUE/actionsheet/index.vue.d.ts +121 -74
- package/dist/types/__VUE/address/index.vue.d.ts +159 -91
- package/dist/types/__VUE/addresslist/components/GeneralShell.vue.d.ts +9 -15
- package/dist/types/__VUE/addresslist/components/ItemContents.vue.d.ts +13 -17
- package/dist/types/__VUE/addresslist/components/LongPressShell.vue.d.ts +9 -15
- package/dist/types/__VUE/addresslist/components/SwipeShell.vue.d.ts +9 -15
- package/dist/types/__VUE/addresslist/index.vue.d.ts +25 -23
- package/dist/types/__VUE/animate/index.vue.d.ts +18 -19
- package/dist/types/__VUE/audio/index.vue.d.ts +33 -27
- package/dist/types/__VUE/audiooperate/index.vue.d.ts +9 -15
- package/dist/types/__VUE/avatar/index.vue.d.ts +37 -31
- package/dist/types/__VUE/avatargroup/index.vue.d.ts +37 -29
- package/dist/types/__VUE/backtop/index.vue.d.ts +34 -28
- package/dist/types/__VUE/badge/index.vue.d.ts +37 -31
- package/dist/types/__VUE/barrage/index.vue.d.ts +31 -26
- package/dist/types/__VUE/button/index.vue.d.ts +48 -37
- package/dist/types/__VUE/calendar/index.vue.d.ts +65 -45
- package/dist/types/__VUE/calendaritem/index.vue.d.ts +101 -55
- package/dist/types/__VUE/card/index.vue.d.ts +37 -29
- package/dist/types/__VUE/cascader/cascader-item.vue.d.ts +29 -33
- package/dist/types/__VUE/cascader/index.vue.d.ts +114 -74
- package/dist/types/__VUE/cascader/types.d.ts +5 -0
- package/dist/types/__VUE/category/index.vue.d.ts +14 -17
- package/dist/types/__VUE/categorypane/index.vue.d.ts +17 -19
- package/dist/types/__VUE/cell/index.vue.d.ts +58 -44
- package/dist/types/__VUE/cellgroup/index.vue.d.ts +13 -17
- package/dist/types/__VUE/checkbox/index.vue.d.ts +49 -35
- package/dist/types/__VUE/checkboxgroup/index.vue.d.ts +17 -19
- package/dist/types/__VUE/circleprogress/index.vue.d.ts +33 -27
- package/dist/types/__VUE/col/index.vue.d.ts +13 -17
- package/dist/types/__VUE/collapse/index.vue.d.ts +43 -34
- package/dist/types/__VUE/collapseitem/index.vue.d.ts +32 -31
- package/dist/types/__VUE/comment/components/CmtBottom.vue.d.ts +17 -19
- package/dist/types/__VUE/comment/components/CmtHeader.vue.d.ts +17 -19
- package/dist/types/__VUE/comment/components/CmtImages.vue.d.ts +17 -19
- package/dist/types/__VUE/comment/index.vue.d.ts +41 -31
- package/dist/types/__VUE/configprovider/index.vue.d.ts +13 -17
- package/dist/types/__VUE/countdown/index.vue.d.ts +37 -30
- package/dist/types/__VUE/countup/index.vue.d.ts +76 -50
- package/dist/types/__VUE/datepicker/index.vue.d.ts +136 -82
- package/dist/types/__VUE/dialog/index.vue.d.ts +141 -85
- package/dist/types/__VUE/divider/index.vue.d.ts +21 -21
- package/dist/types/__VUE/drag/index.vue.d.ts +22 -19
- package/dist/types/__VUE/ecard/index.vue.d.ts +46 -33
- package/dist/types/__VUE/elevator/index.vue.d.ts +36 -26
- package/dist/types/__VUE/ellipsis/index.vue.d.ts +44 -25
- package/dist/types/__VUE/empty/index.vue.d.ts +17 -19
- package/dist/types/__VUE/fixednav/index.vue.d.ts +42 -31
- package/dist/types/__VUE/form/common.d.ts +4 -0
- package/dist/types/__VUE/form/index.vue.d.ts +18 -15
- package/dist/types/__VUE/form/types.d.ts +3 -0
- package/dist/types/__VUE/formitem/index.vue.d.ts +46 -33
- package/dist/types/__VUE/formitem/types.d.ts +5 -2
- package/dist/types/__VUE/grid/index.vue.d.ts +44 -35
- package/dist/types/__VUE/griditem/index.vue.d.ts +29 -28
- package/dist/types/__VUE/icon/index.vue.d.ts +30 -25
- package/dist/types/__VUE/image/index.vue.d.ts +41 -35
- package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +47 -39
- package/dist/types/__VUE/imagepreview/index.d.ts +4 -4
- package/dist/types/__VUE/imagepreview/index.vue.d.ts +70 -47
- package/dist/types/__VUE/indicator/index.vue.d.ts +27 -23
- package/dist/types/__VUE/infiniteloading/index.vue.d.ts +49 -35
- package/dist/types/__VUE/input/index.vue.d.ts +137 -80
- package/dist/types/__VUE/inputnumber/index.vue.d.ts +49 -35
- package/dist/types/__VUE/invoice/index.vue.d.ts +17 -19
- package/dist/types/__VUE/layout/index.vue.d.ts +2 -9
- package/dist/types/__VUE/list/index.vue.d.ts +19 -19
- package/dist/types/__VUE/menu/index.vue.d.ts +35 -32
- package/dist/types/__VUE/menuitem/index.vue.d.ts +26 -30
- package/dist/types/__VUE/navbar/index.vue.d.ts +45 -33
- package/dist/types/__VUE/noticebar/index.vue.d.ts +69 -47
- package/dist/types/__VUE/notify/index.vue.d.ts +45 -40
- package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +69 -46
- package/dist/types/__VUE/oldpicker/Column.vue.d.ts +22 -24
- package/dist/types/__VUE/oldpicker/index.vue.d.ts +129 -82
- package/dist/types/__VUE/overlay/index.vue.d.ts +64 -1557
- package/dist/types/__VUE/pagination/index.vue.d.ts +45 -35
- package/dist/types/__VUE/picker/Column.vue.d.ts +30 -29
- package/dist/types/__VUE/picker/index.vue.d.ts +150 -91
- package/dist/types/__VUE/popover/index.vue.d.ts +112 -70
- package/dist/types/__VUE/popup/index.vue.d.ts +177 -73
- package/dist/types/__VUE/price/index.vue.d.ts +33 -27
- package/dist/types/__VUE/progress/index.vue.d.ts +54 -37
- package/dist/types/__VUE/pullrefresh/index.vue.d.ts +49 -27
- package/dist/types/__VUE/radio/index.vue.d.ts +37 -29
- package/dist/types/__VUE/radiogroup/index.vue.d.ts +17 -19
- package/dist/types/__VUE/range/index.vue.d.ts +50 -44
- package/dist/types/__VUE/rate/index.vue.d.ts +61 -41
- package/dist/types/__VUE/row/index.vue.d.ts +25 -23
- package/dist/types/__VUE/searchbar/index.vue.d.ts +62 -41
- package/dist/types/__VUE/searchbar/type.d.ts +5 -0
- package/dist/types/__VUE/shortpassword/index.vue.d.ts +45 -33
- package/dist/types/__VUE/sidenavbar/index.vue.d.ts +10 -15
- package/dist/types/__VUE/sidenavbaritem/index.vue.d.ts +13 -17
- package/dist/types/__VUE/signature/index.vue.d.ts +25 -23
- package/dist/types/__VUE/skeleton/common.d.ts +1 -1
- package/dist/types/__VUE/skeleton/index.vue.d.ts +46 -34
- package/dist/types/__VUE/sku/components/SkuHeader.vue.d.ts +9 -15
- package/dist/types/__VUE/sku/components/SkuOperate.vue.d.ts +25 -23
- package/dist/types/__VUE/sku/components/SkuSelect.vue.d.ts +9 -15
- package/dist/types/__VUE/sku/components/SkuStepper.vue.d.ts +21 -21
- package/dist/types/__VUE/sku/index.vue.d.ts +129 -78
- package/dist/types/__VUE/step/index.vue.d.ts +27 -25
- package/dist/types/__VUE/steps/index.vue.d.ts +17 -19
- package/dist/types/__VUE/sticky/index.vue.d.ts +26 -25
- package/dist/types/__VUE/subsidenavbar/index.vue.d.ts +17 -19
- package/dist/types/__VUE/swipe/index.vue.d.ts +24 -22
- package/dist/types/__VUE/swiper/index.vue.d.ts +59 -40
- package/dist/types/__VUE/swiperitem/index.vue.d.ts +8 -10
- package/dist/types/__VUE/switch/index.vue.d.ts +53 -37
- package/dist/types/__VUE/tabbar/index.vue.d.ts +34 -28
- package/dist/types/__VUE/tabbaritem/index.vue.d.ts +45 -36
- package/dist/types/__VUE/table/common.d.ts +1 -1
- package/dist/types/__VUE/table/index.vue.d.ts +26 -24
- package/dist/types/__VUE/tabpane/index.vue.d.ts +17 -19
- package/dist/types/__VUE/tabs/common.d.ts +13 -0
- package/dist/types/__VUE/tabs/index.vue.d.ts +72 -35
- package/dist/types/__VUE/tag/index.vue.d.ts +34 -27
- package/dist/types/__VUE/textarea/index.vue.d.ts +46 -34
- package/dist/types/__VUE/timedetail/index.vue.d.ts +13 -17
- package/dist/types/__VUE/timepannel/index.vue.d.ts +13 -17
- package/dist/types/__VUE/timeselect/index.vue.d.ts +34 -28
- package/dist/types/__VUE/toast/index.d.ts +5 -5
- package/dist/types/__VUE/toast/index.vue.d.ts +62 -54
- package/dist/types/__VUE/trendarrow/index.vue.d.ts +131 -0
- package/dist/types/__VUE/uploader/index.vue.d.ts +111 -68
- package/dist/types/__VUE/video/index.vue.d.ts +30 -20
- package/dist/types/__VUE/watermark/index.vue.d.ts +75 -49
- package/dist/types/index.d.ts +1 -1
- package/dist/types/nutui.d.ts +2 -1
- package/package.json +5 -5
|
@@ -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.
|
|
2
|
+
* @nutui/nutui v3.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
|
|
22
3
|
* (c) 2022 @jdf2e.
|
|
23
4
|
* Released under the MIT License.
|
|
24
5
|
*/
|
|
@@ -52,6 +33,10 @@ const _sfc_main = create({
|
|
|
52
33
|
symbol: {
|
|
53
34
|
type: String,
|
|
54
35
|
default: "..."
|
|
36
|
+
},
|
|
37
|
+
lineHeight: {
|
|
38
|
+
type: [Number, String],
|
|
39
|
+
default: "20"
|
|
55
40
|
}
|
|
56
41
|
},
|
|
57
42
|
emits: ["click", "change"],
|
|
@@ -70,14 +55,17 @@ const _sfc_main = create({
|
|
|
70
55
|
[prefixCls]: true
|
|
71
56
|
};
|
|
72
57
|
});
|
|
73
|
-
watch(
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
58
|
+
watch(
|
|
59
|
+
() => props.content,
|
|
60
|
+
(newV, oldVal) => {
|
|
61
|
+
if (newV != oldVal) {
|
|
62
|
+
if (container) {
|
|
63
|
+
document.body.appendChild(container);
|
|
64
|
+
}
|
|
65
|
+
createContainer();
|
|
77
66
|
}
|
|
78
|
-
createContainer();
|
|
79
67
|
}
|
|
80
|
-
|
|
68
|
+
);
|
|
81
69
|
onMounted(() => {
|
|
82
70
|
createContainer();
|
|
83
71
|
});
|
|
@@ -101,8 +89,10 @@ const _sfc_main = create({
|
|
|
101
89
|
container.style.whiteSpace = "normal";
|
|
102
90
|
container.style.webkitLineClamp = "unset";
|
|
103
91
|
container.style.display = "block";
|
|
104
|
-
const lineHeight = pxToNumber(originStyle.lineHeight);
|
|
105
|
-
maxHeight = Math.floor(
|
|
92
|
+
const lineHeight = pxToNumber(originStyle.lineHeight === "normal" ? props.lineHeight : originStyle.lineHeight);
|
|
93
|
+
maxHeight = Math.floor(
|
|
94
|
+
lineHeight * (Number(props.rows) + 0.5) + pxToNumber(originStyle.paddingTop) + pxToNumber(originStyle.paddingBottom)
|
|
95
|
+
);
|
|
106
96
|
container.innerText = props.content;
|
|
107
97
|
document.body.appendChild(container);
|
|
108
98
|
calcEllipse();
|
|
@@ -189,7 +179,7 @@ const _sfc_main = create({
|
|
|
189
179
|
const handleClick = () => {
|
|
190
180
|
emit("click");
|
|
191
181
|
};
|
|
192
|
-
return
|
|
182
|
+
return { ...toRefs(state), root, ellipsis, classes, clickHandle, handleClick };
|
|
193
183
|
}
|
|
194
184
|
});
|
|
195
185
|
const _hoisted_1 = { key: 0 };
|
|
@@ -203,13 +193,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
203
193
|
}, [
|
|
204
194
|
!_ctx.exceeded ? (openBlock(), createElementBlock("view", _hoisted_1, toDisplayString(_ctx.content), 1)) : createCommentVNode("", true),
|
|
205
195
|
_ctx.exceeded && !_ctx.expanded ? (openBlock(), createElementBlock("view", _hoisted_2, [
|
|
206
|
-
createTextVNode(toDisplayString(_ctx.ellipsis.leading), 1),
|
|
196
|
+
createTextVNode(toDisplayString(_ctx.ellipsis.leading) + " ", 1),
|
|
207
197
|
_ctx.expandText ? (openBlock(), createElementBlock("span", {
|
|
208
198
|
key: 0,
|
|
209
199
|
class: "nut-ellipsis-text",
|
|
210
200
|
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => _ctx.clickHandle(1), ["stop"]))
|
|
211
201
|
}, toDisplayString(_ctx.expandText), 1)) : createCommentVNode("", true),
|
|
212
|
-
createTextVNode(toDisplayString(_ctx.ellipsis.tailing), 1)
|
|
202
|
+
createTextVNode(" " + toDisplayString(_ctx.ellipsis.tailing), 1)
|
|
213
203
|
])) : createCommentVNode("", true),
|
|
214
204
|
_ctx.exceeded && _ctx.expanded ? (openBlock(), createElementBlock("view", _hoisted_3, [
|
|
215
205
|
createTextVNode(toDisplayString(_ctx.content) + " ", 1),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import {
|
|
6
|
+
import { a as isObject, g as getPropByPath, i as isPromise, c as createComponent } from "./component.js";
|
|
7
7
|
import { computed, reactive, provide, watch, resolveComponent, openBlock, createElementBlock, withModifiers, createVNode, withCtx, renderSlot } from "vue";
|
|
8
8
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
9
9
|
import "../locale/lang";
|
|
@@ -12,6 +12,10 @@ const component = {
|
|
|
12
12
|
modelValue: {
|
|
13
13
|
type: Object,
|
|
14
14
|
default: {}
|
|
15
|
+
},
|
|
16
|
+
rules: {
|
|
17
|
+
type: Object,
|
|
18
|
+
default: {}
|
|
15
19
|
}
|
|
16
20
|
},
|
|
17
21
|
components: {},
|
|
@@ -27,16 +31,20 @@ const component = {
|
|
|
27
31
|
const reset = () => {
|
|
28
32
|
clearErrorTips();
|
|
29
33
|
};
|
|
30
|
-
watch(
|
|
31
|
-
|
|
32
|
-
|
|
34
|
+
watch(
|
|
35
|
+
() => props.modelValue,
|
|
36
|
+
(value) => {
|
|
37
|
+
clearErrorTips(value);
|
|
38
|
+
},
|
|
39
|
+
{ immediate: true }
|
|
40
|
+
);
|
|
33
41
|
const findFormItem = (vnodes) => {
|
|
34
42
|
let task = [];
|
|
35
43
|
vnodes.forEach((vnode, index2) => {
|
|
36
44
|
var _a, _b, _c, _d;
|
|
37
45
|
let type = vnode.type;
|
|
38
46
|
type = type.name || type;
|
|
39
|
-
if (type == "nut-form-item") {
|
|
47
|
+
if (type == "nut-form-item" || (type == null ? void 0 : type.toString().endsWith("form-item"))) {
|
|
40
48
|
task.push({
|
|
41
49
|
prop: (_a = vnode.props) == null ? void 0 : _a["prop"],
|
|
42
50
|
rules: ((_b = vnode.props) == null ? void 0 : _b["rules"]) || []
|
|
@@ -69,11 +77,14 @@ const component = {
|
|
|
69
77
|
if (!prop) {
|
|
70
78
|
console.warn("[NutUI] <FormItem> \u4F7F\u7528 rules \u6821\u9A8C\u89C4\u5219\u65F6 , \u5FC5\u987B\u8BBE\u7F6E prop \u53C2\u6570");
|
|
71
79
|
}
|
|
72
|
-
|
|
80
|
+
const value = getPropByPath(props.modelValue, prop || "");
|
|
73
81
|
tipMessage({ prop, message: "" });
|
|
74
|
-
|
|
82
|
+
const formRules = props.rules || {};
|
|
83
|
+
const _rules = [...(formRules == null ? void 0 : formRules[prop]) || [], ...rules];
|
|
75
84
|
while (_rules.length) {
|
|
76
|
-
const
|
|
85
|
+
const rule = _rules.shift();
|
|
86
|
+
const { validator, ...ruleWithoutValidator } = rule;
|
|
87
|
+
const { required, regex, message } = ruleWithoutValidator;
|
|
77
88
|
const errorMsg = { prop, message };
|
|
78
89
|
if (required) {
|
|
79
90
|
if (value === "" || value === void 0 || value === null) {
|
|
@@ -84,7 +95,7 @@ const component = {
|
|
|
84
95
|
return _Promise(errorMsg);
|
|
85
96
|
}
|
|
86
97
|
if (validator) {
|
|
87
|
-
const result = validator(value);
|
|
98
|
+
const result = validator(value, ruleWithoutValidator);
|
|
88
99
|
if (isPromise(result)) {
|
|
89
100
|
return new Promise((r, j) => {
|
|
90
101
|
result.then((res) => {
|
|
@@ -107,8 +118,8 @@ const component = {
|
|
|
107
118
|
};
|
|
108
119
|
const validate = (customProp = "") => {
|
|
109
120
|
return new Promise((resolve, reject) => {
|
|
110
|
-
|
|
111
|
-
|
|
121
|
+
const task = findFormItem(slots.default());
|
|
122
|
+
const errors = task.map((item) => {
|
|
112
123
|
if (customProp) {
|
|
113
124
|
if (customProp == item.prop) {
|
|
114
125
|
return checkRule(item);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -28,17 +28,21 @@ const _sfc_main = create({
|
|
|
28
28
|
return () => {
|
|
29
29
|
var _a;
|
|
30
30
|
const _isImage = isImage();
|
|
31
|
-
return h(
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
31
|
+
return h(
|
|
32
|
+
_isImage ? "img" : props.tag,
|
|
33
|
+
{
|
|
34
|
+
class: _isImage ? `${componentName}__img` : `${props.fontClassName} ${componentName} ${props.classPrefix}-${props.name}`,
|
|
35
|
+
style: {
|
|
36
|
+
color: props.color,
|
|
37
|
+
fontSize: pxCheck(props.size),
|
|
38
|
+
width: pxCheck(props.size),
|
|
39
|
+
height: pxCheck(props.size)
|
|
40
|
+
},
|
|
41
|
+
onClick: handleClick,
|
|
42
|
+
src: _isImage ? props.name : ""
|
|
38
43
|
},
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}, (_a = slots.default) == null ? void 0 : _a.call(slots));
|
|
44
|
+
(_a = slots.default) == null ? void 0 : _a.call(slots)
|
|
45
|
+
);
|
|
42
46
|
};
|
|
43
47
|
}
|
|
44
48
|
});
|
|
@@ -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.
|
|
2
|
+
* @nutui/nutui v3.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
|
|
22
3
|
* (c) 2022 @jdf2e.
|
|
23
4
|
* Released under the MIT License.
|
|
24
5
|
*/
|
|
@@ -99,9 +80,12 @@ const _sfc_main = create({
|
|
|
99
80
|
};
|
|
100
81
|
return styless;
|
|
101
82
|
});
|
|
102
|
-
watch(
|
|
103
|
-
|
|
104
|
-
|
|
83
|
+
watch(
|
|
84
|
+
() => props.src,
|
|
85
|
+
(val) => {
|
|
86
|
+
state.isError = false, state.loading = true;
|
|
87
|
+
}
|
|
88
|
+
);
|
|
105
89
|
const load = () => {
|
|
106
90
|
state.loading = false;
|
|
107
91
|
emit("load");
|
|
@@ -114,7 +98,7 @@ const _sfc_main = create({
|
|
|
114
98
|
const imageClick = (event) => {
|
|
115
99
|
emit("click", event);
|
|
116
100
|
};
|
|
117
|
-
return
|
|
101
|
+
return { ...toRefs(state), imageClick, classes, styles, stylebox, error, load };
|
|
118
102
|
}
|
|
119
103
|
});
|
|
120
104
|
const _hoisted_1 = ["src", "alt"];
|
|
@@ -1,29 +1,10 @@
|
|
|
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.
|
|
2
|
+
* @nutui/nutui v3.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
|
|
22
3
|
* (c) 2022 @jdf2e.
|
|
23
4
|
* Released under the MIT License.
|
|
24
5
|
*/
|
|
25
6
|
import { reactive, computed, watch, toRefs, resolveComponent, openBlock, createBlock, withCtx, createElementBlock, normalizeStyle, createElementVNode, createCommentVNode, createVNode, ref, onMounted, Fragment, renderList, toDisplayString, mergeProps, render, h } from "vue";
|
|
26
|
-
import { c as createComponent,
|
|
7
|
+
import { c as createComponent, i as isPromise } from "./component.js";
|
|
27
8
|
import Popup from "./Popup.js";
|
|
28
9
|
import Video from "./Video.js";
|
|
29
10
|
import Swiper from "./Swiper.js";
|
|
@@ -35,7 +16,7 @@ import "../locale/lang";
|
|
|
35
16
|
import "./OverLay.js";
|
|
36
17
|
import "./pxCheck.js";
|
|
37
18
|
import "./index3.js";
|
|
38
|
-
const {
|
|
19
|
+
const { create: create$1 } = createComponent("imagepreviewitem");
|
|
39
20
|
const _sfc_main$1 = create$1({
|
|
40
21
|
props: {
|
|
41
22
|
show: {
|
|
@@ -45,13 +26,11 @@ const _sfc_main$1 = create$1({
|
|
|
45
26
|
initNo: Number,
|
|
46
27
|
image: {
|
|
47
28
|
type: Object,
|
|
48
|
-
default: () => {
|
|
49
|
-
}
|
|
29
|
+
default: () => ({})
|
|
50
30
|
},
|
|
51
31
|
video: {
|
|
52
|
-
type:
|
|
53
|
-
default: () => {
|
|
54
|
-
}
|
|
32
|
+
type: Object,
|
|
33
|
+
default: () => ({})
|
|
55
34
|
},
|
|
56
35
|
showIndex: {
|
|
57
36
|
type: Boolean,
|
|
@@ -254,19 +233,23 @@ const _sfc_main$1 = create$1({
|
|
|
254
233
|
};
|
|
255
234
|
const clamp = (num, min, max) => Math.min(Math.max(num, min), max);
|
|
256
235
|
watch(() => props.initNo, resetScale);
|
|
257
|
-
watch(
|
|
258
|
-
|
|
259
|
-
|
|
236
|
+
watch(
|
|
237
|
+
() => props.show,
|
|
238
|
+
(value) => {
|
|
239
|
+
if (!value) {
|
|
240
|
+
resetScale();
|
|
241
|
+
}
|
|
260
242
|
}
|
|
261
|
-
|
|
262
|
-
return
|
|
243
|
+
);
|
|
244
|
+
return {
|
|
245
|
+
...toRefs(state),
|
|
263
246
|
onTouchStart,
|
|
264
247
|
onTouchMove,
|
|
265
248
|
onTouchEnd,
|
|
266
249
|
getDistance,
|
|
267
250
|
imageStyle,
|
|
268
251
|
imageLoad
|
|
269
|
-
}
|
|
252
|
+
};
|
|
270
253
|
}
|
|
271
254
|
});
|
|
272
255
|
const _hoisted_1$1 = ["src"];
|
|
@@ -295,7 +278,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
295
278
|
onLoad: _cache[0] || (_cache[0] = (...args) => _ctx.imageLoad && _ctx.imageLoad(...args))
|
|
296
279
|
}, null, 40, _hoisted_1$1)
|
|
297
280
|
], 4)) : createCommentVNode("", true),
|
|
298
|
-
_ctx.video ? (openBlock(), createElementBlock("view", _hoisted_2$1, [
|
|
281
|
+
_ctx.video && _ctx.video.source ? (openBlock(), createElementBlock("view", _hoisted_2$1, [
|
|
299
282
|
createVNode(_component_nut_video, {
|
|
300
283
|
source: _ctx.video.source,
|
|
301
284
|
options: _ctx.video.options
|
|
@@ -306,7 +289,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
306
289
|
}, 8, ["onTouchstart", "onTouchmove", "onTouchend", "onTouchcancel"]);
|
|
307
290
|
}
|
|
308
291
|
var ImagePreviewItem = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
|
|
309
|
-
const {
|
|
292
|
+
const { create } = createComponent("imagepreview");
|
|
310
293
|
const _sfc_main = create({
|
|
311
294
|
props: {
|
|
312
295
|
show: {
|
|
@@ -381,7 +364,6 @@ const _sfc_main = create({
|
|
|
381
364
|
ImagePreviewItem
|
|
382
365
|
},
|
|
383
366
|
setup(props, { emit }) {
|
|
384
|
-
toRefs(props);
|
|
385
367
|
const swipeRef = ref();
|
|
386
368
|
const state = reactive({
|
|
387
369
|
showPop: false,
|
|
@@ -433,23 +415,26 @@ const _sfc_main = create({
|
|
|
433
415
|
state.rootWidth = swipeRef.value.offsetWidth;
|
|
434
416
|
}, 100);
|
|
435
417
|
};
|
|
436
|
-
watch(
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
418
|
+
watch(
|
|
419
|
+
() => props.show,
|
|
420
|
+
(val) => {
|
|
421
|
+
state.showPop = val;
|
|
422
|
+
init();
|
|
423
|
+
}
|
|
424
|
+
);
|
|
440
425
|
onMounted(() => {
|
|
441
426
|
state.active = props.initNo;
|
|
442
427
|
state.showPop = props.show;
|
|
443
428
|
state.maxNo = props.images.length + props.videos.length;
|
|
444
429
|
});
|
|
445
|
-
return
|
|
446
|
-
swipeRef
|
|
447
|
-
|
|
430
|
+
return {
|
|
431
|
+
swipeRef,
|
|
432
|
+
...toRefs(state),
|
|
448
433
|
slideChangeEnd,
|
|
449
434
|
onClose,
|
|
450
435
|
handleCloseIcon,
|
|
451
436
|
styles
|
|
452
|
-
}
|
|
437
|
+
};
|
|
453
438
|
}
|
|
454
439
|
});
|
|
455
440
|
const _hoisted_1 = {
|
|
@@ -471,7 +456,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
471
456
|
"onUpdate:visible": _cache[1] || (_cache[1] = ($event) => _ctx.showPop = $event),
|
|
472
457
|
isWrapTeleport: _ctx.isWrapTeleport,
|
|
473
458
|
onClick: _ctx.onClose,
|
|
474
|
-
style: { "width": "100%" }
|
|
459
|
+
style: { "width": "100%" },
|
|
460
|
+
"lock-scroll": ""
|
|
475
461
|
}, {
|
|
476
462
|
default: withCtx(() => [
|
|
477
463
|
createElementVNode("view", _hoisted_1, [
|
|
@@ -545,9 +531,9 @@ class ImagePreviewOptions {
|
|
|
545
531
|
class ImagePreviewFunction {
|
|
546
532
|
constructor(_options) {
|
|
547
533
|
this.options = new ImagePreviewOptions();
|
|
548
|
-
|
|
534
|
+
const options = Object.assign(this.options, _options);
|
|
549
535
|
let elWarp = document.body;
|
|
550
|
-
|
|
536
|
+
const teleport = options.teleport;
|
|
551
537
|
if (teleport != "body") {
|
|
552
538
|
if (typeof teleport == "string") {
|
|
553
539
|
elWarp = document.querySelector(teleport);
|
|
@@ -570,7 +556,7 @@ class ImagePreviewFunction {
|
|
|
570
556
|
render(instance, root);
|
|
571
557
|
}
|
|
572
558
|
}
|
|
573
|
-
const _ImagePreview =
|
|
559
|
+
const _ImagePreview = (options) => {
|
|
574
560
|
return new ImagePreviewFunction(options);
|
|
575
561
|
};
|
|
576
562
|
_ImagePreview.install = (app) => {
|
|
@@ -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.
|
|
2
|
+
* @nutui/nutui v3.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
|
|
22
3
|
* (c) 2022 @jdf2e.
|
|
23
4
|
* Released under the MIT License.
|
|
24
5
|
*/
|
|
@@ -206,16 +187,16 @@ const _sfc_main = create({
|
|
|
206
187
|
isKeepAlive.value = true;
|
|
207
188
|
state.scrollEl.removeEventListener("scroll", handleScroll, props.useCapture);
|
|
208
189
|
});
|
|
209
|
-
return
|
|
210
|
-
classes
|
|
211
|
-
|
|
190
|
+
return {
|
|
191
|
+
classes,
|
|
192
|
+
...toRefs(state),
|
|
212
193
|
touchStart,
|
|
213
194
|
touchMove,
|
|
214
195
|
touchEnd,
|
|
215
196
|
getStyle,
|
|
216
197
|
translate,
|
|
217
198
|
slots
|
|
218
|
-
}
|
|
199
|
+
};
|
|
219
200
|
}
|
|
220
201
|
});
|
|
221
202
|
const _hoisted_1 = { class: "top-box" };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -306,10 +306,13 @@ const _sfc_main = create({
|
|
|
306
306
|
return;
|
|
307
307
|
}
|
|
308
308
|
};
|
|
309
|
-
watch(
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
309
|
+
watch(
|
|
310
|
+
() => props.modelValue,
|
|
311
|
+
() => {
|
|
312
|
+
updateValue(getModelValue());
|
|
313
|
+
resetValidation();
|
|
314
|
+
}
|
|
315
|
+
);
|
|
313
316
|
onMounted(() => {
|
|
314
317
|
updateValue(getModelValue(), props.formatTrigger);
|
|
315
318
|
});
|
|
@@ -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.
|
|
2
|
+
* @nutui/nutui v3.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
|
|
22
3
|
* (c) 2022 @jdf2e.
|
|
23
4
|
* Released under the MIT License.
|
|
24
5
|
*/
|
|
@@ -64,13 +45,18 @@ const _sfc_main = create({
|
|
|
64
45
|
emit("onSubmit", valid, errors);
|
|
65
46
|
});
|
|
66
47
|
};
|
|
67
|
-
watch(
|
|
68
|
-
|
|
48
|
+
watch(
|
|
49
|
+
() => props.data,
|
|
50
|
+
() => init(),
|
|
51
|
+
{ deep: true }
|
|
52
|
+
);
|
|
53
|
+
return {
|
|
54
|
+
...toRefs(state),
|
|
69
55
|
classes,
|
|
70
56
|
formRef,
|
|
71
57
|
list,
|
|
72
58
|
submit
|
|
73
|
-
}
|
|
59
|
+
};
|
|
74
60
|
}
|
|
75
61
|
});
|
|
76
62
|
const _hoisted_1 = ["placeholder", "onUpdate:modelValue"];
|
|
@@ -78,7 +64,6 @@ const _hoisted_2 = {
|
|
|
78
64
|
key: 0,
|
|
79
65
|
class: "nut-invoice__submit"
|
|
80
66
|
};
|
|
81
|
-
const _hoisted_3 = /* @__PURE__ */ createTextVNode("\u63D0\u4EA4\u5BA1\u6279");
|
|
82
67
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
83
68
|
const _component_nut_radio = resolveComponent("nut-radio");
|
|
84
69
|
const _component_nut_radiogroup = resolveComponent("nut-radiogroup");
|
|
@@ -145,7 +130,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
145
130
|
onClick: _ctx.submit
|
|
146
131
|
}, {
|
|
147
132
|
default: withCtx(() => [
|
|
148
|
-
|
|
133
|
+
createTextVNode("\u63D0\u4EA4\u5BA1\u6279")
|
|
149
134
|
]),
|
|
150
135
|
_: 1
|
|
151
136
|
}, 8, ["onClick"])
|