@nutui/nutui 3.2.2-beta.1 → 3.2.3
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 +93 -0
- package/README.md +5 -3
- package/dist/nutui.es.js +1460 -973
- package/dist/nutui.umd.js +1470 -981
- package/dist/packages/_es/ActionSheet.js +1 -1
- package/dist/packages/_es/Address.js +1 -1
- package/dist/packages/_es/AddressList.js +6 -7
- package/dist/packages/_es/Animate.js +1 -1
- package/dist/packages/_es/Audio.js +1 -1
- package/dist/packages/_es/AudioOperate.js +2 -3
- package/dist/packages/_es/Avatar.js +2 -2
- 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 +70 -21
- 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 +22 -4
- 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 +1 -1
- package/dist/packages/_es/CheckboxGroup.js +1 -1
- package/dist/packages/_es/CircleProgress.js +4 -4
- package/dist/packages/_es/Col.js +1 -1
- package/dist/packages/_es/Collapse.js +1 -1
- package/dist/packages/_es/CollapseItem.js +1 -1
- package/dist/packages/_es/Comment.js +1 -1
- package/dist/packages/_es/ConfigProvider.js +1 -1
- package/dist/packages/_es/CountDown.js +1 -1
- package/dist/packages/_es/CountUp.js +3 -1
- package/dist/packages/_es/DatePicker.js +8 -3
- package/dist/packages/_es/Dialog.js +3 -3
- package/dist/packages/_es/Divider.js +1 -1
- package/dist/packages/_es/Drag.js +5 -5
- package/dist/packages/_es/Ecard.js +2 -2
- package/dist/packages/_es/Elevator.js +3 -2
- package/dist/packages/_es/Ellipsis.js +1 -1
- package/dist/packages/_es/Empty.js +1 -1
- package/dist/packages/_es/FixedNav.js +1 -1
- package/dist/packages/_es/Form.js +17 -10
- package/dist/packages/_es/FormItem.js +5 -4
- package/dist/packages/_es/Grid.js +1 -1
- package/dist/packages/_es/GridItem.js +1 -1
- package/dist/packages/_es/Icon.js +1 -1
- package/dist/packages/_es/Image.js +1 -1
- package/dist/packages/_es/ImagePreview.js +13 -15
- package/dist/packages/_es/Indicator.js +1 -1
- package/dist/packages/_es/InfiniteLoading.js +1 -1
- package/dist/packages/_es/Input.js +5 -6
- package/dist/packages/_es/InputNumber.js +1 -1
- package/dist/packages/_es/Invoice.js +141 -0
- package/dist/packages/_es/Layout.js +1 -1
- package/dist/packages/_es/List.js +12 -6
- package/dist/packages/_es/Menu.js +1 -1
- package/dist/packages/_es/MenuItem.js +2 -2
- package/dist/packages/_es/Navbar.js +2 -2
- package/dist/packages/_es/NoticeBar.js +2 -2
- package/dist/packages/_es/Notify.js +7 -5
- package/dist/packages/_es/NumberKeyboard.js +12 -14
- package/dist/packages/_es/OldPicker.js +1 -1
- package/dist/packages/_es/OverLay.js +1 -1
- package/dist/packages/_es/Pagination.js +6 -6
- package/dist/packages/_es/Picker.js +19 -4
- package/dist/packages/_es/Popover.js +1 -1
- package/dist/packages/_es/Popup.js +1 -1
- package/dist/packages/_es/Price.js +1 -1
- package/dist/packages/_es/Progress.js +2 -2
- package/dist/packages/_es/PullRefresh.js +1 -1
- package/dist/packages/_es/Radio.js +3 -3
- package/dist/packages/_es/RadioGroup.js +1 -1
- package/dist/packages/_es/Range.js +1 -1
- package/dist/packages/_es/Rate.js +2 -1
- package/dist/packages/_es/Row.js +1 -1
- package/dist/packages/_es/SearchBar.js +21 -7
- package/dist/packages/_es/ShortPassword.js +1 -1
- package/dist/packages/_es/SideNavBar.js +3 -3
- package/dist/packages/_es/SideNavBarItem.js +1 -1
- package/dist/packages/_es/Signature.js +1 -1
- package/dist/packages/_es/Skeleton.js +1 -1
- package/dist/packages/_es/Sku.js +7 -4
- package/dist/packages/_es/Step.js +1 -1
- package/dist/packages/_es/Steps.js +1 -1
- package/dist/packages/_es/Sticky.js +1 -1
- package/dist/packages/_es/SubSideNavBar.js +1 -1
- package/dist/packages/_es/Swipe.js +1 -1
- package/dist/packages/_es/Swiper.js +1 -1
- package/dist/packages/_es/SwiperItem.js +1 -1
- package/dist/packages/_es/Switch.js +1 -1
- package/dist/packages/_es/TabPane.js +1 -1
- package/dist/packages/_es/Tabbar.js +1 -1
- package/dist/packages/_es/TabbarItem.js +1 -1
- package/dist/packages/_es/Table.js +1 -1
- package/dist/packages/_es/Tabs.js +92 -11
- package/dist/packages/_es/Tag.js +1 -2
- package/dist/packages/_es/TextArea.js +1 -1
- package/dist/packages/_es/TimeDetail.js +1 -1
- package/dist/packages/_es/TimePannel.js +1 -1
- package/dist/packages/_es/TimeSelect.js +1 -1
- package/dist/packages/_es/Toast.js +13 -10
- package/dist/packages/_es/TrendArrow.js +131 -0
- package/dist/packages/_es/Uploader.js +23 -8
- package/dist/packages/_es/Video.js +1 -1
- package/dist/packages/_es/WaterMark.js +1 -1
- package/dist/packages/_es/common.js +1 -1
- package/dist/packages/_es/component.js +9 -2
- 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 +18 -12
- 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/address/index.scss +17 -0
- package/dist/packages/barrage/index.scss +27 -18
- package/dist/packages/invoice/index.scss +33 -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/menuitem/index.scss +3 -1
- package/dist/packages/navbar/index.scss +6 -8
- package/dist/packages/picker/index.scss +22 -0
- package/dist/packages/price/index.scss +1 -1
- package/dist/packages/searchbar/index.scss +2 -0
- package/dist/packages/tabbar/index.scss +2 -1
- package/dist/packages/textarea/index.scss +4 -1
- package/dist/packages/toast/index.scss +3 -0
- package/dist/packages/trendarrow/index.scss +17 -0
- package/dist/smartips/attributes.json +106 -22
- package/dist/smartips/tags.json +46 -17
- package/dist/smartips/web-types.json +226 -23
- package/dist/style.css +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 +46 -44
- package/dist/styles/themes/jdb.scss +46 -44
- package/dist/styles/themes/jdt.scss +46 -44
- package/dist/styles/variables-jdb.scss +8 -2
- package/dist/styles/variables-jdt.scss +8 -2
- package/dist/styles/variables.scss +8 -2
- package/dist/types/__VUE/actionsheet/index.vue.d.ts +116 -62
- package/dist/types/__VUE/address/index.vue.d.ts +149 -79
- package/dist/types/__VUE/addresslist/components/GeneralShell.vue.d.ts +6 -5
- package/dist/types/__VUE/addresslist/components/ItemContents.vue.d.ts +10 -7
- package/dist/types/__VUE/addresslist/components/LongPressShell.vue.d.ts +6 -5
- package/dist/types/__VUE/addresslist/components/SwipeShell.vue.d.ts +6 -5
- package/dist/types/__VUE/addresslist/index.vue.d.ts +22 -13
- package/dist/types/__VUE/animate/index.vue.d.ts +14 -9
- package/dist/types/__VUE/audio/index.vue.d.ts +30 -17
- package/dist/types/__VUE/audiooperate/index.vue.d.ts +6 -5
- package/dist/types/__VUE/avatar/index.vue.d.ts +32 -19
- package/dist/types/__VUE/avatargroup/index.vue.d.ts +34 -19
- package/dist/types/__VUE/backtop/index.vue.d.ts +32 -22
- package/dist/types/__VUE/badge/index.vue.d.ts +33 -20
- package/dist/types/__VUE/barrage/index.vue.d.ts +28 -16
- package/dist/types/__VUE/button/index.vue.d.ts +43 -26
- package/dist/types/__VUE/calendar/index.vue.d.ts +62 -35
- package/dist/types/__VUE/calendaritem/index.vue.d.ts +72 -45
- package/dist/types/__VUE/card/index.vue.d.ts +34 -19
- package/dist/types/__VUE/cascader/cascader-item.vue.d.ts +25 -24
- package/dist/types/__VUE/cascader/index.vue.d.ts +108 -63
- package/dist/types/__VUE/category/index.vue.d.ts +10 -7
- package/dist/types/__VUE/categorypane/index.vue.d.ts +14 -9
- package/dist/types/__VUE/cell/index.vue.d.ts +51 -30
- package/dist/types/__VUE/cellgroup/index.vue.d.ts +10 -7
- package/dist/types/__VUE/checkbox/index.vue.d.ts +47 -26
- package/dist/types/__VUE/checkboxgroup/index.vue.d.ts +14 -9
- package/dist/types/__VUE/circleprogress/index.vue.d.ts +30 -17
- package/dist/types/__VUE/col/index.vue.d.ts +10 -7
- package/dist/types/__VUE/collapse/index.vue.d.ts +41 -25
- package/dist/types/__VUE/collapseitem/index.vue.d.ts +29 -21
- package/dist/types/__VUE/comment/components/CmtBottom.vue.d.ts +14 -9
- package/dist/types/__VUE/comment/components/CmtHeader.vue.d.ts +14 -9
- package/dist/types/__VUE/comment/components/CmtImages.vue.d.ts +14 -9
- package/dist/types/__VUE/comment/index.vue.d.ts +38 -21
- package/dist/types/__VUE/configprovider/index.vue.d.ts +10 -7
- package/dist/types/__VUE/countdown/index.vue.d.ts +34 -20
- package/dist/types/__VUE/countdown/util.d.ts +1 -1
- package/dist/types/__VUE/countup/index.vue.d.ts +73 -40
- package/dist/types/__VUE/datepicker/index.vue.d.ts +136 -68
- package/dist/types/__VUE/dialog/index.vue.d.ts +135 -73
- package/dist/types/__VUE/divider/index.vue.d.ts +18 -11
- package/dist/types/__VUE/drag/index.vue.d.ts +19 -9
- package/dist/types/__VUE/ecard/index.vue.d.ts +42 -23
- package/dist/types/__VUE/elevator/index.vue.d.ts +26 -15
- package/dist/types/__VUE/ellipsis/index.vue.d.ts +26 -15
- package/dist/types/__VUE/empty/index.vue.d.ts +14 -9
- package/dist/types/__VUE/fixednav/index.vue.d.ts +38 -20
- package/dist/types/__VUE/form/common.d.ts +4 -0
- package/dist/types/__VUE/form/index.vue.d.ts +16 -6
- package/dist/types/__VUE/formitem/index.vue.d.ts +43 -23
- package/dist/types/__VUE/grid/index.vue.d.ts +40 -24
- package/dist/types/__VUE/griditem/index.vue.d.ts +25 -18
- package/dist/types/__VUE/icon/index.vue.d.ts +26 -15
- package/dist/types/__VUE/image/index.vue.d.ts +37 -25
- package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +42 -29
- package/dist/types/__VUE/imagepreview/index.d.ts +4 -4
- package/dist/types/__VUE/imagepreview/index.vue.d.ts +64 -37
- package/dist/types/__VUE/indicator/index.vue.d.ts +24 -13
- package/dist/types/__VUE/infiniteloading/index.vue.d.ts +46 -25
- package/dist/types/__VUE/input/index.vue.d.ts +132 -70
- package/dist/types/__VUE/inputnumber/index.vue.d.ts +46 -25
- package/dist/types/__VUE/invoice/index.vue.d.ts +53 -0
- package/dist/types/__VUE/layout/index.vue.d.ts +1 -1
- package/dist/types/__VUE/list/index.vue.d.ts +15 -9
- package/dist/types/__VUE/menu/index.vue.d.ts +32 -22
- package/dist/types/__VUE/menuitem/index.vue.d.ts +22 -20
- package/dist/types/__VUE/navbar/index.vue.d.ts +42 -23
- package/dist/types/__VUE/noticebar/index.vue.d.ts +63 -34
- package/dist/types/__VUE/notify/index.d.ts +15 -5
- package/dist/types/__VUE/notify/index.vue.d.ts +42 -30
- package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +64 -35
- package/dist/types/__VUE/oldpicker/Column.vue.d.ts +20 -15
- package/dist/types/__VUE/oldpicker/index.vue.d.ts +123 -70
- package/dist/types/__VUE/overlay/index.vue.d.ts +30 -1547
- package/dist/types/__VUE/pagination/index.vue.d.ts +42 -25
- package/dist/types/__VUE/picker/Column.vue.d.ts +25 -19
- package/dist/types/__VUE/picker/index.vue.d.ts +138 -78
- package/dist/types/__VUE/popover/index.vue.d.ts +104 -56
- package/dist/types/__VUE/popup/index.vue.d.ts +90 -60
- package/dist/types/__VUE/price/index.vue.d.ts +30 -17
- package/dist/types/__VUE/progress/index.vue.d.ts +51 -27
- package/dist/types/__VUE/pullrefresh/index.vue.d.ts +45 -17
- package/dist/types/__VUE/radio/index.vue.d.ts +36 -21
- package/dist/types/__VUE/radiogroup/index.vue.d.ts +14 -9
- package/dist/types/__VUE/range/index.vue.d.ts +46 -34
- package/dist/types/__VUE/rate/index.vue.d.ts +59 -32
- package/dist/types/__VUE/row/index.vue.d.ts +22 -13
- package/dist/types/__VUE/searchbar/index.vue.d.ts +72 -30
- package/dist/types/__VUE/shortpassword/index.vue.d.ts +42 -23
- package/dist/types/__VUE/sidenavbar/index.vue.d.ts +6 -5
- package/dist/types/__VUE/sidenavbaritem/index.vue.d.ts +10 -7
- package/dist/types/__VUE/signature/index.vue.d.ts +22 -13
- package/dist/types/__VUE/skeleton/common.d.ts +1 -1
- package/dist/types/__VUE/skeleton/index.vue.d.ts +43 -24
- package/dist/types/__VUE/sku/components/SkuHeader.vue.d.ts +6 -5
- package/dist/types/__VUE/sku/components/SkuOperate.vue.d.ts +22 -13
- package/dist/types/__VUE/sku/components/SkuSelect.vue.d.ts +6 -5
- package/dist/types/__VUE/sku/components/SkuStepper.vue.d.ts +18 -11
- package/dist/types/__VUE/sku/index.vue.d.ts +124 -66
- package/dist/types/__VUE/step/index.vue.d.ts +23 -14
- package/dist/types/__VUE/steps/index.vue.d.ts +14 -9
- package/dist/types/__VUE/sticky/index.vue.d.ts +21 -14
- package/dist/types/__VUE/subsidenavbar/index.vue.d.ts +14 -9
- package/dist/types/__VUE/swipe/index.vue.d.ts +18 -11
- package/dist/types/__VUE/swiper/index.vue.d.ts +54 -29
- package/dist/types/__VUE/swiperitem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/switch/index.vue.d.ts +50 -27
- package/dist/types/__VUE/tabbar/index.vue.d.ts +31 -18
- package/dist/types/__VUE/tabbaritem/index.vue.d.ts +42 -26
- package/dist/types/__VUE/table/common.d.ts +1 -1
- package/dist/types/__VUE/table/index.vue.d.ts +24 -15
- package/dist/types/__VUE/tabpane/index.vue.d.ts +14 -9
- package/dist/types/__VUE/tabs/common.d.ts +13 -0
- package/dist/types/__VUE/tabs/index.vue.d.ts +70 -26
- package/dist/types/__VUE/tag/index.vue.d.ts +30 -17
- package/dist/types/__VUE/textarea/index.vue.d.ts +43 -24
- package/dist/types/__VUE/timedetail/index.vue.d.ts +10 -7
- package/dist/types/__VUE/timepannel/index.vue.d.ts +10 -7
- package/dist/types/__VUE/timeselect/index.vue.d.ts +31 -18
- package/dist/types/__VUE/toast/index.d.ts +1 -1
- package/dist/types/__VUE/toast/index.vue.d.ts +60 -42
- package/dist/types/__VUE/trendarrow/index.vue.d.ts +138 -0
- package/dist/types/__VUE/uploader/index.vue.d.ts +107 -58
- package/dist/types/__VUE/video/index.vue.d.ts +26 -9
- package/dist/types/__VUE/watermark/index.vue.d.ts +70 -37
- package/dist/types/index.d.ts +1 -1
- package/dist/types/nutui.d.ts +3 -1
- package/package.json +4 -4
- package/dist/types/__VUE/animate/type.d.ts +0 -6
- package/dist/types/__VUE/button/type.d.ts +0 -7
- package/dist/types/__VUE/cascader/types.d.ts +0 -30
- package/dist/types/__VUE/datepicker/type.d.ts +0 -6
- package/dist/types/__VUE/form/types.d.ts +0 -13
- package/dist/types/__VUE/formitem/types.d.ts +0 -10
- package/dist/types/__VUE/image/type.d.ts +0 -6
- package/dist/types/__VUE/imagepreview/types.d.ts +0 -7
- package/dist/types/__VUE/input/type.d.ts +0 -13
- package/dist/types/__VUE/menuitem/type.d.ts +0 -8
- package/dist/types/__VUE/oldpicker/commonProps.d.ts +0 -22
- package/dist/types/__VUE/oldpicker/types.d.ts +0 -24
- package/dist/types/__VUE/picker/types.d.ts +0 -26
- package/dist/types/__VUE/popover/type.d.ts +0 -6
- package/dist/types/__VUE/range/type.d.ts +0 -5
- package/dist/types/__VUE/table/types.d.ts +0 -21
- package/dist/types/__VUE/tag/type.d.ts +0 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.3 Fri Sep 30 2022 10:26:47 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -82,6 +82,10 @@ const _sfc_main = create({
|
|
|
82
82
|
type: Boolean,
|
|
83
83
|
default: true
|
|
84
84
|
},
|
|
85
|
+
swipeDuration: {
|
|
86
|
+
type: [Number, String],
|
|
87
|
+
default: 1e3
|
|
88
|
+
},
|
|
85
89
|
filter: Function
|
|
86
90
|
},
|
|
87
91
|
emits: ["click", "update:visible", "change", "confirm", "update:moduleValue"],
|
|
@@ -332,7 +336,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
332
336
|
title: _ctx.title,
|
|
333
337
|
onConfirm: _ctx.confirm,
|
|
334
338
|
isWrapTeleport: _ctx.isWrapTeleport,
|
|
335
|
-
threeDimensional: _ctx.threeDimensional
|
|
339
|
+
threeDimensional: _ctx.threeDimensional,
|
|
340
|
+
swipeDuration: _ctx.swipeDuration
|
|
336
341
|
}, {
|
|
337
342
|
top: withCtx(() => [
|
|
338
343
|
renderSlot(_ctx.$slots, "top")
|
|
@@ -341,7 +346,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
341
346
|
renderSlot(_ctx.$slots, "default")
|
|
342
347
|
]),
|
|
343
348
|
_: 3
|
|
344
|
-
}, 8, ["modelValue", "visible", "okText", "cancelText", "onClose", "columns", "onChange", "title", "onConfirm", "isWrapTeleport", "threeDimensional"]);
|
|
349
|
+
}, 8, ["modelValue", "visible", "okText", "cancelText", "onClose", "columns", "onChange", "title", "onConfirm", "isWrapTeleport", "threeDimensional", "swipeDuration"]);
|
|
345
350
|
}
|
|
346
351
|
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
347
352
|
export { index as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.3 Fri Sep 30 2022 10:26:47 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { ref, onMounted, watch, computed, resolveComponent, openBlock, createBlock, normalizeStyle, withCtx, createElementVNode, normalizeClass, createElementBlock, renderSlot, Fragment, createTextVNode, toDisplayString, createCommentVNode, resolveDynamicComponent, createVNode, render, h } from "vue";
|
|
7
|
-
import {
|
|
7
|
+
import { i as isPromise, c as createComponent } from "./component.js";
|
|
8
8
|
import Popup, { popupProps } from "./Popup.js";
|
|
9
9
|
import Button from "./Button.js";
|
|
10
10
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
@@ -171,7 +171,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
171
171
|
createElementVNode("view", {
|
|
172
172
|
class: normalizeClass(_ctx.classes)
|
|
173
173
|
}, [
|
|
174
|
-
_ctx.title ? (openBlock(), createElementBlock("view", _hoisted_1, [
|
|
174
|
+
_ctx.$slots.header || _ctx.title ? (openBlock(), createElementBlock("view", _hoisted_1, [
|
|
175
175
|
_ctx.$slots.header ? renderSlot(_ctx.$slots, "header", { key: 0 }) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
176
176
|
createTextVNode(toDisplayString(_ctx.title), 1)
|
|
177
177
|
], 64))
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.3 Fri Sep 30 2022 10:26:47 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -31,7 +31,7 @@ const _sfc_main = create({
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
|
-
setup(props
|
|
34
|
+
setup(props) {
|
|
35
35
|
const myDrag = ref();
|
|
36
36
|
const state = reactive({
|
|
37
37
|
keepAlive: false,
|
|
@@ -176,9 +176,9 @@ const _sfc_main = create({
|
|
|
176
176
|
});
|
|
177
177
|
onDeactivated(() => {
|
|
178
178
|
state.keepAlive = true;
|
|
179
|
-
myDrag.removeEventListener("touchstart", touchStart);
|
|
180
|
-
myDrag.removeEventListener("touchmove", touchMove);
|
|
181
|
-
myDrag.removeEventListener("touchend", touchEnd);
|
|
179
|
+
myDrag.value.removeEventListener("touchstart", touchStart);
|
|
180
|
+
myDrag.value.removeEventListener("touchmove", touchMove);
|
|
181
|
+
myDrag.value.removeEventListener("touchend", touchEnd);
|
|
182
182
|
});
|
|
183
183
|
return {
|
|
184
184
|
classes,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.3 Fri Sep 30 2022 10:26:47 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -7,7 +7,7 @@ import { ref, watch, resolveComponent, openBlock, createElementBlock, createElem
|
|
|
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";
|
|
10
|
-
const {
|
|
10
|
+
const { create, translate } = createComponent("ecard");
|
|
11
11
|
const _sfc_main = create({
|
|
12
12
|
props: {
|
|
13
13
|
chooseText: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.3 Fri Sep 30 2022 10:26:47 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -207,6 +207,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
207
207
|
return openBlock(), createElementBlock("view", {
|
|
208
208
|
class: "nut-elevator__list__item",
|
|
209
209
|
key: item[_ctx.acceptKey],
|
|
210
|
+
ref_for: true,
|
|
210
211
|
ref: _ctx.setListGroup
|
|
211
212
|
}, [
|
|
212
213
|
createElementVNode("view", _hoisted_1, toDisplayString(item[_ctx.acceptKey]), 1),
|
|
@@ -227,7 +228,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
227
228
|
})
|
|
228
229
|
], 10, _hoisted_2);
|
|
229
230
|
}), 128))
|
|
230
|
-
]
|
|
231
|
+
]);
|
|
231
232
|
}), 128)),
|
|
232
233
|
_ctx.isSticky ? withDirectives((openBlock(), createElementBlock("view", {
|
|
233
234
|
key: 0,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.3 Fri Sep 30 2022 10:26:47 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: {},
|
|
@@ -40,7 +44,7 @@ const component = {
|
|
|
40
44
|
var _a, _b, _c, _d;
|
|
41
45
|
let type = vnode.type;
|
|
42
46
|
type = type.name || type;
|
|
43
|
-
if (type == "nut-form-item") {
|
|
47
|
+
if (type == "nut-form-item" || (type == null ? void 0 : type.toString().endsWith("form-item"))) {
|
|
44
48
|
task.push({
|
|
45
49
|
prop: (_a = vnode.props) == null ? void 0 : _a["prop"],
|
|
46
50
|
rules: ((_b = vnode.props) == null ? void 0 : _b["rules"]) || []
|
|
@@ -73,14 +77,17 @@ const component = {
|
|
|
73
77
|
if (!prop) {
|
|
74
78
|
console.warn("[NutUI] <FormItem> \u4F7F\u7528 rules \u6821\u9A8C\u89C4\u5219\u65F6 , \u5FC5\u987B\u8BBE\u7F6E prop \u53C2\u6570");
|
|
75
79
|
}
|
|
76
|
-
|
|
80
|
+
const value = getPropByPath(props.modelValue, prop || "");
|
|
77
81
|
tipMessage({ prop, message: "" });
|
|
78
|
-
|
|
82
|
+
const formRules = props.rules || {};
|
|
83
|
+
const _rules = [...(formRules == null ? void 0 : formRules[prop]) || [], ...rules];
|
|
79
84
|
while (_rules.length) {
|
|
80
|
-
const
|
|
85
|
+
const rule = _rules.shift();
|
|
86
|
+
const { validator, ...ruleWithoutValidator } = rule;
|
|
87
|
+
const { required, regex, message } = ruleWithoutValidator;
|
|
81
88
|
const errorMsg = { prop, message };
|
|
82
89
|
if (required) {
|
|
83
|
-
if (
|
|
90
|
+
if (value === "" || value === void 0 || value === null) {
|
|
84
91
|
return _Promise(errorMsg);
|
|
85
92
|
}
|
|
86
93
|
}
|
|
@@ -88,7 +95,7 @@ const component = {
|
|
|
88
95
|
return _Promise(errorMsg);
|
|
89
96
|
}
|
|
90
97
|
if (validator) {
|
|
91
|
-
const result = validator(value);
|
|
98
|
+
const result = validator(value, ruleWithoutValidator);
|
|
92
99
|
if (isPromise(result)) {
|
|
93
100
|
return new Promise((r, j) => {
|
|
94
101
|
result.then((res) => {
|
|
@@ -111,8 +118,8 @@ const component = {
|
|
|
111
118
|
};
|
|
112
119
|
const validate = (customProp = "") => {
|
|
113
120
|
return new Promise((resolve, reject) => {
|
|
114
|
-
|
|
115
|
-
|
|
121
|
+
const task = findFormItem(slots.default());
|
|
122
|
+
const errors = task.map((item) => {
|
|
116
123
|
if (customProp) {
|
|
117
124
|
if (customProp == item.prop) {
|
|
118
125
|
return checkRule(item);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.3 Fri Sep 30 2022 10:26:47 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -57,7 +57,7 @@ const _sfc_main = create({
|
|
|
57
57
|
},
|
|
58
58
|
components: {},
|
|
59
59
|
emits: [""],
|
|
60
|
-
setup(props, { emit }) {
|
|
60
|
+
setup(props, { emit, slots }) {
|
|
61
61
|
const parent = inject("formErrorTip");
|
|
62
62
|
provide("form", {
|
|
63
63
|
props
|
|
@@ -78,7 +78,8 @@ const _sfc_main = create({
|
|
|
78
78
|
textAlign: props.errorMessageAlign
|
|
79
79
|
};
|
|
80
80
|
});
|
|
81
|
-
|
|
81
|
+
const getSlots = (name) => slots[name];
|
|
82
|
+
return { parent, labelStyle, bodyStyle, errorMessageStyle, getSlots };
|
|
82
83
|
}
|
|
83
84
|
});
|
|
84
85
|
const _hoisted_1 = { class: "nut-cell__value nut-form-item__body" };
|
|
@@ -89,7 +90,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
89
90
|
style: normalizeStyle(_ctx.$attrs.style)
|
|
90
91
|
}, {
|
|
91
92
|
default: withCtx(() => [
|
|
92
|
-
_ctx.label ? (openBlock(), createElementBlock("view", {
|
|
93
|
+
_ctx.label || _ctx.getSlots("label") ? (openBlock(), createElementBlock("view", {
|
|
93
94
|
key: 0,
|
|
94
95
|
class: normalizeClass(["nut-cell__title nut-form-item__label", { required: _ctx.required }]),
|
|
95
96
|
style: normalizeStyle(_ctx.labelStyle)
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.3 Fri Sep 30 2022 10:26:47 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
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";
|
|
7
|
-
import { c as createComponent,
|
|
7
|
+
import { c as createComponent, i as isPromise } from "./component.js";
|
|
8
8
|
import Popup from "./Popup.js";
|
|
9
9
|
import Video from "./Video.js";
|
|
10
10
|
import Swiper from "./Swiper.js";
|
|
@@ -16,7 +16,7 @@ import "../locale/lang";
|
|
|
16
16
|
import "./OverLay.js";
|
|
17
17
|
import "./pxCheck.js";
|
|
18
18
|
import "./index3.js";
|
|
19
|
-
const {
|
|
19
|
+
const { create: create$1 } = createComponent("imagepreviewitem");
|
|
20
20
|
const _sfc_main$1 = create$1({
|
|
21
21
|
props: {
|
|
22
22
|
show: {
|
|
@@ -26,13 +26,11 @@ const _sfc_main$1 = create$1({
|
|
|
26
26
|
initNo: Number,
|
|
27
27
|
image: {
|
|
28
28
|
type: Object,
|
|
29
|
-
default: () => {
|
|
30
|
-
}
|
|
29
|
+
default: () => ({})
|
|
31
30
|
},
|
|
32
31
|
video: {
|
|
33
|
-
type:
|
|
34
|
-
default: () => {
|
|
35
|
-
}
|
|
32
|
+
type: Object,
|
|
33
|
+
default: () => ({})
|
|
36
34
|
},
|
|
37
35
|
showIndex: {
|
|
38
36
|
type: Boolean,
|
|
@@ -280,7 +278,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
280
278
|
onLoad: _cache[0] || (_cache[0] = (...args) => _ctx.imageLoad && _ctx.imageLoad(...args))
|
|
281
279
|
}, null, 40, _hoisted_1$1)
|
|
282
280
|
], 4)) : createCommentVNode("", true),
|
|
283
|
-
_ctx.video ? (openBlock(), createElementBlock("view", _hoisted_2$1, [
|
|
281
|
+
_ctx.video && _ctx.video.source ? (openBlock(), createElementBlock("view", _hoisted_2$1, [
|
|
284
282
|
createVNode(_component_nut_video, {
|
|
285
283
|
source: _ctx.video.source,
|
|
286
284
|
options: _ctx.video.options
|
|
@@ -291,7 +289,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
291
289
|
}, 8, ["onTouchstart", "onTouchmove", "onTouchend", "onTouchcancel"]);
|
|
292
290
|
}
|
|
293
291
|
var ImagePreviewItem = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
|
|
294
|
-
const {
|
|
292
|
+
const { create } = createComponent("imagepreview");
|
|
295
293
|
const _sfc_main = create({
|
|
296
294
|
props: {
|
|
297
295
|
show: {
|
|
@@ -366,7 +364,6 @@ const _sfc_main = create({
|
|
|
366
364
|
ImagePreviewItem
|
|
367
365
|
},
|
|
368
366
|
setup(props, { emit }) {
|
|
369
|
-
toRefs(props);
|
|
370
367
|
const swipeRef = ref();
|
|
371
368
|
const state = reactive({
|
|
372
369
|
showPop: false,
|
|
@@ -459,7 +456,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
459
456
|
"onUpdate:visible": _cache[1] || (_cache[1] = ($event) => _ctx.showPop = $event),
|
|
460
457
|
isWrapTeleport: _ctx.isWrapTeleport,
|
|
461
458
|
onClick: _ctx.onClose,
|
|
462
|
-
style: { "width": "100%" }
|
|
459
|
+
style: { "width": "100%" },
|
|
460
|
+
"lock-scroll": ""
|
|
463
461
|
}, {
|
|
464
462
|
default: withCtx(() => [
|
|
465
463
|
createElementVNode("view", _hoisted_1, [
|
|
@@ -533,9 +531,9 @@ class ImagePreviewOptions {
|
|
|
533
531
|
class ImagePreviewFunction {
|
|
534
532
|
constructor(_options) {
|
|
535
533
|
this.options = new ImagePreviewOptions();
|
|
536
|
-
|
|
534
|
+
const options = Object.assign(this.options, _options);
|
|
537
535
|
let elWarp = document.body;
|
|
538
|
-
|
|
536
|
+
const teleport = options.teleport;
|
|
539
537
|
if (teleport != "body") {
|
|
540
538
|
if (typeof teleport == "string") {
|
|
541
539
|
elWarp = document.querySelector(teleport);
|
|
@@ -558,7 +556,7 @@ class ImagePreviewFunction {
|
|
|
558
556
|
render(instance, root);
|
|
559
557
|
}
|
|
560
558
|
}
|
|
561
|
-
const _ImagePreview =
|
|
559
|
+
const _ImagePreview = (options) => {
|
|
562
560
|
return new ImagePreviewFunction(options);
|
|
563
561
|
};
|
|
564
562
|
_ImagePreview.install = (app) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.3 Fri Sep 30 2022 10:26:47 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -31,7 +31,7 @@ function formatNumber(value, allowDot = true, allowMinus = true) {
|
|
|
31
31
|
const regExp = allowDot ? /[^-0-9.]/g : /[^-0-9]/g;
|
|
32
32
|
return value.replace(regExp, "");
|
|
33
33
|
}
|
|
34
|
-
const { componentName, create
|
|
34
|
+
const { componentName, create } = createComponent("input");
|
|
35
35
|
const _sfc_main = create({
|
|
36
36
|
props: {
|
|
37
37
|
ref: {
|
|
@@ -330,8 +330,7 @@ const _sfc_main = create({
|
|
|
330
330
|
onClickInput,
|
|
331
331
|
onClickLeftIcon,
|
|
332
332
|
onClickRightIcon,
|
|
333
|
-
onClick
|
|
334
|
-
translate
|
|
333
|
+
onClick
|
|
335
334
|
};
|
|
336
335
|
}
|
|
337
336
|
});
|
|
@@ -401,7 +400,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
401
400
|
ref: "inputRef",
|
|
402
401
|
style: normalizeStyle(_ctx.stylesTextarea),
|
|
403
402
|
maxlength: _ctx.maxLength,
|
|
404
|
-
placeholder: _ctx.placeholder
|
|
403
|
+
placeholder: _ctx.placeholder,
|
|
405
404
|
disabled: _ctx.disabled,
|
|
406
405
|
readonly: _ctx.readonly,
|
|
407
406
|
value: _ctx.modelValue,
|
|
@@ -418,7 +417,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
418
417
|
style: normalizeStyle(_ctx.styles),
|
|
419
418
|
type: _ctx.inputType(_ctx.type),
|
|
420
419
|
maxlength: _ctx.maxLength,
|
|
421
|
-
placeholder: _ctx.placeholder
|
|
420
|
+
placeholder: _ctx.placeholder,
|
|
422
421
|
disabled: _ctx.disabled,
|
|
423
422
|
readonly: _ctx.readonly,
|
|
424
423
|
value: _ctx.modelValue,
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @nutui/nutui v3.2.3 Fri Sep 30 2022 10:26:47 GMT+0800 (中国标准时间)
|
|
3
|
+
* (c) 2022 @jdf2e.
|
|
4
|
+
* Released under the MIT License.
|
|
5
|
+
*/
|
|
6
|
+
import { ref, reactive, computed, onMounted, watch, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createVNode, withCtx, Fragment, renderList, createBlock, createTextVNode, toDisplayString, withDirectives, vModelText, createCommentVNode } from "vue";
|
|
7
|
+
import { c as createComponent } from "./component.js";
|
|
8
|
+
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
9
|
+
import "../locale/lang";
|
|
10
|
+
const { componentName, create } = createComponent("invoice");
|
|
11
|
+
const _sfc_main = create({
|
|
12
|
+
props: {
|
|
13
|
+
data: {
|
|
14
|
+
type: Array,
|
|
15
|
+
default: () => []
|
|
16
|
+
},
|
|
17
|
+
formValue: {
|
|
18
|
+
type: Object,
|
|
19
|
+
default: {}
|
|
20
|
+
},
|
|
21
|
+
submit: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
default: true
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
emits: ["onSubmit", "scroll-bottom"],
|
|
27
|
+
setup(props, { emit }) {
|
|
28
|
+
const formRef = ref();
|
|
29
|
+
const list = ref([]);
|
|
30
|
+
const state = reactive({});
|
|
31
|
+
const classes = computed(() => {
|
|
32
|
+
const prefixCls = componentName;
|
|
33
|
+
return {
|
|
34
|
+
[prefixCls]: true
|
|
35
|
+
};
|
|
36
|
+
});
|
|
37
|
+
onMounted(() => {
|
|
38
|
+
init();
|
|
39
|
+
});
|
|
40
|
+
const init = () => {
|
|
41
|
+
list.value = props.data;
|
|
42
|
+
};
|
|
43
|
+
const submit = () => {
|
|
44
|
+
formRef.value.validate().then(({ valid, errors }) => {
|
|
45
|
+
emit("onSubmit", valid, errors);
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
watch(
|
|
49
|
+
() => props.data,
|
|
50
|
+
() => init(),
|
|
51
|
+
{ deep: true }
|
|
52
|
+
);
|
|
53
|
+
return {
|
|
54
|
+
...toRefs(state),
|
|
55
|
+
classes,
|
|
56
|
+
formRef,
|
|
57
|
+
list,
|
|
58
|
+
submit
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
const _hoisted_1 = ["placeholder", "onUpdate:modelValue"];
|
|
63
|
+
const _hoisted_2 = {
|
|
64
|
+
key: 0,
|
|
65
|
+
class: "nut-invoice__submit"
|
|
66
|
+
};
|
|
67
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
68
|
+
const _component_nut_radio = resolveComponent("nut-radio");
|
|
69
|
+
const _component_nut_radiogroup = resolveComponent("nut-radiogroup");
|
|
70
|
+
const _component_nut_form_item = resolveComponent("nut-form-item");
|
|
71
|
+
const _component_nut_form = resolveComponent("nut-form");
|
|
72
|
+
const _component_nut_button = resolveComponent("nut-button");
|
|
73
|
+
return openBlock(), createElementBlock("view", {
|
|
74
|
+
class: normalizeClass(_ctx.classes)
|
|
75
|
+
}, [
|
|
76
|
+
createVNode(_component_nut_form, {
|
|
77
|
+
"model-value": _ctx.formValue,
|
|
78
|
+
ref: "formRef"
|
|
79
|
+
}, {
|
|
80
|
+
default: withCtx(() => [
|
|
81
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.list, (item, index2) => {
|
|
82
|
+
return openBlock(), createBlock(_component_nut_form_item, {
|
|
83
|
+
key: index2,
|
|
84
|
+
label: item.label,
|
|
85
|
+
required: item.required,
|
|
86
|
+
rules: item.rules,
|
|
87
|
+
prop: item.formItemProp
|
|
88
|
+
}, {
|
|
89
|
+
default: withCtx(() => [
|
|
90
|
+
item.type === "radio" ? (openBlock(), createBlock(_component_nut_radiogroup, {
|
|
91
|
+
key: 0,
|
|
92
|
+
modelValue: _ctx.formValue[item.formItemProp],
|
|
93
|
+
"onUpdate:modelValue": ($event) => _ctx.formValue[item.formItemProp] = $event
|
|
94
|
+
}, {
|
|
95
|
+
default: withCtx(() => [
|
|
96
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(item.radioLabel, (radioItem, radioIndex) => {
|
|
97
|
+
return openBlock(), createBlock(_component_nut_radio, {
|
|
98
|
+
key: radioIndex,
|
|
99
|
+
shape: "button",
|
|
100
|
+
label: radioItem.label
|
|
101
|
+
}, {
|
|
102
|
+
default: withCtx(() => [
|
|
103
|
+
createTextVNode(toDisplayString(radioItem.label), 1)
|
|
104
|
+
]),
|
|
105
|
+
_: 2
|
|
106
|
+
}, 1032, ["label"]);
|
|
107
|
+
}), 128))
|
|
108
|
+
]),
|
|
109
|
+
_: 2
|
|
110
|
+
}, 1032, ["modelValue", "onUpdate:modelValue"])) : withDirectives((openBlock(), createElementBlock("input", {
|
|
111
|
+
key: 1,
|
|
112
|
+
class: "nut-input-text",
|
|
113
|
+
placeholder: item.placeholder,
|
|
114
|
+
"onUpdate:modelValue": ($event) => _ctx.formValue[item.formItemProp] = $event,
|
|
115
|
+
type: "text"
|
|
116
|
+
}, null, 8, _hoisted_1)), [
|
|
117
|
+
[vModelText, _ctx.formValue[item.formItemProp]]
|
|
118
|
+
])
|
|
119
|
+
]),
|
|
120
|
+
_: 2
|
|
121
|
+
}, 1032, ["label", "required", "rules", "prop"]);
|
|
122
|
+
}), 128))
|
|
123
|
+
]),
|
|
124
|
+
_: 1
|
|
125
|
+
}, 8, ["model-value"]),
|
|
126
|
+
_ctx.submit ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
127
|
+
createVNode(_component_nut_button, {
|
|
128
|
+
type: "primary",
|
|
129
|
+
block: "",
|
|
130
|
+
onClick: _ctx.submit
|
|
131
|
+
}, {
|
|
132
|
+
default: withCtx(() => [
|
|
133
|
+
createTextVNode("\u63D0\u4EA4\u5BA1\u6279")
|
|
134
|
+
]),
|
|
135
|
+
_: 1
|
|
136
|
+
}, 8, ["onClick"])
|
|
137
|
+
])) : createCommentVNode("", true)
|
|
138
|
+
], 2);
|
|
139
|
+
}
|
|
140
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
141
|
+
export { index as default };
|