@nutui/nutui 4.2.0 → 4.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 +26 -0
- package/dist/nutui.es.js +1 -1
- package/dist/nutui.js +6839 -6866
- package/dist/nutui.umd.js +1 -1
- package/dist/packages/{_es/Interceptor-006f85b3.js → Interceptor-a7d38af1.js} +1 -1
- package/dist/packages/{_es → actionsheet}/ActionSheet.js +27 -37
- package/dist/packages/actionsheet/index.mjs +2 -4
- package/dist/packages/{_es → address}/Address.js +15 -10
- package/dist/packages/address/index.css +1 -1
- package/dist/packages/address/index.mjs +2 -4
- package/dist/packages/{_es → addresslist}/AddressList.js +23 -27
- package/dist/packages/addresslist/index.mjs +2 -4
- package/dist/packages/{_es → animate}/Animate.js +2 -2
- package/dist/packages/animate/index.mjs +2 -4
- package/dist/packages/{_es → audio}/Audio.js +6 -6
- package/dist/packages/audio/index.mjs +2 -4
- package/dist/packages/{_es → audiooperate}/AudioOperate.js +8 -5
- package/dist/packages/audiooperate/index.mjs +2 -4
- package/dist/packages/{_es → avatar}/Avatar.js +4 -4
- package/dist/packages/avatar/index.mjs +2 -4
- package/dist/packages/{_es → avatarcropper}/AvatarCropper.js +6 -6
- package/dist/packages/avatarcropper/index.mjs +2 -4
- package/dist/packages/{_es → avatargroup}/AvatarGroup.js +4 -4
- package/dist/packages/avatargroup/index.mjs +2 -4
- package/dist/packages/{_es → backtop}/Backtop.js +3 -3
- package/dist/packages/backtop/index.mjs +2 -4
- package/dist/packages/{_es → badge}/Badge.js +4 -4
- package/dist/packages/badge/index.mjs +2 -4
- package/dist/packages/{_es → barrage}/Barrage.js +11 -16
- package/dist/packages/barrage/index.mjs +2 -4
- package/dist/packages/{_es → button}/Button.js +4 -4
- package/dist/packages/button/index.mjs +2 -4
- package/dist/packages/{_es → calendar}/Calendar.js +16 -12
- package/dist/packages/calendar/index.mjs +2 -4
- package/dist/packages/calendaritem/CalendarItem.js +11 -0
- package/dist/packages/calendaritem/index.mjs +2 -4
- package/dist/packages/{_es → card}/Card.js +6 -6
- package/dist/packages/card/index.mjs +2 -4
- package/dist/packages/{_es → cascader}/Cascader.js +23 -20
- package/dist/packages/cascader/index.mjs +2 -4
- package/dist/packages/{_es → category}/Category.js +2 -2
- package/dist/packages/category/index.mjs +2 -4
- package/dist/packages/{_es → categorypane}/CategoryPane.js +2 -2
- package/dist/packages/categorypane/index.mjs +2 -4
- package/dist/packages/{_es → cell}/Cell.js +15 -9
- package/dist/packages/cell/index.mjs +2 -4
- package/dist/packages/{_es → cellgroup}/CellGroup.js +4 -4
- package/dist/packages/cellgroup/index.mjs +2 -4
- package/dist/packages/{_es → checkbox}/Checkbox.js +2 -2
- package/dist/packages/checkbox/index.css +1 -1
- package/dist/packages/checkbox/index.mjs +2 -4
- package/dist/packages/checkbox/index.scss +1 -0
- package/dist/packages/{_es → checkboxgroup}/CheckboxGroup.js +2 -2
- package/dist/packages/checkboxgroup/index.mjs +2 -4
- package/dist/packages/{_es → circleprogress}/CircleProgress.js +2 -2
- package/dist/packages/circleprogress/index.mjs +2 -4
- package/dist/packages/{_es → col}/Col.js +2 -2
- package/dist/packages/col/index.mjs +2 -4
- package/dist/packages/{_es → collapse}/Collapse.js +11 -16
- package/dist/packages/collapse/index.mjs +2 -4
- package/dist/packages/{_es → collapseitem}/CollapseItem.js +3 -3
- package/dist/packages/collapseitem/index.mjs +2 -4
- package/dist/packages/{_es → comment}/Comment.js +34 -34
- package/dist/packages/comment/index.mjs +2 -4
- package/dist/packages/{_es/common-728db750.js → common-3db007cd.js} +2 -2
- package/dist/packages/{_es/component-f86a70df.js → component-a8dfbf81.js} +7 -7
- package/dist/packages/{_es → configprovider}/ConfigProvider.js +1 -1
- package/dist/packages/configprovider/index.mjs +2 -4
- package/dist/packages/{_es → countdown}/Countdown.js +12 -17
- package/dist/packages/countdown/index.mjs +2 -4
- package/dist/packages/{_es → countup}/Countup.js +2 -2
- package/dist/packages/countup/index.mjs +2 -4
- package/dist/packages/{_es → datepicker}/DatePicker.js +14 -13
- package/dist/packages/datepicker/index.mjs +2 -4
- package/dist/packages/{_es → dialog}/Dialog.js +26 -21
- package/dist/packages/dialog/index.mjs +3 -5
- package/dist/packages/{_es → divider}/Divider.js +2 -2
- package/dist/packages/divider/index.mjs +2 -4
- package/dist/packages/{_es → drag}/Drag.js +7 -14
- package/dist/packages/drag/index.mjs +2 -4
- package/dist/packages/{_es → ecard}/Ecard.js +9 -6
- package/dist/packages/ecard/index.mjs +2 -4
- package/dist/packages/{_es → elevator}/Elevator.js +34 -51
- package/dist/packages/elevator/index.css +1 -1
- package/dist/packages/elevator/index.mjs +2 -4
- package/dist/packages/elevator/index.scss +0 -13
- package/dist/packages/{_es → ellipsis}/Ellipsis.js +7 -13
- package/dist/packages/ellipsis/index.mjs +2 -4
- package/dist/packages/{_es → empty}/Empty.js +7 -4
- package/dist/packages/empty/index.mjs +2 -4
- package/dist/packages/{_es → fixednav}/FixedNav.js +13 -10
- package/dist/packages/fixednav/index.mjs +2 -4
- package/dist/packages/{_es → form}/Form.js +7 -7
- package/dist/packages/form/index.mjs +2 -4
- package/dist/packages/{_es → formitem}/FormItem.js +23 -12
- package/dist/packages/formitem/index.mjs +2 -4
- package/dist/packages/{_es → grid}/Grid.js +3 -3
- package/dist/packages/grid/index.mjs +2 -4
- package/dist/packages/{_es → griditem}/GridItem.js +5 -5
- package/dist/packages/griditem/index.mjs +2 -4
- package/dist/packages/{_es → image}/Image.js +3 -3
- package/dist/packages/image/index.mjs +2 -4
- package/dist/packages/{_es → imagepreview}/ImagePreview.js +19 -18
- package/dist/packages/imagepreview/index.css +1 -1
- package/dist/packages/imagepreview/index.mjs +3 -5
- package/dist/packages/{_es/index-b53aec83.js → index-47708e50.js} +10 -6
- package/dist/packages/index-99fdd331.js +17 -0
- package/dist/packages/{_es/index-5a1e6d22.js → index-ae743c4f.js} +5 -5
- package/dist/packages/{_es/index.vue_vue_type_script_lang-0ccf787e.js → index.vue_vue_type_script_lang-336a1e7d.js} +2 -2
- package/dist/packages/{_es/index.vue_vue_type_script_lang-1e118ab6.js → index.vue_vue_type_script_lang-e1fb856d.js} +1 -1
- package/dist/packages/{_es → indicator}/Indicator.js +2 -2
- package/dist/packages/indicator/index.mjs +2 -4
- package/dist/packages/{_es → infiniteloading}/InfiniteLoading.js +25 -28
- package/dist/packages/infiniteloading/index.mjs +2 -4
- package/dist/packages/{_es → input}/Input.js +17 -9
- package/dist/packages/input/index.mjs +2 -4
- package/dist/packages/{_es → inputnumber}/InputNumber.js +5 -5
- package/dist/packages/inputnumber/index.mjs +2 -4
- package/dist/packages/{_es → invoice}/Invoice.js +16 -16
- package/dist/packages/invoice/index.mjs +2 -4
- package/dist/packages/{_es → layout}/Layout.js +1 -1
- package/dist/packages/layout/index.mjs +2 -4
- package/dist/packages/{_es → list}/List.js +7 -14
- package/dist/packages/list/index.mjs +2 -4
- package/dist/packages/locale/lang/baseLang.d.ts +1 -0
- package/dist/packages/locale/lang/en-US.d.ts +1 -0
- package/dist/packages/locale/lang/en-US.js +2 -1
- package/dist/packages/locale/lang/id-ID.d.ts +1 -0
- package/dist/packages/locale/lang/id-ID.js +2 -1
- package/dist/packages/locale/lang/zh-CN.d.ts +1 -0
- package/dist/packages/locale/lang/zh-CN.js +2 -1
- package/dist/packages/locale/lang/zh-TW.d.ts +1 -0
- package/dist/packages/locale/lang/zh-TW.js +2 -1
- package/dist/packages/{_es → menu}/Menu.js +3 -3
- package/dist/packages/menu/index.mjs +2 -4
- package/dist/packages/{_es → menuitem}/MenuItem.js +5 -5
- package/dist/packages/menuitem/index.mjs +2 -4
- package/dist/packages/{_es/mountComponent-053caf41.js → mountComponent-614f1309.js} +1 -1
- package/dist/packages/{_es → navbar}/Navbar.js +2 -2
- package/dist/packages/navbar/index.mjs +2 -4
- package/dist/packages/{_es → noticebar}/Noticebar.js +20 -30
- package/dist/packages/noticebar/index.mjs +2 -4
- package/dist/packages/{_es → notify}/Notify.js +5 -5
- package/dist/packages/notify/index.mjs +3 -5
- package/dist/packages/{_es → numberkeyboard}/NumberKeyboard.js +9 -6
- package/dist/packages/numberkeyboard/index.mjs +2 -4
- package/dist/packages/{_es → overlay}/Overlay.js +4 -4
- package/dist/packages/overlay/index.mjs +2 -4
- package/dist/packages/{_es → pagination}/Pagination.js +6 -3
- package/dist/packages/pagination/index.mjs +2 -4
- package/dist/packages/{_es → picker}/Picker.js +22 -20
- package/dist/packages/picker/index.mjs +2 -4
- package/dist/packages/{_es → popover}/Popover.js +9 -9
- package/dist/packages/popover/index.mjs +2 -4
- package/dist/packages/popup/Popup.js +10 -0
- package/dist/packages/popup/index.mjs +2 -4
- package/dist/packages/{_es → price}/Price.js +4 -4
- package/dist/packages/price/index.mjs +2 -4
- package/dist/packages/{_es → progress}/Progress.js +4 -4
- package/dist/packages/progress/index.mjs +2 -4
- package/dist/packages/{_es → pullrefresh}/PullRefresh.js +39 -29
- package/dist/packages/pullrefresh/index.mjs +2 -4
- package/dist/packages/pxCheck-a27490eb.js +8 -0
- package/dist/packages/radio/Radio.js +9 -0
- package/dist/packages/radio/index.mjs +2 -4
- package/dist/packages/radiogroup/RadioGroup.js +7 -0
- package/dist/packages/radiogroup/index.mjs +2 -4
- package/dist/packages/{_es → range}/Range.js +6 -6
- package/dist/packages/range/index.mjs +2 -4
- package/dist/packages/{_es → rate}/Rate.js +32 -26
- package/dist/packages/rate/index.mjs +2 -4
- package/dist/packages/{_es → row}/Row.js +2 -2
- package/dist/packages/row/index.mjs +2 -4
- package/dist/packages/{_es → searchbar}/Searchbar.js +7 -4
- package/dist/packages/searchbar/index.mjs +2 -4
- package/dist/packages/{_es → shortpassword}/ShortPassword.js +9 -6
- package/dist/packages/shortpassword/index.mjs +2 -4
- package/dist/packages/{_es → sidenavbar}/SideNavbar.js +12 -20
- package/dist/packages/sidenavbar/index.mjs +2 -4
- package/dist/packages/{_es → sidenavbaritem}/SideNavbarItem.js +8 -15
- package/dist/packages/sidenavbaritem/index.mjs +2 -4
- package/dist/packages/{_es → signature}/Signature.js +9 -6
- package/dist/packages/signature/index.mjs +2 -4
- package/dist/packages/{_es → skeleton}/Skeleton.js +4 -4
- package/dist/packages/skeleton/index.mjs +2 -4
- package/dist/packages/{_es → sku}/Sku.js +32 -42
- package/dist/packages/sku/index.mjs +2 -4
- package/dist/packages/{_es → space}/Space.js +1 -1
- package/dist/packages/space/index.mjs +2 -4
- package/dist/packages/{_es → step}/Step.js +2 -2
- package/dist/packages/step/index.mjs +2 -4
- package/dist/packages/{_es → steps}/Steps.js +1 -1
- package/dist/packages/steps/index.mjs +2 -4
- package/dist/packages/{_es → sticky}/Sticky.js +8 -7
- package/dist/packages/sticky/index.mjs +2 -4
- package/dist/packages/{_es → subsidenavbar}/SubSideNavbar.js +8 -15
- package/dist/packages/subsidenavbar/index.mjs +2 -4
- package/dist/packages/{_es → swipe}/Swipe.js +5 -5
- package/dist/packages/swipe/index.mjs +2 -4
- package/dist/packages/{_es → swipegroup}/SwipeGroup.js +2 -2
- package/dist/packages/swipegroup/index.mjs +2 -4
- package/dist/packages/{_es → swiper}/Swiper.js +18 -17
- package/dist/packages/swiper/index.css +1 -1
- package/dist/packages/swiper/index.mjs +2 -4
- package/dist/packages/swiper/index.scss +0 -1
- package/dist/packages/{_es → swiperitem}/SwiperItem.js +10 -17
- package/dist/packages/swiperitem/index.mjs +2 -4
- package/dist/packages/{_es → switch}/Switch.js +2 -2
- package/dist/packages/switch/index.mjs +2 -4
- package/dist/packages/{_es → tabbar}/Tabbar.js +2 -2
- package/dist/packages/tabbar/index.mjs +2 -4
- package/dist/packages/{_es → tabbaritem}/TabbarItem.js +6 -6
- package/dist/packages/tabbaritem/index.mjs +2 -4
- package/dist/packages/{_es → table}/Table.js +30 -39
- package/dist/packages/table/index.mjs +2 -4
- package/dist/packages/{_es → tabpane}/TabPane.js +4 -4
- package/dist/packages/tabpane/index.mjs +2 -4
- package/dist/packages/{_es → tabs}/Tabs.js +11 -11
- package/dist/packages/tabs/index.mjs +2 -4
- package/dist/packages/{_es → tag}/Tag.js +4 -4
- package/dist/packages/tag/index.mjs +2 -4
- package/dist/packages/{_es → textarea}/Textarea.js +7 -4
- package/dist/packages/textarea/index.mjs +2 -4
- package/dist/packages/{_es → timedetail}/TimeDetail.js +17 -28
- package/dist/packages/timedetail/index.mjs +2 -4
- package/dist/packages/{_es → timepannel}/TimePannel.js +2 -2
- package/dist/packages/timepannel/index.mjs +2 -4
- package/dist/packages/{_es → timeselect}/TimeSelect.js +28 -34
- package/dist/packages/timeselect/index.mjs +2 -4
- package/dist/packages/{_es → toast}/Toast.js +4 -4
- package/dist/packages/toast/index.mjs +3 -5
- package/dist/packages/{_es → tour}/Tour.js +8 -9
- package/dist/packages/tour/index.mjs +2 -4
- package/dist/packages/{_es → trendarrow}/TrendArrow.js +8 -15
- package/dist/packages/trendarrow/index.mjs +2 -4
- package/dist/packages/{_es → uploader}/Uploader.js +10 -8
- package/dist/packages/uploader/index.mjs +2 -4
- package/dist/packages/{_es → video}/Video.js +8 -5
- package/dist/packages/video/index.mjs +2 -4
- package/dist/packages/{_es → watermark}/Watermark.js +2 -2
- package/dist/packages/watermark/index.mjs +2 -4
- package/dist/smartips/web-types.json +38 -2
- package/dist/style.css +1 -1
- package/dist/types/__VUE/actionsheet/index.vue.d.ts +12 -20
- package/dist/types/__VUE/address/index.vue.d.ts +20 -19
- package/dist/types/__VUE/address/type.d.ts +3 -2
- package/dist/types/__VUE/addresslist/components/ItemContents.vue.d.ts +1 -1
- package/dist/types/__VUE/addresslist/index.vue.d.ts +1 -4
- package/dist/types/__VUE/audiooperate/index.vue.d.ts +1 -1
- package/dist/types/__VUE/barrage/index.vue.d.ts +0 -3
- package/dist/types/__VUE/calendar/index.vue.d.ts +4 -2
- package/dist/types/__VUE/calendaritem/index.vue.d.ts +4 -1
- package/dist/types/__VUE/cascader/cascader-item.vue.d.ts +1 -1
- package/dist/types/__VUE/cell/index.vue.d.ts +3 -1
- package/dist/types/__VUE/collapse/index.vue.d.ts +0 -3
- package/dist/types/__VUE/comment/components/CmtBottom.vue.d.ts +1 -1
- package/dist/types/__VUE/comment/components/CmtImages.vue.d.ts +2 -2
- package/dist/types/__VUE/comment/index.vue.d.ts +2 -5
- package/dist/types/__VUE/countdown/index.vue.d.ts +1 -4
- package/dist/types/__VUE/dialog/index.d.ts +10 -8
- package/dist/types/__VUE/dialog/index.vue.d.ts +10 -4
- package/dist/types/__VUE/drag/index.vue.d.ts +0 -3
- package/dist/types/__VUE/ecard/index.vue.d.ts +1 -1
- package/dist/types/__VUE/elevator/index.vue.d.ts +0 -6
- package/dist/types/__VUE/ellipsis/index.vue.d.ts +0 -3
- package/dist/types/__VUE/empty/index.vue.d.ts +3 -3
- package/dist/types/__VUE/fixednav/index.vue.d.ts +2 -2
- package/dist/types/__VUE/formitem/index.vue.d.ts +1 -0
- package/dist/types/__VUE/formitem/types.d.ts +3 -3
- package/dist/types/__VUE/imagepreview/index.d.ts +1 -0
- package/dist/types/__VUE/infiniteloading/index.vue.d.ts +1 -4
- package/dist/types/__VUE/input/index.vue.d.ts +7 -4
- package/dist/types/__VUE/input/type.d.ts +5 -0
- package/dist/types/__VUE/inputnumber/index.vue.d.ts +1 -1
- package/dist/types/__VUE/list/index.vue.d.ts +0 -3
- package/dist/types/__VUE/noticebar/index.vue.d.ts +5 -24
- package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +1 -1
- package/dist/types/__VUE/pagination/index.vue.d.ts +1 -1
- package/dist/types/__VUE/picker/Column.vue.d.ts +1 -1
- package/dist/types/__VUE/picker/common.d.ts +7 -249
- package/dist/types/__VUE/picker/index.vue.d.ts +1 -122
- package/dist/types/__VUE/picker/types.d.ts +2 -9
- package/dist/types/__VUE/pullrefresh/index.vue.d.ts +20 -5
- package/dist/types/__VUE/rate/index.vue.d.ts +4 -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 +0 -3
- package/dist/types/__VUE/sidenavbaritem/index.vue.d.ts +0 -3
- package/dist/types/__VUE/signature/index.vue.d.ts +2 -1
- package/dist/types/__VUE/sku/components/SkuHeader.vue.d.ts +3 -3
- package/dist/types/__VUE/sku/index.vue.d.ts +9 -177
- package/dist/types/__VUE/sticky/index.vue.d.ts +3 -0
- package/dist/types/__VUE/subsidenavbar/index.vue.d.ts +0 -3
- package/dist/types/__VUE/swiper/index.vue.d.ts +0 -3
- package/dist/types/__VUE/swiperitem/index.vue.d.ts +0 -3
- package/dist/types/__VUE/table/common.d.ts +7 -7
- package/dist/types/__VUE/table/index.vue.d.ts +13 -16
- package/dist/types/__VUE/table/types.d.ts +2 -2
- package/dist/types/__VUE/tabs/index.vue.d.ts +5 -5
- package/dist/types/__VUE/textarea/index.vue.d.ts +3 -2
- package/dist/types/__VUE/timedetail/index.vue.d.ts +4 -6
- package/dist/types/__VUE/timeselect/index.vue.d.ts +2 -6
- package/dist/types/__VUE/tour/index.vue.d.ts +12 -11
- package/dist/types/__VUE/trendarrow/index.vue.d.ts +0 -3
- package/dist/types/__VUE/video/index.vue.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/locale/lang/baseLang.d.ts +1 -0
- package/dist/types/locale/lang/en-US.d.ts +1 -0
- package/dist/types/locale/lang/id-ID.d.ts +1 -0
- package/dist/types/locale/lang/zh-CN.d.ts +1 -0
- package/dist/types/locale/lang/zh-TW.d.ts +1 -0
- package/dist/types/utils/pxCheck.d.ts +1 -1
- package/dist/types/utils/useLocale/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/packages/_es/CalendarItem.js +0 -10
- package/dist/packages/_es/Popup.js +0 -10
- package/dist/packages/_es/Radio.js +0 -9
- package/dist/packages/_es/RadioGroup.js +0 -7
- package/dist/packages/_es/pxCheck-c6b9f6b7.js +0 -6
- /package/dist/packages/{_es/_plugin-vue_export-helper-cc2b3d55.js → _plugin-vue_export-helper-cc2b3d55.js} +0 -0
- /package/dist/packages/{_es/index-29892cda.js → index-29892cda.js} +0 -0
- /package/dist/packages/{_es/index-54d03fc1.js → index-54d03fc1.js} +0 -0
- /package/dist/packages/{_es/index-79c5dc33.js → index-79c5dc33.js} +0 -0
- /package/dist/packages/{_es/index-7a7385e4.js → index-7a7385e4.js} +0 -0
- /package/dist/packages/{_es/index-97b44e6c.js → index-97b44e6c.js} +0 -0
- /package/dist/packages/{_es/raf-729dad54.js → raf-729dad54.js} +0 -0
- /package/dist/packages/{_es/renderIcon-3d0fd47c.js → renderIcon-3d0fd47c.js} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ref,
|
|
2
|
-
import { c as createComponent } from "
|
|
3
|
-
import { _ as _export_sfc } from "
|
|
1
|
+
import { ref, watch, provide, openBlock, createElementBlock, renderSlot } from "vue";
|
|
2
|
+
import { c as createComponent } from "../component-a8dfbf81.js";
|
|
3
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
|
|
4
4
|
import "../locale/lang";
|
|
5
|
-
const { create
|
|
5
|
+
const { create } = createComponent("collapse");
|
|
6
6
|
const _sfc_main = create({
|
|
7
7
|
props: {
|
|
8
8
|
modelValue: {
|
|
@@ -18,12 +18,6 @@ const _sfc_main = create({
|
|
|
18
18
|
setup(props, { emit }) {
|
|
19
19
|
const collapseDom = ref(null);
|
|
20
20
|
const innerValue = ref(props.modelValue || (props.accordion ? "" : []));
|
|
21
|
-
const classes = computed(() => {
|
|
22
|
-
const prefixCls = componentName;
|
|
23
|
-
return {
|
|
24
|
-
[prefixCls]: true
|
|
25
|
-
};
|
|
26
|
-
});
|
|
27
21
|
watch(
|
|
28
22
|
() => props.modelValue,
|
|
29
23
|
(val) => {
|
|
@@ -68,16 +62,17 @@ const _sfc_main = create({
|
|
|
68
62
|
updateVal,
|
|
69
63
|
isExpanded
|
|
70
64
|
});
|
|
71
|
-
return { collapseDom
|
|
65
|
+
return { collapseDom };
|
|
72
66
|
}
|
|
73
67
|
});
|
|
68
|
+
const _hoisted_1 = {
|
|
69
|
+
ref: "collapseDom",
|
|
70
|
+
class: "nut-collapse"
|
|
71
|
+
};
|
|
74
72
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
75
|
-
return openBlock(), createElementBlock("view",
|
|
76
|
-
ref: "collapseDom",
|
|
77
|
-
class: normalizeClass(_ctx.classes)
|
|
78
|
-
}, [
|
|
73
|
+
return openBlock(), createElementBlock("view", _hoisted_1, [
|
|
79
74
|
renderSlot(_ctx.$slots, "default")
|
|
80
|
-
],
|
|
75
|
+
], 512);
|
|
81
76
|
}
|
|
82
77
|
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
83
78
|
export {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ref, inject, reactive, computed, watch, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, toDisplayString, createCommentVNode, normalizeStyle, createBlock, resolveDynamicComponent } from "vue";
|
|
2
2
|
import { DownArrow } from "@nutui/icons-vue";
|
|
3
|
-
import { c as createComponent } from "
|
|
4
|
-
import { r as renderIcon } from "
|
|
5
|
-
import { _ as _export_sfc } from "
|
|
3
|
+
import { c as createComponent } from "../component-a8dfbf81.js";
|
|
4
|
+
import { r as renderIcon } from "../renderIcon-3d0fd47c.js";
|
|
5
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
|
|
6
6
|
import "../locale/lang";
|
|
7
7
|
const { create, componentName } = createComponent("collapse-item");
|
|
8
8
|
const _sfc_main = create({
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { resolveComponent, openBlock, createElementBlock, createElementVNode, createCommentVNode, normalizeClass, toDisplayString, renderSlot, createVNode, ref, watch, onMounted, Fragment, renderList, createBlock, computed, withCtx, normalizeStyle, createTextVNode } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-f86a70df.js";
|
|
3
2
|
import { Right, Fabulous, Comment, MoreX } from "@nutui/icons-vue";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
3
|
+
import { c as createComponent } from "../component-a8dfbf81.js";
|
|
4
|
+
import NutRate from "../rate/Rate.js";
|
|
5
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
|
|
6
|
+
import { u as useLocale } from "../index-99fdd331.js";
|
|
6
7
|
import "../locale/lang";
|
|
7
|
-
import "
|
|
8
|
-
import "
|
|
9
|
-
import "
|
|
8
|
+
import "../renderIcon-3d0fd47c.js";
|
|
9
|
+
import "../pxCheck-a27490eb.js";
|
|
10
|
+
import "../index-7a7385e4.js";
|
|
10
11
|
const { create: create$3 } = createComponent("comment-header");
|
|
11
12
|
const _sfc_main$3 = create$3({
|
|
12
13
|
components: {
|
|
13
|
-
|
|
14
|
+
NutRate
|
|
14
15
|
},
|
|
15
16
|
props: {
|
|
16
17
|
type: {
|
|
@@ -39,7 +40,7 @@ const _sfc_main$3 = create$3({
|
|
|
39
40
|
const _hoisted_1$3 = { class: "nut-comment-header__user" };
|
|
40
41
|
const _hoisted_2$3 = { class: "nut-comment-header__user-avter" };
|
|
41
42
|
const _hoisted_3$3 = ["src"];
|
|
42
|
-
const _hoisted_4$
|
|
43
|
+
const _hoisted_4$3 = { class: "nut-comment-header__user-score" };
|
|
43
44
|
const _hoisted_5$1 = {
|
|
44
45
|
key: 0,
|
|
45
46
|
class: "nut-comment-header__time"
|
|
@@ -69,7 +70,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
69
70
|
createElementVNode("span", null, toDisplayString(_ctx.info.nickName), 1),
|
|
70
71
|
renderSlot(_ctx.$slots, "labels")
|
|
71
72
|
], 2),
|
|
72
|
-
createElementVNode("view", _hoisted_4$
|
|
73
|
+
createElementVNode("view", _hoisted_4$3, [
|
|
73
74
|
createVNode(_component_nut_rate, {
|
|
74
75
|
modelValue: _ctx.info.score,
|
|
75
76
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.info.score = $event),
|
|
@@ -170,7 +171,7 @@ const _sfc_main$2 = create$2({
|
|
|
170
171
|
const _hoisted_1$2 = ["onClick"];
|
|
171
172
|
const _hoisted_2$2 = ["src"];
|
|
172
173
|
const _hoisted_3$2 = /* @__PURE__ */ createElementVNode("view", { class: "nut-comment-images__play" }, null, -1);
|
|
173
|
-
const _hoisted_4$
|
|
174
|
+
const _hoisted_4$2 = ["onClick"];
|
|
174
175
|
const _hoisted_5 = ["src"];
|
|
175
176
|
const _hoisted_6 = {
|
|
176
177
|
key: 0,
|
|
@@ -209,13 +210,14 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
209
210
|
createElementVNode("span", null, "共 " + toDisplayString(_ctx.totalImages.length) + " 张", 1),
|
|
210
211
|
createVNode(_component_Right, { style: { "width": "12px" } })
|
|
211
212
|
])) : createCommentVNode("", true)
|
|
212
|
-
], 8, _hoisted_4$
|
|
213
|
+
], 8, _hoisted_4$2)) : createCommentVNode("", true)
|
|
213
214
|
], 64);
|
|
214
215
|
}), 128))
|
|
215
216
|
], 2);
|
|
216
217
|
}
|
|
217
218
|
const CommentImages = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2]]);
|
|
218
|
-
const { create: create$1
|
|
219
|
+
const { create: create$1 } = createComponent("comment-bottom");
|
|
220
|
+
const cN$1 = "NutComment";
|
|
219
221
|
const _sfc_main$1 = create$1({
|
|
220
222
|
props: {
|
|
221
223
|
type: {
|
|
@@ -235,6 +237,7 @@ const _sfc_main$1 = create$1({
|
|
|
235
237
|
components: { Fabulous, Comment, MoreX },
|
|
236
238
|
emits: ["clickOperate", "handleClick"],
|
|
237
239
|
setup(props, { emit }) {
|
|
240
|
+
const translate = useLocale(cN$1);
|
|
238
241
|
const showPopver = ref(false);
|
|
239
242
|
const mergeOp = ref([]);
|
|
240
243
|
onMounted(() => {
|
|
@@ -256,13 +259,13 @@ const _sfc_main$1 = create$1({
|
|
|
256
259
|
const handleClick = () => {
|
|
257
260
|
emit("handleClick");
|
|
258
261
|
};
|
|
259
|
-
return { showPopver, operate, mergeOp, handleClick, translate
|
|
262
|
+
return { showPopver, operate, mergeOp, handleClick, translate };
|
|
260
263
|
}
|
|
261
264
|
});
|
|
262
265
|
const _hoisted_1$1 = { class: "nut-comment-bottom" };
|
|
263
266
|
const _hoisted_2$1 = { key: 0 };
|
|
264
267
|
const _hoisted_3$1 = { class: "nut-comment-bottom__cpx" };
|
|
265
|
-
const _hoisted_4 = ["onClick"];
|
|
268
|
+
const _hoisted_4$1 = ["onClick"];
|
|
266
269
|
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
267
270
|
const _component_Fabulous = resolveComponent("Fabulous");
|
|
268
271
|
const _component_Comment = resolveComponent("Comment");
|
|
@@ -293,13 +296,14 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
293
296
|
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.operate("popover"))
|
|
294
297
|
}, toDisplayString(_ctx.translate("complaintsText")), 1)) : createCommentVNode("", true)
|
|
295
298
|
], 64)) : createCommentVNode("", true)
|
|
296
|
-
], 10, _hoisted_4);
|
|
299
|
+
], 10, _hoisted_4$1);
|
|
297
300
|
}), 128))
|
|
298
301
|
])
|
|
299
302
|
]);
|
|
300
303
|
}
|
|
301
304
|
const CommentBottom = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
|
|
302
|
-
const {
|
|
305
|
+
const { create } = createComponent("comment");
|
|
306
|
+
const cN = "NutComment";
|
|
303
307
|
const _sfc_main = create({
|
|
304
308
|
props: {
|
|
305
309
|
headerType: {
|
|
@@ -349,12 +353,7 @@ const _sfc_main = create({
|
|
|
349
353
|
},
|
|
350
354
|
emits: ["click", "clickImages", "clickOperate"],
|
|
351
355
|
setup(props, { emit }) {
|
|
352
|
-
const
|
|
353
|
-
const prefixCls = componentName;
|
|
354
|
-
return {
|
|
355
|
-
[prefixCls]: true
|
|
356
|
-
};
|
|
357
|
-
});
|
|
356
|
+
const translate = useLocale(cN);
|
|
358
357
|
const conEllipsis = computed(() => {
|
|
359
358
|
if (props.ellipsis)
|
|
360
359
|
return props.ellipsis;
|
|
@@ -369,21 +368,22 @@ const _sfc_main = create({
|
|
|
369
368
|
const clickImages = (value) => {
|
|
370
369
|
emit("clickImages", value);
|
|
371
370
|
};
|
|
372
|
-
return {
|
|
371
|
+
return { conEllipsis, clickOperate, handleClick, clickImages, translate };
|
|
373
372
|
}
|
|
374
373
|
});
|
|
375
|
-
const _hoisted_1 =
|
|
376
|
-
|
|
377
|
-
|
|
374
|
+
const _hoisted_1 = {
|
|
375
|
+
key: 0,
|
|
376
|
+
class: "nut-comment"
|
|
377
|
+
};
|
|
378
|
+
const _hoisted_2 = ["innerHTML"];
|
|
379
|
+
const _hoisted_3 = { class: "nut-comment__follow-title" };
|
|
380
|
+
const _hoisted_4 = { class: "nut-comment__follow-com" };
|
|
378
381
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
379
382
|
const _component_comment_header = resolveComponent("comment-header");
|
|
380
383
|
const _component_comment_images = resolveComponent("comment-images");
|
|
381
384
|
const _component_Right = resolveComponent("Right");
|
|
382
385
|
const _component_comment_bottom = resolveComponent("comment-bottom");
|
|
383
|
-
return _ctx.info && Object.keys(_ctx.info) ? (openBlock(), createElementBlock("view",
|
|
384
|
-
key: 0,
|
|
385
|
-
class: normalizeClass(_ctx.classes)
|
|
386
|
-
}, [
|
|
386
|
+
return _ctx.info && Object.keys(_ctx.info) ? (openBlock(), createElementBlock("view", _hoisted_1, [
|
|
387
387
|
createVNode(_component_comment_header, {
|
|
388
388
|
type: _ctx.headerType,
|
|
389
389
|
info: _ctx.info,
|
|
@@ -401,7 +401,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
401
401
|
style: normalizeStyle(`-webkit-line-clamp:${_ctx.conEllipsis}`),
|
|
402
402
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args)),
|
|
403
403
|
innerHTML: _ctx.info.content
|
|
404
|
-
}, null, 12,
|
|
404
|
+
}, null, 12, _hoisted_2),
|
|
405
405
|
createVNode(_component_comment_images, {
|
|
406
406
|
images: _ctx.images,
|
|
407
407
|
videos: _ctx.videos,
|
|
@@ -413,8 +413,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
413
413
|
class: "nut-comment__follow",
|
|
414
414
|
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
415
415
|
}, [
|
|
416
|
-
createElementVNode("view",
|
|
417
|
-
createElementVNode("view",
|
|
416
|
+
createElementVNode("view", _hoisted_3, toDisplayString(_ctx.translate("additionalReview", _ctx.follow.days)), 1),
|
|
417
|
+
createElementVNode("view", _hoisted_4, toDisplayString(_ctx.follow.content), 1),
|
|
418
418
|
_ctx.follow.images && _ctx.follow.images.length > 0 ? (openBlock(), createElementBlock("view", {
|
|
419
419
|
key: 0,
|
|
420
420
|
class: "nut-comment__follow-img",
|
|
@@ -432,7 +432,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
432
432
|
onHandleClick: _ctx.handleClick
|
|
433
433
|
}, null, 8, ["type", "info", "operation", "onClickOperate", "onHandleClick"]),
|
|
434
434
|
renderSlot(_ctx.$slots, "comment-shop-reply")
|
|
435
|
-
]
|
|
435
|
+
])) : createCommentVNode("", true);
|
|
436
436
|
}
|
|
437
437
|
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
438
438
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { shallowReactive, getCurrentInstance, provide, markRaw, isVNode, computed, h } from "vue";
|
|
2
|
-
import { c as createComponent } from "./component-
|
|
3
|
-
import { p as pxCheck } from "./pxCheck-
|
|
2
|
+
import { c as createComponent } from "./component-a8dfbf81.js";
|
|
3
|
+
import { p as pxCheck } from "./pxCheck-a27490eb.js";
|
|
4
4
|
function flattenVNodes(children, childName) {
|
|
5
5
|
const result = [];
|
|
6
6
|
const traverse = (children2) => {
|
|
@@ -121,16 +121,16 @@ function createComponent(name) {
|
|
|
121
121
|
}
|
|
122
122
|
export {
|
|
123
123
|
TypeOfFun as T,
|
|
124
|
-
|
|
124
|
+
isArray as a,
|
|
125
125
|
body as b,
|
|
126
126
|
createComponent as c,
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
127
|
+
isDate as d,
|
|
128
|
+
preventDefault as e,
|
|
129
|
+
clamp as f,
|
|
130
130
|
getPropByPath as g,
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
131
|
+
isPromise as h,
|
|
132
|
+
isFunction as i,
|
|
133
|
+
isString as j,
|
|
134
134
|
getScrollTopRoot as k,
|
|
135
135
|
isObject as l,
|
|
136
136
|
myFixed as m,
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
const ConfigProvider = treeshaking(_ConfigProvider);
|
|
4
|
-
export { ConfigProvider };
|
|
1
|
+
import ConfigProvider from './ConfigProvider.js';
|
|
2
|
+
export { ConfigProvider, ConfigProvider as default };
|
|
@@ -17,9 +17,10 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { reactive, computed, onBeforeMount, watch, toRefs, openBlock, createElementBlock,
|
|
21
|
-
import { p as padZero, c as createComponent } from "
|
|
22
|
-
import {
|
|
20
|
+
import { reactive, computed, onBeforeMount, watch, toRefs, openBlock, createElementBlock, renderSlot } from "vue";
|
|
21
|
+
import { p as padZero, c as createComponent } from "../component-a8dfbf81.js";
|
|
22
|
+
import { u as useLocale } from "../index-99fdd331.js";
|
|
23
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
|
|
23
24
|
import "../locale/lang";
|
|
24
25
|
const getTimeStamp = (timeStr) => {
|
|
25
26
|
if (!timeStr)
|
|
@@ -28,7 +29,8 @@ const getTimeStamp = (timeStr) => {
|
|
|
28
29
|
t = +t > 0 ? +t : t.toString().replace(/-/g, "/");
|
|
29
30
|
return new Date(t).getTime();
|
|
30
31
|
};
|
|
31
|
-
const {
|
|
32
|
+
const { create } = createComponent("countdown");
|
|
33
|
+
const cN = "NutCountdown";
|
|
32
34
|
const _sfc_main = create({
|
|
33
35
|
props: {
|
|
34
36
|
modelValue: {
|
|
@@ -88,6 +90,7 @@ const _sfc_main = create({
|
|
|
88
90
|
"onPaused"
|
|
89
91
|
],
|
|
90
92
|
setup(props, { emit, slots }) {
|
|
93
|
+
const translate = useLocale(cN);
|
|
91
94
|
const state = reactive({
|
|
92
95
|
restTime: 0,
|
|
93
96
|
// 倒计时剩余时间时间
|
|
@@ -99,12 +102,6 @@ const _sfc_main = create({
|
|
|
99
102
|
diffTime: 0
|
|
100
103
|
// 设置了 startTime 时,与 date.now() 的差异
|
|
101
104
|
});
|
|
102
|
-
const classes = computed(() => {
|
|
103
|
-
const prefixCls = componentName;
|
|
104
|
-
return {
|
|
105
|
-
[prefixCls]: true
|
|
106
|
-
};
|
|
107
|
-
});
|
|
108
105
|
const renderTime = computed(() => {
|
|
109
106
|
return formatRemainTime(state.restTime);
|
|
110
107
|
});
|
|
@@ -260,7 +257,6 @@ const _sfc_main = create({
|
|
|
260
257
|
);
|
|
261
258
|
return __spreadProps(__spreadValues({}, toRefs(props)), {
|
|
262
259
|
slots,
|
|
263
|
-
classes,
|
|
264
260
|
start,
|
|
265
261
|
pause,
|
|
266
262
|
renderTime,
|
|
@@ -269,17 +265,16 @@ const _sfc_main = create({
|
|
|
269
265
|
});
|
|
270
266
|
}
|
|
271
267
|
});
|
|
272
|
-
const _hoisted_1 =
|
|
268
|
+
const _hoisted_1 = { class: "nut-countdown" };
|
|
269
|
+
const _hoisted_2 = ["innerHTML"];
|
|
273
270
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
274
|
-
return openBlock(), createElementBlock("view",
|
|
275
|
-
class: normalizeClass(_ctx.classes)
|
|
276
|
-
}, [
|
|
271
|
+
return openBlock(), createElementBlock("view", _hoisted_1, [
|
|
277
272
|
_ctx.slots.default ? renderSlot(_ctx.$slots, "default", { key: 0 }) : (openBlock(), createElementBlock("view", {
|
|
278
273
|
key: 1,
|
|
279
274
|
class: "nut-countdown__content",
|
|
280
275
|
innerHTML: _ctx.renderTime
|
|
281
|
-
}, null, 8,
|
|
282
|
-
]
|
|
276
|
+
}, null, 8, _hoisted_2))
|
|
277
|
+
]);
|
|
283
278
|
}
|
|
284
279
|
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
285
280
|
export {
|
|
@@ -18,8 +18,8 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { getCurrentInstance, ref, reactive, watch, nextTick, onMounted, onUnmounted, toRefs, openBlock, createElementBlock, Fragment, normalizeStyle, renderList, createCommentVNode, toDisplayString, createTextVNode } from "vue";
|
|
21
|
-
import { c as createComponent } from "
|
|
22
|
-
import { _ as _export_sfc } from "
|
|
21
|
+
import { c as createComponent } from "../component-a8dfbf81.js";
|
|
22
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
|
|
23
23
|
import "../locale/lang";
|
|
24
24
|
function useExtend(apis) {
|
|
25
25
|
const instance = getCurrentInstance();
|
|
@@ -18,28 +18,29 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { reactive, computed, onBeforeMount, watch, toRefs, resolveComponent, openBlock, createBlock, withCtx, renderSlot } from "vue";
|
|
21
|
-
import
|
|
22
|
-
import { c as createComponent,
|
|
23
|
-
import { _ as _export_sfc } from "
|
|
24
|
-
import "
|
|
25
|
-
import "
|
|
21
|
+
import NutPicker from "../picker/Picker.js";
|
|
22
|
+
import { c as createComponent, d as isDate$1, p as padZero } from "../component-a8dfbf81.js";
|
|
23
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
|
|
24
|
+
import "../pxCheck-a27490eb.js";
|
|
25
|
+
import "../index-7a7385e4.js";
|
|
26
|
+
import "../index-99fdd331.js";
|
|
26
27
|
import "../locale/lang";
|
|
27
|
-
const { create
|
|
28
|
+
const { create } = createComponent("date-picker");
|
|
28
29
|
const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
|
|
29
30
|
function isDate(val) {
|
|
30
31
|
return isDate$1(val) && !isNaN(val.getTime());
|
|
31
32
|
}
|
|
32
33
|
const zhCNType = {
|
|
33
|
-
day:
|
|
34
|
-
year:
|
|
35
|
-
month:
|
|
36
|
-
hour:
|
|
37
|
-
minute:
|
|
38
|
-
seconds:
|
|
34
|
+
day: "日",
|
|
35
|
+
year: "年",
|
|
36
|
+
month: "月",
|
|
37
|
+
hour: "时",
|
|
38
|
+
minute: "分",
|
|
39
|
+
seconds: "秒"
|
|
39
40
|
};
|
|
40
41
|
const _sfc_main = create({
|
|
41
42
|
components: {
|
|
42
|
-
|
|
43
|
+
NutPicker
|
|
43
44
|
},
|
|
44
45
|
props: {
|
|
45
46
|
modelValue: null,
|
|
@@ -22,21 +22,23 @@ var __publicField = (obj, key, value) => {
|
|
|
22
22
|
return value;
|
|
23
23
|
};
|
|
24
24
|
import { ref, onMounted, watch, computed, resolveComponent, openBlock, createBlock, normalizeStyle, withCtx, createElementVNode, normalizeClass, createElementBlock, renderSlot, Fragment, createTextVNode, toDisplayString, createCommentVNode, resolveDynamicComponent, nextTick, h } from "vue";
|
|
25
|
-
import { c as createComponent } from "
|
|
26
|
-
import { f as funInterceptor } from "
|
|
27
|
-
import {
|
|
28
|
-
import
|
|
29
|
-
import {
|
|
30
|
-
import
|
|
25
|
+
import { c as createComponent } from "../component-a8dfbf81.js";
|
|
26
|
+
import { f as funInterceptor } from "../Interceptor-a7d38af1.js";
|
|
27
|
+
import { N as NutPopup, p as popupProps } from "../index-ae743c4f.js";
|
|
28
|
+
import NutButton from "../button/Button.js";
|
|
29
|
+
import { u as useLocale } from "../index-99fdd331.js";
|
|
30
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
|
|
31
|
+
import NutOverlay from "../overlay/Overlay.js";
|
|
31
32
|
import "../locale/lang";
|
|
32
|
-
import { C as CreateComponent } from "
|
|
33
|
+
import { C as CreateComponent } from "../mountComponent-614f1309.js";
|
|
33
34
|
import "@nutui/icons-vue";
|
|
34
|
-
const {
|
|
35
|
+
const { create } = createComponent("dialog");
|
|
36
|
+
const cN = "NutDialog";
|
|
35
37
|
const _sfc_main = create({
|
|
36
38
|
inheritAttrs: false,
|
|
37
39
|
components: {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
+
NutPopup,
|
|
41
|
+
NutButton
|
|
40
42
|
},
|
|
41
43
|
props: __spreadProps(__spreadValues({}, popupProps), {
|
|
42
44
|
closeOnClickOverlay: {
|
|
@@ -75,6 +77,10 @@ const _sfc_main = create({
|
|
|
75
77
|
type: Boolean,
|
|
76
78
|
default: true
|
|
77
79
|
},
|
|
80
|
+
okAutoClose: {
|
|
81
|
+
type: Boolean,
|
|
82
|
+
default: true
|
|
83
|
+
},
|
|
78
84
|
textAlign: {
|
|
79
85
|
type: String,
|
|
80
86
|
default: "center"
|
|
@@ -99,6 +105,7 @@ const _sfc_main = create({
|
|
|
99
105
|
}),
|
|
100
106
|
emits: ["update", "update:visible", "ok", "cancel", "opened", "closed"],
|
|
101
107
|
setup(props, { emit }) {
|
|
108
|
+
const translate = useLocale(cN);
|
|
102
109
|
const showPopup = ref(props.visible);
|
|
103
110
|
onMounted(() => {
|
|
104
111
|
if (props.closeOnPopstate) {
|
|
@@ -116,12 +123,6 @@ const _sfc_main = create({
|
|
|
116
123
|
}
|
|
117
124
|
}
|
|
118
125
|
);
|
|
119
|
-
const classes = computed(() => {
|
|
120
|
-
return {
|
|
121
|
-
[componentName]: true,
|
|
122
|
-
[props.customClass]: true
|
|
123
|
-
};
|
|
124
|
-
});
|
|
125
126
|
const update = (val) => {
|
|
126
127
|
emit("update", val);
|
|
127
128
|
emit("update:visible", val);
|
|
@@ -145,7 +146,9 @@ const _sfc_main = create({
|
|
|
145
146
|
};
|
|
146
147
|
const onOk = () => {
|
|
147
148
|
emit("ok");
|
|
148
|
-
|
|
149
|
+
if (props.okAutoClose) {
|
|
150
|
+
closed("ok");
|
|
151
|
+
}
|
|
149
152
|
};
|
|
150
153
|
const onClickOverlay = () => {
|
|
151
154
|
if (props.closeOnClickOverlay) {
|
|
@@ -159,7 +162,6 @@ const _sfc_main = create({
|
|
|
159
162
|
});
|
|
160
163
|
return {
|
|
161
164
|
closed,
|
|
162
|
-
classes,
|
|
163
165
|
onCancel,
|
|
164
166
|
onOk,
|
|
165
167
|
showPopup,
|
|
@@ -188,12 +190,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
188
190
|
"overlay-style": _ctx.overlayStyle,
|
|
189
191
|
style: normalizeStyle(_ctx.popStyle),
|
|
190
192
|
round: "",
|
|
193
|
+
"z-index": _ctx.zIndex,
|
|
191
194
|
onClickOverlay: _ctx.onClickOverlay,
|
|
192
195
|
onClickCloseIcon: _ctx.closed
|
|
193
196
|
}, {
|
|
194
197
|
default: withCtx(() => [
|
|
195
198
|
createElementVNode("view", {
|
|
196
|
-
class: normalizeClass(_ctx.
|
|
199
|
+
class: normalizeClass(["nut-dialog", _ctx.customClass])
|
|
197
200
|
}, [
|
|
198
201
|
_ctx.$slots.header || _ctx.title ? (openBlock(), createElementBlock("view", _hoisted_1, [
|
|
199
202
|
_ctx.$slots.header ? renderSlot(_ctx.$slots, "header", { key: 0 }) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
@@ -244,7 +247,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
244
247
|
], 2)
|
|
245
248
|
]),
|
|
246
249
|
_: 3
|
|
247
|
-
}, 8, ["visible", "teleport", "lock-scroll", "pop-class", "overlay-class", "overlay-style", "style", "onClickOverlay", "onClickCloseIcon"]);
|
|
250
|
+
}, 8, ["visible", "teleport", "lock-scroll", "pop-class", "overlay-class", "overlay-style", "style", "z-index", "onClickOverlay", "onClickCloseIcon"]);
|
|
248
251
|
}
|
|
249
252
|
const Dialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
250
253
|
class DialogOptions {
|
|
@@ -278,6 +281,8 @@ class DialogOptions {
|
|
|
278
281
|
__publicField(this, "closeOnPopstate", false);
|
|
279
282
|
__publicField(this, "closeOnClickOverlay", true);
|
|
280
283
|
__publicField(this, "lockScroll", true);
|
|
284
|
+
__publicField(this, "cancelAutoClose", true);
|
|
285
|
+
__publicField(this, "okAutoClose", true);
|
|
281
286
|
}
|
|
282
287
|
}
|
|
283
288
|
class DialogFunction {
|
|
@@ -287,7 +292,7 @@ class DialogFunction {
|
|
|
287
292
|
const options = Object.assign(this.options, _options);
|
|
288
293
|
const { unmount } = CreateComponent(options, {
|
|
289
294
|
name: "dialog",
|
|
290
|
-
components: [
|
|
295
|
+
components: [NutPopup, NutButton, NutOverlay],
|
|
291
296
|
wrapper: (elWrap, root) => {
|
|
292
297
|
return {
|
|
293
298
|
setup() {
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { showDialog } from '
|
|
3
|
-
|
|
4
|
-
const Dialog = treeshaking(_Dialog);
|
|
5
|
-
export { Dialog, showDialog };
|
|
1
|
+
import Dialog from './Dialog.js';
|
|
2
|
+
import { showDialog } from './Dialog.js';
|
|
3
|
+
export { Dialog, showDialog, Dialog as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed, openBlock, createElementBlock, normalizeClass, renderSlot, createCommentVNode } from "vue";
|
|
2
|
-
import { c as createComponent } from "
|
|
3
|
-
import { _ as _export_sfc } from "
|
|
2
|
+
import { c as createComponent } from "../component-a8dfbf81.js";
|
|
3
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
|
|
4
4
|
import "../locale/lang";
|
|
5
5
|
const { componentName, create } = createComponent("divider");
|
|
6
6
|
const _sfc_main = create({
|