@aplus-frontend/ui 0.5.36 → 0.6.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/index.mjs +74 -72
- package/es/src/ap-field/select/index.vue.d.ts +2 -2
- package/es/src/ap-field/tree-select/index.vue.d.ts +3 -3
- package/es/src/ap-form/drawer-form/index.vue.d.ts +10 -10
- package/es/src/ap-form/interface.d.ts +31 -1
- package/es/src/ap-form/item/index.vue.d.ts +22 -22
- package/es/src/ap-form/items/checkbox/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/date/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/date-range/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/number/index.vue.d.ts +13 -13
- package/es/src/ap-form/items/radio/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/select/index.vue.d.ts +31 -31
- package/es/src/ap-form/items/switch/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/text/index.vue.d.ts +15 -15
- package/es/src/ap-form/items/text/password.vue.d.ts +15 -15
- package/es/src/ap-form/items/text-area/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/tree-select/index.vue.d.ts +35 -35
- package/es/src/ap-form/modal-form/index.vue.d.ts +10 -10
- package/es/src/ap-form/render/item.vue.d.ts +2 -2
- package/es/src/ap-form/search-form/components/popover-filter.vue.d.ts +4 -0
- package/es/src/ap-form/search-form/components/popover-filter.vue.mjs +4 -0
- package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +102 -0
- package/es/src/ap-form/search-form/components/popover-sorter/index.vue.d.ts +4 -0
- package/es/src/ap-form/search-form/components/popover-sorter/index.vue.mjs +4 -0
- package/es/src/ap-form/search-form/components/popover-sorter/index.vue2.mjs +128 -0
- package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue.d.ts +6 -0
- package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue.mjs +4 -0
- package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.mjs +39 -0
- package/es/src/ap-form/search-form/hooks/use-count-per-row.d.ts +3 -0
- package/es/src/ap-form/search-form/hooks/use-count-per-row.mjs +17 -0
- package/es/src/ap-form/search-form/index.vue.d.ts +14 -16
- package/es/src/ap-form/search-form/index.vue.mjs +127 -127
- package/es/src/ap-grid/editable/form-item.vue.mjs +62 -56
- package/es/src/ap-grid/editable/index.vue.mjs +82 -76
- package/es/src/ap-grid/index.vue.mjs +97 -93
- package/es/src/ap-info-layout/ApInfoLayout.vue.mjs +21 -16
- package/es/src/ap-list/index.vue.mjs +145 -138
- package/es/src/ap-list/interface.d.ts +4 -0
- package/es/src/ap-table/ap-table.vue2.mjs +108 -104
- package/es/src/ap-table/constants.d.ts +161 -161
- package/es/src/ap-table/context.d.ts +5 -0
- package/es/src/ap-table/context.mjs +13 -5
- package/es/src/ap-table/hooks/use-table-paging-ng.mjs +28 -30
- package/es/src/ap-table/utils.d.ts +147 -147
- package/es/src/ap-upload/apUpload.vue.d.ts +8 -8
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +14 -1
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +65 -51
- package/es/src/business/ap-batch-action-group/index.d.ts +3 -1
- package/es/src/business/ap-size-input/ApSizeInput.d.ts +1 -1
- package/es/src/business/ap-size-input/index.d.ts +3 -3
- package/es/src/business/ap-table-modal/index.d.ts +15 -15
- package/es/src/business/ap-table-modal/table-modal.vue.d.ts +5 -5
- package/es/src/business/ap-view/ap-view.vue.d.ts +6 -0
- package/es/src/business/ap-view/ap-view.vue.mjs +4 -0
- package/es/src/business/ap-view/ap-view.vue2.mjs +171 -0
- package/es/src/business/ap-view/components/main-button-content.vue.d.ts +831 -0
- package/es/src/business/ap-view/components/main-button-content.vue.mjs +4 -0
- package/es/src/business/ap-view/components/main-button-content.vue2.mjs +175 -0
- package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +832 -0
- package/es/src/business/ap-view/components/menu-list-content.vue.mjs +4 -0
- package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +156 -0
- package/es/src/business/ap-view/hooks/use-view-provide.d.ts +14 -0
- package/es/src/business/ap-view/hooks/use-view-provide.mjs +8 -0
- package/es/src/business/ap-view/icons/line-delete.vue.d.ts +3 -0
- package/es/src/business/ap-view/icons/line-delete.vue.mjs +29 -0
- package/es/src/business/ap-view/icons/line-down.vue.d.ts +3 -0
- package/es/src/business/ap-view/icons/line-down.vue.mjs +29 -0
- package/es/src/business/ap-view/icons/line-eye.vue.d.ts +3 -0
- package/es/src/business/ap-view/icons/line-eye.vue.mjs +29 -0
- package/es/src/business/ap-view/index.d.ts +27 -0
- package/es/src/business/ap-view/index.mjs +8 -0
- package/es/src/business/ap-view/interface.d.ts +54 -0
- package/es/src/business/ap-view/interface.mjs +1 -0
- package/es/src/business/ap-view/style/css.d.ts +0 -0
- package/es/src/business/ap-view/style/css.js +1 -0
- package/es/src/business/ap-view/style/index.d.ts +0 -0
- package/es/src/business/ap-view/style/index.js +1 -0
- package/es/src/business/ap-view/utils/enum.d.ts +1 -0
- package/es/src/business/ap-view/utils/enum.mjs +4 -0
- package/es/src/business/ap-view/utils/uuid.d.ts +5 -0
- package/es/src/business/ap-view/utils/uuid.mjs +22 -0
- package/es/src/business/batch-input-group/form-item.vue.d.ts +3 -3
- package/es/src/business/batch-input-group/index.vue.d.ts +6 -6
- package/es/src/business/index.d.ts +1 -0
- package/es/src/business/index.mjs +25 -23
- package/es/src/config-provider/config-provider-props.d.ts +5 -0
- package/es/src/config-provider/config-provider-props.mjs +4 -0
- package/es/src/config-provider/config-provider.d.ts +25 -1
- package/es/src/config-provider/config-provider.mjs +21 -20
- package/es/src/config-provider/css-var.d.ts +14 -0
- package/es/src/config-provider/css-var.mjs +40 -12
- package/es/src/config-provider/hooks/use-global-config.d.ts +5 -0
- package/es/src/config-provider/index.d.ts +89 -3
- package/es/src/full-screen/interface.d.ts +1 -1
- package/es/src/index.mjs +61 -59
- package/es/src/locale/lang/en.mjs +22 -1
- package/es/src/locale/lang/zh-cn.mjs +22 -1
- package/es/src/path-map.mjs +2 -1
- package/es/src/utils/config-provider-preset.d.ts +4 -4
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +6 -6
- package/lib/index.js +1 -1
- package/lib/src/ap-field/select/index.vue.d.ts +2 -2
- package/lib/src/ap-field/tree-select/index.vue.d.ts +3 -3
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +10 -10
- package/lib/src/ap-form/interface.d.ts +31 -1
- package/lib/src/ap-form/item/index.vue.d.ts +22 -22
- package/lib/src/ap-form/items/checkbox/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/date/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/date-range/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/number/index.vue.d.ts +13 -13
- package/lib/src/ap-form/items/radio/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/select/index.vue.d.ts +31 -31
- package/lib/src/ap-form/items/switch/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/text/index.vue.d.ts +15 -15
- package/lib/src/ap-form/items/text/password.vue.d.ts +15 -15
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/tree-select/index.vue.d.ts +35 -35
- package/lib/src/ap-form/modal-form/index.vue.d.ts +10 -10
- package/lib/src/ap-form/render/item.vue.d.ts +2 -2
- package/lib/src/ap-form/search-form/components/popover-filter.vue.d.ts +4 -0
- package/lib/src/ap-form/search-form/components/popover-filter.vue.js +1 -0
- package/lib/src/ap-form/search-form/components/popover-filter.vue2.js +1 -0
- package/lib/src/ap-form/search-form/components/popover-sorter/index.vue.d.ts +4 -0
- package/lib/src/ap-form/search-form/components/popover-sorter/index.vue.js +1 -0
- package/lib/src/ap-form/search-form/components/popover-sorter/index.vue2.js +1 -0
- package/lib/src/ap-form/search-form/components/popover-sorter/sortable-item.vue.d.ts +6 -0
- package/lib/src/ap-form/search-form/components/popover-sorter/sortable-item.vue.js +1 -0
- package/lib/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.js +1 -0
- package/lib/src/ap-form/search-form/hooks/use-count-per-row.d.ts +3 -0
- package/lib/src/ap-form/search-form/hooks/use-count-per-row.js +1 -0
- package/lib/src/ap-form/search-form/index.vue.d.ts +14 -16
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
- package/lib/src/ap-grid/editable/index.vue.js +1 -1
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-info-layout/ApInfoLayout.vue.js +1 -1
- package/lib/src/ap-list/index.vue.js +1 -1
- package/lib/src/ap-list/interface.d.ts +4 -0
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/constants.d.ts +161 -161
- package/lib/src/ap-table/context.d.ts +5 -0
- package/lib/src/ap-table/context.js +1 -1
- package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
- package/lib/src/ap-table/utils.d.ts +147 -147
- package/lib/src/ap-upload/apUpload.vue.d.ts +8 -8
- package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +14 -1
- package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
- package/lib/src/business/ap-batch-action-group/index.d.ts +3 -1
- package/lib/src/business/ap-size-input/ApSizeInput.d.ts +1 -1
- package/lib/src/business/ap-size-input/index.d.ts +3 -3
- package/lib/src/business/ap-table-modal/index.d.ts +15 -15
- package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +5 -5
- package/lib/src/business/ap-view/ap-view.vue.d.ts +6 -0
- package/lib/src/business/ap-view/ap-view.vue.js +1 -0
- package/lib/src/business/ap-view/ap-view.vue2.js +1 -0
- package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +831 -0
- package/lib/src/business/ap-view/components/main-button-content.vue.js +1 -0
- package/lib/src/business/ap-view/components/main-button-content.vue2.js +1 -0
- package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +832 -0
- package/lib/src/business/ap-view/components/menu-list-content.vue.js +1 -0
- package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -0
- package/lib/src/business/ap-view/hooks/use-view-provide.d.ts +14 -0
- package/lib/src/business/ap-view/hooks/use-view-provide.js +1 -0
- package/lib/src/business/ap-view/icons/line-delete.vue.d.ts +3 -0
- package/lib/src/business/ap-view/icons/line-delete.vue.js +1 -0
- package/lib/src/business/ap-view/icons/line-down.vue.d.ts +3 -0
- package/lib/src/business/ap-view/icons/line-down.vue.js +1 -0
- package/lib/src/business/ap-view/icons/line-eye.vue.d.ts +3 -0
- package/lib/src/business/ap-view/icons/line-eye.vue.js +1 -0
- package/lib/src/business/ap-view/index.d.ts +27 -0
- package/lib/src/business/ap-view/index.js +1 -0
- package/lib/src/business/ap-view/interface.d.ts +54 -0
- package/lib/src/business/ap-view/interface.js +1 -0
- package/lib/src/business/ap-view/style/css.cjs +1 -0
- package/lib/src/business/ap-view/style/css.d.ts +0 -0
- package/lib/src/business/ap-view/style/index.cjs +1 -0
- package/lib/src/business/ap-view/style/index.d.ts +0 -0
- package/lib/src/business/ap-view/utils/enum.d.ts +1 -0
- package/lib/src/business/ap-view/utils/enum.js +1 -0
- package/lib/src/business/ap-view/utils/uuid.d.ts +5 -0
- package/lib/src/business/ap-view/utils/uuid.js +1 -0
- package/lib/src/business/batch-input-group/form-item.vue.d.ts +3 -3
- package/lib/src/business/batch-input-group/index.vue.d.ts +6 -6
- package/lib/src/business/index.d.ts +1 -0
- package/lib/src/business/index.js +1 -1
- package/lib/src/config-provider/config-provider-props.d.ts +5 -0
- package/lib/src/config-provider/config-provider-props.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +25 -1
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/css-var.d.ts +14 -0
- package/lib/src/config-provider/css-var.js +1 -1
- package/lib/src/config-provider/hooks/use-global-config.d.ts +5 -0
- package/lib/src/config-provider/index.d.ts +89 -3
- package/lib/src/full-screen/interface.d.ts +1 -1
- package/lib/src/index.js +1 -1
- package/lib/src/locale/lang/en.js +1 -1
- package/lib/src/locale/lang/zh-cn.js +1 -1
- package/lib/src/path-map.js +1 -1
- package/lib/src/utils/config-provider-preset.d.ts +4 -4
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +6 -6
- package/package.json +7 -7
- package/theme/ap-action/item-dropdown.css +28 -0
- package/theme/ap-action/item-dropdown.less +1 -1
- package/theme/ap-action/item.css +35 -1
- package/theme/ap-action/item.less +1 -2
- package/theme/ap-appendix/ap-appendix.css +28 -0
- package/theme/ap-attachment/ap-attachment.css +28 -0
- package/theme/ap-batch-action/ap-batch-action.css +28 -0
- package/theme/ap-button/ap-button.css +28 -0
- package/theme/ap-card/ap-card.css +28 -0
- package/theme/ap-descriptions/ap-descriptions.css +28 -0
- package/theme/ap-download/ap-download.css +28 -0
- package/theme/ap-expand-alert/ap-expand-alert.css +28 -0
- package/theme/ap-field/checkbox.css +28 -0
- package/theme/ap-field/index.css +28 -0
- package/theme/ap-field/number.css +28 -0
- package/theme/ap-field/radio.css +28 -0
- package/theme/ap-field/text-area.css +28 -0
- package/theme/ap-form/ap-form-item-group.css +28 -0
- package/theme/ap-form/ap-form-item.css +28 -0
- package/theme/ap-form/drawer-form.css +28 -0
- package/theme/ap-form/index.css +169 -0
- package/theme/ap-form/item-text-group.css +28 -0
- package/theme/ap-form/item-text.css +28 -0
- package/theme/ap-form/modal-form.css +28 -0
- package/theme/ap-form/search-form-sorter.css +120 -0
- package/theme/ap-form/search-form-sorter.less +71 -0
- package/theme/ap-form/search-form.css +169 -0
- package/theme/ap-form/search-form.less +56 -0
- package/theme/ap-grid/editable.css +28 -0
- package/theme/ap-grid/index.css +176 -1
- package/theme/ap-group-search/ap-extension-select.css +28 -0
- package/theme/ap-group-search/ap-group-search.css +28 -0
- package/theme/ap-group-search/ap-popover-select.css +28 -0
- package/theme/ap-image/ap-image.css +28 -0
- package/theme/ap-input-radio/ap-input-radio.css +28 -0
- package/theme/ap-label/ap-label.css +28 -0
- package/theme/ap-ladder/ap-ladder.css +28 -0
- package/theme/ap-layout/ap-info-layout.css +28 -0
- package/theme/ap-list/index.css +66 -4
- package/theme/ap-list/index.less +41 -3
- package/theme/ap-product-info/ap-product-info.css +28 -0
- package/theme/ap-select-layout/ap-select-layout.css +28 -0
- package/theme/ap-size-input/ap-size-input.css +28 -0
- package/theme/ap-status/ap-status.css +28 -0
- package/theme/ap-summary/index.css +28 -0
- package/theme/ap-table/ap-table-index.css +28 -0
- package/theme/ap-table/ap-table-paragraph-ellipsis.css +28 -0
- package/theme/ap-table/ap-table.css +190 -13
- package/theme/ap-table/ap-table.less +0 -1
- package/theme/ap-table/setting/index.css +42 -0
- package/theme/ap-table/setting/modal.css +36 -0
- package/theme/ap-table/setting/modal.less +1 -0
- package/theme/ap-table/setting/select-group.css +28 -0
- package/theme/ap-table/setting/sortable-item-meta.css +28 -0
- package/theme/ap-table/setting/sortable-item.css +28 -0
- package/theme/ap-table/setting/sorter.css +34 -0
- package/theme/ap-table/setting/sorter.less +1 -2
- package/theme/ap-table-modal/index.css +190 -13
- package/theme/ap-tag/ap-tag-group.css +28 -0
- package/theme/ap-tag/ap-tag.css +28 -0
- package/theme/ap-title/ap-title.css +28 -0
- package/theme/ap-upload/index.css +28 -0
- package/theme/ap-upload/multiple-file.css +28 -0
- package/theme/ap-upload/picture.css +28 -0
- package/theme/ap-upload/single-file.css +28 -0
- package/theme/ap-upload/upload.css +28 -0
- package/theme/ap-upload-single/index.css +28 -0
- package/theme/ap-view/ap-view.css +149 -0
- package/theme/ap-view/ap-view.less +128 -0
- package/theme/batch-input-group/index.css +28 -0
- package/theme/batch-input-group/popover-input.css +28 -0
- package/theme/check-card/index.css +49 -1
- package/theme/check-card/index.less +3 -4
- package/theme/editable-table/index.css +176 -1
- package/theme/full-screen/index.css +28 -0
- package/theme/index.css +378 -19
- package/theme/index.less +1 -0
- package/theme/mask/index.css +28 -0
- package/theme/mixins/config.less +1 -0
- package/theme/mixins/mixins.css +28 -0
- package/theme/mixins/mixins.less +35 -0
- package/theme/scroll-bar/index.css +28 -0
- package/theme/scroll-view/index.css +28 -0
- package/theme/splitter/index.css +28 -0
- package/theme/text/group.css +28 -0
- package/theme/text/index.css +36 -1
- package/theme/text/index.less +1 -1
- package/theme/work-order-modal/index.css +28 -0
|
@@ -71,22 +71,21 @@ declare function __VLS_template(): {
|
|
|
71
71
|
readonly animation?: string | undefined;
|
|
72
72
|
readonly children?: VueNode[] | undefined;
|
|
73
73
|
readonly bordered?: boolean | undefined;
|
|
74
|
-
readonly getPopupContainer?: RenderDOMFunc | undefined;
|
|
75
74
|
readonly prefixCls?: string | undefined;
|
|
76
|
-
readonly virtual?: boolean | undefined;
|
|
77
|
-
readonly dropdownMatchSelectWidth?: number | boolean | undefined;
|
|
78
|
-
readonly showSearch?: boolean | undefined;
|
|
79
|
-
readonly status?: "" | "error" | "warning" | undefined;
|
|
80
|
-
readonly transitionName?: string | undefined;
|
|
81
|
-
readonly id?: string | undefined;
|
|
82
|
-
readonly placeholder?: any;
|
|
83
|
-
readonly tabindex?: number | undefined;
|
|
84
75
|
readonly loading?: boolean | undefined;
|
|
76
|
+
readonly transitionName?: string | undefined;
|
|
85
77
|
readonly autofocus?: boolean | undefined;
|
|
86
78
|
readonly 'onUpdate:value'?: (((value: any) => void) & ((...args: any[]) => any)) | undefined;
|
|
79
|
+
readonly getPopupContainer?: RenderDOMFunc | undefined;
|
|
80
|
+
readonly placeholder?: any;
|
|
87
81
|
readonly defaultValue?: unknown;
|
|
82
|
+
readonly virtual?: boolean | undefined;
|
|
83
|
+
readonly dropdownMatchSelectWidth?: number | boolean | undefined;
|
|
84
|
+
readonly id?: string | undefined;
|
|
85
|
+
readonly status?: "" | "error" | "warning" | undefined;
|
|
88
86
|
readonly clearIcon?: any;
|
|
89
87
|
readonly allowClear?: boolean | undefined;
|
|
88
|
+
readonly tabindex?: number | undefined;
|
|
90
89
|
readonly dropdownClassName?: string | undefined;
|
|
91
90
|
readonly dropdownAlign?: AlignType | undefined;
|
|
92
91
|
readonly defaultOpen?: boolean | undefined;
|
|
@@ -101,6 +100,7 @@ declare function __VLS_template(): {
|
|
|
101
100
|
readonly fieldNames?: FieldNames | undefined;
|
|
102
101
|
readonly dropdownStyle?: CSSProperties | undefined;
|
|
103
102
|
readonly dropdownRender?: DropdownRender | undefined;
|
|
103
|
+
readonly showSearch?: boolean | undefined;
|
|
104
104
|
readonly searchValue?: string | undefined;
|
|
105
105
|
readonly onInputKeyDown?: ((e: KeyboardEvent) => void) | undefined;
|
|
106
106
|
readonly removeIcon?: any;
|
|
@@ -714,13 +714,13 @@ declare function __VLS_template(): {
|
|
|
714
714
|
multiple: boolean;
|
|
715
715
|
disabled: boolean;
|
|
716
716
|
bordered: boolean;
|
|
717
|
-
virtual: boolean;
|
|
718
|
-
dropdownMatchSelectWidth: number | boolean;
|
|
719
|
-
showSearch: boolean;
|
|
720
717
|
loading: boolean;
|
|
721
718
|
autofocus: boolean;
|
|
719
|
+
virtual: boolean;
|
|
720
|
+
dropdownMatchSelectWidth: number | boolean;
|
|
722
721
|
allowClear: boolean;
|
|
723
722
|
defaultOpen: boolean;
|
|
723
|
+
showSearch: boolean;
|
|
724
724
|
showArrow: boolean;
|
|
725
725
|
autoClearSearchValue: boolean;
|
|
726
726
|
labelInValue: boolean;
|
|
@@ -754,13 +754,13 @@ declare function __VLS_template(): {
|
|
|
754
754
|
multiple: boolean;
|
|
755
755
|
disabled: boolean;
|
|
756
756
|
bordered: boolean;
|
|
757
|
-
virtual: boolean;
|
|
758
|
-
dropdownMatchSelectWidth: number | boolean;
|
|
759
|
-
showSearch: boolean;
|
|
760
757
|
loading: boolean;
|
|
761
758
|
autofocus: boolean;
|
|
759
|
+
virtual: boolean;
|
|
760
|
+
dropdownMatchSelectWidth: number | boolean;
|
|
762
761
|
allowClear: boolean;
|
|
763
762
|
defaultOpen: boolean;
|
|
763
|
+
showSearch: boolean;
|
|
764
764
|
showArrow: boolean;
|
|
765
765
|
autoClearSearchValue: boolean;
|
|
766
766
|
labelInValue: boolean;
|
|
@@ -770,7 +770,7 @@ declare function __VLS_template(): {
|
|
|
770
770
|
emptyText: string;
|
|
771
771
|
}> & Omit<Readonly< ApFieldTreeSelectProps> & Readonly<{
|
|
772
772
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
773
|
-
}>, "blur" | "focus" | "request" | ("mode" | "open" | "multiple" | "disabled" | "bordered" | "
|
|
773
|
+
}>, "blur" | "focus" | "request" | ("mode" | "open" | "multiple" | "disabled" | "bordered" | "loading" | "autofocus" | "virtual" | "dropdownMatchSelectWidth" | "allowClear" | "defaultOpen" | "showSearch" | "showArrow" | "autoClearSearchValue" | "labelInValue" | "treeCheckable" | "treeDefaultExpandAll" | "treeCheckStrictly" | "emptyText")> & ShallowUnwrapRef<{
|
|
774
774
|
blur: () => void;
|
|
775
775
|
focus: () => void;
|
|
776
776
|
request: (currentNode?: LegacyDataNode, clear?: boolean) => Promise<void>;
|
|
@@ -811,12 +811,12 @@ declare const __VLS_component: DefineComponent<ApFormItemTreeSelectProps, {
|
|
|
811
811
|
request: (currentNode?: LegacyDataNode, clear?: boolean) => void;
|
|
812
812
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemTreeSelectProps> & Readonly<{}>, {
|
|
813
813
|
disabled: boolean;
|
|
814
|
-
field: Omit< ApFieldTreeSelectProps, "value" | "onUpdate:value">;
|
|
815
|
-
colon: boolean;
|
|
816
|
-
required: boolean;
|
|
817
814
|
hasFeedback: boolean;
|
|
815
|
+
colon: boolean;
|
|
818
816
|
autoLink: boolean;
|
|
817
|
+
required: boolean;
|
|
819
818
|
validateFirst: boolean;
|
|
819
|
+
field: Omit< ApFieldTreeSelectProps, "value" | "onUpdate:value">;
|
|
820
820
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
821
821
|
treeSelectRef: ({
|
|
822
822
|
$: ComponentInternalInstance;
|
|
@@ -845,22 +845,21 @@ declare const __VLS_component: DefineComponent<ApFormItemTreeSelectProps, {
|
|
|
845
845
|
readonly animation?: string | undefined;
|
|
846
846
|
readonly children?: VueNode[] | undefined;
|
|
847
847
|
readonly bordered?: boolean | undefined;
|
|
848
|
-
readonly getPopupContainer?: RenderDOMFunc | undefined;
|
|
849
848
|
readonly prefixCls?: string | undefined;
|
|
850
|
-
readonly virtual?: boolean | undefined;
|
|
851
|
-
readonly dropdownMatchSelectWidth?: number | boolean | undefined;
|
|
852
|
-
readonly showSearch?: boolean | undefined;
|
|
853
|
-
readonly status?: "" | "error" | "warning" | undefined;
|
|
854
|
-
readonly transitionName?: string | undefined;
|
|
855
|
-
readonly id?: string | undefined;
|
|
856
|
-
readonly placeholder?: any;
|
|
857
|
-
readonly tabindex?: number | undefined;
|
|
858
849
|
readonly loading?: boolean | undefined;
|
|
850
|
+
readonly transitionName?: string | undefined;
|
|
859
851
|
readonly autofocus?: boolean | undefined;
|
|
860
852
|
readonly 'onUpdate:value'?: (((value: any) => void) & ((...args: any[]) => any)) | undefined;
|
|
853
|
+
readonly getPopupContainer?: RenderDOMFunc | undefined;
|
|
854
|
+
readonly placeholder?: any;
|
|
861
855
|
readonly defaultValue?: unknown;
|
|
856
|
+
readonly virtual?: boolean | undefined;
|
|
857
|
+
readonly dropdownMatchSelectWidth?: number | boolean | undefined;
|
|
858
|
+
readonly id?: string | undefined;
|
|
859
|
+
readonly status?: "" | "error" | "warning" | undefined;
|
|
862
860
|
readonly clearIcon?: any;
|
|
863
861
|
readonly allowClear?: boolean | undefined;
|
|
862
|
+
readonly tabindex?: number | undefined;
|
|
864
863
|
readonly dropdownClassName?: string | undefined;
|
|
865
864
|
readonly dropdownAlign?: AlignType | undefined;
|
|
866
865
|
readonly defaultOpen?: boolean | undefined;
|
|
@@ -875,6 +874,7 @@ declare const __VLS_component: DefineComponent<ApFormItemTreeSelectProps, {
|
|
|
875
874
|
readonly fieldNames?: FieldNames | undefined;
|
|
876
875
|
readonly dropdownStyle?: CSSProperties | undefined;
|
|
877
876
|
readonly dropdownRender?: DropdownRender | undefined;
|
|
877
|
+
readonly showSearch?: boolean | undefined;
|
|
878
878
|
readonly searchValue?: string | undefined;
|
|
879
879
|
readonly onInputKeyDown?: ((e: KeyboardEvent) => void) | undefined;
|
|
880
880
|
readonly removeIcon?: any;
|
|
@@ -1488,13 +1488,13 @@ declare const __VLS_component: DefineComponent<ApFormItemTreeSelectProps, {
|
|
|
1488
1488
|
multiple: boolean;
|
|
1489
1489
|
disabled: boolean;
|
|
1490
1490
|
bordered: boolean;
|
|
1491
|
-
virtual: boolean;
|
|
1492
|
-
dropdownMatchSelectWidth: number | boolean;
|
|
1493
|
-
showSearch: boolean;
|
|
1494
1491
|
loading: boolean;
|
|
1495
1492
|
autofocus: boolean;
|
|
1493
|
+
virtual: boolean;
|
|
1494
|
+
dropdownMatchSelectWidth: number | boolean;
|
|
1496
1495
|
allowClear: boolean;
|
|
1497
1496
|
defaultOpen: boolean;
|
|
1497
|
+
showSearch: boolean;
|
|
1498
1498
|
showArrow: boolean;
|
|
1499
1499
|
autoClearSearchValue: boolean;
|
|
1500
1500
|
labelInValue: boolean;
|
|
@@ -1528,13 +1528,13 @@ declare const __VLS_component: DefineComponent<ApFormItemTreeSelectProps, {
|
|
|
1528
1528
|
multiple: boolean;
|
|
1529
1529
|
disabled: boolean;
|
|
1530
1530
|
bordered: boolean;
|
|
1531
|
-
virtual: boolean;
|
|
1532
|
-
dropdownMatchSelectWidth: number | boolean;
|
|
1533
|
-
showSearch: boolean;
|
|
1534
1531
|
loading: boolean;
|
|
1535
1532
|
autofocus: boolean;
|
|
1533
|
+
virtual: boolean;
|
|
1534
|
+
dropdownMatchSelectWidth: number | boolean;
|
|
1536
1535
|
allowClear: boolean;
|
|
1537
1536
|
defaultOpen: boolean;
|
|
1537
|
+
showSearch: boolean;
|
|
1538
1538
|
showArrow: boolean;
|
|
1539
1539
|
autoClearSearchValue: boolean;
|
|
1540
1540
|
labelInValue: boolean;
|
|
@@ -1544,7 +1544,7 @@ declare const __VLS_component: DefineComponent<ApFormItemTreeSelectProps, {
|
|
|
1544
1544
|
emptyText: string;
|
|
1545
1545
|
}> & Omit<Readonly< ApFieldTreeSelectProps> & Readonly<{
|
|
1546
1546
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
1547
|
-
}>, "blur" | "focus" | "request" | ("mode" | "open" | "multiple" | "disabled" | "bordered" | "
|
|
1547
|
+
}>, "blur" | "focus" | "request" | ("mode" | "open" | "multiple" | "disabled" | "bordered" | "loading" | "autofocus" | "virtual" | "dropdownMatchSelectWidth" | "allowClear" | "defaultOpen" | "showSearch" | "showArrow" | "autoClearSearchValue" | "labelInValue" | "treeCheckable" | "treeDefaultExpandAll" | "treeCheckStrictly" | "emptyText")> & ShallowUnwrapRef<{
|
|
1548
1548
|
blur: () => void;
|
|
1549
1549
|
focus: () => void;
|
|
1550
1550
|
request: (currentNode?: LegacyDataNode, clear?: boolean) => Promise<void>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ApFormModalFormProps } from '../interface';
|
|
2
2
|
import { VNode, ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent, CSSProperties } from 'vue';
|
|
3
|
-
import { InternalNamePath, NamePath, ValidateOptions,
|
|
3
|
+
import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity } from '@aplus-frontend/antdv/es/form/interface';
|
|
4
4
|
import { Recordable } from '../../type';
|
|
5
5
|
import { ButtonSize, SizeType, ButtonType, ButtonShape } from '@aplus-frontend/antdv/es/button';
|
|
6
|
-
import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
7
6
|
import { ColSize } from '@aplus-frontend/antdv/es/grid';
|
|
8
7
|
import { RuleObject } from '@aplus-frontend/antdv/es/form';
|
|
8
|
+
import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
9
9
|
import { Options } from '../../../node_modules/scroll-into-view-if-needed';
|
|
10
10
|
import { VueTypeDef, VueTypeValidableDef } from '../../../node_modules/vue-types';
|
|
11
11
|
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
@@ -32,10 +32,6 @@ declare function __VLS_template(): {
|
|
|
32
32
|
readonly layout?: string | undefined;
|
|
33
33
|
readonly disabled?: boolean | undefined;
|
|
34
34
|
readonly prefixCls?: string | undefined;
|
|
35
|
-
readonly name?: string | undefined;
|
|
36
|
-
readonly validateMessages?: ValidateMessages | undefined;
|
|
37
|
-
readonly requiredMark?: "" | RequiredMark | undefined;
|
|
38
|
-
readonly colon?: boolean | undefined;
|
|
39
35
|
readonly labelCol?: (Partial< ExtractPropTypes<{
|
|
40
36
|
span: (StringConstructor | NumberConstructor)[];
|
|
41
37
|
order: (StringConstructor | NumberConstructor)[];
|
|
@@ -102,13 +98,17 @@ declare function __VLS_template(): {
|
|
|
102
98
|
prefixCls: StringConstructor;
|
|
103
99
|
flex: (StringConstructor | NumberConstructor)[];
|
|
104
100
|
}>> & HTMLAttributes) | undefined;
|
|
101
|
+
readonly colon?: boolean | undefined;
|
|
105
102
|
readonly labelAlign?: FormLabelAlign | undefined;
|
|
103
|
+
readonly name?: string | undefined;
|
|
106
104
|
readonly rules?: {
|
|
107
105
|
[k: string]: RuleObject | RuleObject[];
|
|
108
106
|
} | undefined;
|
|
109
107
|
readonly validateTrigger?: string | string[] | undefined;
|
|
110
108
|
readonly labelWrap?: boolean | undefined;
|
|
109
|
+
readonly requiredMark?: "" | RequiredMark | undefined;
|
|
111
110
|
readonly hideRequiredMark?: boolean | undefined;
|
|
111
|
+
readonly validateMessages?: ValidateMessages | undefined;
|
|
112
112
|
readonly validateOnRuleChange?: boolean | undefined;
|
|
113
113
|
readonly scrollToFirstError?: boolean | Options<any> | undefined;
|
|
114
114
|
readonly onFieldsChange?: ((changedFields: FieldData[], allFields: FieldData[]) => void) | undefined;
|
|
@@ -1162,10 +1162,6 @@ declare const __VLS_component: DefineComponent<ApFormModalFormProps, {
|
|
|
1162
1162
|
readonly layout?: string | undefined;
|
|
1163
1163
|
readonly disabled?: boolean | undefined;
|
|
1164
1164
|
readonly prefixCls?: string | undefined;
|
|
1165
|
-
readonly name?: string | undefined;
|
|
1166
|
-
readonly validateMessages?: ValidateMessages | undefined;
|
|
1167
|
-
readonly requiredMark?: "" | RequiredMark | undefined;
|
|
1168
|
-
readonly colon?: boolean | undefined;
|
|
1169
1165
|
readonly labelCol?: (Partial< ExtractPropTypes<{
|
|
1170
1166
|
span: (StringConstructor | NumberConstructor)[];
|
|
1171
1167
|
order: (StringConstructor | NumberConstructor)[];
|
|
@@ -1232,13 +1228,17 @@ declare const __VLS_component: DefineComponent<ApFormModalFormProps, {
|
|
|
1232
1228
|
prefixCls: StringConstructor;
|
|
1233
1229
|
flex: (StringConstructor | NumberConstructor)[];
|
|
1234
1230
|
}>> & HTMLAttributes) | undefined;
|
|
1231
|
+
readonly colon?: boolean | undefined;
|
|
1235
1232
|
readonly labelAlign?: FormLabelAlign | undefined;
|
|
1233
|
+
readonly name?: string | undefined;
|
|
1236
1234
|
readonly rules?: {
|
|
1237
1235
|
[k: string]: RuleObject | RuleObject[];
|
|
1238
1236
|
} | undefined;
|
|
1239
1237
|
readonly validateTrigger?: string | string[] | undefined;
|
|
1240
1238
|
readonly labelWrap?: boolean | undefined;
|
|
1239
|
+
readonly requiredMark?: "" | RequiredMark | undefined;
|
|
1241
1240
|
readonly hideRequiredMark?: boolean | undefined;
|
|
1241
|
+
readonly validateMessages?: ValidateMessages | undefined;
|
|
1242
1242
|
readonly validateOnRuleChange?: boolean | undefined;
|
|
1243
1243
|
readonly scrollToFirstError?: boolean | Options<any> | undefined;
|
|
1244
1244
|
readonly onFieldsChange?: ((changedFields: FieldData[], allFields: FieldData[]) => void) | undefined;
|
|
@@ -15,10 +15,10 @@ declare function __VLS_template(): {
|
|
|
15
15
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
16
16
|
declare const __VLS_component: DefineComponent<ApFormItemProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ApFormItemProps> & Readonly<{}>, {
|
|
17
17
|
bordered: boolean;
|
|
18
|
-
colon: boolean;
|
|
19
|
-
required: boolean;
|
|
20
18
|
hasFeedback: boolean;
|
|
19
|
+
colon: boolean;
|
|
21
20
|
autoLink: boolean;
|
|
21
|
+
required: boolean;
|
|
22
22
|
validateFirst: boolean;
|
|
23
23
|
valuePropName: string;
|
|
24
24
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ApFormSearchFormPopoverFilterProps } from '../../interface';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
declare const _default: DefineComponent<ApFormSearchFormPopoverFilterProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormSearchFormPopoverFilterProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
4
|
+
export default _default;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { defineComponent as y, ref as k, createBlock as s, openBlock as p, unref as e, withCtx as o, createVNode as t, createElementVNode as d, normalizeClass as c, createElementBlock as C, Fragment as F, renderList as _, resolveDynamicComponent as b, createTextVNode as f, toDisplayString as v } from "vue";
|
|
2
|
+
import { Popover as B, Tooltip as h, Button as u, Row as x, Col as L, Divider as N, Flex as S } from "@aplus-frontend/antdv";
|
|
3
|
+
import { IconApFilterOutlined as w } from "@aplus-frontend/icon";
|
|
4
|
+
import "../../../config-provider/index.mjs";
|
|
5
|
+
import { useNamespace as D } from "../../../config-provider/hooks/use-namespace.mjs";
|
|
6
|
+
import { useLocale as P } from "../../../config-provider/hooks/use-locale.mjs";
|
|
7
|
+
const O = /* @__PURE__ */ y({
|
|
8
|
+
name: "ApFormSearchFormPopoverFilter",
|
|
9
|
+
__name: "popover-filter",
|
|
10
|
+
props: {
|
|
11
|
+
config: {},
|
|
12
|
+
onSubmit: { type: Function },
|
|
13
|
+
submitLoading: { type: Boolean }
|
|
14
|
+
},
|
|
15
|
+
setup(T) {
|
|
16
|
+
const { e: a } = D("ap-form-search-form"), { t: i } = P(), m = k(!1);
|
|
17
|
+
function g(n) {
|
|
18
|
+
return n.closest(".ant-form") || document.body;
|
|
19
|
+
}
|
|
20
|
+
return (n, l) => (p(), s(e(B), {
|
|
21
|
+
open: m.value,
|
|
22
|
+
"onUpdate:open": l[1] || (l[1] = (r) => m.value = r),
|
|
23
|
+
"overlay-class-name": e(a)("popover"),
|
|
24
|
+
trigger: "click",
|
|
25
|
+
placement: "bottom",
|
|
26
|
+
mask: "",
|
|
27
|
+
"mask-style": { backgroundColor: "transparent" },
|
|
28
|
+
"get-popup-container": g
|
|
29
|
+
}, {
|
|
30
|
+
content: o(() => [
|
|
31
|
+
d("div", {
|
|
32
|
+
class: c([e(a)("popover-content")]),
|
|
33
|
+
style: { paddingBottom: 0, width: "825px" }
|
|
34
|
+
}, [
|
|
35
|
+
t(e(x), { gutter: 16 }, {
|
|
36
|
+
default: o(() => [
|
|
37
|
+
(p(!0), C(F, null, _(n.config, (r) => (p(), s(e(L), {
|
|
38
|
+
key: r.key,
|
|
39
|
+
span: 8
|
|
40
|
+
}, {
|
|
41
|
+
default: o(() => [
|
|
42
|
+
(p(), s(b(r.node)))
|
|
43
|
+
]),
|
|
44
|
+
_: 2
|
|
45
|
+
}, 1024))), 128))
|
|
46
|
+
]),
|
|
47
|
+
_: 1
|
|
48
|
+
})
|
|
49
|
+
], 2),
|
|
50
|
+
t(e(N), { style: { margin: "0" } }),
|
|
51
|
+
d("div", {
|
|
52
|
+
class: c(e(a)("popover-footer"))
|
|
53
|
+
}, [
|
|
54
|
+
t(e(S), { justify: "end" }, {
|
|
55
|
+
default: o(() => [
|
|
56
|
+
t(e(u), {
|
|
57
|
+
onClick: l[0] || (l[0] = (r) => m.value = !1)
|
|
58
|
+
}, {
|
|
59
|
+
default: o(() => [
|
|
60
|
+
f(v(e(i)("ap.common.cancelText")), 1)
|
|
61
|
+
]),
|
|
62
|
+
_: 1
|
|
63
|
+
}),
|
|
64
|
+
t(e(u), {
|
|
65
|
+
class: c(e(a)("popover-footer-confirm-btn")),
|
|
66
|
+
type: "primary",
|
|
67
|
+
loading: n.submitLoading,
|
|
68
|
+
onClick: n.onSubmit
|
|
69
|
+
}, {
|
|
70
|
+
default: o(() => [
|
|
71
|
+
f(v(e(i)("ap.apForm.search.search")), 1)
|
|
72
|
+
]),
|
|
73
|
+
_: 1
|
|
74
|
+
}, 8, ["class", "loading", "onClick"])
|
|
75
|
+
]),
|
|
76
|
+
_: 1
|
|
77
|
+
})
|
|
78
|
+
], 2)
|
|
79
|
+
]),
|
|
80
|
+
default: o(() => [
|
|
81
|
+
t(e(h), {
|
|
82
|
+
title: e(i)("ap.apForm.search.moreFilter"),
|
|
83
|
+
placement: "top"
|
|
84
|
+
}, {
|
|
85
|
+
default: o(() => [
|
|
86
|
+
t(e(u), null, {
|
|
87
|
+
icon: o(() => [
|
|
88
|
+
t(e(w))
|
|
89
|
+
]),
|
|
90
|
+
_: 1
|
|
91
|
+
})
|
|
92
|
+
]),
|
|
93
|
+
_: 1
|
|
94
|
+
}, 8, ["title"])
|
|
95
|
+
]),
|
|
96
|
+
_: 1
|
|
97
|
+
}, 8, ["open", "overlay-class-name"]));
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
export {
|
|
101
|
+
O as default
|
|
102
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ApFormSearchFormPopoverSorterProps } from '../../../interface';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
declare const _default: DefineComponent<ApFormSearchFormPopoverSorterProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormSearchFormPopoverSorterProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
4
|
+
export default _default;
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { defineComponent as T, ref as h, unref as e, createBlock as w, openBlock as B, withCtx as t, createVNode as o, createElementVNode as n, normalizeClass as r, toDisplayString as l, createTextVNode as C } from "vue";
|
|
2
|
+
import { Popover as N, Tooltip as D, Button as u, Flex as y, Divider as L } from "@aplus-frontend/antdv";
|
|
3
|
+
import { IconApLayoutOutlined as P } from "@aplus-frontend/icon";
|
|
4
|
+
import "../../../../config-provider/index.mjs";
|
|
5
|
+
import S from "vuedraggable";
|
|
6
|
+
import "./sortable-item.vue.mjs";
|
|
7
|
+
import { useNamespace as _ } from "../../../../config-provider/hooks/use-namespace.mjs";
|
|
8
|
+
import { useLocale as V } from "../../../../config-provider/hooks/use-locale.mjs";
|
|
9
|
+
import j from "./sortable-item.vue2.mjs";
|
|
10
|
+
const G = /* @__PURE__ */ T({
|
|
11
|
+
name: "ApFormSearchFormPopoverSorter",
|
|
12
|
+
__name: "index",
|
|
13
|
+
props: {
|
|
14
|
+
children: {},
|
|
15
|
+
onClickConfirm: { type: Function }
|
|
16
|
+
},
|
|
17
|
+
setup(k) {
|
|
18
|
+
const d = k, c = h(d.children);
|
|
19
|
+
let g = [...d.children];
|
|
20
|
+
const { e: p } = _("ap-form-search-form"), { b: a } = _("search-form-sorter"), { t: s } = V(), i = h(!1);
|
|
21
|
+
function F(v) {
|
|
22
|
+
return v.closest(".ant-form") || document.body;
|
|
23
|
+
}
|
|
24
|
+
function b() {
|
|
25
|
+
i.value = !1, console.log(e(c)), d.onClickConfirm(e(c));
|
|
26
|
+
}
|
|
27
|
+
function x() {
|
|
28
|
+
c.value = [...g];
|
|
29
|
+
}
|
|
30
|
+
return (v, m) => (B(), w(e(N), {
|
|
31
|
+
open: i.value,
|
|
32
|
+
"onUpdate:open": m[1] || (m[1] = (f) => i.value = f),
|
|
33
|
+
"overlay-class-name": e(p)("popover"),
|
|
34
|
+
trigger: "click",
|
|
35
|
+
placement: "bottom",
|
|
36
|
+
mask: "",
|
|
37
|
+
"mask-style": { backgroundColor: "transparent" },
|
|
38
|
+
"get-popup-container": F
|
|
39
|
+
}, {
|
|
40
|
+
content: t(() => [
|
|
41
|
+
n("div", {
|
|
42
|
+
class: r(e(a)("header"))
|
|
43
|
+
}, [
|
|
44
|
+
n("span", {
|
|
45
|
+
class: r(e(a)("header-title"))
|
|
46
|
+
}, l(e(s)("ap.apForm.search.sorterTitle")), 3),
|
|
47
|
+
o(e(y), { justify: "space-between" }, {
|
|
48
|
+
default: t(() => [
|
|
49
|
+
n("span", {
|
|
50
|
+
class: r(e(a)("header-desc"))
|
|
51
|
+
}, l(e(s)("ap.apForm.search.sorterDesc")), 3),
|
|
52
|
+
n("div", {
|
|
53
|
+
class: r(e(a)("header-action-wrapper")),
|
|
54
|
+
onClick: x
|
|
55
|
+
}, [
|
|
56
|
+
n("span", {
|
|
57
|
+
class: r(e(a)("header-reset-btn"))
|
|
58
|
+
}, l(e(s)("ap.apForm.search.sorterReset")), 3)
|
|
59
|
+
], 2)
|
|
60
|
+
]),
|
|
61
|
+
_: 1
|
|
62
|
+
})
|
|
63
|
+
], 2),
|
|
64
|
+
n("div", {
|
|
65
|
+
class: r([e(p)("popover-content"), e(a)("content")])
|
|
66
|
+
}, [
|
|
67
|
+
o(e(S), {
|
|
68
|
+
list: c.value,
|
|
69
|
+
class: r(e(a)("sorter-wrapper"))
|
|
70
|
+
}, {
|
|
71
|
+
item: t(({ element: f }) => [
|
|
72
|
+
o(j, { item: f }, null, 8, ["item"])
|
|
73
|
+
]),
|
|
74
|
+
_: 1
|
|
75
|
+
}, 8, ["list", "class"])
|
|
76
|
+
], 2),
|
|
77
|
+
o(e(L), { style: { margin: "0" } }),
|
|
78
|
+
n("div", {
|
|
79
|
+
class: r(e(p)("popover-footer"))
|
|
80
|
+
}, [
|
|
81
|
+
o(e(y), { justify: "end" }, {
|
|
82
|
+
default: t(() => [
|
|
83
|
+
o(e(u), {
|
|
84
|
+
onClick: m[0] || (m[0] = (f) => i.value = !1)
|
|
85
|
+
}, {
|
|
86
|
+
default: t(() => [
|
|
87
|
+
C(l(e(s)("ap.common.cancelText")), 1)
|
|
88
|
+
]),
|
|
89
|
+
_: 1
|
|
90
|
+
}),
|
|
91
|
+
o(e(u), {
|
|
92
|
+
class: r(e(p)("popover-footer-confirm-btn")),
|
|
93
|
+
type: "primary",
|
|
94
|
+
onClick: b
|
|
95
|
+
}, {
|
|
96
|
+
default: t(() => [
|
|
97
|
+
C(l(e(s)("ap.apForm.search.sorterConfirmBtn")), 1)
|
|
98
|
+
]),
|
|
99
|
+
_: 1
|
|
100
|
+
}, 8, ["class"])
|
|
101
|
+
]),
|
|
102
|
+
_: 1
|
|
103
|
+
})
|
|
104
|
+
], 2)
|
|
105
|
+
]),
|
|
106
|
+
default: t(() => [
|
|
107
|
+
o(e(D), {
|
|
108
|
+
title: e(s)("ap.apForm.search.sorterTitle"),
|
|
109
|
+
placement: "top"
|
|
110
|
+
}, {
|
|
111
|
+
default: t(() => [
|
|
112
|
+
o(e(u), null, {
|
|
113
|
+
icon: t(() => [
|
|
114
|
+
o(e(P))
|
|
115
|
+
]),
|
|
116
|
+
_: 1
|
|
117
|
+
})
|
|
118
|
+
]),
|
|
119
|
+
_: 1
|
|
120
|
+
}, 8, ["title"])
|
|
121
|
+
]),
|
|
122
|
+
_: 1
|
|
123
|
+
}, 8, ["open", "overlay-class-name"]));
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
export {
|
|
127
|
+
G as default
|
|
128
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { VNode, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
item: VNode;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { defineComponent as a, computed as i, createElementBlock as c, openBlock as d, normalizeClass as r, unref as t, createElementVNode as l, createVNode as u, toDisplayString as f } from "vue";
|
|
2
|
+
import { HolderOutlined as h } from "@ant-design/icons-vue";
|
|
3
|
+
import "../../../../config-provider/index.mjs";
|
|
4
|
+
import { isBoolean as _ } from "lodash-unified";
|
|
5
|
+
import { isDef as v } from "@fruits-chain/utils";
|
|
6
|
+
import { useNamespace as b } from "../../../../config-provider/hooks/use-namespace.mjs";
|
|
7
|
+
const x = ["title"], C = /* @__PURE__ */ a({
|
|
8
|
+
name: "ApFormSearchFormPopoverSorterItem",
|
|
9
|
+
__name: "sortable-item",
|
|
10
|
+
props: {
|
|
11
|
+
item: {}
|
|
12
|
+
},
|
|
13
|
+
setup(m) {
|
|
14
|
+
const s = m, n = i(() => {
|
|
15
|
+
const e = s.item.props;
|
|
16
|
+
return e.label || e.placeholder;
|
|
17
|
+
}), p = i(() => {
|
|
18
|
+
const e = s.item.props;
|
|
19
|
+
return _(e.hidden) ? !!e.hidden : v(e.hidden);
|
|
20
|
+
}), { b: o } = b("search-form-sorter");
|
|
21
|
+
return (e, B) => (d(), c("div", {
|
|
22
|
+
class: r([t(o)("sorter-item"), { [t(o)("sorter-item--hidden")]: p.value }])
|
|
23
|
+
}, [
|
|
24
|
+
l("div", null, [
|
|
25
|
+
u(t(h), {
|
|
26
|
+
class: r(t(o)("sorter-item-holder")),
|
|
27
|
+
style: { "font-size": "16px", color: "#abb7cc" }
|
|
28
|
+
}, null, 8, ["class"]),
|
|
29
|
+
l("span", {
|
|
30
|
+
class: r(t(o)("sorter-item-text")),
|
|
31
|
+
title: n.value
|
|
32
|
+
}, f(n.value), 11, x)
|
|
33
|
+
])
|
|
34
|
+
], 2));
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
export {
|
|
38
|
+
C as default
|
|
39
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { computed as c } from "vue";
|
|
2
|
+
import { useBreakpoints as u } from "@vueuse/core";
|
|
3
|
+
const t = [1, 2, 3, 4, 6, 8, 12, 24], P = (o) => {
|
|
4
|
+
const e = u({ sm: 0, md: 1280, lg: 1728 }).active();
|
|
5
|
+
return c(() => {
|
|
6
|
+
if (e.value === "lg") {
|
|
7
|
+
const n = t.findIndex(
|
|
8
|
+
(r) => r === o.countPerRow
|
|
9
|
+
);
|
|
10
|
+
return t[n + 1] || o.countPerRow;
|
|
11
|
+
}
|
|
12
|
+
return o.countPerRow;
|
|
13
|
+
});
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
P as useCountPerRow
|
|
17
|
+
};
|