fast-element-plus 1.0.0 → 1.0.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/Fast.png +0 -0
- package/LICENSE +201 -0
- package/README.md +164 -0
- package/README.zh.md +164 -0
- package/dist/index.full.js +28446 -0
- package/dist/index.full.js.map +1 -0
- package/dist/index.full.min.js +36 -0
- package/dist/index.full.min.js.map +1 -0
- package/dist/index.full.min.mjs +36 -0
- package/dist/index.full.min.mjs.map +1 -0
- package/dist/index.full.mjs +28445 -0
- package/dist/index.full.mjs.map +1 -0
- package/dist/styles/index.css +984 -0
- package/dist/styles/index.css.map +1 -0
- package/es/component.d.ts +3 -0
- package/es/component.mjs +52 -0
- package/es/component.mjs.map +1 -0
- package/es/components/avatar/index.d.ts +14 -0
- package/es/components/avatar/index.mjs +8 -0
- package/es/components/avatar/index.mjs.map +1 -0
- package/es/components/avatar/src/avatar.d.ts +96 -0
- package/es/components/avatar/src/avatar.mjs +76 -0
- package/es/components/avatar/src/avatar.mjs.map +1 -0
- package/es/components/button/index.d.ts +15 -0
- package/es/components/button/index.mjs +11 -0
- package/es/components/button/index.mjs.map +1 -0
- package/es/components/button/src/button.d.ts +173 -0
- package/es/components/button/src/button.mjs +118 -0
- package/es/components/button/src/button.mjs.map +1 -0
- package/es/components/carNumber/index.d.ts +9 -0
- package/es/components/carNumber/index.mjs +12 -0
- package/es/components/carNumber/index.mjs.map +1 -0
- package/es/components/carNumber/src/carNumber.d.ts +217 -0
- package/es/components/carNumber/src/carNumber.mjs +164 -0
- package/es/components/carNumber/src/carNumber.mjs.map +1 -0
- package/es/components/carNumber/src/common.d.ts +15 -0
- package/es/components/carNumber/src/common.mjs +75 -0
- package/es/components/carNumber/src/common.mjs.map +1 -0
- package/es/components/contextMenu/index.d.ts +9 -0
- package/es/components/contextMenu/index.mjs +9 -0
- package/es/components/contextMenu/index.mjs.map +1 -0
- package/es/components/contextMenu/src/contextMenu.d.ts +32 -0
- package/es/components/contextMenu/src/contextMenu.mjs +85 -0
- package/es/components/contextMenu/src/contextMenu.mjs.map +1 -0
- package/es/components/contextMenu/src/contextMenu.type.d.ts +33 -0
- package/es/components/contextMenu/src/contextMenu.type.mjs +2 -0
- package/es/components/contextMenu/src/contextMenu.type.mjs.map +1 -0
- package/es/components/dialog/index.d.ts +14 -0
- package/es/components/dialog/index.mjs +11 -0
- package/es/components/dialog/index.mjs.map +1 -0
- package/es/components/dialog/src/dialog.d.ts +454 -0
- package/es/components/dialog/src/dialog.mjs +285 -0
- package/es/components/dialog/src/dialog.mjs.map +1 -0
- package/es/components/drawer/index.d.ts +14 -0
- package/es/components/drawer/index.mjs +8 -0
- package/es/components/drawer/index.mjs.map +1 -0
- package/es/components/drawer/src/drawer.d.ts +449 -0
- package/es/components/drawer/src/drawer.mjs +284 -0
- package/es/components/drawer/src/drawer.mjs.map +1 -0
- package/es/components/form/index.d.ts +23 -0
- package/es/components/form/index.mjs +19 -0
- package/es/components/form/index.mjs.map +1 -0
- package/es/components/form/src/form.d.ts +194 -0
- package/es/components/form/src/form.mjs +109 -0
- package/es/components/form/src/form.mjs.map +1 -0
- package/es/components/form/src/formItem.d.ts +190 -0
- package/es/components/form/src/formItem.mjs +117 -0
- package/es/components/form/src/formItem.mjs.map +1 -0
- package/es/components/form/utils/form.d.ts +81 -0
- package/es/components/form/utils/form.mjs +217 -0
- package/es/components/form/utils/form.mjs.map +1 -0
- package/es/components/formItemTip/index.d.ts +12 -0
- package/es/components/formItemTip/index.mjs +10 -0
- package/es/components/formItemTip/index.mjs.map +1 -0
- package/es/components/formItemTip/src/formItemTip.d.ts +22 -0
- package/es/components/formItemTip/src/formItemTip.mjs +38 -0
- package/es/components/formItemTip/src/formItemTip.mjs.map +1 -0
- package/es/components/icon/index.d.ts +12 -0
- package/es/components/icon/index.mjs +8 -0
- package/es/components/icon/index.mjs.map +1 -0
- package/es/components/icon/src/icon.d.ts +39 -0
- package/es/components/icon/src/icon.mjs +69 -0
- package/es/components/icon/src/icon.mjs.map +1 -0
- package/es/components/iconSelector/index.d.ts +7 -0
- package/es/components/iconSelector/index.mjs +8 -0
- package/es/components/iconSelector/index.mjs.map +1 -0
- package/es/components/iconSelector/src/iconSelector.d.ts +23 -0
- package/es/components/iconSelector/src/iconSelector.mjs +143 -0
- package/es/components/iconSelector/src/iconSelector.mjs.map +1 -0
- package/es/components/image/index.d.ts +12 -0
- package/es/components/image/index.mjs +10 -0
- package/es/components/image/index.mjs.map +1 -0
- package/es/components/image/src/image.d.ts +225 -0
- package/es/components/image/src/image.mjs +90 -0
- package/es/components/image/src/image.mjs.map +1 -0
- package/es/components/index.d.ts +21 -0
- package/es/components/index.mjs +100 -0
- package/es/components/index.mjs.map +1 -0
- package/es/components/layoutGrid/index.d.ts +16 -0
- package/es/components/layoutGrid/index.mjs +14 -0
- package/es/components/layoutGrid/index.mjs.map +1 -0
- package/es/components/layoutGrid/src/layoutGrid.d.ts +60 -0
- package/es/components/layoutGrid/src/layoutGrid.mjs +178 -0
- package/es/components/layoutGrid/src/layoutGrid.mjs.map +1 -0
- package/es/components/layoutGrid/src/layoutGrid.type.d.ts +12 -0
- package/es/components/layoutGrid/src/layoutGrid.type.mjs +2 -0
- package/es/components/layoutGrid/src/layoutGrid.type.mjs.map +1 -0
- package/es/components/layoutGrid/src/layoutGridItem.d.ts +100 -0
- package/es/components/layoutGrid/src/layoutGridItem.mjs +97 -0
- package/es/components/layoutGrid/src/layoutGridItem.mjs.map +1 -0
- package/es/components/select/index.d.ts +22 -0
- package/es/components/select/index.mjs +17 -0
- package/es/components/select/index.mjs.map +1 -0
- package/es/components/select/src/select.d.ts +1201 -0
- package/es/components/select/src/select.mjs +559 -0
- package/es/components/select/src/select.mjs.map +1 -0
- package/es/components/select/src/select.type.d.ts +28 -0
- package/es/components/select/src/select.type.mjs +2 -0
- package/es/components/select/src/select.type.mjs.map +1 -0
- package/es/components/select/src/selectOption.d.ts +99 -0
- package/es/components/select/src/selectOption.mjs +71 -0
- package/es/components/select/src/selectOption.mjs.map +1 -0
- package/es/components/selectPage/index.d.ts +14 -0
- package/es/components/selectPage/index.mjs +11 -0
- package/es/components/selectPage/index.mjs.map +1 -0
- package/es/components/selectPage/src/selectPage.d.ts +595 -0
- package/es/components/selectPage/src/selectPage.mjs +381 -0
- package/es/components/selectPage/src/selectPage.mjs.map +1 -0
- package/es/components/selectV2/index.d.ts +14 -0
- package/es/components/selectV2/index.mjs +11 -0
- package/es/components/selectV2/index.mjs.map +1 -0
- package/es/components/selectV2/src/selectV2.d.ts +1407 -0
- package/es/components/selectV2/src/selectV2.mjs +606 -0
- package/es/components/selectV2/src/selectV2.mjs.map +1 -0
- package/es/components/table/images/artwork.png.mjs +5 -0
- package/es/components/table/images/artwork.png.mjs.map +1 -0
- package/es/components/table/images/index.d.ts +4 -0
- package/es/components/table/images/notImage.png.mjs +5 -0
- package/es/components/table/images/notImage.png.mjs.map +1 -0
- package/es/components/table/index.d.ts +35 -0
- package/es/components/table/index.mjs +32 -0
- package/es/components/table/index.mjs.map +1 -0
- package/es/components/table/src/page.type.d.ts +145 -0
- package/es/components/table/src/page.type.mjs +16 -0
- package/es/components/table/src/page.type.mjs.map +1 -0
- package/es/components/table/src/table.d.ts +1382 -0
- package/es/components/table/src/table.mjs +1046 -0
- package/es/components/table/src/table.mjs.map +1 -0
- package/es/components/table/src/table.state.d.ts +115 -0
- package/es/components/table/src/table.state.mjs +2 -0
- package/es/components/table/src/table.state.mjs.map +1 -0
- package/es/components/table/src/table.type.d.ts +316 -0
- package/es/components/table/src/table.type.mjs +14 -0
- package/es/components/table/src/table.type.mjs.map +1 -0
- package/es/components/table/src/tableColumn.d.ts +644 -0
- package/es/components/table/src/tableColumn.mjs +604 -0
- package/es/components/table/src/tableColumn.mjs.map +1 -0
- package/es/components/table/src/tableColumnSettingDialog.d.ts +18 -0
- package/es/components/table/src/tableColumnSettingDialog.mjs +430 -0
- package/es/components/table/src/tableColumnSettingDialog.mjs.map +1 -0
- package/es/components/table/src/tablePagination.d.ts +24 -0
- package/es/components/table/src/tablePagination.mjs +56 -0
- package/es/components/table/src/tablePagination.mjs.map +1 -0
- package/es/components/table/src/tableSearchForm.d.ts +88 -0
- package/es/components/table/src/tableSearchForm.mjs +269 -0
- package/es/components/table/src/tableSearchForm.mjs.map +1 -0
- package/es/components/table/src/tableSearchFormItem.d.ts +37 -0
- package/es/components/table/src/tableSearchFormItem.mjs +121 -0
- package/es/components/table/src/tableSearchFormItem.mjs.map +1 -0
- package/es/components/table/src/useTable.d.ts +32 -0
- package/es/components/table/src/useTable.mjs +374 -0
- package/es/components/table/src/useTable.mjs.map +1 -0
- package/es/components/table/utils/table.d.ts +45 -0
- package/es/components/table/utils/table.mjs +122 -0
- package/es/components/table/utils/table.mjs.map +1 -0
- package/es/components/tree/index.d.ts +15 -0
- package/es/components/tree/index.mjs +12 -0
- package/es/components/tree/index.mjs.map +1 -0
- package/es/components/tree/src/tree.d.ts +668 -0
- package/es/components/tree/src/tree.mjs +364 -0
- package/es/components/tree/src/tree.mjs.map +1 -0
- package/es/components/tree/src/tree.props.d.ts +81 -0
- package/es/components/tree/src/tree.props.mjs +71 -0
- package/es/components/tree/src/tree.props.mjs.map +1 -0
- package/es/components/tree/src/tree.type.d.ts +36 -0
- package/es/components/tree/src/tree.type.mjs +2 -0
- package/es/components/tree/src/tree.type.mjs.map +1 -0
- package/es/components/treeSelect/index.d.ts +14 -0
- package/es/components/treeSelect/index.mjs +11 -0
- package/es/components/treeSelect/index.mjs.map +1 -0
- package/es/components/treeSelect/src/treeSelect.d.ts +1063 -0
- package/es/components/treeSelect/src/treeSelect.mjs +492 -0
- package/es/components/treeSelect/src/treeSelect.mjs.map +1 -0
- package/es/components/upload/index.d.ts +15 -0
- package/es/components/upload/index.mjs +11 -0
- package/es/components/upload/index.mjs.map +1 -0
- package/es/components/upload/src/upload.d.ts +525 -0
- package/es/components/upload/src/upload.mjs +140 -0
- package/es/components/upload/src/upload.mjs.map +1 -0
- package/es/components/upload/src/useUpload.d.ts +65 -0
- package/es/components/upload/src/useUpload.mjs +150 -0
- package/es/components/upload/src/useUpload.mjs.map +1 -0
- package/es/components/upload/utils/upload.d.ts +30 -0
- package/es/components/upload/utils/upload.mjs +119 -0
- package/es/components/upload/utils/upload.mjs.map +1 -0
- package/es/components/uploadImage/index.d.ts +14 -0
- package/es/components/uploadImage/index.mjs +11 -0
- package/es/components/uploadImage/index.mjs.map +1 -0
- package/es/components/uploadImage/src/uploadImage.d.ts +575 -0
- package/es/components/uploadImage/src/uploadImage.mjs +207 -0
- package/es/components/uploadImage/src/uploadImage.mjs.map +1 -0
- package/es/components/uploadImages/index.d.ts +14 -0
- package/es/components/uploadImages/index.mjs +8 -0
- package/es/components/uploadImages/index.mjs.map +1 -0
- package/es/components/uploadImages/src/uploadImages.d.ts +544 -0
- package/es/components/uploadImages/src/uploadImages.mjs +194 -0
- package/es/components/uploadImages/src/uploadImages.mjs.map +1 -0
- package/es/constants/index.d.ts +2 -0
- package/es/constants/index.mjs +7 -0
- package/es/constants/index.mjs.map +1 -0
- package/es/constants/mime.d.ts +61 -0
- package/es/constants/mime.mjs +62 -0
- package/es/constants/mime.mjs.map +1 -0
- package/es/constants/regex.d.ts +78 -0
- package/es/constants/regex.mjs +79 -0
- package/es/constants/regex.mjs.map +1 -0
- package/es/directive.d.ts +2 -0
- package/es/directive.mjs +11 -0
- package/es/directive.mjs.map +1 -0
- package/es/directives/click-copy/index.d.ts +2 -0
- package/es/directives/click-copy/index.mjs +36 -0
- package/es/directives/click-copy/index.mjs.map +1 -0
- package/es/directives/click-debounce/index.d.ts +2 -0
- package/es/directives/click-debounce/index.mjs +20 -0
- package/es/directives/click-debounce/index.mjs.map +1 -0
- package/es/directives/click-draggable/index.d.ts +2 -0
- package/es/directives/click-draggable/index.mjs +38 -0
- package/es/directives/click-draggable/index.mjs.map +1 -0
- package/es/directives/click-icon-copy/index.d.ts +2 -0
- package/es/directives/click-icon-copy/index.mjs +54 -0
- package/es/directives/click-icon-copy/index.mjs.map +1 -0
- package/es/directives/click-longpress/index.d.ts +2 -0
- package/es/directives/click-longpress/index.mjs +42 -0
- package/es/directives/click-longpress/index.mjs.map +1 -0
- package/es/directives/click-throttle/index.d.ts +2 -0
- package/es/directives/click-throttle/index.mjs +31 -0
- package/es/directives/click-throttle/index.mjs.map +1 -0
- package/es/directives/index.d.ts +6 -0
- package/es/directives/index.mjs +15 -0
- package/es/directives/index.mjs.map +1 -0
- package/es/element-plus.d.ts +2 -0
- package/es/element-plus.mjs +304 -0
- package/es/element-plus.mjs.map +1 -0
- package/es/hooks/index.d.ts +3 -0
- package/es/hooks/index.mjs +9 -0
- package/es/hooks/index.mjs.map +1 -0
- package/es/hooks/use-loading/index.d.ts +4 -0
- package/es/hooks/use-loading/index.mjs +34 -0
- package/es/hooks/use-loading/index.mjs.map +1 -0
- package/es/hooks/use-overlay/index.d.ts +4 -0
- package/es/hooks/use-overlay/index.mjs +26 -0
- package/es/hooks/use-overlay/index.mjs.map +1 -0
- package/es/hooks/use-screenFull/index.d.ts +7 -0
- package/es/hooks/use-screenFull/index.mjs +45 -0
- package/es/hooks/use-screenFull/index.mjs.map +1 -0
- package/es/index.d.ts +14 -0
- package/es/index.es.d.ts +6 -0
- package/es/index.mjs +138 -0
- package/es/index.mjs.map +1 -0
- package/es/make-installer.d.ts +6 -0
- package/es/make-installer.mjs +27 -0
- package/es/make-installer.mjs.map +1 -0
- package/es/version.d.ts +1 -0
- package/es/version.mjs +5 -0
- package/es/version.mjs.map +1 -0
- package/global.d.ts +2 -0
- package/lib/component.d.ts +3 -0
- package/lib/component.js +2 -0
- package/lib/component.js.map +1 -0
- package/lib/components/avatar/index.d.ts +14 -0
- package/lib/components/avatar/index.js +2 -0
- package/lib/components/avatar/index.js.map +1 -0
- package/lib/components/avatar/src/avatar.d.ts +96 -0
- package/lib/components/avatar/src/avatar.js +2 -0
- package/lib/components/avatar/src/avatar.js.map +1 -0
- package/lib/components/button/index.d.ts +15 -0
- package/lib/components/button/index.js +2 -0
- package/lib/components/button/index.js.map +1 -0
- package/lib/components/button/src/button.d.ts +173 -0
- package/lib/components/button/src/button.js +2 -0
- package/lib/components/button/src/button.js.map +1 -0
- package/lib/components/carNumber/index.d.ts +9 -0
- package/lib/components/carNumber/index.js +2 -0
- package/lib/components/carNumber/index.js.map +1 -0
- package/lib/components/carNumber/src/carNumber.d.ts +217 -0
- package/lib/components/carNumber/src/carNumber.js +2 -0
- package/lib/components/carNumber/src/carNumber.js.map +1 -0
- package/lib/components/carNumber/src/common.d.ts +15 -0
- package/lib/components/carNumber/src/common.js +2 -0
- package/lib/components/carNumber/src/common.js.map +1 -0
- package/lib/components/contextMenu/index.d.ts +9 -0
- package/lib/components/contextMenu/index.js +2 -0
- package/lib/components/contextMenu/index.js.map +1 -0
- package/lib/components/contextMenu/src/contextMenu.d.ts +32 -0
- package/lib/components/contextMenu/src/contextMenu.js +2 -0
- package/lib/components/contextMenu/src/contextMenu.js.map +1 -0
- package/lib/components/contextMenu/src/contextMenu.type.d.ts +33 -0
- package/lib/components/contextMenu/src/contextMenu.type.js +2 -0
- package/lib/components/contextMenu/src/contextMenu.type.js.map +1 -0
- package/lib/components/dialog/index.d.ts +14 -0
- package/lib/components/dialog/index.js +2 -0
- package/lib/components/dialog/index.js.map +1 -0
- package/lib/components/dialog/src/dialog.d.ts +454 -0
- package/lib/components/dialog/src/dialog.js +2 -0
- package/lib/components/dialog/src/dialog.js.map +1 -0
- package/lib/components/drawer/index.d.ts +14 -0
- package/lib/components/drawer/index.js +2 -0
- package/lib/components/drawer/index.js.map +1 -0
- package/lib/components/drawer/src/drawer.d.ts +449 -0
- package/lib/components/drawer/src/drawer.js +2 -0
- package/lib/components/drawer/src/drawer.js.map +1 -0
- package/lib/components/form/index.d.ts +23 -0
- package/lib/components/form/index.js +2 -0
- package/lib/components/form/index.js.map +1 -0
- package/lib/components/form/src/form.d.ts +194 -0
- package/lib/components/form/src/form.js +2 -0
- package/lib/components/form/src/form.js.map +1 -0
- package/lib/components/form/src/formItem.d.ts +190 -0
- package/lib/components/form/src/formItem.js +2 -0
- package/lib/components/form/src/formItem.js.map +1 -0
- package/lib/components/form/utils/form.d.ts +81 -0
- package/lib/components/form/utils/form.js +2 -0
- package/lib/components/form/utils/form.js.map +1 -0
- package/lib/components/formItemTip/index.d.ts +12 -0
- package/lib/components/formItemTip/index.js +2 -0
- package/lib/components/formItemTip/index.js.map +1 -0
- package/lib/components/formItemTip/src/formItemTip.d.ts +22 -0
- package/lib/components/formItemTip/src/formItemTip.js +2 -0
- package/lib/components/formItemTip/src/formItemTip.js.map +1 -0
- package/lib/components/icon/index.d.ts +12 -0
- package/lib/components/icon/index.js +2 -0
- package/lib/components/icon/index.js.map +1 -0
- package/lib/components/icon/src/icon.d.ts +39 -0
- package/lib/components/icon/src/icon.js +2 -0
- package/lib/components/icon/src/icon.js.map +1 -0
- package/lib/components/iconSelector/index.d.ts +7 -0
- package/lib/components/iconSelector/index.js +2 -0
- package/lib/components/iconSelector/index.js.map +1 -0
- package/lib/components/iconSelector/src/iconSelector.d.ts +23 -0
- package/lib/components/iconSelector/src/iconSelector.js +2 -0
- package/lib/components/iconSelector/src/iconSelector.js.map +1 -0
- package/lib/components/image/index.d.ts +12 -0
- package/lib/components/image/index.js +2 -0
- package/lib/components/image/index.js.map +1 -0
- package/lib/components/image/src/image.d.ts +225 -0
- package/lib/components/image/src/image.js +2 -0
- package/lib/components/image/src/image.js.map +1 -0
- package/lib/components/index.d.ts +21 -0
- package/lib/components/index.js +2 -0
- package/lib/components/index.js.map +1 -0
- package/lib/components/layoutGrid/index.d.ts +16 -0
- package/lib/components/layoutGrid/index.js +2 -0
- package/lib/components/layoutGrid/index.js.map +1 -0
- package/lib/components/layoutGrid/src/layoutGrid.d.ts +60 -0
- package/lib/components/layoutGrid/src/layoutGrid.js +2 -0
- package/lib/components/layoutGrid/src/layoutGrid.js.map +1 -0
- package/lib/components/layoutGrid/src/layoutGrid.type.d.ts +12 -0
- package/lib/components/layoutGrid/src/layoutGrid.type.js +2 -0
- package/lib/components/layoutGrid/src/layoutGrid.type.js.map +1 -0
- package/lib/components/layoutGrid/src/layoutGridItem.d.ts +100 -0
- package/lib/components/layoutGrid/src/layoutGridItem.js +2 -0
- package/lib/components/layoutGrid/src/layoutGridItem.js.map +1 -0
- package/lib/components/select/index.d.ts +22 -0
- package/lib/components/select/index.js +2 -0
- package/lib/components/select/index.js.map +1 -0
- package/lib/components/select/src/select.d.ts +1201 -0
- package/lib/components/select/src/select.js +2 -0
- package/lib/components/select/src/select.js.map +1 -0
- package/lib/components/select/src/select.type.d.ts +28 -0
- package/lib/components/select/src/select.type.js +2 -0
- package/lib/components/select/src/select.type.js.map +1 -0
- package/lib/components/select/src/selectOption.d.ts +99 -0
- package/lib/components/select/src/selectOption.js +2 -0
- package/lib/components/select/src/selectOption.js.map +1 -0
- package/lib/components/selectPage/index.d.ts +14 -0
- package/lib/components/selectPage/index.js +2 -0
- package/lib/components/selectPage/index.js.map +1 -0
- package/lib/components/selectPage/src/selectPage.d.ts +595 -0
- package/lib/components/selectPage/src/selectPage.js +2 -0
- package/lib/components/selectPage/src/selectPage.js.map +1 -0
- package/lib/components/selectV2/index.d.ts +14 -0
- package/lib/components/selectV2/index.js +2 -0
- package/lib/components/selectV2/index.js.map +1 -0
- package/lib/components/selectV2/src/selectV2.d.ts +1407 -0
- package/lib/components/selectV2/src/selectV2.js +2 -0
- package/lib/components/selectV2/src/selectV2.js.map +1 -0
- package/lib/components/table/images/artwork.png.js +2 -0
- package/lib/components/table/images/artwork.png.js.map +1 -0
- package/lib/components/table/images/index.d.ts +4 -0
- package/lib/components/table/images/notImage.png.js +2 -0
- package/lib/components/table/images/notImage.png.js.map +1 -0
- package/lib/components/table/index.d.ts +35 -0
- package/lib/components/table/index.js +2 -0
- package/lib/components/table/index.js.map +1 -0
- package/lib/components/table/src/page.type.d.ts +145 -0
- package/lib/components/table/src/page.type.js +2 -0
- package/lib/components/table/src/page.type.js.map +1 -0
- package/lib/components/table/src/table.d.ts +1382 -0
- package/lib/components/table/src/table.js +2 -0
- package/lib/components/table/src/table.js.map +1 -0
- package/lib/components/table/src/table.state.d.ts +115 -0
- package/lib/components/table/src/table.state.js +2 -0
- package/lib/components/table/src/table.state.js.map +1 -0
- package/lib/components/table/src/table.type.d.ts +316 -0
- package/lib/components/table/src/table.type.js +2 -0
- package/lib/components/table/src/table.type.js.map +1 -0
- package/lib/components/table/src/tableColumn.d.ts +644 -0
- package/lib/components/table/src/tableColumn.js +2 -0
- package/lib/components/table/src/tableColumn.js.map +1 -0
- package/lib/components/table/src/tableColumnSettingDialog.d.ts +18 -0
- package/lib/components/table/src/tableColumnSettingDialog.js +2 -0
- package/lib/components/table/src/tableColumnSettingDialog.js.map +1 -0
- package/lib/components/table/src/tablePagination.d.ts +24 -0
- package/lib/components/table/src/tablePagination.js +2 -0
- package/lib/components/table/src/tablePagination.js.map +1 -0
- package/lib/components/table/src/tableSearchForm.d.ts +88 -0
- package/lib/components/table/src/tableSearchForm.js +2 -0
- package/lib/components/table/src/tableSearchForm.js.map +1 -0
- package/lib/components/table/src/tableSearchFormItem.d.ts +37 -0
- package/lib/components/table/src/tableSearchFormItem.js +2 -0
- package/lib/components/table/src/tableSearchFormItem.js.map +1 -0
- package/lib/components/table/src/useTable.d.ts +32 -0
- package/lib/components/table/src/useTable.js +2 -0
- package/lib/components/table/src/useTable.js.map +1 -0
- package/lib/components/table/utils/table.d.ts +45 -0
- package/lib/components/table/utils/table.js +2 -0
- package/lib/components/table/utils/table.js.map +1 -0
- package/lib/components/tree/index.d.ts +15 -0
- package/lib/components/tree/index.js +2 -0
- package/lib/components/tree/index.js.map +1 -0
- package/lib/components/tree/src/tree.d.ts +668 -0
- package/lib/components/tree/src/tree.js +2 -0
- package/lib/components/tree/src/tree.js.map +1 -0
- package/lib/components/tree/src/tree.props.d.ts +81 -0
- package/lib/components/tree/src/tree.props.js +2 -0
- package/lib/components/tree/src/tree.props.js.map +1 -0
- package/lib/components/tree/src/tree.type.d.ts +36 -0
- package/lib/components/tree/src/tree.type.js +2 -0
- package/lib/components/tree/src/tree.type.js.map +1 -0
- package/lib/components/treeSelect/index.d.ts +14 -0
- package/lib/components/treeSelect/index.js +2 -0
- package/lib/components/treeSelect/index.js.map +1 -0
- package/lib/components/treeSelect/src/treeSelect.d.ts +1063 -0
- package/lib/components/treeSelect/src/treeSelect.js +2 -0
- package/lib/components/treeSelect/src/treeSelect.js.map +1 -0
- package/lib/components/upload/index.d.ts +15 -0
- package/lib/components/upload/index.js +2 -0
- package/lib/components/upload/index.js.map +1 -0
- package/lib/components/upload/src/upload.d.ts +525 -0
- package/lib/components/upload/src/upload.js +2 -0
- package/lib/components/upload/src/upload.js.map +1 -0
- package/lib/components/upload/src/useUpload.d.ts +65 -0
- package/lib/components/upload/src/useUpload.js +2 -0
- package/lib/components/upload/src/useUpload.js.map +1 -0
- package/lib/components/upload/utils/upload.d.ts +30 -0
- package/lib/components/upload/utils/upload.js +2 -0
- package/lib/components/upload/utils/upload.js.map +1 -0
- package/lib/components/uploadImage/index.d.ts +14 -0
- package/lib/components/uploadImage/index.js +2 -0
- package/lib/components/uploadImage/index.js.map +1 -0
- package/lib/components/uploadImage/src/uploadImage.d.ts +575 -0
- package/lib/components/uploadImage/src/uploadImage.js +2 -0
- package/lib/components/uploadImage/src/uploadImage.js.map +1 -0
- package/lib/components/uploadImages/index.d.ts +14 -0
- package/lib/components/uploadImages/index.js +2 -0
- package/lib/components/uploadImages/index.js.map +1 -0
- package/lib/components/uploadImages/src/uploadImages.d.ts +544 -0
- package/lib/components/uploadImages/src/uploadImages.js +2 -0
- package/lib/components/uploadImages/src/uploadImages.js.map +1 -0
- package/lib/constants/index.d.ts +2 -0
- package/lib/constants/index.js +2 -0
- package/lib/constants/index.js.map +1 -0
- package/lib/constants/mime.d.ts +61 -0
- package/lib/constants/mime.js +2 -0
- package/lib/constants/mime.js.map +1 -0
- package/lib/constants/regex.d.ts +78 -0
- package/lib/constants/regex.js +2 -0
- package/lib/constants/regex.js.map +1 -0
- package/lib/directive.d.ts +2 -0
- package/lib/directive.js +2 -0
- package/lib/directive.js.map +1 -0
- package/lib/directives/click-copy/index.d.ts +2 -0
- package/lib/directives/click-copy/index.js +2 -0
- package/lib/directives/click-copy/index.js.map +1 -0
- package/lib/directives/click-debounce/index.d.ts +2 -0
- package/lib/directives/click-debounce/index.js +2 -0
- package/lib/directives/click-debounce/index.js.map +1 -0
- package/lib/directives/click-draggable/index.d.ts +2 -0
- package/lib/directives/click-draggable/index.js +2 -0
- package/lib/directives/click-draggable/index.js.map +1 -0
- package/lib/directives/click-icon-copy/index.d.ts +2 -0
- package/lib/directives/click-icon-copy/index.js +2 -0
- package/lib/directives/click-icon-copy/index.js.map +1 -0
- package/lib/directives/click-longpress/index.d.ts +2 -0
- package/lib/directives/click-longpress/index.js +2 -0
- package/lib/directives/click-longpress/index.js.map +1 -0
- package/lib/directives/click-throttle/index.d.ts +2 -0
- package/lib/directives/click-throttle/index.js +2 -0
- package/lib/directives/click-throttle/index.js.map +1 -0
- package/lib/directives/index.d.ts +6 -0
- package/lib/directives/index.js +2 -0
- package/lib/directives/index.js.map +1 -0
- package/lib/element-plus.d.ts +2 -0
- package/lib/element-plus.js +2 -0
- package/lib/element-plus.js.map +1 -0
- package/lib/hooks/index.d.ts +3 -0
- package/lib/hooks/index.js +2 -0
- package/lib/hooks/index.js.map +1 -0
- package/lib/hooks/use-loading/index.d.ts +4 -0
- package/lib/hooks/use-loading/index.js +2 -0
- package/lib/hooks/use-loading/index.js.map +1 -0
- package/lib/hooks/use-overlay/index.d.ts +4 -0
- package/lib/hooks/use-overlay/index.js +2 -0
- package/lib/hooks/use-overlay/index.js.map +1 -0
- package/lib/hooks/use-screenFull/index.d.ts +7 -0
- package/lib/hooks/use-screenFull/index.js +2 -0
- package/lib/hooks/use-screenFull/index.js.map +1 -0
- package/lib/index.d.ts +14 -0
- package/lib/index.es.d.ts +6 -0
- package/lib/index.js +2 -0
- package/lib/index.js.map +1 -0
- package/lib/make-installer.d.ts +6 -0
- package/lib/make-installer.js +2 -0
- package/lib/make-installer.js.map +1 -0
- package/lib/version.d.ts +1 -0
- package/lib/version.js +2 -0
- package/lib/version.js.map +1 -0
- package/package.json +139 -26
- package/styles/common/animation.scss +46 -0
- package/styles/common/common.scss +44 -0
- package/styles/common/loading.scss +29 -0
- package/styles/common/overlay.scss +12 -0
- package/styles/components/carNumber.scss +44 -0
- package/styles/components/contextMenu.scss +34 -0
- package/styles/components/dialog.scss +88 -0
- package/styles/components/drawer.scss +87 -0
- package/styles/components/form.scss +44 -0
- package/styles/components/formItemTip.scss +7 -0
- package/styles/components/image.scss +19 -0
- package/styles/components/selectPage.scss +74 -0
- package/styles/components/selectV2.scss +22 -0
- package/styles/components/table.scss +439 -0
- package/styles/components/tree.scss +100 -0
- package/styles/components/uploadImage.scss +61 -0
- package/styles/components/uploadImages.scss +9 -0
- package/styles/index.scss +18 -0
- package/types/components.d.ts +36 -0
- package/types/env.d.ts +17 -0
|
@@ -0,0 +1,381 @@
|
|
|
1
|
+
import { defineComponent, reactive, ref, watch, onMounted, createVNode, mergeProps, Fragment, createTextVNode, computed } from "vue";
|
|
2
|
+
import { useGlobalSize, ElSelect, ElPagination, ElOption, ElInput, ElButton } from "element-plus";
|
|
3
|
+
import { Search } from "@element-plus/icons-vue";
|
|
4
|
+
import { FaSelectOption } from "../../select/index.mjs";
|
|
5
|
+
import { definePropType, withDefineType, consoleError, useProps, useRender, addUnit, useExpose, makeSlots } from "@fast-china/utils";
|
|
6
|
+
import { useVModel } from "@vueuse/core";
|
|
7
|
+
import { isString, isNumber, isBoolean, isObject, isArray, isNull, isFunction, isNil, isEqual } from "lodash-unified";
|
|
8
|
+
import { SelectProps } from "../../select/src/select.mjs";
|
|
9
|
+
const faSelectPageProps = {
|
|
10
|
+
...SelectProps,
|
|
11
|
+
/** @description displayed text while loading data from server, default is 'Loading' */
|
|
12
|
+
loadingText: {
|
|
13
|
+
type: String,
|
|
14
|
+
default: "加载中..."
|
|
15
|
+
},
|
|
16
|
+
/** @description displayed text when no data matches the filtering query, you can also use slot `empty`, default is 'No matching data' */
|
|
17
|
+
noMatchText: {
|
|
18
|
+
type: String,
|
|
19
|
+
default: "暂无匹配的数据"
|
|
20
|
+
},
|
|
21
|
+
/** @description displayed text when there is no options, you can also use slot `empty`, default is 'No data' */
|
|
22
|
+
noDataText: {
|
|
23
|
+
type: String,
|
|
24
|
+
default: "暂无数据"
|
|
25
|
+
},
|
|
26
|
+
/** @description whether to collapse tags to a text when multiple selecting */
|
|
27
|
+
collapseTags: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
default: true
|
|
30
|
+
},
|
|
31
|
+
/** @description whether show all selected tags when mouse hover text of collapse-tags. To use this, `collapse-tags` must be true */
|
|
32
|
+
collapseTagsTooltip: {
|
|
33
|
+
type: Boolean,
|
|
34
|
+
default: true
|
|
35
|
+
},
|
|
36
|
+
/** @description v-model绑定值 */
|
|
37
|
+
modelValue: {
|
|
38
|
+
type: definePropType([String, Number, Boolean, Object, Array]),
|
|
39
|
+
default: void 0
|
|
40
|
+
},
|
|
41
|
+
/** @description v-model:label绑定值 */
|
|
42
|
+
label: definePropType([String, Array]),
|
|
43
|
+
/** @description 宽度 */
|
|
44
|
+
width: {
|
|
45
|
+
type: [String, Number],
|
|
46
|
+
default: "100%"
|
|
47
|
+
},
|
|
48
|
+
/** @description 更多细节,只有使用slot的时候有用 */
|
|
49
|
+
moreDetail: Boolean,
|
|
50
|
+
/** @description 配置选项 */
|
|
51
|
+
props: {
|
|
52
|
+
type: definePropType(Object),
|
|
53
|
+
default: () => ({
|
|
54
|
+
label: "label",
|
|
55
|
+
hide: "hide",
|
|
56
|
+
disabled: "disabled",
|
|
57
|
+
children: "children"
|
|
58
|
+
})
|
|
59
|
+
},
|
|
60
|
+
/** @description 请求api */
|
|
61
|
+
requestApi: {
|
|
62
|
+
type: definePropType(Function)
|
|
63
|
+
},
|
|
64
|
+
/** 初始化参数 */
|
|
65
|
+
initParam: definePropType([String, Number, Object])
|
|
66
|
+
};
|
|
67
|
+
const faSelectPageEmits = {
|
|
68
|
+
/** @description v-model 回调 */
|
|
69
|
+
"update:modelValue": (value) => isString(value) || isNumber(value) || isBoolean(value) || isObject(value) || isArray(value) || isNull(value),
|
|
70
|
+
/** @description v-model:label 回调 */
|
|
71
|
+
"update:label": (value) => isString(value) || isArray(value) || isNull(value),
|
|
72
|
+
/** @description 数据改变 */
|
|
73
|
+
dataChangeCallBack: (data) => isArray(data),
|
|
74
|
+
/** @description 改变 */
|
|
75
|
+
change: (data, value) => (isObject(data) || isArray(data) || isNull(data)) && (isString(value) || isNumber(value) || isBoolean(value) || isObject(value) || isArray(value) || isNull(value)),
|
|
76
|
+
/** @description 下拉框出现/隐藏时触发 */
|
|
77
|
+
visibleChange: (visible) => isBoolean(visible),
|
|
78
|
+
/** @description 多选模式下移除tag时触发 */
|
|
79
|
+
removeTag: (tagValue) => isString(tagValue) || isNumber(tagValue) || isBoolean(tagValue) || isObject(tagValue) || isArray(tagValue),
|
|
80
|
+
/** @description 可清空的单选模式下用户点击清空按钮时触发 */
|
|
81
|
+
clear: () => true,
|
|
82
|
+
/** @description 当 input 失去焦点时触发 */
|
|
83
|
+
blur: (event) => event instanceof FocusEvent,
|
|
84
|
+
/** @description 当 input 获得焦点时触发 */
|
|
85
|
+
focus: (event) => event instanceof FocusEvent
|
|
86
|
+
};
|
|
87
|
+
const SelectPage = /* @__PURE__ */ defineComponent({
|
|
88
|
+
name: "FaSelectPage",
|
|
89
|
+
props: faSelectPageProps,
|
|
90
|
+
emits: faSelectPageEmits,
|
|
91
|
+
slots: makeSlots(),
|
|
92
|
+
setup(props, {
|
|
93
|
+
attrs,
|
|
94
|
+
slots,
|
|
95
|
+
emit,
|
|
96
|
+
expose
|
|
97
|
+
}) {
|
|
98
|
+
const selectedLabel = useVModel(props, "label", emit, {
|
|
99
|
+
passive: true
|
|
100
|
+
});
|
|
101
|
+
const _globalSize = useGlobalSize();
|
|
102
|
+
const state = reactive({
|
|
103
|
+
value: withDefineType(),
|
|
104
|
+
loading: false,
|
|
105
|
+
selectorData: withDefineType([]),
|
|
106
|
+
/** 选中的数据 */
|
|
107
|
+
selectedList: withDefineType([]),
|
|
108
|
+
/** 首次出现 */
|
|
109
|
+
debut: true,
|
|
110
|
+
/** 回显 */
|
|
111
|
+
echo: true,
|
|
112
|
+
/** 下次刷新 */
|
|
113
|
+
nextRefresh: false,
|
|
114
|
+
pageIndex: 1,
|
|
115
|
+
pageSize: 15,
|
|
116
|
+
totalRows: 0,
|
|
117
|
+
searchValue: void 0,
|
|
118
|
+
defaultSelectorData: withDefineType()
|
|
119
|
+
});
|
|
120
|
+
const selectRef = ref();
|
|
121
|
+
const handleData = (data) => {
|
|
122
|
+
return data?.map((m) => ({
|
|
123
|
+
...m,
|
|
124
|
+
value: m[props.valueKey],
|
|
125
|
+
label: isFunction(props.props.label) ? props.props.label(m) : m[props.props.label ?? "label"],
|
|
126
|
+
hide: isFunction(props.props.hide) ? props.props.hide(m) : m[props.props.hide ?? "hide"],
|
|
127
|
+
disabled: isFunction(props.props.disabled) ? props.props.disabled(m) : m[props.props.disabled ?? "disabled"],
|
|
128
|
+
children: isFunction(props.props.children) ? handleData(props.props.children(m)) : handleData(m[props.props.children ?? "children"])
|
|
129
|
+
})).filter((f) => !f.hide);
|
|
130
|
+
};
|
|
131
|
+
const loadData = async (pageIndex) => {
|
|
132
|
+
state.loading = true;
|
|
133
|
+
state.pageIndex = pageIndex ?? state.pageIndex;
|
|
134
|
+
const params = {
|
|
135
|
+
...props.initParam ?? {},
|
|
136
|
+
pageIndex: state.pageIndex,
|
|
137
|
+
pageSize: state.pageSize,
|
|
138
|
+
searchValue: state.searchValue
|
|
139
|
+
};
|
|
140
|
+
try {
|
|
141
|
+
const resData = await props.requestApi(params);
|
|
142
|
+
state.echo = false;
|
|
143
|
+
state.totalRows = resData.totalRows;
|
|
144
|
+
state.selectorData = handleData(resData.rows);
|
|
145
|
+
emit("dataChangeCallBack", state.selectorData);
|
|
146
|
+
} catch (error) {
|
|
147
|
+
consoleError("FaSelectPage", error);
|
|
148
|
+
state.pageIndex = 1;
|
|
149
|
+
state.totalRows = 0;
|
|
150
|
+
state.selectorData = [];
|
|
151
|
+
} finally {
|
|
152
|
+
state.loading = false;
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
const handleChange = (value) => {
|
|
156
|
+
if (props.multiple) {
|
|
157
|
+
const valueArr = value;
|
|
158
|
+
if (valueArr?.length === 0) {
|
|
159
|
+
state.value = null;
|
|
160
|
+
selectedLabel.value = null;
|
|
161
|
+
state.selectedList = [];
|
|
162
|
+
emit("update:modelValue", null);
|
|
163
|
+
emit("change", null, null);
|
|
164
|
+
return;
|
|
165
|
+
}
|
|
166
|
+
const dataList = state.selectorData.filter((f) => valueArr.includes(f.value));
|
|
167
|
+
state.value = value;
|
|
168
|
+
selectedLabel.value = dataList.map((m) => m.label);
|
|
169
|
+
state.selectedList = [...state.selectedList.filter((f) => !dataList.some((s) => s.value === f.value)), ...dataList].filter((f) => valueArr.includes(f.value));
|
|
170
|
+
emit("update:modelValue", value);
|
|
171
|
+
emit("change", dataList, value);
|
|
172
|
+
} else {
|
|
173
|
+
if (isNil(value)) {
|
|
174
|
+
state.value = null;
|
|
175
|
+
selectedLabel.value = null;
|
|
176
|
+
state.selectedList = [];
|
|
177
|
+
emit("update:modelValue", null);
|
|
178
|
+
emit("change", null, null);
|
|
179
|
+
return;
|
|
180
|
+
}
|
|
181
|
+
const data = state.selectorData.find((f) => f.value === value);
|
|
182
|
+
state.value = value;
|
|
183
|
+
selectedLabel.value = data.label;
|
|
184
|
+
if (!state.selectedList.some((s) => s.value === value)) {
|
|
185
|
+
state.selectedList = [data];
|
|
186
|
+
}
|
|
187
|
+
emit("update:modelValue", value);
|
|
188
|
+
emit("change", data, value);
|
|
189
|
+
}
|
|
190
|
+
};
|
|
191
|
+
const handleClear = () => {
|
|
192
|
+
state.value = null;
|
|
193
|
+
selectedLabel.value = null;
|
|
194
|
+
state.selectedList = [];
|
|
195
|
+
emit("clear");
|
|
196
|
+
};
|
|
197
|
+
const handleVisibleChange = async (visible) => {
|
|
198
|
+
if (visible) {
|
|
199
|
+
if (state.debut) {
|
|
200
|
+
state.debut = false;
|
|
201
|
+
await loadData();
|
|
202
|
+
} else {
|
|
203
|
+
if (state.nextRefresh) {
|
|
204
|
+
state.nextRefresh = false;
|
|
205
|
+
await loadData();
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
emit("visibleChange", visible);
|
|
210
|
+
};
|
|
211
|
+
watch(() => props.modelValue, (newValue) => {
|
|
212
|
+
if (state.echo && !isNil(newValue)) {
|
|
213
|
+
const hasLabel = !isNil(props.label);
|
|
214
|
+
if (props.multiple) {
|
|
215
|
+
if (!isArray(newValue)) {
|
|
216
|
+
consoleError("FaSelectPage", "当启用 multiple 时,传入的 modelValue 必须是Array。");
|
|
217
|
+
return;
|
|
218
|
+
}
|
|
219
|
+
if (hasLabel && !isArray(props.label)) {
|
|
220
|
+
consoleError("FaSelectPage", "当启用 multiple 时,传入的 modelValue:label 必须是Array。");
|
|
221
|
+
return;
|
|
222
|
+
}
|
|
223
|
+
state.selectedList = newValue.slice(0, props.multipleLimit > 0 ? props.multipleLimit : newValue.length).map((item, index) => ({
|
|
224
|
+
value: item,
|
|
225
|
+
label: hasLabel ? props.label[index] : void 0
|
|
226
|
+
}));
|
|
227
|
+
} else {
|
|
228
|
+
if (isArray(newValue)) {
|
|
229
|
+
consoleError("FaSelectPage", "当禁用 multiple 时,传入的 modelValue 不能是Array。");
|
|
230
|
+
return;
|
|
231
|
+
}
|
|
232
|
+
if (hasLabel && isArray(props.label)) {
|
|
233
|
+
consoleError("FaSelectPage", "当禁用 multiple 时,传入的 modelValue:label 不能是Array。");
|
|
234
|
+
return;
|
|
235
|
+
}
|
|
236
|
+
state.defaultSelectorData = {
|
|
237
|
+
value: newValue,
|
|
238
|
+
label: props.label
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
state.value = newValue;
|
|
243
|
+
}, {
|
|
244
|
+
immediate: true
|
|
245
|
+
});
|
|
246
|
+
onMounted(() => {
|
|
247
|
+
watch(() => props.initParam, (newValue, oldValue) => {
|
|
248
|
+
if (!isEqual(newValue, oldValue)) {
|
|
249
|
+
state.nextRefresh = true;
|
|
250
|
+
if (!isNil(state.value)) {
|
|
251
|
+
handleChange();
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
});
|
|
255
|
+
});
|
|
256
|
+
const elSelectProps = useProps(props, SelectProps, ["modelValue", "popperClass", "loading"]);
|
|
257
|
+
useRender(() => createVNode(ElSelect, mergeProps(elSelectProps.value, {
|
|
258
|
+
"ref": selectRef,
|
|
259
|
+
"class": "fa-select-page",
|
|
260
|
+
"popperClass": `fa-select-page-dropdown fa-select-page-dropdown-${_globalSize.value} ${props.popperClass}`,
|
|
261
|
+
"style": {
|
|
262
|
+
width: addUnit(props.width)
|
|
263
|
+
},
|
|
264
|
+
"modelValue": state.value,
|
|
265
|
+
"onUpdate:modelValue": ($event) => state.value = $event,
|
|
266
|
+
"loading": state.loading,
|
|
267
|
+
"onChange": handleChange,
|
|
268
|
+
"onClear": handleClear,
|
|
269
|
+
"onVisibleChange": handleVisibleChange,
|
|
270
|
+
"onRemoveTag": (tagValue) => emit("removeTag", tagValue),
|
|
271
|
+
"onBlur": (event) => emit("blur", event),
|
|
272
|
+
"onFocus": (event) => emit("focus", event)
|
|
273
|
+
}), {
|
|
274
|
+
default: () => state.selectorData.map((item) => createVNode(FaSelectOption, {
|
|
275
|
+
"data": item,
|
|
276
|
+
"moreDetail": props.moreDetail
|
|
277
|
+
}, {
|
|
278
|
+
default: slots.default
|
|
279
|
+
})),
|
|
280
|
+
header: () => createVNode(Fragment, null, [state.defaultSelectorData && createVNode(ElOption, {
|
|
281
|
+
"class": "fa-select-page-dropdown__default-selector",
|
|
282
|
+
"value": state.defaultSelectorData.value,
|
|
283
|
+
"label": state.defaultSelectorData.label,
|
|
284
|
+
"disabled": true
|
|
285
|
+
}, {
|
|
286
|
+
default: () => [createVNode("span", null, [state.defaultSelectorData.label]), createVNode("span", null, [createTextVNode("Default")])]
|
|
287
|
+
}), createVNode(ElInput, {
|
|
288
|
+
"class": "fa-select-page-dropdown__search-input",
|
|
289
|
+
"clearable": true,
|
|
290
|
+
"placeholder": "请输入关键字搜索",
|
|
291
|
+
"modelValue": state.searchValue,
|
|
292
|
+
"modelModifiers": {
|
|
293
|
+
"trim": true
|
|
294
|
+
},
|
|
295
|
+
"onUpdate:modelValue": ($event) => state.searchValue = $event,
|
|
296
|
+
"onKeyup": (event) => {
|
|
297
|
+
if (event.key === "Enter") {
|
|
298
|
+
loadData(1);
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
}, {
|
|
302
|
+
append: () => createVNode(ElButton, {
|
|
303
|
+
"loading": state.loading,
|
|
304
|
+
"icon": Search,
|
|
305
|
+
"onClick": () => loadData(1)
|
|
306
|
+
}, null)
|
|
307
|
+
}), slots.header && slots.header()]),
|
|
308
|
+
footer: () => createVNode(Fragment, null, [createVNode(ElPagination, {
|
|
309
|
+
"class": "fa-select-page-dropdown__pagination",
|
|
310
|
+
"size": "small",
|
|
311
|
+
"currentPage": state.pageIndex,
|
|
312
|
+
"pageSize": state.pageSize,
|
|
313
|
+
"total": state.totalRows,
|
|
314
|
+
"layout": "prev, pager, next, total",
|
|
315
|
+
"pagerCount": 5,
|
|
316
|
+
"onCurrentChange": loadData
|
|
317
|
+
}, null), slots.footer && slots.footer()]),
|
|
318
|
+
...slots.prefix && {
|
|
319
|
+
prefix: () => slots.prefix()
|
|
320
|
+
},
|
|
321
|
+
...slots.empty && {
|
|
322
|
+
empty: () => slots.empty()
|
|
323
|
+
},
|
|
324
|
+
...slots.tag && {
|
|
325
|
+
tag: () => slots.tag()
|
|
326
|
+
},
|
|
327
|
+
...slots.loading && {
|
|
328
|
+
loading: () => slots.loading()
|
|
329
|
+
},
|
|
330
|
+
...props.multiple ? {
|
|
331
|
+
label: ({
|
|
332
|
+
label,
|
|
333
|
+
value
|
|
334
|
+
}) => {
|
|
335
|
+
const selectedData = state.selectedList.find((f) => f.value === value);
|
|
336
|
+
if (slots.label) {
|
|
337
|
+
return slots.label({
|
|
338
|
+
label: selectedData?.label,
|
|
339
|
+
value: isNil(selectedData) ? value : selectedData?.value
|
|
340
|
+
});
|
|
341
|
+
}
|
|
342
|
+
return selectedData && createVNode("span", {
|
|
343
|
+
"class": "el-select__tags-text"
|
|
344
|
+
}, [selectedData.label]);
|
|
345
|
+
}
|
|
346
|
+
} : slots.label && {
|
|
347
|
+
label: ({
|
|
348
|
+
label,
|
|
349
|
+
value
|
|
350
|
+
}) => slots.label({
|
|
351
|
+
label,
|
|
352
|
+
value
|
|
353
|
+
})
|
|
354
|
+
}
|
|
355
|
+
}));
|
|
356
|
+
return useExpose(expose, {
|
|
357
|
+
/** @description 使选择器的输入框获取焦点 */
|
|
358
|
+
focus: computed(() => selectRef.value?.focus),
|
|
359
|
+
/** @description 使选择器的输入框失去焦点,并隐藏下拉框 */
|
|
360
|
+
blur: computed(() => selectRef.value?.blur),
|
|
361
|
+
/** @description 获取当前选中的标签 */
|
|
362
|
+
selectedLabel: computed(() => selectRef.value?.selectedLabel),
|
|
363
|
+
/** @description 加载状态 */
|
|
364
|
+
loading: computed(() => state.loading),
|
|
365
|
+
/** @description 选中的数据 */
|
|
366
|
+
selectedList: computed(() => state.selectedList),
|
|
367
|
+
/** @description 刷新 */
|
|
368
|
+
refresh: loadData,
|
|
369
|
+
/** @description 设置选择 */
|
|
370
|
+
setSelection: (value) => handleChange(value),
|
|
371
|
+
/** @description 清除选择 */
|
|
372
|
+
clearSelection: () => handleChange(null)
|
|
373
|
+
});
|
|
374
|
+
}
|
|
375
|
+
});
|
|
376
|
+
export {
|
|
377
|
+
SelectPage as default,
|
|
378
|
+
faSelectPageEmits,
|
|
379
|
+
faSelectPageProps
|
|
380
|
+
};
|
|
381
|
+
//# sourceMappingURL=selectPage.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selectPage.mjs","sources":["../../../../../packages/components/selectPage/src/selectPage.tsx"],"sourcesContent":["import { Fragment, computed, defineComponent, onMounted, reactive, ref, watch } from \"vue\";\nimport { ElButton, ElInput, ElOption, ElPagination, ElSelect, useGlobalSize } from \"element-plus\";\nimport { Search } from \"@element-plus/icons-vue\";\nimport { FaSelectOption, SelectProps } from \"@fast-element-plus/components/select\";\nimport { type SelectComponentProps } from \"@fast-element-plus/components/select/src/select\";\nimport { addUnit, consoleError, definePropType, makeSlots, useExpose, useProps, useRender, withDefineType } from \"@fast-china/utils\";\nimport { useVModel } from \"@vueuse/core\";\nimport { isArray, isBoolean, isEqual, isFunction, isNil, isNull, isNumber, isObject, isString } from \"lodash-unified\";\nimport type { ElSelectorOutput } from \"@fast-element-plus/components/select\";\nimport type { PagedInput, PagedResult } from \"@fast-element-plus/components/table\";\nimport type { VNode } from \"vue\";\n\nexport const faSelectPageProps = {\n\t...SelectProps,\n\t/** @description displayed text while loading data from server, default is 'Loading' */\n\tloadingText: {\n\t\ttype: String,\n\t\tdefault: \"加载中...\",\n\t},\n\t/** @description displayed text when no data matches the filtering query, you can also use slot `empty`, default is 'No matching data' */\n\tnoMatchText: {\n\t\ttype: String,\n\t\tdefault: \"暂无匹配的数据\",\n\t},\n\t/** @description displayed text when there is no options, you can also use slot `empty`, default is 'No data' */\n\tnoDataText: {\n\t\ttype: String,\n\t\tdefault: \"暂无数据\",\n\t},\n\t/** @description whether to collapse tags to a text when multiple selecting */\n\tcollapseTags: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n\t/** @description whether show all selected tags when mouse hover text of collapse-tags. To use this, `collapse-tags` must be true */\n\tcollapseTagsTooltip: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n\t/** @description v-model绑定值 */\n\tmodelValue: {\n\t\ttype: definePropType<string | number | boolean | object | (string | number | boolean | object)[]>([String, Number, Boolean, Object, Array]),\n\t\tdefault: undefined,\n\t},\n\t/** @description v-model:label绑定值 */\n\tlabel: definePropType<string | string[]>([String, Array]),\n\t/** @description 宽度 */\n\twidth: {\n\t\ttype: [String, Number],\n\t\tdefault: \"100%\",\n\t},\n\t/** @description 更多细节,只有使用slot的时候有用 */\n\tmoreDetail: Boolean,\n\t/** @description 配置选项 */\n\tprops: {\n\t\ttype: definePropType<SelectComponentProps>(Object),\n\t\tdefault: (): Partial<SelectComponentProps> => ({\n\t\t\tlabel: \"label\",\n\t\t\thide: \"hide\",\n\t\t\tdisabled: \"disabled\",\n\t\t\tchildren: \"children\",\n\t\t}),\n\t},\n\t/** @description 请求api */\n\trequestApi: {\n\t\ttype: definePropType<(params?: PagedInput) => Promise<PagedResult<ElSelectorOutput>>>(Function),\n\t},\n\t/** 初始化参数 */\n\tinitParam: definePropType<string | number | any>([String, Number, Object]),\n};\n\nexport const faSelectPageEmits = {\n\t/** @description v-model 回调 */\n\t\"update:modelValue\": (value: string | number | boolean | object | (string | number | boolean | object)[]): boolean =>\n\t\tisString(value) || isNumber(value) || isBoolean(value) || isObject(value) || isArray(value) || isNull(value),\n\t/** @description v-model:label 回调 */\n\t\"update:label\": (value: string | string[]): boolean => isString(value) || isArray(value) || isNull(value),\n\t/** @description 数据改变 */\n\tdataChangeCallBack: (data: ElSelectorOutput[] | any[]): boolean => isArray(data),\n\t/** @description 改变 */\n\tchange: (\n\t\tdata: ElSelectorOutput | ElSelectorOutput[] | any | any[],\n\t\tvalue?: string | number | boolean | object | (string | number | boolean | object)[]\n\t): boolean =>\n\t\t(isObject(data) || isArray(data) || isNull(data)) &&\n\t\t(isString(value) || isNumber(value) || isBoolean(value) || isObject(value) || isArray(value) || isNull(value)),\n\t/** @description 下拉框出现/隐藏时触发 */\n\tvisibleChange: (visible: boolean): boolean => isBoolean(visible),\n\t/** @description 多选模式下移除tag时触发 */\n\tremoveTag: (tagValue: any): boolean => isString(tagValue) || isNumber(tagValue) || isBoolean(tagValue) || isObject(tagValue) || isArray(tagValue),\n\t/** @description 可清空的单选模式下用户点击清空按钮时触发 */\n\tclear: (): boolean => true,\n\t/** @description 当 input 失去焦点时触发 */\n\tblur: (event: FocusEvent): boolean => event instanceof FocusEvent,\n\t/** @description 当 input 获得焦点时触发 */\n\tfocus: (event: FocusEvent): boolean => event instanceof FocusEvent,\n};\n\ntype FaSelectPageSlots = {\n\t/** @description FaSelectOption 默认内容插槽 */\n\tdefault: ElSelectorOutput;\n\t/** @description 下拉列表顶部的内容 */\n\theader: never;\n\t/** @description 下拉列表底部的内容 */\n\tfooter: never;\n\t/** @description Select 组件头部内容 */\n\tprefix: never;\n\t/** @description 无选项时的列表 */\n\tempty: never;\n\t/** @description select 组件自定义标签内容 */\n\ttag: never;\n\t/** @description select 组件自定义 loading内容 */\n\tloading: never;\n\t/** @description select 组件自定义标签内容 */\n\tlabel: { label: string; value: string | number | boolean | object };\n};\n\nexport default defineComponent({\n\tname: \"FaSelectPage\",\n\tprops: faSelectPageProps,\n\temits: faSelectPageEmits,\n\tslots: makeSlots<FaSelectPageSlots>(),\n\tsetup(props, { attrs, slots, emit, expose }) {\n\t\tconst selectedLabel = useVModel(props, \"label\", emit, { passive: true });\n\t\tconst _globalSize = useGlobalSize();\n\n\t\tconst state = reactive({\n\t\t\tvalue: withDefineType<string | number | boolean | object | (string | number | boolean | object)[]>(),\n\t\t\tloading: false,\n\t\t\tselectorData: withDefineType<ElSelectorOutput[]>([]),\n\t\t\t/** 选中的数据 */\n\t\t\tselectedList: withDefineType<ElSelectorOutput[]>([]),\n\t\t\t/** 首次出现 */\n\t\t\tdebut: true,\n\t\t\t/** 回显 */\n\t\t\techo: true,\n\t\t\t/** 下次刷新 */\n\t\t\tnextRefresh: false,\n\t\t\tpageIndex: 1,\n\t\t\tpageSize: 15,\n\t\t\ttotalRows: 0,\n\t\t\tsearchValue: undefined,\n\t\t\tdefaultSelectorData: withDefineType<ElSelectorOutput>(),\n\t\t});\n\n\t\tconst selectRef = ref<InstanceType<typeof ElSelect>>();\n\n\t\tconst handleData = (data: ElSelectorOutput[]): ElSelectorOutput[] => {\n\t\t\treturn data\n\t\t\t\t?.map((m) => ({\n\t\t\t\t\t...m,\n\t\t\t\t\tvalue: m[props.valueKey],\n\t\t\t\t\tlabel: isFunction(props.props.label) ? props.props.label(m) : m[props.props.label ?? \"label\"],\n\t\t\t\t\thide: isFunction(props.props.hide) ? props.props.hide(m) : m[props.props.hide ?? \"hide\"],\n\t\t\t\t\tdisabled: isFunction(props.props.disabled) ? props.props.disabled(m) : m[props.props.disabled ?? \"disabled\"],\n\t\t\t\t\tchildren: isFunction(props.props.children)\n\t\t\t\t\t\t? handleData(props.props.children(m))\n\t\t\t\t\t\t: handleData(m[props.props.children ?? \"children\"]),\n\t\t\t\t}))\n\t\t\t\t.filter((f) => !f.hide);\n\t\t};\n\n\t\tconst loadData = async (pageIndex?: number): Promise<void> => {\n\t\t\tstate.loading = true;\n\t\t\tstate.pageIndex = pageIndex ?? state.pageIndex;\n\t\t\tconst params: PagedInput = {\n\t\t\t\t...(props.initParam ?? {}),\n\t\t\t\tpageIndex: state.pageIndex,\n\t\t\t\tpageSize: state.pageSize,\n\t\t\t\tsearchValue: state.searchValue,\n\t\t\t};\n\t\t\ttry {\n\t\t\t\tconst resData = await props.requestApi(params);\n\t\t\t\t// 这里不允许回显了\n\t\t\t\tstate.echo = false;\n\t\t\t\tstate.totalRows = resData.totalRows;\n\t\t\t\tstate.selectorData = handleData(resData.rows);\n\t\t\t\temit(\"dataChangeCallBack\", state.selectorData);\n\t\t\t} catch (error) {\n\t\t\t\tconsoleError(\"FaSelectPage\", error);\n\t\t\t\tstate.pageIndex = 1;\n\t\t\t\tstate.totalRows = 0;\n\t\t\t\tstate.selectorData = [];\n\t\t\t} finally {\n\t\t\t\tstate.loading = false;\n\t\t\t}\n\t\t};\n\n\t\tconst handleChange = (value?: string | number | boolean | object | (string | number | boolean | object)[]): void => {\n\t\t\t// 判断是否为多选\n\t\t\tif (props.multiple) {\n\t\t\t\t// value 必然是数组\n\t\t\t\tconst valueArr = value as (string | number | boolean | object)[];\n\t\t\t\tif (valueArr?.length === 0) {\n\t\t\t\t\tstate.value = null;\n\t\t\t\t\tselectedLabel.value = null;\n\t\t\t\t\tstate.selectedList = [];\n\t\t\t\t\temit(\"update:modelValue\", null);\n\t\t\t\t\temit(\"change\", null, null);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tconst dataList = state.selectorData.filter((f) => valueArr.includes(f.value));\n\t\t\t\tstate.value = value;\n\t\t\t\tselectedLabel.value = dataList.map((m) => m.label);\n\t\t\t\tstate.selectedList = [...state.selectedList.filter((f) => !dataList.some((s) => s.value === f.value)), ...dataList]\n\t\t\t\t\t// 过滤不存在的\n\t\t\t\t\t.filter((f) => valueArr.includes(f.value));\n\t\t\t\temit(\"update:modelValue\", value);\n\t\t\t\temit(\"change\", dataList, value);\n\t\t\t} else {\n\t\t\t\t// value 必然不是数组\n\t\t\t\tif (isNil(value)) {\n\t\t\t\t\tstate.value = null;\n\t\t\t\t\tselectedLabel.value = null;\n\t\t\t\t\tstate.selectedList = [];\n\t\t\t\t\temit(\"update:modelValue\", null);\n\t\t\t\t\temit(\"change\", null, null);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tconst data = state.selectorData.find((f) => f.value === value);\n\t\t\t\tstate.value = value;\n\t\t\t\tselectedLabel.value = data.label;\n\t\t\t\tif (!state.selectedList.some((s) => s.value === value)) {\n\t\t\t\t\tstate.selectedList = [data];\n\t\t\t\t}\n\t\t\t\temit(\"update:modelValue\", value);\n\t\t\t\temit(\"change\", data, value);\n\t\t\t}\n\t\t};\n\n\t\tconst handleClear = (): void => {\n\t\t\tstate.value = null;\n\t\t\tselectedLabel.value = null;\n\t\t\tstate.selectedList = [];\n\t\t\temit(\"clear\");\n\t\t};\n\n\t\tconst handleVisibleChange = async (visible: boolean): Promise<void> => {\n\t\t\tif (visible) {\n\t\t\t\tif (state.debut) {\n\t\t\t\t\t// 首次出现\n\t\t\t\t\tstate.debut = false;\n\t\t\t\t\tawait loadData();\n\t\t\t\t} else {\n\t\t\t\t\t// 判断再次出现是否需要刷新数据\n\t\t\t\t\tif (state.nextRefresh) {\n\t\t\t\t\t\tstate.nextRefresh = false;\n\t\t\t\t\t\tawait loadData();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\temit(\"visibleChange\", visible);\n\t\t};\n\n\t\twatch(\n\t\t\t() => props.modelValue,\n\t\t\t(newValue) => {\n\t\t\t\tif (state.echo && !isNil(newValue)) {\n\t\t\t\t\tconst hasLabel = !isNil(props.label);\n\t\t\t\t\t// 判断是否为多选\n\t\t\t\t\tif (props.multiple) {\n\t\t\t\t\t\tif (!isArray(newValue)) {\n\t\t\t\t\t\t\tconsoleError(\"FaSelectPage\", \"当启用 multiple 时,传入的 modelValue 必须是Array。\");\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (hasLabel && !isArray(props.label)) {\n\t\t\t\t\t\t\tconsoleError(\"FaSelectPage\", \"当启用 multiple 时,传入的 modelValue:label 必须是Array。\");\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tstate.selectedList = newValue\n\t\t\t\t\t\t\t// 最大选项截取\n\t\t\t\t\t\t\t.slice(0, props.multipleLimit > 0 ? props.multipleLimit : newValue.length)\n\t\t\t\t\t\t\t.map((item, index) => ({\n\t\t\t\t\t\t\t\tvalue: item,\n\t\t\t\t\t\t\t\tlabel: hasLabel ? props.label[index] : undefined,\n\t\t\t\t\t\t\t}));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (isArray(newValue)) {\n\t\t\t\t\t\t\tconsoleError(\"FaSelectPage\", \"当禁用 multiple 时,传入的 modelValue 不能是Array。\");\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (hasLabel && isArray(props.label)) {\n\t\t\t\t\t\t\tconsoleError(\"FaSelectPage\", \"当禁用 multiple 时,传入的 modelValue:label 不能是Array。\");\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tstate.defaultSelectorData = {\n\t\t\t\t\t\t\tvalue: newValue,\n\t\t\t\t\t\t\tlabel: props.label,\n\t\t\t\t\t\t};\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tstate.value = newValue;\n\t\t\t},\n\t\t\t{\n\t\t\t\timmediate: true,\n\t\t\t}\n\t\t);\n\n\t\tonMounted(() => {\n\t\t\twatch(\n\t\t\t\t() => props.initParam,\n\t\t\t\t(newValue, oldValue) => {\n\t\t\t\t\tif (!isEqual(newValue, oldValue)) {\n\t\t\t\t\t\tstate.nextRefresh = true;\n\t\t\t\t\t\tif (!isNil(state.value)) {\n\t\t\t\t\t\t\thandleChange();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t);\n\t\t});\n\n\t\tconst elSelectProps = useProps(props, SelectProps, [\"modelValue\", \"popperClass\", \"loading\"]);\n\n\t\tuseRender(() => (\n\t\t\t<ElSelect\n\t\t\t\t{...elSelectProps.value}\n\t\t\t\tref={selectRef}\n\t\t\t\tclass=\"fa-select-page\"\n\t\t\t\tpopperClass={`fa-select-page-dropdown fa-select-page-dropdown-${_globalSize.value} ${props.popperClass}`}\n\t\t\t\tstyle={{ width: addUnit(props.width) }}\n\t\t\t\tvModel={state.value}\n\t\t\t\tloading={state.loading}\n\t\t\t\tonChange={handleChange}\n\t\t\t\tonClear={handleClear}\n\t\t\t\tonVisibleChange={handleVisibleChange}\n\t\t\t\tonRemoveTag={(tagValue: any) => emit(\"removeTag\", tagValue)}\n\t\t\t\tonBlur={(event: FocusEvent) => emit(\"blur\", event)}\n\t\t\t\tonFocus={(event: FocusEvent) => emit(\"focus\", event)}\n\t\t\t>\n\t\t\t\t{{\n\t\t\t\t\tdefault: (): VNode[] =>\n\t\t\t\t\t\tstate.selectorData.map((item) => (\n\t\t\t\t\t\t\t<FaSelectOption vSlots={{ default: slots.default }} data={item} moreDetail={props.moreDetail} />\n\t\t\t\t\t\t)),\n\t\t\t\t\theader: (): VNode[] => (\n\t\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t\t{state.defaultSelectorData && (\n\t\t\t\t\t\t\t\t<ElOption\n\t\t\t\t\t\t\t\t\tclass=\"fa-select-page-dropdown__default-selector\"\n\t\t\t\t\t\t\t\t\tvalue={state.defaultSelectorData.value}\n\t\t\t\t\t\t\t\t\tlabel={state.defaultSelectorData.label}\n\t\t\t\t\t\t\t\t\tdisabled={true}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<span>{state.defaultSelectorData.label}</span>\n\t\t\t\t\t\t\t\t\t<span>Default</span>\n\t\t\t\t\t\t\t\t</ElOption>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t<ElInput\n\t\t\t\t\t\t\t\t\tclass=\"fa-select-page-dropdown__search-input\"\n\t\t\t\t\t\t\t\t\tclearable\n\t\t\t\t\t\t\t\t\tplaceholder=\"请输入关键字搜索\"\n\t\t\t\t\t\t\t\t\tvModel_trim={state.searchValue}\n\t\t\t\t\t\t\t\t\tonKeyup={(event: KeyboardEvent) => {\n\t\t\t\t\t\t\t\t\t\tif (event.key === \"Enter\") {\n\t\t\t\t\t\t\t\t\t\t\tloadData(1);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{{\n\t\t\t\t\t\t\t\t\t\tappend: () => <ElButton loading={state.loading} icon={Search} onClick={() => loadData(1)}></ElButton>,\n\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t</ElInput>\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t{slots.header && slots.header()}\n\t\t\t\t\t\t</Fragment>\n\t\t\t\t\t),\n\t\t\t\t\tfooter: () => (\n\t\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t\t<ElPagination\n\t\t\t\t\t\t\t\tclass=\"fa-select-page-dropdown__pagination\"\n\t\t\t\t\t\t\t\tsize=\"small\"\n\t\t\t\t\t\t\t\tcurrentPage={state.pageIndex}\n\t\t\t\t\t\t\t\tpageSize={state.pageSize}\n\t\t\t\t\t\t\t\ttotal={state.totalRows}\n\t\t\t\t\t\t\t\tlayout=\"prev, pager, next, total\"\n\t\t\t\t\t\t\t\tpagerCount={5}\n\t\t\t\t\t\t\t\tonCurrentChange={loadData}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t{slots.footer && slots.footer()}\n\t\t\t\t\t\t</Fragment>\n\t\t\t\t\t),\n\t\t\t\t\t...(slots.prefix && { prefix: (): VNode[] => slots.prefix() }),\n\t\t\t\t\t...(slots.empty && { empty: (): VNode[] => slots.empty() }),\n\t\t\t\t\t...(slots.tag && { tag: (): VNode[] => slots.tag() }),\n\t\t\t\t\t...(slots.loading && { loading: (): VNode[] => slots.loading() }),\n\t\t\t\t\t...(props.multiple\n\t\t\t\t\t\t? {\n\t\t\t\t\t\t\t\tlabel: ({ label, value }: { label: string; value: string | number | boolean | object }): VNode[] => {\n\t\t\t\t\t\t\t\t\tconst selectedData = state.selectedList.find((f) => f.value === value);\n\t\t\t\t\t\t\t\t\tif (slots.label) {\n\t\t\t\t\t\t\t\t\t\treturn slots.label({ label: selectedData?.label, value: isNil(selectedData) ? value : selectedData?.value });\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn selectedData && <span class=\"el-select__tags-text\">{selectedData.label}</span>;\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t: slots.label && {\n\t\t\t\t\t\t\t\tlabel: ({ label, value }: { label: string; value: string | number | boolean | object }): VNode[] =>\n\t\t\t\t\t\t\t\t\tslots.label({ label, value }),\n\t\t\t\t\t\t\t}),\n\t\t\t\t}}\n\t\t\t</ElSelect>\n\t\t));\n\n\t\treturn useExpose(expose, {\n\t\t\t/** @description 使选择器的输入框获取焦点 */\n\t\t\tfocus: computed(() => selectRef.value?.focus),\n\t\t\t/** @description 使选择器的输入框失去焦点,并隐藏下拉框 */\n\t\t\tblur: computed(() => selectRef.value?.blur),\n\t\t\t/** @description 获取当前选中的标签 */\n\t\t\tselectedLabel: computed(() => selectRef.value?.selectedLabel),\n\t\t\t/** @description 加载状态 */\n\t\t\tloading: computed(() => state.loading),\n\t\t\t/** @description 选中的数据 */\n\t\t\tselectedList: computed(() => state.selectedList),\n\t\t\t/** @description 刷新 */\n\t\t\trefresh: loadData,\n\t\t\t/** @description 设置选择 */\n\t\t\tsetSelection: (value: string | number | boolean | object | (string | number | boolean | object)[]) => handleChange(value),\n\t\t\t/** @description 清除选择 */\n\t\t\tclearSelection: () => handleChange(null),\n\t\t});\n\t},\n});\n"],"names":["faSelectPageProps","SelectProps","loadingText","type","String","default","noMatchText","noDataText","collapseTags","Boolean","collapseTagsTooltip","modelValue","definePropType","Number","Object","Array","undefined","label","width","moreDetail","props","hide","disabled","children","requestApi","Function","initParam","faSelectPageEmits","value","isString","isNumber","isBoolean","isObject","isArray","isNull","dataChangeCallBack","data","change","visibleChange","visible","removeTag","tagValue","clear","blur","event","FocusEvent","focus","name","emits","slots","makeSlots","setup","attrs","emit","expose","selectedLabel","useVModel","passive","_globalSize","useGlobalSize","state","reactive","withDefineType","loading","selectorData","selectedList","debut","echo","nextRefresh","pageIndex","pageSize","totalRows","searchValue","defaultSelectorData","selectRef","ref","handleData","map","m","valueKey","isFunction","filter","f","loadData","params","resData","rows","error","consoleError","handleChange","multiple","valueArr","length","dataList","includes","some","s","isNil","find","handleClear","handleVisibleChange","watch","newValue","hasLabel","slice","multipleLimit","item","index","immediate","onMounted","oldValue","isEqual","elSelectProps","useProps","useRender","_createVNode","ElSelect","_mergeProps","popperClass","addUnit","$event","FaSelectOption","header","_Fragment","ElOption","_createTextVNode","ElInput","key","append","ElButton","Search","onClick","footer","ElPagination","prefix","empty","tag","selectedData","useExpose","computed","refresh","setSelection","clearSelection"],"mappings":";;;;;;;;AAYO,MAAMA,oBAAoB;AAAA,EAChC,GAAGC;AAAAA;AAAAA,EAEHC,aAAa;AAAA,IACZC,MAAMC;AAAAA,IACNC,SAAS;AAAA;;EAGVC,aAAa;AAAA,IACZH,MAAMC;AAAAA,IACNC,SAAS;AAAA;;EAGVE,YAAY;AAAA,IACXJ,MAAMC;AAAAA,IACNC,SAAS;AAAA;;EAGVG,cAAc;AAAA,IACbL,MAAMM;AAAAA,IACNJ,SAAS;AAAA;;EAGVK,qBAAqB;AAAA,IACpBP,MAAMM;AAAAA,IACNJ,SAAS;AAAA;;EAGVM,YAAY;AAAA,IACXR,MAAMS,eAA4F,CAACR,QAAQS,QAAQJ,SAASK,QAAQC,KAAK,CAAC;AAAA,IAC1IV,SAASW;AAAAA;;EAGVC,OAAOL,eAAkC,CAACR,QAAQW,KAAK,CAAC;AAAA;AAAA,EAExDG,OAAO;AAAA,IACNf,MAAM,CAACC,QAAQS,MAAM;AAAA,IACrBR,SAAS;AAAA;;EAGVc,YAAYV;AAAAA;AAAAA,EAEZW,OAAO;AAAA,IACNjB,MAAMS,eAAqCE,MAAM;AAAA,IACjDT,SAASA,OAAsC;AAAA,MAC9CY,OAAO;AAAA,MACPI,MAAM;AAAA,MACNC,UAAU;AAAA,MACVC,UAAU;AAAA;;;EAIZC,YAAY;AAAA,IACXrB,MAAMS,eAAgFa,QAAQ;AAAA;;EAG/FC,WAAWd,eAAsC,CAACR,QAAQS,QAAQC,MAAM,CAAC;AAC1E;AAEO,MAAMa,oBAAoB;AAAA;AAAA,EAEhC,qBAAsBC,WACrBC,SAASD,KAAK,KAAKE,SAASF,KAAK,KAAKG,UAAUH,KAAK,KAAKI,SAASJ,KAAK,KAAKK,QAAQL,KAAK,KAAKM,OAAON,KAAK;AAAA;AAAA,EAE5G,gBAAiBA,WAAsCC,SAASD,KAAK,KAAKK,QAAQL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;AAAAA,UAAOW;AAAAA,QAAoE,MACpFqB,MAAMhC,MAAM;AAAA,UAAEA;AAAAA,UAAOW;AAAAA,SAAO;AAAA;IAC5B,CAAA,CAGN;AAED,WAAO8G,UAAUpF,QAAQ;AAAA;AAAA,MAExBR,OAAO6F,SAAS,MAAMjE,UAAU9C,OAAOkB,KAAK;AAAA;AAAA,MAE5CH,MAAMgG,SAAS,MAAMjE,UAAU9C,OAAOe,IAAI;AAAA;AAAA,MAE1CY,eAAeoF,SAAS,MAAMjE,UAAU9C,OAAO2B,aAAa;AAAA;AAAA,MAE5DQ,SAAS4E,SAAS,MAAM/E,MAAMG,OAAO;AAAA;AAAA,MAErCE,cAAc0E,SAAS,MAAM/E,MAAMK,YAAY;AAAA;AAAA,MAE/C2E,SAASzD;AAAAA;AAAAA,MAET0D,cAAejH,WAAuF6D,aAAa7D,KAAK;AAAA;AAAA,MAExHkH,gBAAgBA,MAAMrD,aAAa,IAAI;AAAA,IACxC,CAAC;AAAA,EACF;AACD,CAAC;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ExtractPropTypes } from "vue";
|
|
2
|
+
import { TSXWithInstall } from "@fast-china/utils";
|
|
3
|
+
import { default as SelectV2, SelectV2Props, faSelectV2Emits, faSelectV2Props } from "./src/selectV2";
|
|
4
|
+
|
|
5
|
+
export declare const FaSelectV2: TSXWithInstall<typeof SelectV2>;
|
|
6
|
+
export default FaSelectV2;
|
|
7
|
+
|
|
8
|
+
export { SelectV2Props, faSelectV2Props };
|
|
9
|
+
|
|
10
|
+
export type FaSelectV2Instance = InstanceType<typeof SelectV2>;
|
|
11
|
+
|
|
12
|
+
export type FaSelectV2Props = ExtractPropTypes<typeof faSelectV2Props>;
|
|
13
|
+
|
|
14
|
+
export type FaSelectV2Emits = typeof faSelectV2Emits;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { withInstall } from "@fast-china/utils";
|
|
2
|
+
import SelectV2 from "./src/selectV2.mjs";
|
|
3
|
+
import { SelectV2Props, faSelectV2Props } from "./src/selectV2.mjs";
|
|
4
|
+
const FaSelectV2 = withInstall(SelectV2);
|
|
5
|
+
export {
|
|
6
|
+
FaSelectV2,
|
|
7
|
+
SelectV2Props,
|
|
8
|
+
FaSelectV2 as default,
|
|
9
|
+
faSelectV2Props
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../packages/components/selectV2/index.ts"],"sourcesContent":["import { withInstall } from \"@fast-china/utils\";\nimport SelectV2, { SelectV2Props, faSelectV2Props } from \"./src/selectV2\";\nimport type { faSelectV2Emits } from \"./src/selectV2\";\nimport type { ExtractPropTypes } from \"vue\";\n\nexport const FaSelectV2 = withInstall(SelectV2);\nexport default FaSelectV2;\n\nexport { SelectV2Props, faSelectV2Props };\n\nexport type FaSelectV2Instance = InstanceType<typeof SelectV2>;\n\nexport type FaSelectV2Props = ExtractPropTypes<typeof faSelectV2Props>;\n\nexport type FaSelectV2Emits = typeof faSelectV2Emits;\n"],"names":[],"mappings":";;;AAKO,MAAM,aAAa,YAAY,QAAQ;"}
|