vft 0.0.507 → 0.0.511
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/dist/index.css +1 -1
- package/es/components/affix/affix.vue2.js +2 -2
- package/es/components/alert/alert.vue2.js +1 -1
- package/es/components/autocomplete/autocomplete.vue2.js +1 -1
- package/es/components/avatar/avatar.vue2.js +2 -2
- package/es/components/avatar-stack/avatar-stack.vue2.js +7 -7
- package/es/components/backtop/backtop.vue2.js +1 -1
- package/es/components/breadcrumb/breadcrumb-item.vue2.js +3 -3
- package/es/components/breadcrumb/breadcrumb.vue2.js +2 -2
- package/es/components/button/button-group.vue2.js +2 -2
- package/es/components/button/button.vue2.js +7 -7
- package/es/components/button/use-button.js +3 -3
- package/es/components/card/card.vue2.js +6 -6
- package/es/components/carousel/carousel-item.vue2.js +3 -3
- package/es/components/carousel/carousel.vue2.js +1 -1
- package/es/components/carousel/use-carousel.js +1 -1
- package/es/components/cascader/cascader.vue2.js +203 -202
- package/es/components/cascader-panel/index.vue2.js +1 -1
- package/es/components/cascader-panel/menu.vue2.js +50 -49
- package/es/components/cascader-panel/node.vue2.js +8 -8
- package/es/components/check-tag/check-tag.vue2.js +2 -2
- package/es/components/checkbox/checkbox-button.vue2.js +13 -13
- package/es/components/checkbox/checkbox-group.vue2.js +3 -3
- package/es/components/checkbox/checkbox.vue2.js +1 -1
- package/es/components/clamp/clamp.vue2.js +2 -2
- package/es/components/clamp-toggle/clamp-toggle.vue2.js +21 -17
- package/es/components/clamp-tooltip/clamp-tooltip.vue2.js +6 -6
- package/es/components/col/col.vue2.js +2 -2
- package/es/components/collapse/collapse-item.vue2.js +2 -2
- package/es/components/collapse/collapse.vue2.js +2 -2
- package/es/components/collapse-transition/collapse-transition.vue2.js +2 -2
- package/es/components/color-picker/color-picker.vue2.js +134 -133
- package/es/components/color-picker/components/alpha-slider.vue2.js +2 -2
- package/es/components/color-picker/components/hue-slider.vue.js +2 -2
- package/es/components/color-picker/components/predefine.vue.js +3 -3
- package/es/components/color-picker/components/sv-panel.vue.js +2 -2
- package/es/components/config-provider/config-provider.vue.d.ts +2 -0
- package/es/components/config-provider/config-provider.vue2.js +5 -4
- package/es/components/config-provider/constants.d.ts +1 -0
- package/es/components/config-provider/constants.js +3 -2
- package/es/components/config-provider/hooks/use-global-config.js +33 -30
- package/es/components/config-provider/index.d.ts +9 -0
- package/es/components/config-provider/index.js +6 -5
- package/es/components/container/aside.vue2.js +2 -2
- package/es/components/container/container.vue2.js +2 -2
- package/es/components/container/footer.vue2.js +2 -2
- package/es/components/container/header.vue2.js +2 -2
- package/es/components/container/main.vue2.js +2 -2
- package/es/components/context-menu/context-menu.vue2.js +1 -1
- package/es/components/countdown/countdown.vue2.js +2 -2
- package/es/components/date-picker/composables/use-basic-date-table.js +83 -82
- package/es/components/date-picker/composables/use-month-range-header.js +15 -14
- package/es/components/date-picker/composables/use-panel-date-range.js +24 -23
- package/es/components/date-picker/date-picker-com/basic-date-table.vue2.js +6 -6
- package/es/components/date-picker/date-picker-com/basic-month-table.vue2.js +40 -39
- package/es/components/date-picker/date-picker-com/basic-year-table.vue2.js +41 -40
- package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +184 -183
- package/es/components/date-picker/date-picker-com/panel-date-range.vue2.js +225 -224
- package/es/components/date-picker/date-picker-com/panel-month-range.vue2.js +12 -12
- package/es/components/date-picker/date-picker-com/panel-year-range.vue2.js +12 -12
- package/es/components/date-picker/props/basic-date-table.js +3 -3
- package/es/components/date-picker/props/basic-month-table.js +3 -3
- package/es/components/date-picker/props/basic-year-table.js +3 -3
- package/es/components/date-time-select/date-time-select.vue2.js +39 -36
- package/es/components/descriptions/description.vue2.js +1 -1
- package/es/components/descriptions/descriptions-row.vue2.js +10 -10
- package/es/components/dialog/dialog-content.vue2.js +3 -3
- package/es/components/dialog/dialog.vue2.js +5 -5
- package/es/components/divider/divider.vue2.js +5 -5
- package/es/components/drawer/drawer.vue2.js +4 -4
- package/es/components/dropdown/dropdown-item-impl.vue.d.ts +1 -1
- package/es/components/dropdown/dropdown-item-impl.vue2.js +3 -3
- package/es/components/dropdown/dropdown-item.vue.d.ts +1 -1
- package/es/components/dropdown/dropdown-item.vue2.js +2 -2
- package/es/components/dropdown/dropdown-menu.vue2.js +2 -2
- package/es/components/dropdown/dropdown.vue.d.ts +1 -1
- package/es/components/dropdown/dropdown.vue2.js +68 -67
- package/es/components/dropdown/index.d.ts +33 -33
- package/es/components/empty/empty.vue2.js +39 -38
- package/es/components/footer-layout/footer-layout.vue2.js +2 -2
- package/es/components/form/form-item.vue2.js +16 -16
- package/es/components/form/form.vue2.js +2 -2
- package/es/components/full-screen/full-screen.vue2.js +18 -17
- package/es/components/header-layout/header-layout.vue2.js +1 -1
- package/es/components/horizontal-menu/horizontal-menu.vue2.js +3 -3
- package/es/components/icon/icon.vue2.js +3 -3
- package/es/components/icon-text/icon-text.vue2.js +1 -1
- package/es/components/iframe-layout/iframe-layout.vue2.js +4 -4
- package/es/components/iframe-layout/iframe-page.vue2.js +2 -2
- package/es/components/image/image.vue2.js +60 -59
- package/es/components/image-viewer/image-viewer.vue2.js +43 -42
- package/es/components/index.d.ts +1 -0
- package/es/components/index.js +214 -210
- package/es/components/input/input.vue2.js +2 -2
- package/es/components/input-number/input-number.vue2.js +4 -4
- package/es/components/input-tag/composables/use-input-tag.js +1 -1
- package/es/components/input-tag/input-tag.vue2.js +7 -7
- package/es/components/link/link.vue2.js +1 -1
- package/es/components/list-cell/list-cell.vue2.js +1 -1
- package/es/components/logo/logo.vue2.js +10 -10
- package/es/components/md-comment/md-comment.vue2.js +2 -2
- package/es/components/md-container/md-container.vue2.js +75 -74
- package/es/components/md-container/toc.js +37 -36
- package/es/components/menu/menu-collapse-transition.vue.js +2 -2
- package/es/components/menu/menu-item-group.vue2.js +7 -7
- package/es/components/menu/menu-item.vue2.js +1 -1
- package/es/components/message/message.vue2.js +3 -3
- package/es/components/message-box/index.d.ts +4 -0
- package/es/components/message-box/index.js +14 -0
- package/es/components/message-box/message-box.vue.d.ts +103 -0
- package/es/components/message-box/message-box.vue.js +4 -0
- package/es/components/message-box/message-box.vue2.js +358 -0
- package/es/components/message-box/method.d.ts +3 -0
- package/es/components/message-box/method.js +101 -0
- package/es/components/message-box/style/css.d.ts +2 -0
- package/es/components/message-box/style/css.js +3 -0
- package/es/components/message-box/style/index.d.ts +2 -0
- package/es/components/message-box/style/index.js +3 -0
- package/es/components/message-box/types.d.ts +202 -0
- package/es/components/message-box/types.js +1 -0
- package/es/components/modal/index.d.ts +1 -0
- package/es/components/modal/modal-footer-action.vue2.js +25 -24
- package/es/components/modal/modal.vue.d.ts +1 -0
- package/es/components/modal/modal.vue2.js +30 -28
- package/es/components/multiple-tabs/multiple-tabs.vue2.js +17 -16
- package/es/components/multiple-tabs/tab-content.vue2.js +2 -2
- package/es/components/multiple-tabs/use/use-tab-dropdown.js +54 -53
- package/es/components/notification/notification.vue2.js +1 -1
- package/es/components/overlay/overlay.vue2.js +1 -1
- package/es/components/page-wrapper/page-wrapper.vue2.js +2 -2
- package/es/components/pagination/components/jumper.vue2.js +2 -2
- package/es/components/pagination/components/next.vue2.js +4 -4
- package/es/components/pagination/components/pager.vue2.js +1 -1
- package/es/components/pagination/components/prev.vue2.js +4 -4
- package/es/components/pagination/components/sizes.vue2.js +2 -2
- package/es/components/pagination/components/total.vue2.js +2 -2
- package/es/components/popconfirm/popconfirm.vue2.js +40 -39
- package/es/components/popover/popover.vue2.js +1 -1
- package/es/components/popper/arrow.vue2.js +2 -2
- package/es/components/popper/content.vue2.js +2 -2
- package/es/components/popper/trigger.vue2.js +4 -4
- package/es/components/progress/progress.vue2.js +1 -1
- package/es/components/progress-i/progress-i.vue2.js +2 -2
- package/es/components/qrcode/qrcode.vue2.js +1 -1
- package/es/components/radio/radio-button.vue2.js +2 -2
- package/es/components/radio/radio-group.vue2.js +3 -3
- package/es/components/radio/radio.vue2.js +2 -2
- package/es/components/rate/rate.vue2.js +6 -6
- package/es/components/router-view-content/router-view-content.vue2.js +7 -7
- package/es/components/roving-focus-group/roving-focus-group.vue2.js +2 -2
- package/es/components/roving-focus-group/roving-focus-item.vue2.js +2 -2
- package/es/components/row/row.vue2.js +2 -2
- package/es/components/scrollbar/bar.vue2.js +2 -2
- package/es/components/scrollbar/scrollbar.vue2.js +7 -7
- package/es/components/scrollbar/thumb.vue2.js +2 -2
- package/es/components/search/search.vue2.js +78 -76
- package/es/components/segmented/segmented.vue2.js +7 -7
- package/es/components/select/group-item.vue.js +2 -2
- package/es/components/select/option-item.vue.js +2 -2
- package/es/components/select/select.vue.js +1 -1
- package/es/components/select/useSelect.js +232 -231
- package/es/components/skeleton/skeleton-item.vue2.js +2 -2
- package/es/components/skeleton/skeleton.vue2.js +8 -8
- package/es/components/slider/button.vue2.js +2 -2
- package/es/components/slider/slider.vue2.js +1 -1
- package/es/components/space/space.js +1 -1
- package/es/components/statistic/statistic.vue2.js +17 -17
- package/es/components/steps/item.vue2.js +11 -11
- package/es/components/steps/steps.vue2.js +2 -2
- package/es/components/super-form/super-form-action.vue2.js +11 -11
- package/es/components/super-form/super-form-item.vue2.js +5 -4
- package/es/components/super-form/super-form.vue2.js +7 -7
- package/es/components/super-form/use/helper.js +12 -12
- package/es/components/super-form/use/use-form.js +8 -8
- package/es/components/switch/switch.vue2.js +1 -1
- package/es/components/table/field.js +34 -33
- package/es/components/table/table.vue2.js +154 -157
- package/es/components/table/use/use-data-source.js +90 -90
- package/es/components/tabs/tab-bar.vue2.js +2 -2
- package/es/components/tabs/tab-pane.vue2.js +6 -6
- package/es/components/teleport/teleport.vue2.js +2 -2
- package/es/components/time-picker/common/picker-range-trigger.vue2.js +2 -2
- package/es/components/time-picker/common/picker.vue2.js +8 -8
- package/es/components/time-picker/time-picker-com/basic-time-spinner.vue2.js +1 -1
- package/es/components/time-picker/time-picker-com/panel-time-pick.vue2.js +66 -65
- package/es/components/time-picker/time-picker-com/panel-time-range.vue2.js +134 -133
- package/es/components/time-select/time-select.vue2.js +3 -3
- package/es/components/timeline/timeline-item.vue2.js +1 -1
- package/es/components/tooltip/content.vue2.js +6 -6
- package/es/components/tooltip/tooltip.vue2.js +1 -1
- package/es/components/tooltip/trigger.vue2.js +2 -2
- package/es/components/transfer/transfer-panel.vue2.js +59 -58
- package/es/components/transfer/transfer.vue2.js +70 -69
- package/es/components/tree/tree-node.vue.js +1 -1
- package/es/components/tree/tree.vue2.js +60 -59
- package/es/components/upload/index.d.ts +3 -3
- package/es/components/upload/upload-content.vue.d.ts +2 -2
- package/es/components/upload/upload-content.vue2.js +76 -73
- package/es/components/upload/upload-dragger.vue2.js +2 -2
- package/es/components/upload/upload-list.vue2.js +46 -45
- package/es/components/upload/upload.vue.d.ts +2 -2
- package/es/components/upload/upload.vue2.js +87 -85
- package/es/components/upload/utils.js +29 -29
- package/es/components/verify-code/verify-code.vue2.js +2 -2
- package/es/components/watermark/watermark.vue2.js +2 -2
- package/es/constants/date.d.ts +1 -1
- package/es/constants/date.js +9 -1
- package/es/hooks/use-id/index.js +2 -2
- package/es/hooks/use-z-index/index.js +3 -3
- package/es/index.d.ts +1 -0
- package/es/index.js +43 -38
- package/es/locale/index.d.js +1 -0
- package/es/locale/index.d.ts +26 -0
- package/es/locale/index.js +10 -0
- package/es/locale/lang/en.d.ts +183 -0
- package/es/locale/lang/en.js +241 -0
- package/es/locale/lang/zh-cn.d.ts +183 -0
- package/es/locale/lang/zh-cn.js +241 -0
- package/es/locale/lang/zh-tw.d.ts +183 -0
- package/es/locale/lang/zh-tw.js +241 -0
- package/es/locale/use-locale.d.ts +17 -0
- package/es/locale/use-locale.js +56 -0
- package/es/package.json.d.ts +1 -1
- package/es/package.json.js +1 -1
- package/es/plugin.js +5 -3
- package/es/utils/helper.js +2 -2
- package/es/utils/ns-cover.js +1 -1
- package/es/utils/vue/vnode.js +4 -4
- package/lib/components/button/use-button.cjs +1 -1
- package/lib/components/cascader/cascader.vue2.cjs +1 -1
- package/lib/components/cascader-panel/menu.vue2.cjs +4 -4
- package/lib/components/clamp-toggle/clamp-toggle.vue2.cjs +1 -1
- package/lib/components/color-picker/color-picker.vue2.cjs +1 -1
- package/lib/components/config-provider/config-provider.vue.d.ts +2 -0
- package/lib/components/config-provider/config-provider.vue2.cjs +1 -1
- package/lib/components/config-provider/constants.cjs +1 -1
- package/lib/components/config-provider/constants.d.ts +1 -0
- package/lib/components/config-provider/hooks/use-global-config.cjs +1 -1
- package/lib/components/config-provider/index.cjs +1 -1
- package/lib/components/config-provider/index.d.ts +9 -0
- package/lib/components/date-picker/composables/use-basic-date-table.cjs +1 -1
- package/lib/components/date-picker/composables/use-month-range-header.cjs +1 -1
- package/lib/components/date-picker/composables/use-panel-date-range.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/basic-month-table.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/basic-year-table.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/panel-date-pick.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/panel-date-range.vue2.cjs +1 -1
- package/lib/components/date-time-select/date-time-select.vue2.cjs +1 -1
- package/lib/components/dropdown/dropdown-item-impl.vue.d.ts +1 -1
- package/lib/components/dropdown/dropdown-item.vue.d.ts +1 -1
- package/lib/components/dropdown/dropdown.vue.d.ts +1 -1
- package/lib/components/dropdown/dropdown.vue2.cjs +1 -1
- package/lib/components/dropdown/index.d.ts +33 -33
- package/lib/components/empty/empty.vue2.cjs +1 -1
- package/lib/components/full-screen/full-screen.vue2.cjs +1 -1
- package/lib/components/image/image.vue2.cjs +1 -1
- package/lib/components/image-viewer/image-viewer.vue2.cjs +1 -1
- package/lib/components/index.cjs +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/md-container/md-container.vue2.cjs +1 -1
- package/lib/components/md-container/toc.cjs +1 -1
- package/lib/components/message-box/index.cjs +1 -0
- package/lib/components/message-box/index.d.ts +4 -0
- package/lib/components/message-box/message-box.vue.cjs +1 -0
- package/lib/components/message-box/message-box.vue.d.ts +103 -0
- package/lib/components/message-box/message-box.vue2.cjs +1 -0
- package/lib/components/message-box/method.cjs +1 -0
- package/lib/components/message-box/method.d.ts +3 -0
- package/lib/components/message-box/style/css.cjs +1 -0
- package/lib/components/message-box/style/css.d.ts +2 -0
- package/lib/components/message-box/style/index.cjs +1 -0
- package/lib/components/message-box/style/index.d.ts +2 -0
- package/lib/components/message-box/types.cjs +1 -0
- package/lib/components/message-box/types.d.ts +202 -0
- package/lib/components/modal/index.d.ts +1 -0
- package/lib/components/modal/modal-footer-action.vue2.cjs +1 -1
- package/lib/components/modal/modal.vue.d.ts +1 -0
- package/lib/components/modal/modal.vue2.cjs +1 -1
- package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
- package/lib/components/multiple-tabs/use/use-tab-dropdown.cjs +1 -1
- package/lib/components/popconfirm/popconfirm.vue2.cjs +1 -1
- package/lib/components/search/search.vue2.cjs +1 -1
- package/lib/components/select/useSelect.cjs +1 -1
- package/lib/components/super-form/super-form-item.vue2.cjs +1 -1
- package/lib/components/super-form/use/helper.cjs +1 -1
- package/lib/components/super-form/use/use-form.cjs +1 -1
- package/lib/components/table/field.cjs +1 -1
- package/lib/components/table/table.vue2.cjs +1 -1
- package/lib/components/table/use/use-data-source.cjs +1 -1
- package/lib/components/time-picker/time-picker-com/panel-time-pick.vue2.cjs +1 -1
- package/lib/components/time-picker/time-picker-com/panel-time-range.vue2.cjs +1 -1
- package/lib/components/transfer/transfer-panel.vue2.cjs +1 -1
- package/lib/components/transfer/transfer.vue2.cjs +1 -1
- package/lib/components/tree/tree.vue2.cjs +1 -1
- package/lib/components/upload/index.d.ts +3 -3
- package/lib/components/upload/upload-content.vue.d.ts +2 -2
- package/lib/components/upload/upload-content.vue2.cjs +1 -1
- package/lib/components/upload/upload-list.vue2.cjs +1 -1
- package/lib/components/upload/upload.vue.d.ts +2 -2
- package/lib/components/upload/upload.vue2.cjs +1 -1
- package/lib/components/upload/utils.cjs +1 -1
- package/lib/constants/date.cjs +1 -1
- package/lib/constants/date.d.ts +1 -1
- package/lib/index.cjs +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/locale/index.cjs +1 -0
- package/lib/locale/index.d.cjs +1 -0
- package/lib/locale/index.d.ts +26 -0
- package/lib/locale/lang/en.cjs +1 -0
- package/lib/locale/lang/en.d.ts +183 -0
- package/lib/locale/lang/zh-cn.cjs +1 -0
- package/lib/locale/lang/zh-cn.d.ts +183 -0
- package/lib/locale/lang/zh-tw.cjs +1 -0
- package/lib/locale/lang/zh-tw.d.ts +183 -0
- package/lib/locale/use-locale.cjs +1 -0
- package/lib/locale/use-locale.d.ts +17 -0
- package/lib/package.json.cjs +1 -1
- package/lib/package.json.d.ts +1 -1
- package/lib/plugin.cjs +1 -1
- package/package.json +2 -2
- package/theme-style/index.css +1 -1
- package/theme-style/src/super-form.scss +0 -1
- package/theme-style/src/table.scss +4 -0
- package/theme-style/vft-super-form.css +1 -1
- package/theme-style/vft-table.css +1 -1
- package/web-types.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as n, computed as m,
|
|
1
|
+
import { defineComponent as n, computed as m, openBlock as r, createElementBlock as c, normalizeClass as a, unref as t, createBlock as l, normalizeProps as p, mergeProps as s, createCommentVNode as f } from "vue";
|
|
2
2
|
import { VftIcon as u } from "../icon/index.js";
|
|
3
3
|
import "@vueuse/core";
|
|
4
4
|
import { singleAttrToObj as d } from "@vft/utils";
|
|
@@ -27,7 +27,7 @@ const g = n({
|
|
|
27
27
|
return (v, _) => (r(), c("div", {
|
|
28
28
|
class: a([t(o).e("item"), t(o).e(e.variant)])
|
|
29
29
|
}, [
|
|
30
|
-
e.variant === "image" ? (r(), l(t(u), s(
|
|
30
|
+
e.variant === "image" ? (r(), l(t(u), p(s({ key: 0 }, i.value)), null, 16)) : f("", !0)
|
|
31
31
|
], 2));
|
|
32
32
|
}
|
|
33
33
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as k, computed as y,
|
|
1
|
+
import { defineComponent as k, computed as y, unref as t, openBlock as o, createElementBlock as n, mergeProps as u, Fragment as l, renderList as d, renderSlot as c, createVNode as h, normalizeClass as f, createBlock as B, createCommentVNode as $, normalizeProps as v } from "vue";
|
|
2
2
|
import "@vueuse/core";
|
|
3
3
|
import "@vft/utils";
|
|
4
4
|
import "../config-provider/hooks/use-global-config.js";
|
|
@@ -28,17 +28,17 @@ const N = k({
|
|
|
28
28
|
);
|
|
29
29
|
return g({
|
|
30
30
|
uiLoading: s
|
|
31
|
-
}), (a, z) => t(s) ? (o(), n("div",
|
|
31
|
+
}), (a, z) => t(s) ? (o(), n("div", u({
|
|
32
32
|
key: 0,
|
|
33
33
|
class: [t(r).b(), t(r).is("animated", e.animated)]
|
|
34
34
|
}, a.$attrs), [
|
|
35
|
-
(o(!0), n(l, null,
|
|
36
|
-
e.loading ?
|
|
37
|
-
|
|
35
|
+
(o(!0), n(l, null, d(e.count, (m) => (o(), n(l, { key: m }, [
|
|
36
|
+
e.loading ? c(a.$slots, "template", { key: m }, () => [
|
|
37
|
+
h(p, {
|
|
38
38
|
class: f(t(r).is("first")),
|
|
39
39
|
variant: "p"
|
|
40
40
|
}, null, 8, ["class"]),
|
|
41
|
-
(o(!0), n(l, null,
|
|
41
|
+
(o(!0), n(l, null, d(e.rows, (i) => (o(), B(p, {
|
|
42
42
|
key: i,
|
|
43
43
|
class: f([
|
|
44
44
|
t(r).e("paragraph"),
|
|
@@ -46,9 +46,9 @@ const N = k({
|
|
|
46
46
|
]),
|
|
47
47
|
variant: "p"
|
|
48
48
|
}, null, 8, ["class"]))), 128))
|
|
49
|
-
]) :
|
|
49
|
+
]) : $("", !0)
|
|
50
50
|
], 64))), 128))
|
|
51
|
-
], 16)) :
|
|
51
|
+
], 16)) : c(a.$slots, "default", v(u({ key: 1 }, a.$attrs)));
|
|
52
52
|
}
|
|
53
53
|
});
|
|
54
54
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as b, reactive as N, getCurrentInstance as S, toRefs as T,
|
|
1
|
+
import { defineComponent as b, reactive as N, getCurrentInstance as S, toRefs as T, openBlock as P, createElementBlock as z, unref as t, normalizeStyle as K, normalizeClass as d, createVNode as L, withCtx as f, createElementVNode as g, toDisplayString as X } from "vue";
|
|
2
2
|
import { isNumber as Y } from "@vft/utils";
|
|
3
3
|
import { VftTooltip as A } from "../tooltip/index.js";
|
|
4
4
|
import { UPDATE_MODEL_EVENT as F } from "../../constants/event.js";
|
|
@@ -56,7 +56,7 @@ const R = ["tabindex"], U = b({
|
|
|
56
56
|
setPosition: M,
|
|
57
57
|
hovering: a,
|
|
58
58
|
dragging: p
|
|
59
|
-
}), (j, e) => (
|
|
59
|
+
}), (j, e) => (P(), z("div", {
|
|
60
60
|
ref_key: "button",
|
|
61
61
|
ref: B,
|
|
62
62
|
class: d([t(m).e("button-wrapper"), { hover: t(a), dragging: t(p) }]),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as $, reactive as oe, getCurrentInstance as ie, computed as d, toRefs as D, provide as re,
|
|
1
|
+
import { defineComponent as $, reactive as oe, getCurrentInstance as ie, computed as d, toRefs as D, provide as re, openBlock as o, createElementBlock as r, unref as e, normalizeClass as u, createElementVNode as V, normalizeStyle as p, createVNode as ne, createBlock as I, createCommentVNode as S, Fragment as k, renderList as B } from "vue";
|
|
2
2
|
import "../form/index.js";
|
|
3
3
|
import { VftInputNumber as ue } from "../input-number/index.js";
|
|
4
4
|
import "@vueuse/core";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isNumber as m,
|
|
1
|
+
import { isNumber as m, isArray as p, isString as P } from "@vft/utils";
|
|
2
2
|
import { componentSizes as T } from "../../constants/size.js";
|
|
3
3
|
import "@vueuse/core";
|
|
4
4
|
import "../config-provider/hooks/use-global-config.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as v, computed as k,
|
|
1
|
+
import { defineComponent as v, computed as k, openBlock as o, createElementBlock as l, normalizeClass as s, unref as r, renderSlot as f, createTextVNode as V, toDisplayString as a, createCommentVNode as c, createElementVNode as n, normalizeStyle as b } from "vue";
|
|
2
2
|
import "@vueuse/core";
|
|
3
3
|
import { isFunction as B, isNumber as C } from "@vft/utils";
|
|
4
4
|
import "../config-provider/hooks/use-global-config.js";
|
|
@@ -27,40 +27,40 @@ const z = v({
|
|
|
27
27
|
* @description current display value
|
|
28
28
|
*/
|
|
29
29
|
displayValue: d
|
|
30
|
-
}), (e, p) => (
|
|
30
|
+
}), (e, p) => (o(), l("div", {
|
|
31
31
|
class: s(r(t).b())
|
|
32
32
|
}, [
|
|
33
|
-
e.$slots.title || e.title ? (
|
|
33
|
+
e.$slots.title || e.title ? (o(), l("div", {
|
|
34
34
|
key: 0,
|
|
35
35
|
class: s(r(t).e("head"))
|
|
36
36
|
}, [
|
|
37
|
-
|
|
38
|
-
V(
|
|
37
|
+
f(e.$slots, "title", {}, () => [
|
|
38
|
+
V(a(e.title), 1)
|
|
39
39
|
])
|
|
40
|
-
], 2)) :
|
|
41
|
-
|
|
40
|
+
], 2)) : c("", !0),
|
|
41
|
+
n("div", {
|
|
42
42
|
class: s(r(t).e("content"))
|
|
43
43
|
}, [
|
|
44
|
-
e.$slots.prefix || e.prefix ? (
|
|
44
|
+
e.$slots.prefix || e.prefix ? (o(), l("div", {
|
|
45
45
|
key: 0,
|
|
46
46
|
class: s(r(t).e("prefix"))
|
|
47
47
|
}, [
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
f(e.$slots, "prefix", {}, () => [
|
|
49
|
+
n("span", null, a(e.prefix), 1)
|
|
50
50
|
])
|
|
51
|
-
], 2)) :
|
|
52
|
-
|
|
51
|
+
], 2)) : c("", !0),
|
|
52
|
+
n("span", {
|
|
53
53
|
class: s(r(t).e("number")),
|
|
54
54
|
style: b(e.valueStyle)
|
|
55
|
-
},
|
|
56
|
-
e.$slots.suffix || e.suffix ? (
|
|
55
|
+
}, a(d.value), 7),
|
|
56
|
+
e.$slots.suffix || e.suffix ? (o(), l("div", {
|
|
57
57
|
key: 1,
|
|
58
58
|
class: s(r(t).e("suffix"))
|
|
59
59
|
}, [
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
f(e.$slots, "suffix", {}, () => [
|
|
61
|
+
n("span", null, a(e.suffix), 1)
|
|
62
62
|
])
|
|
63
|
-
], 2)) :
|
|
63
|
+
], 2)) : c("", !0)
|
|
64
64
|
], 2)
|
|
65
65
|
], 2));
|
|
66
66
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as K, ref as N, inject as Y, getCurrentInstance as q, onMounted as x, watch as F, computed as n, reactive as G, onBeforeUnmount as H,
|
|
1
|
+
import { defineComponent as K, ref as N, inject as Y, getCurrentInstance as q, onMounted as x, watch as F, computed as n, reactive as G, onBeforeUnmount as H, openBlock as i, createElementBlock as a, normalizeClass as l, normalizeStyle as D, unref as t, renderSlot as p, createElementVNode as m, createTextVNode as $, toDisplayString as y, createCommentVNode as k, createBlock as V, mergeProps as Q } from "vue";
|
|
2
2
|
import { VftIcon as I } from "../icon/index.js";
|
|
3
3
|
import "@vueuse/core";
|
|
4
4
|
import { singleAttrToObj as R, isNumber as X } from "@vft/utils";
|
|
@@ -89,25 +89,25 @@ const ee = K({
|
|
|
89
89
|
class: l([t(e).e("title"), t(e).is(r.value)])
|
|
90
90
|
}, [
|
|
91
91
|
p(s.$slots, "title", {}, () => [
|
|
92
|
-
$(
|
|
92
|
+
$(y(v.title), 1)
|
|
93
93
|
])
|
|
94
94
|
], 2),
|
|
95
95
|
u.value ? (i(), a("div", {
|
|
96
96
|
key: 0,
|
|
97
97
|
class: l(t(e).e("arrow"))
|
|
98
|
-
}, null, 2)) :
|
|
98
|
+
}, null, 2)) : k("", !0),
|
|
99
99
|
m("div", {
|
|
100
100
|
class: l([t(e).e("description"), t(e).is(r.value)])
|
|
101
101
|
}, [
|
|
102
102
|
p(s.$slots, "description", {}, () => [
|
|
103
|
-
$(
|
|
103
|
+
$(y(v.description), 1)
|
|
104
104
|
])
|
|
105
105
|
], 2)
|
|
106
|
-
], 2)) :
|
|
106
|
+
], 2)) : k("", !0),
|
|
107
107
|
m("div", {
|
|
108
108
|
class: l([t(e).e("head"), t(e).is(r.value)])
|
|
109
109
|
}, [
|
|
110
|
-
u.value ?
|
|
110
|
+
u.value ? k("", !0) : (i(), a("div", {
|
|
111
111
|
key: 0,
|
|
112
112
|
class: l(t(e).e("line"))
|
|
113
113
|
}, [
|
|
@@ -130,10 +130,10 @@ const ee = K({
|
|
|
130
130
|
key: 2,
|
|
131
131
|
class: l([t(e).e("icon-inner"), t(e).is("status")]),
|
|
132
132
|
icon: "icon-close"
|
|
133
|
-
}, null, 8, ["class"])) : u.value ?
|
|
133
|
+
}, null, 8, ["class"])) : u.value ? k("", !0) : (i(), a("div", {
|
|
134
134
|
key: 3,
|
|
135
135
|
class: l(t(e).e("icon-inner"))
|
|
136
|
-
},
|
|
136
|
+
}, y(c.value + 1), 3))
|
|
137
137
|
])
|
|
138
138
|
], 2)
|
|
139
139
|
], 2),
|
|
@@ -142,7 +142,7 @@ const ee = K({
|
|
|
142
142
|
class: l(t(e).e("bottom-slot"))
|
|
143
143
|
}, [
|
|
144
144
|
p(s.$slots, "bottom")
|
|
145
|
-
], 2)) : C.value ?
|
|
145
|
+
], 2)) : C.value ? k("", !0) : (i(), a("div", {
|
|
146
146
|
key: 3,
|
|
147
147
|
class: l(t(e).e("main"))
|
|
148
148
|
}, [
|
|
@@ -150,7 +150,7 @@ const ee = K({
|
|
|
150
150
|
class: l([t(e).e("title"), t(e).is(r.value)])
|
|
151
151
|
}, [
|
|
152
152
|
p(s.$slots, "title", {}, () => [
|
|
153
|
-
$(
|
|
153
|
+
$(y(v.title), 1)
|
|
154
154
|
])
|
|
155
155
|
], 2),
|
|
156
156
|
u.value ? (i(), a("div", {
|
|
@@ -161,7 +161,7 @@ const ee = K({
|
|
|
161
161
|
class: l([t(e).e("description"), t(e).is(r.value)])
|
|
162
162
|
}, [
|
|
163
163
|
p(s.$slots, "description", {}, () => [
|
|
164
|
-
$(
|
|
164
|
+
$(y(v.description), 1)
|
|
165
165
|
])
|
|
166
166
|
], 2))
|
|
167
167
|
], 2))
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as m, getCurrentInstance as u, watch as a, provide as h,
|
|
1
|
+
import { defineComponent as m, getCurrentInstance as u, watch as a, provide as h, openBlock as S, createElementBlock as C, normalizeClass as v, unref as i, renderSlot as E, createVNode as N } from "vue";
|
|
2
2
|
import { CHANGE_EVENT as _ } from "../../constants/event.js";
|
|
3
3
|
import "@vueuse/core";
|
|
4
4
|
import "@vft/utils";
|
|
@@ -42,7 +42,7 @@ const T = m({
|
|
|
42
42
|
(e, t) => {
|
|
43
43
|
l(_, e, t);
|
|
44
44
|
}
|
|
45
|
-
), (e, t) => (
|
|
45
|
+
), (e, t) => (S(), C("div", {
|
|
46
46
|
class: v([i(n).b(), i(n).m(o.simple ? "simple" : o.direction)])
|
|
47
47
|
}, [
|
|
48
48
|
E(e.$slots, "default"),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as g, computed as i,
|
|
1
|
+
import { defineComponent as g, computed as i, openBlock as l, createBlock as c, unref as o, normalizeProps as x, mergeProps as r, withCtx as u, createVNode as R, normalizeClass as T, createTextVNode as B, toDisplayString as f, createCommentVNode as p, renderSlot as b } from "vue";
|
|
2
2
|
import { VftButton as v } from "../button/index.js";
|
|
3
3
|
import { VftFormItem as N } from "../form/index.js";
|
|
4
4
|
import { VftRow as V } from "../row/index.js";
|
|
@@ -44,13 +44,13 @@ const M = /* @__PURE__ */ g({
|
|
|
44
44
|
), s = i(
|
|
45
45
|
() => y(t.submitResetReverse)
|
|
46
46
|
);
|
|
47
|
-
return (e, A) => t.showCommonButton || n.value.show || s.value.show ? (
|
|
47
|
+
return (e, A) => t.showCommonButton || n.value.show || s.value.show ? (l(), c(o(V), x(r({ key: 0 }, k.value)), {
|
|
48
48
|
default: u(() => [
|
|
49
49
|
R(o(N), {
|
|
50
50
|
class: T([{ "submit-block": w.value.block }, o(m).b()])
|
|
51
51
|
}, {
|
|
52
52
|
default: u(() => [
|
|
53
|
-
t.showCommonButton && !a.value.isBehind ? (
|
|
53
|
+
t.showCommonButton && !a.value.isBehind ? (l(), c(o(v), r({ key: 0 }, a.value, {
|
|
54
54
|
class: o(m).e("common"),
|
|
55
55
|
onClick: o(C)
|
|
56
56
|
}), {
|
|
@@ -58,9 +58,9 @@ const M = /* @__PURE__ */ g({
|
|
|
58
58
|
B(f(a.value.btnText), 1)
|
|
59
59
|
]),
|
|
60
60
|
_: 1
|
|
61
|
-
}, 16, ["class", "onClick"])) :
|
|
61
|
+
}, 16, ["class", "onClick"])) : p("", !0),
|
|
62
62
|
b(e.$slots, "resetBefore"),
|
|
63
|
-
n.value.show ? (
|
|
63
|
+
n.value.show ? (l(), c(o(v), r({
|
|
64
64
|
key: 1,
|
|
65
65
|
type: n.value.type
|
|
66
66
|
}, n.value.options, {
|
|
@@ -71,9 +71,9 @@ const M = /* @__PURE__ */ g({
|
|
|
71
71
|
B(f(n.value.options.btnText), 1)
|
|
72
72
|
]),
|
|
73
73
|
_: 1
|
|
74
|
-
}, 16, ["type", "onClick", "class"])) :
|
|
74
|
+
}, 16, ["type", "onClick", "class"])) : p("", !0),
|
|
75
75
|
b(e.$slots, "submitBefore"),
|
|
76
|
-
s.value.show ? (
|
|
76
|
+
s.value.show ? (l(), c(o(v), r({
|
|
77
77
|
key: 2,
|
|
78
78
|
type: s.value.type
|
|
79
79
|
}, s.value.options, {
|
|
@@ -84,9 +84,9 @@ const M = /* @__PURE__ */ g({
|
|
|
84
84
|
B(f(s.value.options.btnText), 1)
|
|
85
85
|
]),
|
|
86
86
|
_: 1
|
|
87
|
-
}, 16, ["type", "onClick", "class"])) :
|
|
87
|
+
}, 16, ["type", "onClick", "class"])) : p("", !0),
|
|
88
88
|
b(e.$slots, "submitAfter"),
|
|
89
|
-
t.showCommonButton && a.value.isBehind ? (
|
|
89
|
+
t.showCommonButton && a.value.isBehind ? (l(), c(o(v), r({ key: 3 }, a.value, {
|
|
90
90
|
class: o(m).e("common"),
|
|
91
91
|
onClick: o(C)
|
|
92
92
|
}), {
|
|
@@ -94,13 +94,13 @@ const M = /* @__PURE__ */ g({
|
|
|
94
94
|
B(f(a.value.btnText), 1)
|
|
95
95
|
]),
|
|
96
96
|
_: 1
|
|
97
|
-
}, 16, ["class", "onClick"])) :
|
|
97
|
+
}, 16, ["class", "onClick"])) : p("", !0)
|
|
98
98
|
]),
|
|
99
99
|
_: 3
|
|
100
100
|
}, 8, ["class"])
|
|
101
101
|
]),
|
|
102
102
|
_: 3
|
|
103
|
-
}, 16)) :
|
|
103
|
+
}, 16)) : p("", !0);
|
|
104
104
|
}
|
|
105
105
|
});
|
|
106
106
|
export {
|
|
@@ -109,6 +109,7 @@ import "../../hooks/use-model-toggle/index.js";
|
|
|
109
109
|
import "@popperjs/core";
|
|
110
110
|
import "../../hooks/use-z-index/index.js";
|
|
111
111
|
import "../message/index.js";
|
|
112
|
+
import "../message-box/index.js";
|
|
112
113
|
import "../progress-i/index.js";
|
|
113
114
|
import "./index.js";
|
|
114
115
|
import { isRangePicker as Fe, isInput as Le, isDatePicker as Ve } from "./component-map.js";
|
|
@@ -118,7 +119,7 @@ function ee(e) {
|
|
|
118
119
|
}
|
|
119
120
|
const je = me({
|
|
120
121
|
inheritAttrs: !1
|
|
121
|
-
}),
|
|
122
|
+
}), Jo = /* @__PURE__ */ me({
|
|
122
123
|
...je,
|
|
123
124
|
__name: "super-form-item",
|
|
124
125
|
props: {
|
|
@@ -408,11 +409,11 @@ const je = me({
|
|
|
408
409
|
const v = s.findIndex((l) => l.min), D = s.findIndex((l) => l.max);
|
|
409
410
|
function j(l, c, x = "all") {
|
|
410
411
|
const S = s[c], B = S.isNumber ? isNaN(l) ? l?.length || 0 : Number(l) : l?.length || 0;
|
|
411
|
-
return ["min", "all"].includes(x) && B < S.min ? Promise.reject(`${g}
|
|
412
|
+
return ["min", "all"].includes(x) && B < S.min ? Promise.reject(`${g}至少${S.min}个字符`) : ["max", "all"].includes(x) && B > S.max ? Promise.reject(`${g}最多${S.max}个字符`) : Promise.resolve();
|
|
412
413
|
}
|
|
413
414
|
(v !== -1 || D !== -1) && (v !== -1 && D !== -1 && !s[v].validator && !s[v].message ? s[v].validator = (l, c) => j(c, v) : v !== -1 && !s[v].validator && !s[v].message ? s[v].validator = (l, c) => j(c, v, "min") : D !== -1 && !s[D].validator && !s[D].message && (s[D].validator = (l, c) => j(c, D, "max")));
|
|
414
415
|
const T = s.findIndex((l) => l.len);
|
|
415
|
-
if (T !== -1 && (s[T].validator = (l, c) => c?.length !== s[T].len ? Promise.reject(`${g}
|
|
416
|
+
if (T !== -1 && (s[T].validator = (l, c) => c?.length !== s[T].len ? Promise.reject(`${g}必须为${s[T].len}个字符`) : Promise.resolve()), k(m) && C) {
|
|
416
417
|
let l = m(d(P));
|
|
417
418
|
l = _(l) ? l : [l], s = s.concat(l);
|
|
418
419
|
}
|
|
@@ -668,5 +669,5 @@ const je = me({
|
|
|
668
669
|
}
|
|
669
670
|
});
|
|
670
671
|
export {
|
|
671
|
-
|
|
672
|
+
Jo as default
|
|
672
673
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as J, useAttrs as le, reactive as ue, ref as m, computed as u, unref as n, watch as d, nextTick as ie, useSlots as me,
|
|
1
|
+
import { defineComponent as J, useAttrs as le, reactive as ue, ref as m, computed as u, unref as n, watch as d, nextTick as ie, useSlots as me, openBlock as l, createBlock as i, mergeProps as B, withKeys as fe, withModifiers as ce, withCtx as h, normalizeProps as U, renderSlot as O, createElementBlock as pe, Fragment as de, renderList as W, createSlots as Be, resolveDynamicComponent as A, createCommentVNode as j, h as he } from "vue";
|
|
2
2
|
import { VftCol as ye } from "../col/index.js";
|
|
3
3
|
import { VftForm as ve } from "../form/index.js";
|
|
4
4
|
import { VftRow as be } from "../row/index.js";
|
|
@@ -314,10 +314,10 @@ const _e = J({
|
|
|
314
314
|
}, ["prevent"])),
|
|
315
315
|
onKeypress: fe(ne, ["enter"])
|
|
316
316
|
}), {
|
|
317
|
-
default: h(() => [a.value?.length ? (l(), i(n(be),
|
|
317
|
+
default: h(() => [a.value?.length ? (l(), i(n(be), U(B({
|
|
318
318
|
key: 0
|
|
319
319
|
}, f.value?.rowProps)), {
|
|
320
|
-
default: h(() => [O(e.$slots, "formHeader"), (l(!0), pe(de, null,
|
|
320
|
+
default: h(() => [O(e.$slots, "formHeader"), (l(!0), pe(de, null, W(a.value, (s) => (l(), i(Oe, {
|
|
321
321
|
key: s.field,
|
|
322
322
|
"form-action-type": H,
|
|
323
323
|
schema: s,
|
|
@@ -328,14 +328,14 @@ const _e = J({
|
|
|
328
328
|
"update-schema": n(R)
|
|
329
329
|
}, Be({
|
|
330
330
|
_: 2
|
|
331
|
-
}, [
|
|
331
|
+
}, [W(Object.keys(e.$slots), (K) => ({
|
|
332
332
|
name: K,
|
|
333
333
|
fn: h((re) => [O(e.$slots, K, B({
|
|
334
334
|
ref_for: !0
|
|
335
335
|
}, re || {}))])
|
|
336
336
|
}))]), 1032, ["schema", "form-props", "all-default-values", "form-model", "update-schema"]))), 128)), t.value?.customLayout ? (l(), i(A(E(t.value?.showActionButtonGroup && t.value?.actionInline)), {
|
|
337
337
|
key: 1
|
|
338
|
-
})) : (l(), i(n(ye),
|
|
338
|
+
})) : (l(), i(n(ye), U(B({
|
|
339
339
|
key: 0
|
|
340
340
|
}, f.value?.quickColSpan ? {
|
|
341
341
|
span: Math.ceil(24 / f.value?.quickColSpan),
|
|
@@ -345,9 +345,9 @@ const _e = J({
|
|
|
345
345
|
_: 1
|
|
346
346
|
}, 16))]),
|
|
347
347
|
_: 3
|
|
348
|
-
}, 16)) :
|
|
348
|
+
}, 16)) : j("", !0), (l(), i(A(E(t.value?.showActionButtonGroup && !t.value?.actionInline)))), O(e.$slots, "formFooter")]),
|
|
349
349
|
_: 3
|
|
350
|
-
}, 16, ["class", "model"])) :
|
|
350
|
+
}, 16, ["class", "model"])) : j("", !0);
|
|
351
351
|
}
|
|
352
352
|
});
|
|
353
353
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isBoolean as
|
|
1
|
+
import { isBoolean as a, isFunction as d, isNumber as S } from "@vft/utils";
|
|
2
2
|
import { isInput as h } from "../component-map.js";
|
|
3
3
|
import { FormCompEnum as i } from "../../../utils/form-register.js";
|
|
4
4
|
import "@vueuse/core";
|
|
@@ -6,13 +6,13 @@ import "../../config-provider/hooks/use-global-config.js";
|
|
|
6
6
|
import "vue";
|
|
7
7
|
import "lodash-es";
|
|
8
8
|
import "../../form/index.js";
|
|
9
|
-
function
|
|
9
|
+
function R(t, e = "") {
|
|
10
10
|
return e = (e || "").replace(":", "") || "", [
|
|
11
11
|
i.Input,
|
|
12
12
|
i.InputNumber,
|
|
13
13
|
i.Textarea,
|
|
14
14
|
i.AutoComplete
|
|
15
|
-
].includes(t) ?
|
|
15
|
+
].includes(t) ? `请输入${e}` : [i.Password].includes(t) ? `请输入${e || "密码"}` : [
|
|
16
16
|
i.Select,
|
|
17
17
|
i.Radio,
|
|
18
18
|
i.RadioSingle,
|
|
@@ -22,7 +22,7 @@ function b(t, e = "") {
|
|
|
22
22
|
i.ColorPicker,
|
|
23
23
|
i.Checkbox,
|
|
24
24
|
i.CheckboxButton
|
|
25
|
-
].includes(t) ?
|
|
25
|
+
].includes(t) ? `请选择${e}` : [i.CheckboxSingle].includes(t) ? `请勾选${e}` : [i.Search].includes(t) ? `请输入要搜索的内容${e ? ":" + e : ""}` : [i.InputTag].includes(t) ? `请输入标签内容${e ? ":" + e : ""}` : [i.Upload].includes(t) ? `请选择上传文件${e ? ":" + e : ""}` : [i.Slider].includes(t) ? `请拖动滑块${e ? ":" + e : ""}` : [
|
|
26
26
|
i.TimePicker,
|
|
27
27
|
i.YearPicker,
|
|
28
28
|
i.MonthPicker,
|
|
@@ -33,7 +33,7 @@ function b(t, e = "") {
|
|
|
33
33
|
i.DateTimeRangePicker,
|
|
34
34
|
i.DateRangePicker,
|
|
35
35
|
i.MonthRangePicker
|
|
36
|
-
].includes(t) ? "
|
|
36
|
+
].includes(t) ? `请选择时间${e ? ":" + e : ""}` : "";
|
|
37
37
|
}
|
|
38
38
|
function P(t, e) {
|
|
39
39
|
return t && h(t) && e && S(e) ? `${e}` : e;
|
|
@@ -41,7 +41,7 @@ function P(t, e) {
|
|
|
41
41
|
function k(t, e) {
|
|
42
42
|
const { show: n, ifShow: o } = t;
|
|
43
43
|
let u = !0, c = !0;
|
|
44
|
-
return
|
|
44
|
+
return a(n) ? u = n : d(n) && e && (u = n(e)), a(o) ? c = o : d(o) && e && (c = o(e)), { isShow: u, isIfShow: c };
|
|
45
45
|
}
|
|
46
46
|
function m(t, e) {
|
|
47
47
|
const { baseColProps: n = {}, quickColSpan: o } = e;
|
|
@@ -57,7 +57,7 @@ function q(t, e, n, o) {
|
|
|
57
57
|
const u = [];
|
|
58
58
|
let c = 0;
|
|
59
59
|
for (const r of t) {
|
|
60
|
-
const
|
|
60
|
+
const f = n && o ? {
|
|
61
61
|
field: r.field,
|
|
62
62
|
model: n,
|
|
63
63
|
values: {
|
|
@@ -65,14 +65,14 @@ function q(t, e, n, o) {
|
|
|
65
65
|
...n
|
|
66
66
|
},
|
|
67
67
|
schema: r
|
|
68
|
-
} : void 0, { isIfShow:
|
|
69
|
-
if (!
|
|
68
|
+
} : void 0, { isIfShow: l } = k(r, f);
|
|
69
|
+
if (!l)
|
|
70
70
|
continue;
|
|
71
71
|
const s = m(r, e);
|
|
72
72
|
u.push({ field: r.field, span: s }), c += s;
|
|
73
73
|
}
|
|
74
|
-
const
|
|
75
|
-
if (e.actionInline && e.showActionButtonGroup &&
|
|
74
|
+
const p = e.showCommonButton || e.showResetButton || e.showSubmitButton;
|
|
75
|
+
if (e.actionInline && e.showActionButtonGroup && p && !e.customLayout) {
|
|
76
76
|
const r = e.quickColSpan ? Math.ceil(24 / e.quickColSpan) : e.baseColProps?.span || 24;
|
|
77
77
|
c += r;
|
|
78
78
|
}
|
|
@@ -84,7 +84,7 @@ function q(t, e, n, o) {
|
|
|
84
84
|
}
|
|
85
85
|
export {
|
|
86
86
|
m as calculateSchemaSpan,
|
|
87
|
-
|
|
87
|
+
R as createPlaceholderMessage,
|
|
88
88
|
k as getSchemaShowState,
|
|
89
89
|
P as handleInputNumberValue,
|
|
90
90
|
q as willFormExceedOneRow
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../../form/index.js";
|
|
2
|
-
import { tryOnBeforeUnmount as
|
|
3
|
-
import { ref as m, unref as o, watch as
|
|
2
|
+
import { tryOnBeforeUnmount as u } from "@vueuse/core";
|
|
3
|
+
import { ref as m, unref as o, watch as f, nextTick as c } from "vue";
|
|
4
4
|
function d(s) {
|
|
5
5
|
const r = {};
|
|
6
6
|
return Object.keys(s).map((i) => {
|
|
@@ -13,12 +13,12 @@ function v(s) {
|
|
|
13
13
|
const e = o(r);
|
|
14
14
|
return e || console.error(
|
|
15
15
|
"The form instance has not been obtained, please make sure that the form has been rendered when performing the form operation!"
|
|
16
|
-
), await
|
|
16
|
+
), await c(), e;
|
|
17
17
|
}
|
|
18
|
-
function
|
|
19
|
-
|
|
18
|
+
function l(e) {
|
|
19
|
+
u(() => {
|
|
20
20
|
r.value = null, i.value = null;
|
|
21
|
-
}), !(o(i) && e === o(r)) && (r.value = e, i.value = !0,
|
|
21
|
+
}), !(o(i) && e === o(r)) && (r.value = e, i.value = !0, f(
|
|
22
22
|
() => s,
|
|
23
23
|
() => {
|
|
24
24
|
s && e && e.setProps(d(s));
|
|
@@ -29,7 +29,7 @@ function v(s) {
|
|
|
29
29
|
}
|
|
30
30
|
));
|
|
31
31
|
}
|
|
32
|
-
return [
|
|
32
|
+
return [l, {
|
|
33
33
|
scrollToField: async (e, t) => {
|
|
34
34
|
(await a()).scrollToField(e, t);
|
|
35
35
|
},
|
|
@@ -66,7 +66,7 @@ function v(s) {
|
|
|
66
66
|
getFieldValue: (e) => o(r)?.getFieldValue(e),
|
|
67
67
|
getFieldsValue: () => o(r)?.getFieldsValue(),
|
|
68
68
|
setFieldsValue: async (e, t = !0) => {
|
|
69
|
-
(await a()).setFieldsValue(e, t);
|
|
69
|
+
await c(), await (await a()).setFieldsValue(e, t);
|
|
70
70
|
},
|
|
71
71
|
appendSchemaByField: async (e, t, n) => {
|
|
72
72
|
await (await a()).appendSchemaByField(e, t, n);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as M, computed as s, ref as g, watch as T, onMounted as Q,
|
|
1
|
+
import { defineComponent as M, computed as s, ref as g, watch as T, onMounted as Q, openBlock as o, createElementBlock as v, withModifiers as R, normalizeStyle as F, normalizeClass as c, createElementVNode as p, withKeys as X, unref as i, createBlock as k, normalizeProps as I, mergeProps as w, createCommentVNode as r, toDisplayString as B, nextTick as Y } from "vue";
|
|
2
2
|
import { singleAttrToObj as O, isPromise as A, isBoolean as Z } from "@vft/utils";
|
|
3
3
|
import "../form/index.js";
|
|
4
4
|
import { VftIcon as V } from "../icon/index.js";
|