fast-element-plus 1.0.20 → 1.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.full.js +27739 -28664
- package/dist/index.full.js.map +1 -1
- package/dist/index.full.min.js +11042 -2
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +11033 -2
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +27730 -28662
- package/dist/index.full.mjs.map +1 -1
- package/es/_virtual/_rolldown/runtime.mjs +1 -0
- package/es/component.mjs +2 -2
- package/es/component.mjs.map +1 -1
- package/es/components/avatar/index.mjs +2 -2
- package/es/components/avatar/index.mjs.map +1 -1
- package/es/components/avatar/src/avatar.d.ts +10 -10
- package/es/components/avatar/src/avatar.mjs +2 -2
- package/es/components/avatar/src/avatar.mjs.map +1 -1
- package/es/components/button/index.mjs +2 -2
- package/es/components/button/index.mjs.map +1 -1
- package/es/components/button/src/button.d.ts +21 -17
- package/es/components/button/src/button.mjs +2 -2
- package/es/components/button/src/button.mjs.map +1 -1
- package/es/components/carNumber/index.mjs +2 -2
- package/es/components/carNumber/index.mjs.map +1 -1
- package/es/components/carNumber/src/carNumber.d.ts +36 -33
- package/es/components/carNumber/src/carNumber.mjs +2 -2
- package/es/components/carNumber/src/carNumber.mjs.map +1 -1
- package/es/components/carNumber/src/common.mjs +2 -2
- package/es/components/carNumber/src/common.mjs.map +1 -1
- package/es/components/contextMenu/index.mjs +2 -2
- package/es/components/contextMenu/index.mjs.map +1 -1
- package/es/components/contextMenu/src/contextMenu.mjs +2 -2
- package/es/components/contextMenu/src/contextMenu.mjs.map +1 -1
- package/es/components/contextMenu/src/contextMenu.type.mjs +0 -2
- package/es/components/dialog/index.mjs +2 -2
- package/es/components/dialog/index.mjs.map +1 -1
- package/es/components/dialog/src/dialog.d.ts +11 -11
- package/es/components/dialog/src/dialog.mjs +2 -2
- package/es/components/dialog/src/dialog.mjs.map +1 -1
- package/es/components/drawer/index.mjs +2 -2
- package/es/components/drawer/index.mjs.map +1 -1
- package/es/components/drawer/src/drawer.d.ts +10 -18
- package/es/components/drawer/src/drawer.mjs +2 -2
- package/es/components/drawer/src/drawer.mjs.map +1 -1
- package/es/components/form/index.mjs +2 -2
- package/es/components/form/index.mjs.map +1 -1
- package/es/components/form/src/form.d.ts +15 -15
- package/es/components/form/src/form.mjs +2 -2
- package/es/components/form/src/form.mjs.map +1 -1
- package/es/components/form/src/formItem.d.ts +14 -14
- package/es/components/form/src/formItem.mjs +2 -2
- package/es/components/form/src/formItem.mjs.map +1 -1
- package/es/components/form/utils/form.mjs +2 -2
- package/es/components/form/utils/form.mjs.map +1 -1
- package/es/components/formItemTip/index.mjs +2 -2
- package/es/components/formItemTip/index.mjs.map +1 -1
- package/es/components/formItemTip/src/formItemTip.mjs +2 -2
- package/es/components/formItemTip/src/formItemTip.mjs.map +1 -1
- package/es/components/icon/index.mjs +2 -2
- package/es/components/icon/index.mjs.map +1 -1
- package/es/components/icon/src/icon.mjs +2 -2
- package/es/components/icon/src/icon.mjs.map +1 -1
- package/es/components/iconSelector/index.mjs +2 -2
- package/es/components/iconSelector/index.mjs.map +1 -1
- package/es/components/iconSelector/src/iconSelector.mjs +2 -2
- package/es/components/iconSelector/src/iconSelector.mjs.map +1 -1
- package/es/components/image/index.mjs +2 -2
- package/es/components/image/index.mjs.map +1 -1
- package/es/components/image/src/image.d.ts +13 -13
- package/es/components/image/src/image.mjs +2 -2
- package/es/components/image/src/image.mjs.map +1 -1
- package/es/components/index.mjs +2 -2
- package/es/components/index.mjs.map +1 -1
- package/es/components/inputDialogPage/index.mjs +2 -2
- package/es/components/inputDialogPage/index.mjs.map +1 -1
- package/es/components/inputDialogPage/src/inputDialogPage.mjs +2 -2
- package/es/components/inputDialogPage/src/inputDialogPage.mjs.map +1 -1
- package/es/components/layoutGrid/index.mjs +2 -2
- package/es/components/layoutGrid/index.mjs.map +1 -1
- package/es/components/layoutGrid/src/layoutGrid.mjs +2 -2
- package/es/components/layoutGrid/src/layoutGrid.mjs.map +1 -1
- package/es/components/layoutGrid/src/layoutGrid.type.mjs +0 -2
- package/es/components/layoutGrid/src/layoutGridItem.mjs +2 -2
- package/es/components/layoutGrid/src/layoutGridItem.mjs.map +1 -1
- package/es/components/select/index.mjs +2 -2
- package/es/components/select/index.mjs.map +1 -1
- package/es/components/select/src/select.d.ts +21 -21
- package/es/components/select/src/select.mjs +2 -2
- package/es/components/select/src/select.mjs.map +1 -1
- package/es/components/select/src/select.type.mjs +0 -2
- package/es/components/select/src/selectOption.mjs +2 -2
- package/es/components/select/src/selectOption.mjs.map +1 -1
- package/es/components/selectPage/index.mjs +2 -2
- package/es/components/selectPage/index.mjs.map +1 -1
- package/es/components/selectPage/src/selectPage.d.ts +27 -27
- package/es/components/selectPage/src/selectPage.mjs +2 -2
- package/es/components/selectPage/src/selectPage.mjs.map +1 -1
- package/es/components/selectV2/index.mjs +2 -2
- package/es/components/selectV2/index.mjs.map +1 -1
- package/es/components/selectV2/src/selectV2.d.ts +19 -19
- package/es/components/selectV2/src/selectV2.mjs +2 -2
- package/es/components/selectV2/src/selectV2.mjs.map +1 -1
- package/es/components/table/images/artwork.mjs +2 -0
- package/es/components/table/images/artwork.mjs.map +1 -0
- package/es/components/table/images/notImage.mjs +2 -0
- package/es/components/table/images/notImage.mjs.map +1 -0
- package/es/components/table/index.mjs +2 -2
- package/es/components/table/index.mjs.map +1 -1
- package/es/components/table/src/page.type.mjs +2 -2
- package/es/components/table/src/page.type.mjs.map +1 -1
- package/es/components/table/src/table.d.ts +20 -4
- package/es/components/table/src/table.mjs +2 -2
- package/es/components/table/src/table.mjs.map +1 -1
- package/es/components/table/src/table.state.mjs +0 -2
- package/es/components/table/src/table.type.d.ts +1 -1
- package/es/components/table/src/table.type.mjs +2 -2
- package/es/components/table/src/table.type.mjs.map +1 -1
- package/es/components/table/src/tableColumn.mjs +2 -2
- package/es/components/table/src/tableColumn.mjs.map +1 -1
- package/es/components/table/src/tableColumnSettingDialog.mjs +2 -2
- package/es/components/table/src/tableColumnSettingDialog.mjs.map +1 -1
- package/es/components/table/src/tablePagination.mjs +2 -2
- package/es/components/table/src/tablePagination.mjs.map +1 -1
- package/es/components/table/src/tableSearchForm.mjs +2 -2
- package/es/components/table/src/tableSearchForm.mjs.map +1 -1
- package/es/components/table/src/tableSearchFormItem.mjs +2 -2
- package/es/components/table/src/tableSearchFormItem.mjs.map +1 -1
- package/es/components/table/src/useTable.mjs +2 -2
- package/es/components/table/src/useTable.mjs.map +1 -1
- package/es/components/table/utils/table.mjs +2 -2
- package/es/components/table/utils/table.mjs.map +1 -1
- package/es/components/tree/index.mjs +2 -2
- package/es/components/tree/index.mjs.map +1 -1
- package/es/components/tree/src/tree.d.ts +40 -40
- package/es/components/tree/src/tree.mjs +2 -2
- package/es/components/tree/src/tree.mjs.map +1 -1
- package/es/components/tree/src/tree.props.mjs +2 -2
- package/es/components/tree/src/tree.props.mjs.map +1 -1
- package/es/components/tree/src/tree.type.mjs +0 -2
- package/es/components/treeSelect/index.mjs +2 -2
- package/es/components/treeSelect/index.mjs.map +1 -1
- package/es/components/treeSelect/src/treeSelect.d.ts +60 -60
- package/es/components/treeSelect/src/treeSelect.mjs +2 -2
- package/es/components/treeSelect/src/treeSelect.mjs.map +1 -1
- package/es/components/upload/index.mjs +2 -2
- package/es/components/upload/index.mjs.map +1 -1
- package/es/components/upload/src/upload.d.ts +73 -73
- package/es/components/upload/src/upload.mjs +2 -2
- package/es/components/upload/src/upload.mjs.map +1 -1
- package/es/components/upload/src/useUpload.mjs +2 -2
- package/es/components/upload/src/useUpload.mjs.map +1 -1
- package/es/components/upload/utils/upload.mjs +2 -2
- package/es/components/upload/utils/upload.mjs.map +1 -1
- package/es/components/uploadImage/index.mjs +2 -2
- package/es/components/uploadImage/index.mjs.map +1 -1
- package/es/components/uploadImage/src/uploadImage.d.ts +69 -69
- package/es/components/uploadImage/src/uploadImage.mjs +2 -2
- package/es/components/uploadImage/src/uploadImage.mjs.map +1 -1
- package/es/components/uploadImages/index.mjs +2 -2
- package/es/components/uploadImages/index.mjs.map +1 -1
- package/es/components/uploadImages/src/uploadImages.d.ts +70 -70
- package/es/components/uploadImages/src/uploadImages.mjs +2 -2
- package/es/components/uploadImages/src/uploadImages.mjs.map +1 -1
- package/es/constants/index.mjs +1 -2
- package/es/constants/mime.mjs +2 -2
- package/es/constants/mime.mjs.map +1 -1
- package/es/constants/regex.mjs +2 -2
- package/es/constants/regex.mjs.map +1 -1
- package/es/directive.mjs +2 -2
- package/es/directive.mjs.map +1 -1
- package/es/directives/click-copy/index.mjs +2 -2
- package/es/directives/click-copy/index.mjs.map +1 -1
- package/es/directives/click-debounce/index.mjs +2 -2
- package/es/directives/click-debounce/index.mjs.map +1 -1
- package/es/directives/click-draggable/index.mjs +2 -2
- package/es/directives/click-draggable/index.mjs.map +1 -1
- package/es/directives/click-icon-copy/index.mjs +2 -2
- package/es/directives/click-icon-copy/index.mjs.map +1 -1
- package/es/directives/click-longpress/index.mjs +2 -2
- package/es/directives/click-longpress/index.mjs.map +1 -1
- package/es/directives/click-throttle/index.mjs +2 -2
- package/es/directives/click-throttle/index.mjs.map +1 -1
- package/es/directives/index.mjs +1 -2
- package/es/element-plus.mjs +2 -2
- package/es/element-plus.mjs.map +1 -1
- package/es/hooks/index.mjs +1 -2
- package/es/hooks/use-loading/index.mjs +2 -2
- package/es/hooks/use-loading/index.mjs.map +1 -1
- package/es/hooks/use-overlay/index.mjs +2 -2
- package/es/hooks/use-overlay/index.mjs.map +1 -1
- package/es/hooks/use-screenFull/index.mjs +2 -2
- package/es/hooks/use-screenFull/index.mjs.map +1 -1
- package/es/index.mjs +2 -2
- package/es/index.mjs.map +1 -1
- package/es/make-installer.mjs +2 -2
- package/es/make-installer.mjs.map +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +2 -2
- package/es/version.mjs.map +1 -1
- package/lib/_virtual/_rolldown/runtime.js +1 -0
- package/lib/component.js +2 -2
- package/lib/component.js.map +1 -1
- package/lib/components/avatar/index.js +2 -2
- package/lib/components/avatar/index.js.map +1 -1
- package/lib/components/avatar/src/avatar.d.ts +10 -10
- package/lib/components/avatar/src/avatar.js +2 -2
- package/lib/components/avatar/src/avatar.js.map +1 -1
- package/lib/components/button/index.js +2 -2
- package/lib/components/button/index.js.map +1 -1
- package/lib/components/button/src/button.d.ts +21 -17
- package/lib/components/button/src/button.js +2 -2
- package/lib/components/button/src/button.js.map +1 -1
- package/lib/components/carNumber/index.js +2 -2
- package/lib/components/carNumber/index.js.map +1 -1
- package/lib/components/carNumber/src/carNumber.d.ts +36 -33
- package/lib/components/carNumber/src/carNumber.js +2 -2
- package/lib/components/carNumber/src/carNumber.js.map +1 -1
- package/lib/components/carNumber/src/common.js +2 -2
- package/lib/components/carNumber/src/common.js.map +1 -1
- package/lib/components/contextMenu/index.js +2 -2
- package/lib/components/contextMenu/index.js.map +1 -1
- package/lib/components/contextMenu/src/contextMenu.js +2 -2
- package/lib/components/contextMenu/src/contextMenu.js.map +1 -1
- package/lib/components/contextMenu/src/contextMenu.type.js +0 -2
- package/lib/components/dialog/index.js +2 -2
- package/lib/components/dialog/index.js.map +1 -1
- package/lib/components/dialog/src/dialog.d.ts +11 -11
- package/lib/components/dialog/src/dialog.js +2 -2
- package/lib/components/dialog/src/dialog.js.map +1 -1
- package/lib/components/drawer/index.js +2 -2
- package/lib/components/drawer/index.js.map +1 -1
- package/lib/components/drawer/src/drawer.d.ts +10 -18
- package/lib/components/drawer/src/drawer.js +2 -2
- package/lib/components/drawer/src/drawer.js.map +1 -1
- package/lib/components/form/index.js +2 -2
- package/lib/components/form/index.js.map +1 -1
- package/lib/components/form/src/form.d.ts +15 -15
- package/lib/components/form/src/form.js +2 -2
- package/lib/components/form/src/form.js.map +1 -1
- package/lib/components/form/src/formItem.d.ts +14 -14
- package/lib/components/form/src/formItem.js +2 -2
- package/lib/components/form/src/formItem.js.map +1 -1
- package/lib/components/form/utils/form.js +2 -2
- package/lib/components/form/utils/form.js.map +1 -1
- package/lib/components/formItemTip/index.js +2 -2
- package/lib/components/formItemTip/index.js.map +1 -1
- package/lib/components/formItemTip/src/formItemTip.js +2 -2
- package/lib/components/formItemTip/src/formItemTip.js.map +1 -1
- package/lib/components/icon/index.js +2 -2
- package/lib/components/icon/index.js.map +1 -1
- package/lib/components/icon/src/icon.js +2 -2
- package/lib/components/icon/src/icon.js.map +1 -1
- package/lib/components/iconSelector/index.js +2 -2
- package/lib/components/iconSelector/index.js.map +1 -1
- package/lib/components/iconSelector/src/iconSelector.js +2 -2
- package/lib/components/iconSelector/src/iconSelector.js.map +1 -1
- package/lib/components/image/index.js +2 -2
- package/lib/components/image/index.js.map +1 -1
- package/lib/components/image/src/image.d.ts +13 -13
- package/lib/components/image/src/image.js +2 -2
- package/lib/components/image/src/image.js.map +1 -1
- package/lib/components/index.js +2 -2
- package/lib/components/index.js.map +1 -1
- package/lib/components/inputDialogPage/index.js +2 -2
- package/lib/components/inputDialogPage/index.js.map +1 -1
- package/lib/components/inputDialogPage/src/inputDialogPage.js +2 -2
- package/lib/components/inputDialogPage/src/inputDialogPage.js.map +1 -1
- package/lib/components/layoutGrid/index.js +2 -2
- package/lib/components/layoutGrid/index.js.map +1 -1
- package/lib/components/layoutGrid/src/layoutGrid.js +2 -2
- package/lib/components/layoutGrid/src/layoutGrid.js.map +1 -1
- package/lib/components/layoutGrid/src/layoutGrid.type.js +0 -2
- package/lib/components/layoutGrid/src/layoutGridItem.js +2 -2
- package/lib/components/layoutGrid/src/layoutGridItem.js.map +1 -1
- package/lib/components/select/index.js +2 -2
- package/lib/components/select/index.js.map +1 -1
- package/lib/components/select/src/select.d.ts +21 -21
- package/lib/components/select/src/select.js +2 -2
- package/lib/components/select/src/select.js.map +1 -1
- package/lib/components/select/src/select.type.js +0 -2
- package/lib/components/select/src/selectOption.js +2 -2
- package/lib/components/select/src/selectOption.js.map +1 -1
- package/lib/components/selectPage/index.js +2 -2
- package/lib/components/selectPage/index.js.map +1 -1
- package/lib/components/selectPage/src/selectPage.d.ts +27 -27
- package/lib/components/selectPage/src/selectPage.js +2 -2
- package/lib/components/selectPage/src/selectPage.js.map +1 -1
- package/lib/components/selectV2/index.js +2 -2
- package/lib/components/selectV2/index.js.map +1 -1
- package/lib/components/selectV2/src/selectV2.d.ts +19 -19
- package/lib/components/selectV2/src/selectV2.js +2 -2
- package/lib/components/selectV2/src/selectV2.js.map +1 -1
- package/lib/components/table/images/artwork.js +2 -0
- package/lib/components/table/images/artwork.js.map +1 -0
- package/lib/components/table/images/notImage.js +2 -0
- package/lib/components/table/images/notImage.js.map +1 -0
- package/lib/components/table/index.js +2 -2
- package/lib/components/table/index.js.map +1 -1
- package/lib/components/table/src/page.type.js +2 -2
- package/lib/components/table/src/page.type.js.map +1 -1
- package/lib/components/table/src/table.d.ts +20 -4
- package/lib/components/table/src/table.js +2 -2
- package/lib/components/table/src/table.js.map +1 -1
- package/lib/components/table/src/table.state.js +0 -2
- package/lib/components/table/src/table.type.d.ts +1 -1
- package/lib/components/table/src/table.type.js +2 -2
- package/lib/components/table/src/table.type.js.map +1 -1
- package/lib/components/table/src/tableColumn.js +2 -2
- package/lib/components/table/src/tableColumn.js.map +1 -1
- package/lib/components/table/src/tableColumnSettingDialog.js +2 -2
- package/lib/components/table/src/tableColumnSettingDialog.js.map +1 -1
- package/lib/components/table/src/tablePagination.js +2 -2
- package/lib/components/table/src/tablePagination.js.map +1 -1
- package/lib/components/table/src/tableSearchForm.js +2 -2
- package/lib/components/table/src/tableSearchForm.js.map +1 -1
- package/lib/components/table/src/tableSearchFormItem.js +2 -2
- package/lib/components/table/src/tableSearchFormItem.js.map +1 -1
- package/lib/components/table/src/useTable.js +2 -2
- package/lib/components/table/src/useTable.js.map +1 -1
- package/lib/components/table/utils/table.js +2 -2
- package/lib/components/table/utils/table.js.map +1 -1
- package/lib/components/tree/index.js +2 -2
- package/lib/components/tree/index.js.map +1 -1
- package/lib/components/tree/src/tree.d.ts +40 -40
- package/lib/components/tree/src/tree.js +2 -2
- package/lib/components/tree/src/tree.js.map +1 -1
- package/lib/components/tree/src/tree.props.js +2 -2
- package/lib/components/tree/src/tree.props.js.map +1 -1
- package/lib/components/tree/src/tree.type.js +0 -2
- package/lib/components/treeSelect/index.js +2 -2
- package/lib/components/treeSelect/index.js.map +1 -1
- package/lib/components/treeSelect/src/treeSelect.d.ts +60 -60
- package/lib/components/treeSelect/src/treeSelect.js +2 -2
- package/lib/components/treeSelect/src/treeSelect.js.map +1 -1
- package/lib/components/upload/index.js +2 -2
- package/lib/components/upload/index.js.map +1 -1
- package/lib/components/upload/src/upload.d.ts +73 -73
- package/lib/components/upload/src/upload.js +2 -2
- package/lib/components/upload/src/upload.js.map +1 -1
- package/lib/components/upload/src/useUpload.js +2 -2
- package/lib/components/upload/src/useUpload.js.map +1 -1
- package/lib/components/upload/utils/upload.js +2 -2
- package/lib/components/upload/utils/upload.js.map +1 -1
- package/lib/components/uploadImage/index.js +2 -2
- package/lib/components/uploadImage/index.js.map +1 -1
- package/lib/components/uploadImage/src/uploadImage.d.ts +69 -69
- package/lib/components/uploadImage/src/uploadImage.js +2 -2
- package/lib/components/uploadImage/src/uploadImage.js.map +1 -1
- package/lib/components/uploadImages/index.js +2 -2
- package/lib/components/uploadImages/index.js.map +1 -1
- package/lib/components/uploadImages/src/uploadImages.d.ts +70 -70
- package/lib/components/uploadImages/src/uploadImages.js +2 -2
- package/lib/components/uploadImages/src/uploadImages.js.map +1 -1
- package/lib/constants/index.js +1 -2
- package/lib/constants/mime.js +2 -2
- package/lib/constants/mime.js.map +1 -1
- package/lib/constants/regex.js +2 -2
- package/lib/constants/regex.js.map +1 -1
- package/lib/directive.js +2 -2
- package/lib/directive.js.map +1 -1
- package/lib/directives/click-copy/index.js +2 -2
- package/lib/directives/click-copy/index.js.map +1 -1
- package/lib/directives/click-debounce/index.js +2 -2
- package/lib/directives/click-debounce/index.js.map +1 -1
- package/lib/directives/click-draggable/index.js +2 -2
- package/lib/directives/click-draggable/index.js.map +1 -1
- package/lib/directives/click-icon-copy/index.js +2 -2
- package/lib/directives/click-icon-copy/index.js.map +1 -1
- package/lib/directives/click-longpress/index.js +2 -2
- package/lib/directives/click-longpress/index.js.map +1 -1
- package/lib/directives/click-throttle/index.js +2 -2
- package/lib/directives/click-throttle/index.js.map +1 -1
- package/lib/directives/index.js +1 -2
- package/lib/element-plus.js +2 -2
- package/lib/element-plus.js.map +1 -1
- package/lib/hooks/index.js +1 -2
- package/lib/hooks/use-loading/index.js +2 -2
- package/lib/hooks/use-loading/index.js.map +1 -1
- package/lib/hooks/use-overlay/index.js +2 -2
- package/lib/hooks/use-overlay/index.js.map +1 -1
- package/lib/hooks/use-screenFull/index.js +2 -2
- package/lib/hooks/use-screenFull/index.js.map +1 -1
- package/lib/index.js +2 -2
- package/lib/index.js.map +1 -1
- package/lib/make-installer.js +2 -2
- package/lib/make-installer.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +2 -2
- package/lib/version.js.map +1 -1
- package/package.json +7 -7
- package/es/components/contextMenu/src/contextMenu.type.mjs.map +0 -1
- package/es/components/layoutGrid/src/layoutGrid.type.mjs.map +0 -1
- package/es/components/select/src/select.type.mjs.map +0 -1
- package/es/components/table/images/artwork.png.mjs +0 -2
- package/es/components/table/images/artwork.png.mjs.map +0 -1
- package/es/components/table/images/notImage.png.mjs +0 -2
- package/es/components/table/images/notImage.png.mjs.map +0 -1
- package/es/components/table/src/table.state.mjs.map +0 -1
- package/es/components/tree/src/tree.type.mjs.map +0 -1
- package/es/constants/index.mjs.map +0 -1
- package/es/directives/index.mjs.map +0 -1
- package/es/hooks/index.mjs.map +0 -1
- package/lib/components/contextMenu/src/contextMenu.type.js.map +0 -1
- package/lib/components/layoutGrid/src/layoutGrid.type.js.map +0 -1
- package/lib/components/select/src/select.type.js.map +0 -1
- package/lib/components/table/images/artwork.png.js +0 -2
- package/lib/components/table/images/artwork.png.js.map +0 -1
- package/lib/components/table/images/notImage.png.js +0 -2
- package/lib/components/table/images/notImage.png.js.map +0 -1
- package/lib/components/table/src/table.state.js.map +0 -1
- package/lib/components/tree/src/tree.type.js.map +0 -1
- package/lib/constants/index.js.map +0 -1
- package/lib/directives/index.js.map +0 -1
- package/lib/hooks/index.js.map +0 -1
package/lib/constants/mime.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
//# sourceMappingURL=mime.js.map
|
|
1
|
+
exports.FaMimeType={PDF:"application/pdf",Text:"text/plain",Word:"application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document",Excel:"application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,text/csv",Powerpoint:"application/vnd.ms-powerpoint,application/vnd.openxmlformats-officedocument.presentationml.presentation",ZIP:"application/zip,application/x-zip-compressed",Image:"image/jpeg,image/png,image/gif",Video:"video/mp4,video/mpeg,video/quicktime",Audio:"audio/mpeg,audio/wav",Html:"text/html",Css:"text/css",JavaScript:"application/javascript,text/javascript",Json:"application/json",XML:"application/xml,text/xml"};
|
|
2
|
+
//# sourceMappingURL=mime.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mime.js","sources":["../../../packages/constants/mime.ts"],"sourcesContent":["/**\n * @description MIME 类型\n */\nexport const FaMimeType = {\n\t/**\n\t * PDF\n\t */\n\tPDF: \"application/pdf\",\n\t/**\n\t * 文本文件\n\t */\n\tText: \"text/plain\",\n\t/**\n\t * Word 和 DOCX(Word 2007 及以后版本)\n\t */\n\tWord: \"application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document\",\n\t/**\n\t * Excel 和 CSV\n\t */\n\tExcel: \"application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,text/csv\",\n\t/**\n\t * PowerPoint 和 PPTX(PowerPoint 2007 及以后版本)\n\t */\n\tPowerpoint: \"application/vnd.ms-powerpoint,application/vnd.openxmlformats-officedocument.presentationml.presentation\",\n\t/**\n\t * 压缩文件\n\t */\n\tZIP: \"application/zip,application/x-zip-compressed\",\n\t/**\n\t * 图片\n\t */\n\tImage: \"image/jpeg,image/png,image/gif\",\n\t/**\n\t * 视频\n\t */\n\tVideo: \"video/mp4,video/mpeg,video/quicktime\",\n\t/**\n\t * 音频\n\t */\n\tAudio: \"audio/mpeg,audio/wav\",\n\t/**\n\t * HTML\n\t */\n\tHtml: \"text/html\",\n\t/**\n\t * CSS\n\t */\n\tCss: \"text/css\",\n\t/**\n\t * JavaScript\n\t */\n\tJavaScript: \"application/javascript,text/javascript\",\n\t/**\n\t * JSON\n\t */\n\tJson: \"application/json\",\n\t/**\n\t * XML\n\t */\n\tXML: \"application/xml,text/xml\",\n};\n"],"
|
|
1
|
+
{"version":3,"file":"mime.js","names":[],"sources":["../../../packages/constants/mime.ts"],"sourcesContent":["/**\n * @description MIME 类型\n */\nexport const FaMimeType = {\n\t/**\n\t * PDF\n\t */\n\tPDF: \"application/pdf\",\n\t/**\n\t * 文本文件\n\t */\n\tText: \"text/plain\",\n\t/**\n\t * Word 和 DOCX(Word 2007 及以后版本)\n\t */\n\tWord: \"application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document\",\n\t/**\n\t * Excel 和 CSV\n\t */\n\tExcel: \"application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,text/csv\",\n\t/**\n\t * PowerPoint 和 PPTX(PowerPoint 2007 及以后版本)\n\t */\n\tPowerpoint: \"application/vnd.ms-powerpoint,application/vnd.openxmlformats-officedocument.presentationml.presentation\",\n\t/**\n\t * 压缩文件\n\t */\n\tZIP: \"application/zip,application/x-zip-compressed\",\n\t/**\n\t * 图片\n\t */\n\tImage: \"image/jpeg,image/png,image/gif\",\n\t/**\n\t * 视频\n\t */\n\tVideo: \"video/mp4,video/mpeg,video/quicktime\",\n\t/**\n\t * 音频\n\t */\n\tAudio: \"audio/mpeg,audio/wav\",\n\t/**\n\t * HTML\n\t */\n\tHtml: \"text/html\",\n\t/**\n\t * CSS\n\t */\n\tCss: \"text/css\",\n\t/**\n\t * JavaScript\n\t */\n\tJavaScript: \"application/javascript,text/javascript\",\n\t/**\n\t * JSON\n\t */\n\tJson: \"application/json\",\n\t/**\n\t * XML\n\t */\n\tXML: \"application/xml,text/xml\",\n};\n"],"mappings":"mBAG0B,CAIzB,IAAK,kBAIL,KAAM,aAIN,KAAM,6FAIN,MAAO,sGAIP,WAAY,0GAIZ,IAAK,+CAIL,MAAO,iCAIP,MAAO,uCAIP,MAAO,uBAIP,KAAM,YAIN,IAAK,WAIL,WAAY,yCAIZ,KAAM,mBAIN,IAAK"}
|
package/lib/constants/regex.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
//# sourceMappingURL=regex.js.map
|
|
1
|
+
exports.RegExps={UUID:/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,Mobile:/^(?:(?:\+|00)86)?1\d{10}$/,Phone:/^(?:(?:\d{3}-)?\d{8}|(?:\d{4}-)?\d{7,8})(?:-\d+)?$/,Email:/^[\w-]+@([a-zA-Z0-9]+\.)+(com|cn|net|org)$/,IdCard:/(^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9X]$)|(^[1-9]\d{7}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{2}[0-9X]$)/i,External:/^(https?:|mailto:|tel:|ftp:)/,Url:/^(https?|ftp):\/\/([a-zA-Z0-9.-]+(:[a-zA-Z0-9.&%$-]+)*@)*((25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d?)(\.(25[0-5]|2[0-4]\d|1\d{2}|[1-9]?\d)){3}|([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+\.(com|edu|gov|int|mil|net|org|biz|arpa|info|name|pro|aero|coop|museum|[a-zA-Z]{2}))(:\d+)*(\/($|[\w.,?'\\+&%$#=~-]+))*$/,CarNumber:/^[京津冀晋蒙辽吉黑沪苏浙皖闽赣鲁豫鄂湘粤桂琼渝川贵云藏陕甘青宁新军使领][A-HJ-Z][A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]$/,NewEnergyCarNumber:/^[京津冀晋蒙辽吉黑沪苏浙皖闽赣鲁豫鄂湘粤桂琼渝川贵云藏陕甘青宁新军使领][A-HJ-Z]((\d{5}[DF]$)|([A-E][A-HJ-NP-Z0-9]\d{3}[0-9挂学警港澳]$)|([FGHJK][A-HJ-NP-Z0-9]\d{3}[0-9挂学警港澳]$))/,PostCode:/^[1-9]\d{5}$/,Ipv4:/^([01]?\d{1,2}|2[0-4]\d|25[0-5])\.([01]?\d{1,2}|2[0-4]\d|25[0-5])\.([01]?\d{1,2}|2[0-4]\d|25[0-5])\.([01]?\d{1,2}|2[0-4]\d|25[0-5])$/,Passport:/^[EG]\d{8}$/i,HKMacauPass:/^[HM]\d{8}$/i,Account:/^[a-z][a-z\d]{5,19}$/i,Password:/^[A-Z0-9]{6,18}$/i,StrongPassword:/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[\W_])[\s\S]{8,20}$/,Chinese:/^[\u4E00-\u9FA5]+$/,English:/^[a-z]+$/i};
|
|
2
|
+
//# sourceMappingURL=regex.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"regex.js","sources":["../../../packages/constants/regex.ts"],"sourcesContent":["/**\n * @description 正则表达式\n */\nexport const RegExps = {\n\t/**\n\t * UUID\n\t */\n\tUUID: /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,\n\t/**\n\t * 手机号\n\t */\n\tMobile: /^(?:(?:\\+|00)86)?1\\d{10}$/,\n\t/**\n\t * 电话\n\t */\n\tPhone: /^(?:(?:\\d{3}-)?\\d{8}|(?:\\d{4}-)?\\d{7,8})(?:-\\d+)?$/,\n\t/**\n\t * 邮箱\n\t */\n\tEmail: /^[\\w-]+@([a-zA-Z0-9]+\\.)+(com|cn|net|org)$/,\n\t/**\n\t * 身份证\n\t */\n\tIdCard: /(^[1-9]\\d{5}(18|19|([23]\\d))\\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\\d{3}[0-9X]$)|(^[1-9]\\d{7}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\\d{2}[0-9X]$)/i,\n\t/**\n\t * 外部链接\n\t * 匹配http、https、mailto、tel和ftp开头的链接\n\t */\n\tExternal: /^(https?:|mailto:|tel:|ftp:)/,\n\t/**\n\t * Url\n\t */\n\tUrl: /^(https?|ftp):\\/\\/([a-zA-Z0-9.-]+(:[a-zA-Z0-9.&%$-]+)*@)*((25[0-5]|2[0-4]\\d|1\\d{2}|[1-9]\\d?)(\\.(25[0-5]|2[0-4]\\d|1\\d{2}|[1-9]?\\d)){3}|([a-zA-Z0-9-]+\\.)*[a-zA-Z0-9-]+\\.(com|edu|gov|int|mil|net|org|biz|arpa|info|name|pro|aero|coop|museum|[a-zA-Z]{2}))(:\\d+)*(\\/($|[\\w.,?'\\\\+&%$#=~-]+))*$/,\n\t/**\n\t * 车牌号\n\t */\n\tCarNumber: /^[京津冀晋蒙辽吉黑沪苏浙皖闽赣鲁豫鄂湘粤桂琼渝川贵云藏陕甘青宁新军使领][A-HJ-Z][A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]$/,\n\t/**\n\t * 新能源车牌号\n\t */\n\tNewEnergyCarNumber:\n\t\t/^[京津冀晋蒙辽吉黑沪苏浙皖闽赣鲁豫鄂湘粤桂琼渝川贵云藏陕甘青宁新军使领][A-HJ-Z]((\\d{5}[DF]$)|([A-E][A-HJ-NP-Z0-9]\\d{3}[0-9挂学警港澳]$)|([FGHJK][A-HJ-NP-Z0-9]\\d{3}[0-9挂学警港澳]$))/,\n\t/**\n\t * 邮政编码\n\t */\n\tPostCode: /^[1-9]\\d{5}$/,\n\t/**\n\t * ipv4\n\t */\n\tIpv4: /^([01]?\\d{1,2}|2[0-4]\\d|25[0-5])\\.([01]?\\d{1,2}|2[0-4]\\d|25[0-5])\\.([01]?\\d{1,2}|2[0-4]\\d|25[0-5])\\.([01]?\\d{1,2}|2[0-4]\\d|25[0-5])$/,\n\t/**\n\t * 护照\n\t */\n\tPassport: /^[EG]\\d{8}$/i,\n\t/**\n\t * 港澳通行证\n\t */\n\tHKMacauPass: /^[HM]\\d{8}$/i,\n\t/**\n\t * 账号(6-20位字母或数字,必须以字母开头,不能全为数字)\n\t */\n\tAccount: /^[a-z][a-z\\d]{5,19}$/i,\n\t/**\n\t * 弱密码(只包含字母和数字,长度为6到18位)\n\t */\n\tPassword: /^[A-Z0-9]{6,18}$/i,\n\t/**\n\t * 强密码(8到20位,包含大小写字母、数字及特殊字符)\n\t */\n\tStrongPassword: /^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)(?=.*[\\W_])[\\s\\S]{8,20}$/,\n\t/**\n\t * 中文字符\n\t */\n\tChinese: /^[\\u4E00-\\u9FA5]+$/,\n\t/**\n\t * 英文字符\n\t */\n\tEnglish: /^[a-z]+$/i,\n};\n"],"
|
|
1
|
+
{"version":3,"file":"regex.js","names":[],"sources":["../../../packages/constants/regex.ts"],"sourcesContent":["/**\n * @description 正则表达式\n */\nexport const RegExps = {\n\t/**\n\t * UUID\n\t */\n\tUUID: /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,\n\t/**\n\t * 手机号\n\t */\n\tMobile: /^(?:(?:\\+|00)86)?1\\d{10}$/,\n\t/**\n\t * 电话\n\t */\n\tPhone: /^(?:(?:\\d{3}-)?\\d{8}|(?:\\d{4}-)?\\d{7,8})(?:-\\d+)?$/,\n\t/**\n\t * 邮箱\n\t */\n\tEmail: /^[\\w-]+@([a-zA-Z0-9]+\\.)+(com|cn|net|org)$/,\n\t/**\n\t * 身份证\n\t */\n\tIdCard: /(^[1-9]\\d{5}(18|19|([23]\\d))\\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\\d{3}[0-9X]$)|(^[1-9]\\d{7}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\\d{2}[0-9X]$)/i,\n\t/**\n\t * 外部链接\n\t * 匹配http、https、mailto、tel和ftp开头的链接\n\t */\n\tExternal: /^(https?:|mailto:|tel:|ftp:)/,\n\t/**\n\t * Url\n\t */\n\tUrl: /^(https?|ftp):\\/\\/([a-zA-Z0-9.-]+(:[a-zA-Z0-9.&%$-]+)*@)*((25[0-5]|2[0-4]\\d|1\\d{2}|[1-9]\\d?)(\\.(25[0-5]|2[0-4]\\d|1\\d{2}|[1-9]?\\d)){3}|([a-zA-Z0-9-]+\\.)*[a-zA-Z0-9-]+\\.(com|edu|gov|int|mil|net|org|biz|arpa|info|name|pro|aero|coop|museum|[a-zA-Z]{2}))(:\\d+)*(\\/($|[\\w.,?'\\\\+&%$#=~-]+))*$/,\n\t/**\n\t * 车牌号\n\t */\n\tCarNumber: /^[京津冀晋蒙辽吉黑沪苏浙皖闽赣鲁豫鄂湘粤桂琼渝川贵云藏陕甘青宁新军使领][A-HJ-Z][A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]$/,\n\t/**\n\t * 新能源车牌号\n\t */\n\tNewEnergyCarNumber:\n\t\t/^[京津冀晋蒙辽吉黑沪苏浙皖闽赣鲁豫鄂湘粤桂琼渝川贵云藏陕甘青宁新军使领][A-HJ-Z]((\\d{5}[DF]$)|([A-E][A-HJ-NP-Z0-9]\\d{3}[0-9挂学警港澳]$)|([FGHJK][A-HJ-NP-Z0-9]\\d{3}[0-9挂学警港澳]$))/,\n\t/**\n\t * 邮政编码\n\t */\n\tPostCode: /^[1-9]\\d{5}$/,\n\t/**\n\t * ipv4\n\t */\n\tIpv4: /^([01]?\\d{1,2}|2[0-4]\\d|25[0-5])\\.([01]?\\d{1,2}|2[0-4]\\d|25[0-5])\\.([01]?\\d{1,2}|2[0-4]\\d|25[0-5])\\.([01]?\\d{1,2}|2[0-4]\\d|25[0-5])$/,\n\t/**\n\t * 护照\n\t */\n\tPassport: /^[EG]\\d{8}$/i,\n\t/**\n\t * 港澳通行证\n\t */\n\tHKMacauPass: /^[HM]\\d{8}$/i,\n\t/**\n\t * 账号(6-20位字母或数字,必须以字母开头,不能全为数字)\n\t */\n\tAccount: /^[a-z][a-z\\d]{5,19}$/i,\n\t/**\n\t * 弱密码(只包含字母和数字,长度为6到18位)\n\t */\n\tPassword: /^[A-Z0-9]{6,18}$/i,\n\t/**\n\t * 强密码(8到20位,包含大小写字母、数字及特殊字符)\n\t */\n\tStrongPassword: /^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)(?=.*[\\W_])[\\s\\S]{8,20}$/,\n\t/**\n\t * 中文字符\n\t */\n\tChinese: /^[\\u4E00-\\u9FA5]+$/,\n\t/**\n\t * 英文字符\n\t */\n\tEnglish: /^[a-z]+$/i,\n};\n"],"mappings":"gBAGuB,CAItB,KAAM,kEAIN,OAAQ,4BAIR,MAAO,qDAIP,MAAO,6CAIP,OAAQ,0KAKR,SAAU,+BAIV,IAAK,gSAIL,UAAW,qFAIX,mBACC,4IAID,SAAU,eAIV,KAAM,uIAIN,SAAU,eAIV,YAAa,eAIb,QAAS,wBAIT,SAAU,oBAIV,eAAgB,0DAIhB,QAAS,qBAIT,QAAS"}
|
package/lib/directive.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
//# sourceMappingURL=directive.js.map
|
|
1
|
+
const e=require("./directives/click-copy/index.js"),i=require("./directives/click-debounce/index.js"),c=require("./directives/click-draggable/index.js"),r=require("./directives/click-icon-copy/index.js"),d=require("./directives/click-longpress/index.js"),t=require("./directives/click-throttle/index.js");var l=[e.default,i.default,c.default,r.default,d.default,t.default];exports.default=l;
|
|
2
|
+
//# sourceMappingURL=directive.js.map
|
package/lib/directive.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"directive.js","sources":["../../packages/directive.ts"],"sourcesContent":["import { vCopy } from \"@fast-element-plus/directives/click-copy\";\nimport { vDebounce } from \"@fast-element-plus/directives/click-debounce\";\nimport { vDraggable } from \"@fast-element-plus/directives/click-draggable\";\nimport { vIconCopy } from \"@fast-element-plus/directives/click-icon-copy\";\nimport { vLongpress } from \"@fast-element-plus/directives/click-longpress\";\nimport { vThrottle } from \"@fast-element-plus/directives/click-throttle\";\n\nexport default [vCopy, vDebounce, vDraggable, vIconCopy, vLongpress, vThrottle];\n"],"
|
|
1
|
+
{"version":3,"file":"directive.js","names":[],"sources":["../../packages/directive.ts"],"sourcesContent":["import { vCopy } from \"@fast-element-plus/directives/click-copy\";\nimport { vDebounce } from \"@fast-element-plus/directives/click-debounce\";\nimport { vDraggable } from \"@fast-element-plus/directives/click-draggable\";\nimport { vIconCopy } from \"@fast-element-plus/directives/click-icon-copy\";\nimport { vLongpress } from \"@fast-element-plus/directives/click-longpress\";\nimport { vThrottle } from \"@fast-element-plus/directives/click-throttle\";\n\nexport default [vCopy, vDebounce, vDraggable, vIconCopy, vLongpress, vThrottle];\n"],"mappings":"iTAOA,IAAA,EAAe,CAAC,EAAA,QAAO,EAAA,QAAW,EAAA,QAAY,EAAA,QAAW,EAAA,QAAY,EAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"
|
|
2
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
require("../../_virtual/_rolldown/runtime.js");let e=require("@fast-china/utils"),t=require("element-plus");var a={mounted(a,l){a.copyData=l.value,a.__handleClick__=async()=>{if(a.copyData)try{await e.stringUtil.copy(String(a.copyData)),(0,t.ElMessage)({type:"success",message:"复制成功"})}catch(l){throw(0,t.ElMessage)({type:"error",message:"复制失败"}),l}},a.addEventListener("click",a.__handleClick__)},updated(e,t){e.copyData=t.value},beforeUnmount(e){e.removeEventListener("click",e.__handleClick__)}},l=(0,e.withInstallDirective)(a,"copy");exports.default=l;
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../packages/directives/click-copy/index.ts"],"sourcesContent":["/**\n * v-copy\n * 复制某个值至剪贴板\n * 接收参数:string类型/Ref<string>类型/Reactive<string>类型\n */\nimport { ElMessage } from \"element-plus\";\nimport { stringUtil, withInstallDirective } from \"@fast-china/utils\";\nimport type { Directive, DirectiveBinding } from \"vue\";\n\ninterface CopyElement extends HTMLElement {\n\tcopyData: string | number;\n\t__handleClick__: () => void;\n}\n\nconst CopyDirective: Directive = {\n\tmounted(el: CopyElement, binding: DirectiveBinding<string | number>) {\n\t\tel.copyData = binding.value;\n\n\t\tel.__handleClick__ = async (): Promise<void> => {\n\t\t\tif (!el.copyData) return;\n\t\t\ttry {\n\t\t\t\tawait stringUtil.copy(String(el.copyData));\n\t\t\t\tElMessage({\n\t\t\t\t\ttype: \"success\",\n\t\t\t\t\tmessage: \"复制成功\",\n\t\t\t\t});\n\t\t\t} catch (error) {\n\t\t\t\tElMessage({\n\t\t\t\t\ttype: \"error\",\n\t\t\t\t\tmessage: \"复制失败\",\n\t\t\t\t});\n\t\t\t\tthrow error;\n\t\t\t}\n\t\t};\n\t\tel.addEventListener(\"click\", el.__handleClick__);\n\t},\n\tupdated(el: CopyElement, binding: DirectiveBinding) {\n\t\tel.copyData = binding.value;\n\t},\n\tbeforeUnmount(el: CopyElement) {\n\t\tel.removeEventListener(\"click\", el.__handleClick__);\n\t},\n};\n\nexport const vCopy = withInstallDirective(CopyDirective, \"copy\");\nexport default vCopy;\n"],"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../packages/directives/click-copy/index.ts"],"sourcesContent":["/**\n * v-copy\n * 复制某个值至剪贴板\n * 接收参数:string类型/Ref<string>类型/Reactive<string>类型\n */\nimport { ElMessage } from \"element-plus\";\nimport { stringUtil, withInstallDirective } from \"@fast-china/utils\";\nimport type { Directive, DirectiveBinding } from \"vue\";\n\ninterface CopyElement extends HTMLElement {\n\tcopyData: string | number;\n\t__handleClick__: () => void;\n}\n\nconst CopyDirective: Directive = {\n\tmounted(el: CopyElement, binding: DirectiveBinding<string | number>) {\n\t\tel.copyData = binding.value;\n\n\t\tel.__handleClick__ = async (): Promise<void> => {\n\t\t\tif (!el.copyData) return;\n\t\t\ttry {\n\t\t\t\tawait stringUtil.copy(String(el.copyData));\n\t\t\t\tElMessage({\n\t\t\t\t\ttype: \"success\",\n\t\t\t\t\tmessage: \"复制成功\",\n\t\t\t\t});\n\t\t\t} catch (error) {\n\t\t\t\tElMessage({\n\t\t\t\t\ttype: \"error\",\n\t\t\t\t\tmessage: \"复制失败\",\n\t\t\t\t});\n\t\t\t\tthrow error;\n\t\t\t}\n\t\t};\n\t\tel.addEventListener(\"click\", el.__handleClick__);\n\t},\n\tupdated(el: CopyElement, binding: DirectiveBinding) {\n\t\tel.copyData = binding.value;\n\t},\n\tbeforeUnmount(el: CopyElement) {\n\t\tel.removeEventListener(\"click\", el.__handleClick__);\n\t},\n};\n\nexport const vCopy = withInstallDirective(CopyDirective, \"copy\");\nexport default vCopy;\n"],"mappings":"4GAcA,IAAM,EAA2B,CAChC,OAAA,CAAQ,EAAiB,GACxB,EAAG,SAAW,EAAQ,MAEtB,EAAG,gBAAkB,UACpB,GAAK,EAAG,SACR,UACO,EAAA,WAAW,KAAK,OAAO,EAAG,YAChC,EAAA,EAAA,WAAU,CACT,KAAM,UACN,QAAS,eAEF,GAKR,MAJA,EAAA,EAAA,WAAU,CACT,KAAM,QACN,QAAS,SAEJ,IAGR,EAAG,iBAAiB,QAAS,EAAG,kBAEjC,OAAA,CAAQ,EAAiB,GACxB,EAAG,SAAW,EAAQ,OAEvB,aAAA,CAAc,GACb,EAAG,oBAAoB,QAAS,EAAG,mBAIxB,GAAA,EAAA,EAAA,sBAA6B,EAAe"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"
|
|
2
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
require("../../_virtual/_rolldown/runtime.js");let e=require("@fast-china/utils");var _={created(e,_,i){e.__debounce_originClick__=i.props.onClick,i.props.onClick=()=>{e.__debounce_timer__&&clearInterval(e.__debounce_timer__),e.__debounce_timer__=setTimeout(()=>{e.__debounce_originClick__()},500)}}},i=(0,e.withInstallDirective)(_,"debounce");exports.default=i;
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../packages/directives/click-debounce/index.ts"],"sourcesContent":["/**\n * v-debounce\n * 按钮防抖指令\n */\nimport { withInstallDirective } from \"@fast-china/utils\";\nimport type { Directive, DirectiveBinding, VNode } from \"vue\";\n\ninterface DebounceElement extends HTMLElement {\n\t__debounce_timer__: NodeJS.Timeout;\n\t__debounce_originClick__: () => any;\n}\n\ninterface DebounceVNode extends VNode {\n\tprops: {\n\t\t/** @description 点击事件 */\n\t\tonClick?: (...args) => any;\n\t\t[key: string]: any;\n\t};\n}\n\nconst DebounceDirective: Directive = {\n\tcreated(el: DebounceElement, binding: DirectiveBinding, vNode: DebounceVNode) {\n\t\t// 记录原来的点击事件方法\n\t\tel.__debounce_originClick__ = vNode.props.onClick;\n\n\t\t// 替换原来的点击事件\n\t\tvNode.props.onClick = (): void => {\n\t\t\tif (el.__debounce_timer__) {\n\t\t\t\tclearInterval(el.__debounce_timer__);\n\t\t\t}\n\t\t\t// 防抖处理\n\t\t\tel.__debounce_timer__ = setTimeout(() => {\n\t\t\t\tel.__debounce_originClick__();\n\t\t\t}, 500);\n\t\t};\n\t},\n};\n\nexport const vDebounce = withInstallDirective(DebounceDirective, \"debounce\");\nexport default vDebounce;\n"],"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../packages/directives/click-debounce/index.ts"],"sourcesContent":["/**\n * v-debounce\n * 按钮防抖指令\n */\nimport { withInstallDirective } from \"@fast-china/utils\";\nimport type { Directive, DirectiveBinding, VNode } from \"vue\";\n\ninterface DebounceElement extends HTMLElement {\n\t__debounce_timer__: NodeJS.Timeout;\n\t__debounce_originClick__: () => any;\n}\n\ninterface DebounceVNode extends VNode {\n\tprops: {\n\t\t/** @description 点击事件 */\n\t\tonClick?: (...args) => any;\n\t\t[key: string]: any;\n\t};\n}\n\nconst DebounceDirective: Directive = {\n\tcreated(el: DebounceElement, binding: DirectiveBinding, vNode: DebounceVNode) {\n\t\t// 记录原来的点击事件方法\n\t\tel.__debounce_originClick__ = vNode.props.onClick;\n\n\t\t// 替换原来的点击事件\n\t\tvNode.props.onClick = (): void => {\n\t\t\tif (el.__debounce_timer__) {\n\t\t\t\tclearInterval(el.__debounce_timer__);\n\t\t\t}\n\t\t\t// 防抖处理\n\t\t\tel.__debounce_timer__ = setTimeout(() => {\n\t\t\t\tel.__debounce_originClick__();\n\t\t\t}, 500);\n\t\t};\n\t},\n};\n\nexport const vDebounce = withInstallDirective(DebounceDirective, \"debounce\");\nexport default vDebounce;\n"],"mappings":"kFAoBA,IAAM,EAA+B,CACpC,OAAA,CAAQ,EAAqB,EAA2B,GAEvD,EAAG,yBAA2B,EAAM,MAAM,QAG1C,EAAM,MAAM,QAAA,KACP,EAAG,oBACN,cAAc,EAAG,oBAGlB,EAAG,mBAAqB,WAAA,KACvB,EAAG,4BACD,QAKO,GAAA,EAAA,EAAA,sBAAiC,EAAmB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"
|
|
2
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
require("../../_virtual/_rolldown/runtime.js");let e=require("@fast-china/utils");var t={mounted(e){e.style.cursor="move",e.style.position="absolute",e.onmousedown=t=>{const o=t.pageX-e.offsetLeft,s=t.pageY-e.offsetTop;document.onmousemove=t=>{let n=t.pageX-o,u=t.pageY-s;const l=e.parentNode.offsetWidth-e.offsetWidth,f=e.parentNode.offsetHeight-e.offsetHeight;n<0?n=0:n>l&&(n=l),u<0?u=0:u>f&&(u=f),e.style.left=`${n}px`,e.style.top=`${u}px`},document.onmouseup=()=>{document.onmousemove=document.onmouseup=null}}}},o=(0,e.withInstallDirective)(t,"draggable");exports.default=o;
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../packages/directives/click-draggable/index.ts"],"sourcesContent":["/*\n\t需求:实现一个拖拽指令,可在父元素区域任意拖拽元素。\n\n\t思路:\n\t\t1、设置需要拖拽的元素为absolute,其父元素为relative。\n\t\t2、鼠标按下(onmousedown)时记录目标元素当前的 left 和 top 值。\n\t\t3、鼠标移动(onmousemove)时计算每次移动的横向距离和纵向距离的变化值,并改变元素的 left 和 top 值\n\t\t4、鼠标松开(onmouseup)时完成一次拖拽\n\n\t使用:在 Dom 上加上 v-draggable 即可\n\t<div class=\"dialog-model\" v-draggable></div>\n*/\nimport { withInstallDirective } from \"@fast-china/utils\";\nimport type { Directive } from \"vue\";\n\ninterface DraggableElement extends HTMLElement {\n\tparentNode: any;\n}\n\nconst DraggableDirective: Directive = {\n\tmounted(el: DraggableElement) {\n\t\tel.style.cursor = \"move\";\n\t\tel.style.position = \"absolute\";\n\t\tel.onmousedown = (e): void => {\n\t\t\tconst disX = e.pageX - el.offsetLeft;\n\t\t\tconst disY = e.pageY - el.offsetTop;\n\t\t\tdocument.onmousemove = (e): void => {\n\t\t\t\tlet x = e.pageX - disX;\n\t\t\t\tlet y = e.pageY - disY;\n\t\t\t\tconst maxX = el.parentNode.offsetWidth - el.offsetWidth;\n\t\t\t\tconst maxY = el.parentNode.offsetHeight - el.offsetHeight;\n\t\t\t\tif (x < 0) {\n\t\t\t\t\tx = 0;\n\t\t\t\t} else if (x > maxX) {\n\t\t\t\t\tx = maxX;\n\t\t\t\t}\n\n\t\t\t\tif (y < 0) {\n\t\t\t\t\ty = 0;\n\t\t\t\t} else if (y > maxY) {\n\t\t\t\t\ty = maxY;\n\t\t\t\t}\n\t\t\t\tel.style.left = `${x}px`;\n\t\t\t\tel.style.top = `${y}px`;\n\t\t\t};\n\t\t\tdocument.onmouseup = (): void => {\n\t\t\t\tdocument.onmousemove = document.onmouseup = null;\n\t\t\t};\n\t\t};\n\t},\n};\n\nexport const vDraggable = withInstallDirective(DraggableDirective, \"draggable\");\nexport default vDraggable;\n"],"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../packages/directives/click-draggable/index.ts"],"sourcesContent":["/*\n\t需求:实现一个拖拽指令,可在父元素区域任意拖拽元素。\n\n\t思路:\n\t\t1、设置需要拖拽的元素为absolute,其父元素为relative。\n\t\t2、鼠标按下(onmousedown)时记录目标元素当前的 left 和 top 值。\n\t\t3、鼠标移动(onmousemove)时计算每次移动的横向距离和纵向距离的变化值,并改变元素的 left 和 top 值\n\t\t4、鼠标松开(onmouseup)时完成一次拖拽\n\n\t使用:在 Dom 上加上 v-draggable 即可\n\t<div class=\"dialog-model\" v-draggable></div>\n*/\nimport { withInstallDirective } from \"@fast-china/utils\";\nimport type { Directive } from \"vue\";\n\ninterface DraggableElement extends HTMLElement {\n\tparentNode: any;\n}\n\nconst DraggableDirective: Directive = {\n\tmounted(el: DraggableElement) {\n\t\tel.style.cursor = \"move\";\n\t\tel.style.position = \"absolute\";\n\t\tel.onmousedown = (e): void => {\n\t\t\tconst disX = e.pageX - el.offsetLeft;\n\t\t\tconst disY = e.pageY - el.offsetTop;\n\t\t\tdocument.onmousemove = (e): void => {\n\t\t\t\tlet x = e.pageX - disX;\n\t\t\t\tlet y = e.pageY - disY;\n\t\t\t\tconst maxX = el.parentNode.offsetWidth - el.offsetWidth;\n\t\t\t\tconst maxY = el.parentNode.offsetHeight - el.offsetHeight;\n\t\t\t\tif (x < 0) {\n\t\t\t\t\tx = 0;\n\t\t\t\t} else if (x > maxX) {\n\t\t\t\t\tx = maxX;\n\t\t\t\t}\n\n\t\t\t\tif (y < 0) {\n\t\t\t\t\ty = 0;\n\t\t\t\t} else if (y > maxY) {\n\t\t\t\t\ty = maxY;\n\t\t\t\t}\n\t\t\t\tel.style.left = `${x}px`;\n\t\t\t\tel.style.top = `${y}px`;\n\t\t\t};\n\t\t\tdocument.onmouseup = (): void => {\n\t\t\t\tdocument.onmousemove = document.onmouseup = null;\n\t\t\t};\n\t\t};\n\t},\n};\n\nexport const vDraggable = withInstallDirective(DraggableDirective, \"draggable\");\nexport default vDraggable;\n"],"mappings":"kFAmBA,IAAM,EAAgC,CACrC,OAAA,CAAQ,GACP,EAAG,MAAM,OAAS,OAClB,EAAG,MAAM,SAAW,WACpB,EAAG,YAAe,IACjB,MAAM,EAAO,EAAE,MAAQ,EAAG,WACpB,EAAO,EAAE,MAAQ,EAAG,UAC1B,SAAS,YAAe,IACvB,IAAI,EAAI,EAAE,MAAQ,EACd,EAAI,EAAE,MAAQ,EAClB,MAAM,EAAO,EAAG,WAAW,YAAc,EAAG,YACtC,EAAO,EAAG,WAAW,aAAe,EAAG,aACzC,EAAI,EACP,EAAI,EACM,EAAI,IACd,EAAI,GAGD,EAAI,EACP,EAAI,EACM,EAAI,IACd,EAAI,GAEL,EAAG,MAAM,KAAO,GAAG,MACnB,EAAG,MAAM,IAAM,GAAG,OAEnB,SAAS,UAAA,KACR,SAAS,YAAc,SAAS,UAAY,SAMnC,GAAA,EAAA,EAAA,sBAAkC,EAAoB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"
|
|
2
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
require("../../_virtual/_rolldown/runtime.js");let e=require("@fast-china/utils"),t=require("vue"),r=require("element-plus"),n=require("@element-plus/icons-vue");var i={mounted(i,a){if(i.copyData=a.value,!i.copyData)return;const l=(0,t.h)(r.ElIcon,{class:"fa__copy-icon",title:"复制",onClick:async()=>{try{await e.stringUtil.copy(String(i.copyData)),(0,r.ElMessage)({type:"success",message:"复制成功"})}catch(t){throw(0,r.ElMessage)({type:"error",message:"复制失败"}),t}}},{default:()=>(0,t.h)(n.CopyDocument)}),o=document.createElement("div");(0,t.render)(l,o),i.__iconElement__=o.firstChild,i.parentElement.insertBefore(o.firstChild,i)},updated(e,t){e.copyData=t.value},beforeUnmount(e){e.__iconElement__&&e.parentElement.removeChild(e.__iconElement__)}},a=(0,e.withInstallDirective)(i,"iconCopy");exports.default=a;
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../packages/directives/click-icon-copy/index.ts"],"sourcesContent":["/**\n * v-iconCopy\n * 左侧插入复制图标,复制某个值至剪贴板\n * 接收参数:string类型/Ref<string>类型/Reactive<string>类型\n */\nimport { type Directive, type DirectiveBinding, h, render } from \"vue\";\nimport { ElIcon, ElMessage } from \"element-plus\";\nimport { CopyDocument } from \"@element-plus/icons-vue\";\nimport { stringUtil, withInstallDirective } from \"@fast-china/utils\";\n\ninterface IconCopyElement extends HTMLElement {\n\tcopyData: string | number;\n\t__iconElement__: Node;\n}\n\nconst IconCopyDirective: Directive = {\n\tmounted(el: IconCopyElement, binding: DirectiveBinding<string | number>) {\n\t\tel.copyData = binding.value;\n\n\t\tif (!el.copyData) return;\n\n\t\tconst handleCopyClick = async (): Promise<void> => {\n\t\t\ttry {\n\t\t\t\tawait stringUtil.copy(String(el.copyData));\n\t\t\t\tElMessage({\n\t\t\t\t\ttype: \"success\",\n\t\t\t\t\tmessage: \"复制成功\",\n\t\t\t\t});\n\t\t\t} catch (error) {\n\t\t\t\tElMessage({\n\t\t\t\t\ttype: \"error\",\n\t\t\t\t\tmessage: \"复制失败\",\n\t\t\t\t});\n\t\t\t\tthrow error;\n\t\t\t}\n\t\t};\n\n\t\t// 创建 ELIcon 组件\n\t\tconst iconEl = h(\n\t\t\tElIcon,\n\t\t\t{\n\t\t\t\tclass: \"fa__copy-icon\",\n\t\t\t\ttitle: \"复制\",\n\t\t\t\tonClick: handleCopyClick,\n\t\t\t},\n\t\t\t{\n\t\t\t\tdefault: () => h(CopyDocument),\n\t\t\t}\n\t\t);\n\n\t\tconst tempDiv = document.createElement(\"div\");\n\t\trender(iconEl, tempDiv);\n\n\t\tel.__iconElement__ = tempDiv.firstChild;\n\t\tel.parentElement.insertBefore(tempDiv.firstChild, el);\n\t},\n\tupdated(el: IconCopyElement, binding: DirectiveBinding) {\n\t\tel.copyData = binding.value;\n\t},\n\tbeforeUnmount(el: IconCopyElement) {\n\t\tif (el.__iconElement__) {\n\t\t\tel.parentElement.removeChild(el.__iconElement__);\n\t\t}\n\t},\n};\n\nexport const vIconCopy = withInstallDirective(IconCopyDirective, \"iconCopy\");\nexport default vIconCopy;\n"],"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../packages/directives/click-icon-copy/index.ts"],"sourcesContent":["/**\n * v-iconCopy\n * 左侧插入复制图标,复制某个值至剪贴板\n * 接收参数:string类型/Ref<string>类型/Reactive<string>类型\n */\nimport { type Directive, type DirectiveBinding, h, render } from \"vue\";\nimport { ElIcon, ElMessage } from \"element-plus\";\nimport { CopyDocument } from \"@element-plus/icons-vue\";\nimport { stringUtil, withInstallDirective } from \"@fast-china/utils\";\n\ninterface IconCopyElement extends HTMLElement {\n\tcopyData: string | number;\n\t__iconElement__: Node;\n}\n\nconst IconCopyDirective: Directive = {\n\tmounted(el: IconCopyElement, binding: DirectiveBinding<string | number>) {\n\t\tel.copyData = binding.value;\n\n\t\tif (!el.copyData) return;\n\n\t\tconst handleCopyClick = async (): Promise<void> => {\n\t\t\ttry {\n\t\t\t\tawait stringUtil.copy(String(el.copyData));\n\t\t\t\tElMessage({\n\t\t\t\t\ttype: \"success\",\n\t\t\t\t\tmessage: \"复制成功\",\n\t\t\t\t});\n\t\t\t} catch (error) {\n\t\t\t\tElMessage({\n\t\t\t\t\ttype: \"error\",\n\t\t\t\t\tmessage: \"复制失败\",\n\t\t\t\t});\n\t\t\t\tthrow error;\n\t\t\t}\n\t\t};\n\n\t\t// 创建 ELIcon 组件\n\t\tconst iconEl = h(\n\t\t\tElIcon,\n\t\t\t{\n\t\t\t\tclass: \"fa__copy-icon\",\n\t\t\t\ttitle: \"复制\",\n\t\t\t\tonClick: handleCopyClick,\n\t\t\t},\n\t\t\t{\n\t\t\t\tdefault: () => h(CopyDocument),\n\t\t\t}\n\t\t);\n\n\t\tconst tempDiv = document.createElement(\"div\");\n\t\trender(iconEl, tempDiv);\n\n\t\tel.__iconElement__ = tempDiv.firstChild;\n\t\tel.parentElement.insertBefore(tempDiv.firstChild, el);\n\t},\n\tupdated(el: IconCopyElement, binding: DirectiveBinding) {\n\t\tel.copyData = binding.value;\n\t},\n\tbeforeUnmount(el: IconCopyElement) {\n\t\tif (el.__iconElement__) {\n\t\t\tel.parentElement.removeChild(el.__iconElement__);\n\t\t}\n\t},\n};\n\nexport const vIconCopy = withInstallDirective(IconCopyDirective, \"iconCopy\");\nexport default vIconCopy;\n"],"mappings":"kKAeA,IAAM,EAA+B,CACpC,OAAA,CAAQ,EAAqB,GAG5B,GAFA,EAAG,SAAW,EAAQ,OAEjB,EAAG,SAAU,OAElB,MAiBM,GAAA,EAAA,EAAA,GACL,EAAA,OACA,CACC,MAAO,gBACP,MAAO,KACP,QAtBsB,UACvB,UACO,EAAA,WAAW,KAAK,OAAO,EAAG,YAChC,EAAA,EAAA,WAAU,CACT,KAAM,UACN,QAAS,eAEF,GAKR,MAJA,EAAA,EAAA,WAAU,CACT,KAAM,QACN,QAAS,SAEJ,KAYP,CACC,QAAA,KAAA,EAAA,EAAA,GAAiB,EAAA,gBAIb,EAAU,SAAS,cAAc,QACvC,EAAA,EAAA,QAAO,EAAQ,GAEf,EAAG,gBAAkB,EAAQ,WAC7B,EAAG,cAAc,aAAa,EAAQ,WAAY,IAEnD,OAAA,CAAQ,EAAqB,GAC5B,EAAG,SAAW,EAAQ,OAEvB,aAAA,CAAc,GACT,EAAG,iBACN,EAAG,cAAc,YAAY,EAAG,mBAKtB,GAAA,EAAA,EAAA,sBAAiC,EAAmB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"
|
|
2
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
require("../../_virtual/_rolldown/runtime.js");let e=require("@fast-china/utils");var t={mounted(e,t){if("function"!=typeof t.value)throw"callback must be a function";let n=null;const l=e=>{e.button&&"click"===e.type&&0!==e.button||null===n&&(n=setTimeout(()=>{(e=>{t.value(e)})(e)},1e3))},u=()=>{null!==n&&(clearTimeout(n),n=null)};e.addEventListener("mousedown",l),e.addEventListener("touchstart",l),e.addEventListener("click",u),e.addEventListener("mouseout",u),e.addEventListener("touchend",u),e.addEventListener("touchcancel",u)}},n=(0,e.withInstallDirective)(t,"longpress");exports.default=n;
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../packages/directives/click-longpress/index.ts"],"sourcesContent":["/**\n * v-longpress\n * 长按指令,长按时触发事件\n */\nimport { withInstallDirective } from \"@fast-china/utils\";\nimport type { Directive, DirectiveBinding } from \"vue\";\n\nconst LongpressDirective: Directive = {\n\tmounted(el: HTMLElement, binding: DirectiveBinding<(event: MouseEvent | TouchEvent) => void>) {\n\t\tif (typeof binding.value !== \"function\") {\n\t\t\tthrow \"callback must be a function\";\n\t\t}\n\n\t\t// 运行函数\n\t\tconst handler = (e: MouseEvent | TouchEvent): void => {\n\t\t\tbinding.value(e);\n\t\t};\n\n\t\t// 定义变量\n\t\tlet pressTimer: any = null;\n\t\t// 创建计时器( 2秒后执行函数 )\n\t\tconst start = (e: any): void => {\n\t\t\tif (e.button) {\n\t\t\t\tif (e.type === \"click\" && e.button !== 0) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (pressTimer === null) {\n\t\t\t\tpressTimer = setTimeout(() => {\n\t\t\t\t\thandler(e);\n\t\t\t\t}, 1000);\n\t\t\t}\n\t\t};\n\t\t// 取消计时器\n\t\tconst cancel = (): void => {\n\t\t\tif (pressTimer !== null) {\n\t\t\t\tclearTimeout(pressTimer);\n\t\t\t\tpressTimer = null;\n\t\t\t}\n\t\t};\n\t\t// 添加事件监听器\n\t\tel.addEventListener(\"mousedown\", start);\n\t\tel.addEventListener(\"touchstart\", start);\n\t\t// 取消计时器\n\t\tel.addEventListener(\"click\", cancel);\n\t\tel.addEventListener(\"mouseout\", cancel);\n\t\tel.addEventListener(\"touchend\", cancel);\n\t\tel.addEventListener(\"touchcancel\", cancel);\n\t},\n};\n\nexport const vLongpress = withInstallDirective(LongpressDirective, \"longpress\");\nexport default vLongpress;\n"],"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../packages/directives/click-longpress/index.ts"],"sourcesContent":["/**\n * v-longpress\n * 长按指令,长按时触发事件\n */\nimport { withInstallDirective } from \"@fast-china/utils\";\nimport type { Directive, DirectiveBinding } from \"vue\";\n\nconst LongpressDirective: Directive = {\n\tmounted(el: HTMLElement, binding: DirectiveBinding<(event: MouseEvent | TouchEvent) => void>) {\n\t\tif (typeof binding.value !== \"function\") {\n\t\t\tthrow \"callback must be a function\";\n\t\t}\n\n\t\t// 运行函数\n\t\tconst handler = (e: MouseEvent | TouchEvent): void => {\n\t\t\tbinding.value(e);\n\t\t};\n\n\t\t// 定义变量\n\t\tlet pressTimer: any = null;\n\t\t// 创建计时器( 2秒后执行函数 )\n\t\tconst start = (e: any): void => {\n\t\t\tif (e.button) {\n\t\t\t\tif (e.type === \"click\" && e.button !== 0) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (pressTimer === null) {\n\t\t\t\tpressTimer = setTimeout(() => {\n\t\t\t\t\thandler(e);\n\t\t\t\t}, 1000);\n\t\t\t}\n\t\t};\n\t\t// 取消计时器\n\t\tconst cancel = (): void => {\n\t\t\tif (pressTimer !== null) {\n\t\t\t\tclearTimeout(pressTimer);\n\t\t\t\tpressTimer = null;\n\t\t\t}\n\t\t};\n\t\t// 添加事件监听器\n\t\tel.addEventListener(\"mousedown\", start);\n\t\tel.addEventListener(\"touchstart\", start);\n\t\t// 取消计时器\n\t\tel.addEventListener(\"click\", cancel);\n\t\tel.addEventListener(\"mouseout\", cancel);\n\t\tel.addEventListener(\"touchend\", cancel);\n\t\tel.addEventListener(\"touchcancel\", cancel);\n\t},\n};\n\nexport const vLongpress = withInstallDirective(LongpressDirective, \"longpress\");\nexport default vLongpress;\n"],"mappings":"kFAOA,IAAM,EAAgC,CACrC,OAAA,CAAQ,EAAiB,GACxB,GAA6B,mBAAlB,EAAQ,MAClB,KAAM,8BASP,IAAI,EAAkB,KAEtB,MAAM,EAAS,IACV,EAAE,QACU,UAAX,EAAE,MAAiC,IAAb,EAAE,QAIV,OAAf,IACH,EAAa,WAAA,KAdT,CAAW,IAChB,EAAQ,MAAM,IAcZ,CAAQ,IACN,OAIC,EAAA,KACc,OAAf,IACH,aAAa,GACb,EAAa,OAIf,EAAG,iBAAiB,YAAa,GACjC,EAAG,iBAAiB,aAAc,GAElC,EAAG,iBAAiB,QAAS,GAC7B,EAAG,iBAAiB,WAAY,GAChC,EAAG,iBAAiB,WAAY,GAChC,EAAG,iBAAiB,cAAe,KAIxB,GAAA,EAAA,EAAA,sBAAkC,EAAoB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"
|
|
2
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
require("../../_virtual/_rolldown/runtime.js");let e=require("@fast-china/utils");var l={mounted(e,l){if("function"!=typeof l.value)throw"callback must be a function";let t=null;e.__handleClick__=()=>{t&&clearTimeout(t),e.disabled||(e.disabled=!0,l.value(),t=setTimeout(()=>{e.disabled=!1},1e3))},e.addEventListener("click",e.__handleClick__)},beforeUnmount(e){e.removeEventListener("click",e.__handleClick__)}},t=(0,e.withInstallDirective)(l,"throttle");exports.default=t;
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../packages/directives/click-throttle/index.ts"],"sourcesContent":["/*\n 需求:防止按钮在短时间内被多次点击,使用节流函数限制规定时间内只能点击一次。\n\n 思路:\n 1、第一次点击,立即调用方法并禁用按钮,等延迟结束再次激活按钮\n 2、将需要触发的方法绑定在指令上\n\n 使用:给 Dom 加上 v-throttle 及回调函数即可\n <button v-throttle=\"debounceClick\">节流提交</button>\n*/\nimport { withInstallDirective } from \"@fast-china/utils\";\nimport type { Directive, DirectiveBinding } from \"vue\";\n\ninterface ThrottleElement extends HTMLElement {\n\t__handleClick__: () => any;\n\tdisabled: boolean;\n}\n\nconst ThrottleDirective: Directive = {\n\tmounted(el: ThrottleElement, binding: DirectiveBinding<(...args: any[]) => void>) {\n\t\tif (typeof binding.value !== \"function\") {\n\t\t\tthrow \"callback must be a function\";\n\t\t}\n\t\tlet timer: NodeJS.Timeout | null = null;\n\t\tel.__handleClick__ = (): void => {\n\t\t\tif (timer) {\n\t\t\t\tclearTimeout(timer);\n\t\t\t}\n\t\t\tif (!el.disabled) {\n\t\t\t\tel.disabled = true;\n\t\t\t\tbinding.value();\n\t\t\t\ttimer = setTimeout(() => {\n\t\t\t\t\tel.disabled = false;\n\t\t\t\t}, 1000);\n\t\t\t}\n\t\t};\n\t\tel.addEventListener(\"click\", el.__handleClick__);\n\t},\n\tbeforeUnmount(el: ThrottleElement) {\n\t\tel.removeEventListener(\"click\", el.__handleClick__);\n\t},\n};\n\nexport const vThrottle = withInstallDirective(ThrottleDirective, \"throttle\");\nexport default vThrottle;\n"],"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../packages/directives/click-throttle/index.ts"],"sourcesContent":["/*\n 需求:防止按钮在短时间内被多次点击,使用节流函数限制规定时间内只能点击一次。\n\n 思路:\n 1、第一次点击,立即调用方法并禁用按钮,等延迟结束再次激活按钮\n 2、将需要触发的方法绑定在指令上\n\n 使用:给 Dom 加上 v-throttle 及回调函数即可\n <button v-throttle=\"debounceClick\">节流提交</button>\n*/\nimport { withInstallDirective } from \"@fast-china/utils\";\nimport type { Directive, DirectiveBinding } from \"vue\";\n\ninterface ThrottleElement extends HTMLElement {\n\t__handleClick__: () => any;\n\tdisabled: boolean;\n}\n\nconst ThrottleDirective: Directive = {\n\tmounted(el: ThrottleElement, binding: DirectiveBinding<(...args: any[]) => void>) {\n\t\tif (typeof binding.value !== \"function\") {\n\t\t\tthrow \"callback must be a function\";\n\t\t}\n\t\tlet timer: NodeJS.Timeout | null = null;\n\t\tel.__handleClick__ = (): void => {\n\t\t\tif (timer) {\n\t\t\t\tclearTimeout(timer);\n\t\t\t}\n\t\t\tif (!el.disabled) {\n\t\t\t\tel.disabled = true;\n\t\t\t\tbinding.value();\n\t\t\t\ttimer = setTimeout(() => {\n\t\t\t\t\tel.disabled = false;\n\t\t\t\t}, 1000);\n\t\t\t}\n\t\t};\n\t\tel.addEventListener(\"click\", el.__handleClick__);\n\t},\n\tbeforeUnmount(el: ThrottleElement) {\n\t\tel.removeEventListener(\"click\", el.__handleClick__);\n\t},\n};\n\nexport const vThrottle = withInstallDirective(ThrottleDirective, \"throttle\");\nexport default vThrottle;\n"],"mappings":"kFAkBA,IAAM,EAA+B,CACpC,OAAA,CAAQ,EAAqB,GAC5B,GAA6B,mBAAlB,EAAQ,MAClB,KAAM,8BAEP,IAAI,EAA+B,KACnC,EAAG,gBAAA,KACE,GACH,aAAa,GAET,EAAG,WACP,EAAG,UAAW,EACd,EAAQ,QACR,EAAQ,WAAA,KACP,EAAG,UAAW,GACZ,OAGL,EAAG,iBAAiB,QAAS,EAAG,kBAEjC,aAAA,CAAc,GACb,EAAG,oBAAoB,QAAS,EAAG,mBAIxB,GAAA,EAAA,EAAA,sBAAiC,EAAmB"}
|
package/lib/directives/index.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
require("./click-copy/index.js"),require("./click-debounce/index.js"),require("./click-draggable/index.js"),require("./click-icon-copy/index.js"),require("./click-longpress/index.js"),require("./click-throttle/index.js");
|
package/lib/element-plus.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
//# sourceMappingURL=element-plus.js.map
|
|
1
|
+
const e=require("./_virtual/_rolldown/runtime.js"),t=require("./hooks/use-overlay/index.js");require("./hooks/index.js");let o=require("@fast-china/utils"),l=require("element-plus");l=e.__toESM(l,1);let n=require("@element-plus/icons-vue");n=e.__toESM(n,1);let a=require("lodash-unified");l.ElDialog.props={...l.ElDialog.props,draggable:{type:Boolean,default:!0}},l.ElForm.props={...l.ElForm.props,labelWidth:{type:[String,Number],default:"auto"},labelSuffix:{type:String,default:":"},scrollToError:{type:Boolean,default:!0}},l.ElInput.props={...l.ElInput.props,showWordLimit:{type:Boolean,default:!0}},l.ElInputNumber.props={...l.ElInputNumber.props,controls:{type:Boolean,default:!1}},l.ElSelect.props={...l.ElSelect.props,loadingText:{type:String,default:"加载中..."},noMatchText:{type:String,default:"暂无匹配的数据"},noDataText:{type:String,default:"暂无数据"},collapseTags:{type:Boolean,default:!0},collapseTagsTooltip:{type:Boolean,default:!0}},l.ElTable.props={...l.ElTable.props,border:{type:Boolean,default:!0},highlightCurrentRow:{type:Boolean,default:!0},rowKey:{type:[String,Function],default:"id"}},l.ElTree.props={...l.ElTree.props,defaultExpandAll:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!0},highlightCurrent:{type:Boolean,default:!0}},l.ElTreeSelect.props={...l.ElTreeSelect.props,loadingText:{type:String,default:"加载中..."},noMatchText:{type:String,default:"暂无匹配的数据"},noDataText:{type:String,default:"暂无数据"},collapseTags:{type:Boolean,default:!0},collapseTagsTooltip:{type:Boolean,default:!0},defaultExpandAll:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!0},highlightCurrent:{type:Boolean,default:!0},expandOnClickNode:Boolean};var s=(e,n,s,r)=>{if(s=s??{},s?.title||(s.title="温馨提示"),(0,a.isNil)(s?.draggable)&&(s.draggable=!0),s?.cancelButtonText||(s.cancelButtonText="取消"),s?.confirmButtonText||(s.confirmButtonText="确定"),(0,a.isNil)(s?.closeOnClickModal)&&(s.closeOnClickModal=!1),(0,a.isNil)(s?.closeOnPressEscape)&&(s.closeOnPressEscape=!1),!(0,a.isNil)(s?.beforeClose)){const e=s.beforeClose,l=s?.confirmButtonText,n=s?.showCancelButton;s.beforeClose=(a,s,r)=>{if("confirm"===a){t.useOverlay.show(0),s.confirmButtonLoading=!0,s.showCancelButton=!1,s.confirmButtonText="加载中...";const i=()=>{s.confirmButtonLoading=!1,s.showCancelButton=n,s.confirmButtonText=l,t.useOverlay.hide()},p=()=>{i(),r()};(0,o.execFunction)(e,a,s,p).then(()=>{p()}).catch(e=>{throw(0,o.consoleError)("MessageBox",e),i(),e})}else r()}}switch(e){case"alert":break;case"confirm":(0,a.isNil)(s?.showCancelButton)&&(s.showCancelButton=!0);break;case"prompt":null==s?.showCancelButton&&(s.showCancelButton=!0)}return(0,l.ElMessageBox)(Object.assign({message:n},s,{boxType:e}))},r={closeOnPressEscape:!1,closeOnClickModal:!1},i={showCancelButton:!0},p={showCancelButton:!0,showInput:!0};l.ElMessageBox.alert=(e,t,o,l)=>(0,a.isString)(t)?s("alert",e,Object.assign({title:t,...r},o)):s("alert",e,Object.assign(t,r,o)),l.ElMessageBox.prompt=(e,t,o,l)=>(0,a.isString)(t)?s("prompt",e,Object.assign({title:t,...p},o)):s("prompt",e,Object.assign(t,p,o)),l.ElMessageBox.confirm=(e,t,o,l)=>(0,a.isString)(t)?s("confirm",e,Object.assign({title:t,...i},o)):s("confirm",e,Object.assign(t,i,o));exports.installElementPlus=e=>{for(const[t,o]of Object.entries(n))e.component(`el-icon-${t}`,o);e.use(l.default)};
|
|
2
|
+
//# sourceMappingURL=element-plus.js.map
|
package/lib/element-plus.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"element-plus.js","sources":["../../packages/element-plus.ts"],"sourcesContent":["/** Element Plus 组件全局配置 */\n\nimport ElementPlus, { ElDialog, ElForm, ElInput, ElInputNumber, ElMessageBox, ElSelect, ElTable, ElTree, ElTreeSelect } from \"element-plus\";\nimport * as ElementPlusIconsVue from \"@element-plus/icons-vue\";\nimport { useOverlay } from \"@fast-element-plus/hooks\";\nimport { consoleError, execFunction } from \"@fast-china/utils\";\nimport { isNil, isString } from \"lodash-unified\";\nimport type { Action, ElMessageBoxOptions, MessageBoxData, MessageBoxState, TableProps } from \"element-plus\";\nimport type { App, AppContext, PropType } from \"vue\";\n\nElDialog.props = {\n\t...ElDialog.props,\n\t/**\n\t * 默认拖拽\n\t * @description enable dragging feature for Dialog\n\t */\n\tdraggable: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n};\n\nElForm.props = {\n\t...ElForm.props,\n\t/** @description Width of label, e.g. `'50px'`. All its direct child form items will inherit this value. `auto` is supported. */\n\tlabelWidth: {\n\t\ttype: [String, Number],\n\t\tdefault: \"auto\",\n\t},\n\t/** @description Suffix of the label. */\n\tlabelSuffix: {\n\t\ttype: String,\n\t\tdefault: \":\",\n\t},\n\t/** @description When validation fails, scroll to the first error form entry. */\n\tscrollToError: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n};\n\nElInput.props = {\n\t...ElInput.props,\n\t/**\n\t * 默认显示统计字数\n\t * @description word count\n\t */\n\tshowWordLimit: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n};\n\nElInputNumber.props = {\n\t...ElInputNumber.props,\n\t/**\n\t * 默认不使用控制按钮\n\t * @description whether to enable the control buttons\n\t */\n\tcontrols: {\n\t\ttype: Boolean,\n\t\tdefault: false,\n\t},\n};\n\nElSelect.props = {\n\t...ElSelect.props,\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/**\n\t * 默认按文字形式展示\n\t * @description whether to collapse tags to a text when multiple selecting\n\t */\n\tcollapseTags: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n\t/**\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\t */\n\tcollapseTagsTooltip: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n};\n\nElTable.props = {\n\t...ElTable.props,\n\t/**\n\t * 默认显示边框\n\t * @description whether Table has vertical border\n\t */\n\tborder: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n\t/**\n\t * 默认高亮当前行\n\t * @description whether current row is highlighted\n\t */\n\thighlightCurrentRow: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n\t/**\n\t * 默认行Key为 \"id\"\n\t * @description key of row data, used for optimizing rendering. Required if `reserve-selection` is on or display tree data. When its type is String, multi-level access is supported, e.g. `user.info.id`, but `user.info[0].id` is not supported, in which case `Function` should be used\n\t */\n\trowKey: {\n\t\ttype: [String, Function] as PropType<TableProps<any>[\"rowKey\"]>,\n\t\tdefault: \"id\",\n\t},\n};\n\nElTree.props = {\n\t...ElTree.props,\n\t/**\n\t * 默认展开所有节点\n\t * @description 是否默认展开所有节点\n\t */\n\tdefaultExpandAll: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n\t/**\n\t * 默认点击时选中节点\n\t * @description 是否在点击节点的时候选中节点\n\t */\n\tcheckOnClickNode: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n\t/**\n\t * 默认高亮选中节点\n\t * @description 是否高亮当前选中节点\n\t */\n\thighlightCurrent: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n};\n\nElTreeSelect.props = {\n\t...ElTreeSelect.props,\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/**\n\t * 默认按文字形式展示\n\t * @description whether to collapse tags to a text when multiple selecting\n\t */\n\tcollapseTags: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n\t/**\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\t */\n\tcollapseTagsTooltip: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n\t/**\n\t * 默认展开所有节点\n\t * @description 是否默认展开所有节点\n\t */\n\tdefaultExpandAll: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n\t/**\n\t * 默认点击时选中节点\n\t * @description 是否在点击节点的时候选中节点\n\t */\n\tcheckOnClickNode: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n\t/**\n\t * 默认高亮选中节点\n\t * @description 是否高亮当前选中节点\n\t */\n\thighlightCurrent: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n\t/**\n\t * 默认点击节点不展开或收缩节点\n\t * @description 是否在点击节点的时候展开或者收缩节点, 默认值为 true,如果为 false,则只有点箭头图标的时候才会展开或者收缩节点。\n\t */\n\texpandOnClickNode: Boolean,\n};\n\n// ElMessageBox 默认配置\nconst elMessageBox = (\n\ttype: \"alert\" | \"confirm\" | \"prompt\",\n\tmessage: ElMessageBoxOptions[\"message\"],\n\toptions?: ElMessageBoxOptions,\n\tappContext?: AppContext | null\n): Promise<MessageBoxData> => {\n\toptions = options ?? {};\n\tif (!options?.title) {\n\t\t// 默认提示\n\t\toptions.title = \"温馨提示\";\n\t}\n\tif (isNil(options?.draggable)) {\n\t\t// 默认拖拽\n\t\toptions.draggable = true;\n\t}\n\tif (!options?.cancelButtonText) {\n\t\t// 默认 取消按钮的文本内容\n\t\toptions.cancelButtonText = \"取消\";\n\t}\n\tif (!options?.confirmButtonText) {\n\t\t// 默认 确定按钮的文本内容\n\t\toptions.confirmButtonText = \"确定\";\n\t}\n\tif (isNil(options?.closeOnClickModal)) {\n\t\t// 默认 是否可通过点击遮罩层关闭 MessageBox\n\t\toptions.closeOnClickModal = false;\n\t}\n\tif (isNil(options?.closeOnPressEscape)) {\n\t\t// 默认 是否可通过按下 ESC 键关闭 MessageBox\n\t\toptions.closeOnPressEscape = false;\n\t}\n\n\t// 关闭之前的判断逻辑\n\tif (!isNil(options?.beforeClose)) {\n\t\tconst localBeforeClose = options.beforeClose;\n\t\tconst localConfirmButtonText = options?.confirmButtonText;\n\t\tconst localShowCancelButton = options?.showCancelButton;\n\t\toptions.beforeClose = (action: Action, instance: MessageBoxState, done: () => void): void => {\n\t\t\tif (action === \"confirm\") {\n\t\t\t\tuseOverlay.show(0);\n\t\t\t\tinstance.confirmButtonLoading = true;\n\t\t\t\tinstance.showCancelButton = false;\n\t\t\t\tinstance.confirmButtonText = \"加载中...\";\n\n\t\t\t\tconst cancelLoading = (): void => {\n\t\t\t\t\tinstance.confirmButtonLoading = false;\n\t\t\t\t\tinstance.showCancelButton = localShowCancelButton;\n\t\t\t\t\tinstance.confirmButtonText = localConfirmButtonText;\n\t\t\t\t\tuseOverlay.hide();\n\t\t\t\t};\n\n\t\t\t\tconst newDone = (): void => {\n\t\t\t\t\tcancelLoading();\n\t\t\t\t\tdone();\n\t\t\t\t};\n\n\t\t\t\texecFunction(localBeforeClose, action, instance, newDone)\n\t\t\t\t\t.then(() => {\n\t\t\t\t\t\tnewDone();\n\t\t\t\t\t})\n\t\t\t\t\t.catch((error) => {\n\t\t\t\t\t\tconsoleError(\"MessageBox\", error);\n\t\t\t\t\t\tcancelLoading();\n\t\t\t\t\t\tthrow error;\n\t\t\t\t\t});\n\t\t\t} else {\n\t\t\t\tdone();\n\t\t\t}\n\t\t};\n\t}\n\n\t// 根据类型有一些判断\n\tswitch (type) {\n\t\tcase \"alert\":\n\t\t\tbreak;\n\t\tcase \"confirm\":\n\t\t\tif (isNil(options?.showCancelButton)) {\n\t\t\t\toptions.showCancelButton = true;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase \"prompt\":\n\t\t\tif (options?.showCancelButton == undefined) {\n\t\t\t\toptions.showCancelButton = true;\n\t\t\t}\n\t\t\tbreak;\n\t}\n\n\treturn ElMessageBox(\n\t\tObject.assign(\n\t\t\t{\n\t\t\t\tmessage,\n\t\t\t},\n\t\t\toptions,\n\t\t\t{\n\t\t\t\tboxType: type,\n\t\t\t}\n\t\t)\n\t);\n};\n\ntype MESSAGE_BOX_TYPE = \"alert\" | \"confirm\" | \"prompt\";\nconst MESSAGE_BOX_DEFAULT_OPTS: Record<MESSAGE_BOX_TYPE, Partial<ElMessageBoxOptions>> = {\n\talert: { closeOnPressEscape: false, closeOnClickModal: false },\n\tconfirm: { showCancelButton: true },\n\tprompt: { showCancelButton: true, showInput: true },\n};\n\nElMessageBox.alert = (\n\tmessage: ElMessageBoxOptions[\"message\"],\n\ttitleOrOptions?: string | ElMessageBoxOptions,\n\toptions?: ElMessageBoxOptions,\n\tappContext?: AppContext | null\n): Promise<MessageBoxData> =>\n\tisString(titleOrOptions)\n\t\t? elMessageBox(\"alert\", message, Object.assign({ title: titleOrOptions, ...MESSAGE_BOX_DEFAULT_OPTS[\"alert\"] }, options), appContext)\n\t\t: elMessageBox(\"alert\", message, Object.assign(titleOrOptions, MESSAGE_BOX_DEFAULT_OPTS[\"alert\"], options), options as AppContext);\n\nElMessageBox.prompt = (\n\tmessage: ElMessageBoxOptions[\"message\"],\n\ttitleOrOptions?: string | ElMessageBoxOptions,\n\toptions?: ElMessageBoxOptions,\n\tappContext?: AppContext | null\n): Promise<MessageBoxData> =>\n\tisString(titleOrOptions)\n\t\t? elMessageBox(\"prompt\", message, Object.assign({ title: titleOrOptions, ...MESSAGE_BOX_DEFAULT_OPTS[\"prompt\"] }, options), appContext)\n\t\t: elMessageBox(\"prompt\", message, Object.assign(titleOrOptions, MESSAGE_BOX_DEFAULT_OPTS[\"prompt\"], options), options as AppContext);\n\nElMessageBox.confirm = (\n\tmessage: ElMessageBoxOptions[\"message\"],\n\ttitleOrOptions?: string | ElMessageBoxOptions,\n\toptions?: AppContext | ElMessageBoxOptions,\n\tappContext?: AppContext | null\n): Promise<MessageBoxData> =>\n\tisString(titleOrOptions)\n\t\t? elMessageBox(\"confirm\", message, Object.assign({ title: titleOrOptions, ...MESSAGE_BOX_DEFAULT_OPTS[\"confirm\"] }, options), appContext)\n\t\t: elMessageBox(\"confirm\", message, Object.assign(titleOrOptions, MESSAGE_BOX_DEFAULT_OPTS[\"confirm\"], options), options as AppContext);\n\nexport const installElementPlus = (app: App): void => {\n\t/** 注册所有 Element Plus Icon */\n\tfor (const [key, component] of Object.entries(ElementPlusIconsVue)) {\n\t\t// 这里是给 FaIcon 使用的\n\t\tapp.component(`el-icon-${key}`, component);\n\t}\n\n\t/** Element Plus 组件完整引入 */\n\tapp.use(ElementPlus);\n};\n"],"names":["ElDialog","props","draggable","type","Boolean","default","ElForm","labelWidth","String","Number","labelSuffix","scrollToError","ElInput","showWordLimit","ElInputNumber","controls","ElSelect","loadingText","noMatchText","noDataText","collapseTags","collapseTagsTooltip","ElTable","border","highlightCurrentRow","rowKey","Function","ElTree","defaultExpandAll","checkOnClickNode","highlightCurrent","ElTreeSelect","expandOnClickNode","elMessageBox","message","options","appContext","title","isNil","cancelButtonText","confirmButtonText","closeOnClickModal","closeOnPressEscape","beforeClose","localBeforeClose","localConfirmButtonText","localShowCancelButton","showCancelButton","action","instance","done","useOverlay","show","confirmButtonLoading","cancelLoading","hide","newDone","execFunction","then","catch","error","consoleError","ElMessageBox","Object","assign","boxType","MESSAGE_BOX_DEFAULT_OPTS","showInput","alert","titleOrOptions","isString","prompt","confirm","app","key","component","entries","ElementPlusIconsVue","use","ElementPlus"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"element-plus.js","names":[],"sources":["../../packages/element-plus.ts"],"sourcesContent":["/** Element Plus 组件全局配置 */\n\nimport ElementPlus, { ElDialog, ElForm, ElInput, ElInputNumber, ElMessageBox, ElSelect, ElTable, ElTree, ElTreeSelect } from \"element-plus\";\nimport * as ElementPlusIconsVue from \"@element-plus/icons-vue\";\nimport { useOverlay } from \"@fast-element-plus/hooks\";\nimport { consoleError, execFunction } from \"@fast-china/utils\";\nimport { isNil, isString } from \"lodash-unified\";\nimport type { Action, ElMessageBoxOptions, MessageBoxData, MessageBoxState, TableProps } from \"element-plus\";\nimport type { App, AppContext, PropType } from \"vue\";\n\nElDialog.props = {\n\t...ElDialog.props,\n\t/**\n\t * 默认拖拽\n\t * @description enable dragging feature for Dialog\n\t */\n\tdraggable: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n};\n\nElForm.props = {\n\t...ElForm.props,\n\t/** @description Width of label, e.g. `'50px'`. All its direct child form items will inherit this value. `auto` is supported. */\n\tlabelWidth: {\n\t\ttype: [String, Number],\n\t\tdefault: \"auto\",\n\t},\n\t/** @description Suffix of the label. */\n\tlabelSuffix: {\n\t\ttype: String,\n\t\tdefault: \":\",\n\t},\n\t/** @description When validation fails, scroll to the first error form entry. */\n\tscrollToError: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n};\n\nElInput.props = {\n\t...ElInput.props,\n\t/**\n\t * 默认显示统计字数\n\t * @description word count\n\t */\n\tshowWordLimit: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n};\n\nElInputNumber.props = {\n\t...ElInputNumber.props,\n\t/**\n\t * 默认不使用控制按钮\n\t * @description whether to enable the control buttons\n\t */\n\tcontrols: {\n\t\ttype: Boolean,\n\t\tdefault: false,\n\t},\n};\n\nElSelect.props = {\n\t...ElSelect.props,\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/**\n\t * 默认按文字形式展示\n\t * @description whether to collapse tags to a text when multiple selecting\n\t */\n\tcollapseTags: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n\t/**\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\t */\n\tcollapseTagsTooltip: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n};\n\nElTable.props = {\n\t...ElTable.props,\n\t/**\n\t * 默认显示边框\n\t * @description whether Table has vertical border\n\t */\n\tborder: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n\t/**\n\t * 默认高亮当前行\n\t * @description whether current row is highlighted\n\t */\n\thighlightCurrentRow: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n\t/**\n\t * 默认行Key为 \"id\"\n\t * @description key of row data, used for optimizing rendering. Required if `reserve-selection` is on or display tree data. When its type is String, multi-level access is supported, e.g. `user.info.id`, but `user.info[0].id` is not supported, in which case `Function` should be used\n\t */\n\trowKey: {\n\t\ttype: [String, Function] as PropType<TableProps<any>[\"rowKey\"]>,\n\t\tdefault: \"id\",\n\t},\n};\n\nElTree.props = {\n\t...ElTree.props,\n\t/**\n\t * 默认展开所有节点\n\t * @description 是否默认展开所有节点\n\t */\n\tdefaultExpandAll: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n\t/**\n\t * 默认点击时选中节点\n\t * @description 是否在点击节点的时候选中节点\n\t */\n\tcheckOnClickNode: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n\t/**\n\t * 默认高亮选中节点\n\t * @description 是否高亮当前选中节点\n\t */\n\thighlightCurrent: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n};\n\nElTreeSelect.props = {\n\t...ElTreeSelect.props,\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/**\n\t * 默认按文字形式展示\n\t * @description whether to collapse tags to a text when multiple selecting\n\t */\n\tcollapseTags: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n\t/**\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\t */\n\tcollapseTagsTooltip: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n\t/**\n\t * 默认展开所有节点\n\t * @description 是否默认展开所有节点\n\t */\n\tdefaultExpandAll: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n\t/**\n\t * 默认点击时选中节点\n\t * @description 是否在点击节点的时候选中节点\n\t */\n\tcheckOnClickNode: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n\t/**\n\t * 默认高亮选中节点\n\t * @description 是否高亮当前选中节点\n\t */\n\thighlightCurrent: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n\t/**\n\t * 默认点击节点不展开或收缩节点\n\t * @description 是否在点击节点的时候展开或者收缩节点, 默认值为 true,如果为 false,则只有点箭头图标的时候才会展开或者收缩节点。\n\t */\n\texpandOnClickNode: Boolean,\n};\n\n// ElMessageBox 默认配置\nconst elMessageBox = (\n\ttype: \"alert\" | \"confirm\" | \"prompt\",\n\tmessage: ElMessageBoxOptions[\"message\"],\n\toptions?: ElMessageBoxOptions,\n\tappContext?: AppContext | null\n): Promise<MessageBoxData> => {\n\toptions = options ?? {};\n\tif (!options?.title) {\n\t\t// 默认提示\n\t\toptions.title = \"温馨提示\";\n\t}\n\tif (isNil(options?.draggable)) {\n\t\t// 默认拖拽\n\t\toptions.draggable = true;\n\t}\n\tif (!options?.cancelButtonText) {\n\t\t// 默认 取消按钮的文本内容\n\t\toptions.cancelButtonText = \"取消\";\n\t}\n\tif (!options?.confirmButtonText) {\n\t\t// 默认 确定按钮的文本内容\n\t\toptions.confirmButtonText = \"确定\";\n\t}\n\tif (isNil(options?.closeOnClickModal)) {\n\t\t// 默认 是否可通过点击遮罩层关闭 MessageBox\n\t\toptions.closeOnClickModal = false;\n\t}\n\tif (isNil(options?.closeOnPressEscape)) {\n\t\t// 默认 是否可通过按下 ESC 键关闭 MessageBox\n\t\toptions.closeOnPressEscape = false;\n\t}\n\n\t// 关闭之前的判断逻辑\n\tif (!isNil(options?.beforeClose)) {\n\t\tconst localBeforeClose = options.beforeClose;\n\t\tconst localConfirmButtonText = options?.confirmButtonText;\n\t\tconst localShowCancelButton = options?.showCancelButton;\n\t\toptions.beforeClose = (action: Action, instance: MessageBoxState, done: () => void): void => {\n\t\t\tif (action === \"confirm\") {\n\t\t\t\tuseOverlay.show(0);\n\t\t\t\tinstance.confirmButtonLoading = true;\n\t\t\t\tinstance.showCancelButton = false;\n\t\t\t\tinstance.confirmButtonText = \"加载中...\";\n\n\t\t\t\tconst cancelLoading = (): void => {\n\t\t\t\t\tinstance.confirmButtonLoading = false;\n\t\t\t\t\tinstance.showCancelButton = localShowCancelButton;\n\t\t\t\t\tinstance.confirmButtonText = localConfirmButtonText;\n\t\t\t\t\tuseOverlay.hide();\n\t\t\t\t};\n\n\t\t\t\tconst newDone = (): void => {\n\t\t\t\t\tcancelLoading();\n\t\t\t\t\tdone();\n\t\t\t\t};\n\n\t\t\t\texecFunction(localBeforeClose, action, instance, newDone)\n\t\t\t\t\t.then(() => {\n\t\t\t\t\t\tnewDone();\n\t\t\t\t\t})\n\t\t\t\t\t.catch((error) => {\n\t\t\t\t\t\tconsoleError(\"MessageBox\", error);\n\t\t\t\t\t\tcancelLoading();\n\t\t\t\t\t\tthrow error;\n\t\t\t\t\t});\n\t\t\t} else {\n\t\t\t\tdone();\n\t\t\t}\n\t\t};\n\t}\n\n\t// 根据类型有一些判断\n\tswitch (type) {\n\t\tcase \"alert\":\n\t\t\tbreak;\n\t\tcase \"confirm\":\n\t\t\tif (isNil(options?.showCancelButton)) {\n\t\t\t\toptions.showCancelButton = true;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase \"prompt\":\n\t\t\tif (options?.showCancelButton == undefined) {\n\t\t\t\toptions.showCancelButton = true;\n\t\t\t}\n\t\t\tbreak;\n\t}\n\n\treturn ElMessageBox(\n\t\tObject.assign(\n\t\t\t{\n\t\t\t\tmessage,\n\t\t\t},\n\t\t\toptions,\n\t\t\t{\n\t\t\t\tboxType: type,\n\t\t\t}\n\t\t)\n\t);\n};\n\ntype MESSAGE_BOX_TYPE = \"alert\" | \"confirm\" | \"prompt\";\nconst MESSAGE_BOX_DEFAULT_OPTS: Record<MESSAGE_BOX_TYPE, Partial<ElMessageBoxOptions>> = {\n\talert: { closeOnPressEscape: false, closeOnClickModal: false },\n\tconfirm: { showCancelButton: true },\n\tprompt: { showCancelButton: true, showInput: true },\n};\n\nElMessageBox.alert = (\n\tmessage: ElMessageBoxOptions[\"message\"],\n\ttitleOrOptions?: string | ElMessageBoxOptions,\n\toptions?: ElMessageBoxOptions,\n\tappContext?: AppContext | null\n): Promise<MessageBoxData> =>\n\tisString(titleOrOptions)\n\t\t? elMessageBox(\"alert\", message, Object.assign({ title: titleOrOptions, ...MESSAGE_BOX_DEFAULT_OPTS[\"alert\"] }, options), appContext)\n\t\t: elMessageBox(\"alert\", message, Object.assign(titleOrOptions, MESSAGE_BOX_DEFAULT_OPTS[\"alert\"], options), options as AppContext);\n\nElMessageBox.prompt = (\n\tmessage: ElMessageBoxOptions[\"message\"],\n\ttitleOrOptions?: string | ElMessageBoxOptions,\n\toptions?: ElMessageBoxOptions,\n\tappContext?: AppContext | null\n): Promise<MessageBoxData> =>\n\tisString(titleOrOptions)\n\t\t? elMessageBox(\"prompt\", message, Object.assign({ title: titleOrOptions, ...MESSAGE_BOX_DEFAULT_OPTS[\"prompt\"] }, options), appContext)\n\t\t: elMessageBox(\"prompt\", message, Object.assign(titleOrOptions, MESSAGE_BOX_DEFAULT_OPTS[\"prompt\"], options), options as AppContext);\n\nElMessageBox.confirm = (\n\tmessage: ElMessageBoxOptions[\"message\"],\n\ttitleOrOptions?: string | ElMessageBoxOptions,\n\toptions?: AppContext | ElMessageBoxOptions,\n\tappContext?: AppContext | null\n): Promise<MessageBoxData> =>\n\tisString(titleOrOptions)\n\t\t? elMessageBox(\"confirm\", message, Object.assign({ title: titleOrOptions, ...MESSAGE_BOX_DEFAULT_OPTS[\"confirm\"] }, options), appContext)\n\t\t: elMessageBox(\"confirm\", message, Object.assign(titleOrOptions, MESSAGE_BOX_DEFAULT_OPTS[\"confirm\"], options), options as AppContext);\n\nexport const installElementPlus = (app: App): void => {\n\t/** 注册所有 Element Plus Icon */\n\tfor (const [key, component] of Object.entries(ElementPlusIconsVue)) {\n\t\t// 这里是给 FaIcon 使用的\n\t\tapp.component(`el-icon-${key}`, component);\n\t}\n\n\t/** Element Plus 组件完整引入 */\n\tapp.use(ElementPlus);\n};\n"],"mappings":"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"}
|
package/lib/hooks/index.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
require("./use-loading/index.js"),require("./use-overlay/index.js"),require("./use-screenFull/index.js");
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"
|
|
2
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
require("../../_virtual/_rolldown/runtime.js");let e=require("vue");var i={show:()=>{if(!window.loading){const e=document.body,i=document.createElement("div");i.className="__fa-loading",i.innerHTML='\n<div class="__fa-loading__box">\n\t<div class="__fa-loading__box-warp">\n\t\t\t<div class="__fa-loading__box-warp__item"></div>\n\t</div>\n</div>\n',e.insertBefore(i,e.childNodes[0]),window.loading=!0}},hide:()=>{window.loading&&(0,e.nextTick)(()=>{setTimeout(()=>{const e=document.querySelector(".__fa-loading__box");e&&e.parentNode?.removeChild(e),window.loading=!1},500)})}};exports.useLoading=i;
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../packages/hooks/use-loading/index.ts"],"sourcesContent":["import { nextTick } from \"vue\";\n\nexport const useLoading = {\n\tshow: (): void => {\n\t\t// 判断是否存在加载效果\n\t\tif (!window.loading) {\n\t\t\tconst bodyEl: Element = document.body;\n\t\t\tconst div = document.createElement(\"div\");\n\t\t\tdiv.className = \"__fa-loading\";\n\t\t\tdiv.innerHTML = `\n<div class=\"__fa-loading__box\">\n\t<div class=\"__fa-loading__box-warp\">\n\t\t\t<div class=\"__fa-loading__box-warp__item\"></div>\n\t</div>\n</div>\n`;\n\t\t\tbodyEl.insertBefore(div, bodyEl.childNodes[0]);\n\t\t\twindow.loading = true;\n\t\t}\n\t},\n\thide: (): void => {\n\t\t// 判断是否存在加载效果\n\t\tif (window.loading) {\n\t\t\tnextTick(() => {\n\t\t\t\tsetTimeout(() => {\n\t\t\t\t\tconst loadingEl = document.querySelector(\".__fa-loading__box\");\n\t\t\t\t\tloadingEl && loadingEl.parentNode?.removeChild(loadingEl);\n\t\t\t\t\twindow.loading = false;\n\t\t\t\t}, 500);\n\t\t\t});\n\t\t}\n\t},\n};\n"],"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../packages/hooks/use-loading/index.ts"],"sourcesContent":["import { nextTick } from \"vue\";\n\nexport const useLoading = {\n\tshow: (): void => {\n\t\t// 判断是否存在加载效果\n\t\tif (!window.loading) {\n\t\t\tconst bodyEl: Element = document.body;\n\t\t\tconst div = document.createElement(\"div\");\n\t\t\tdiv.className = \"__fa-loading\";\n\t\t\tdiv.innerHTML = `\n<div class=\"__fa-loading__box\">\n\t<div class=\"__fa-loading__box-warp\">\n\t\t\t<div class=\"__fa-loading__box-warp__item\"></div>\n\t</div>\n</div>\n`;\n\t\t\tbodyEl.insertBefore(div, bodyEl.childNodes[0]);\n\t\t\twindow.loading = true;\n\t\t}\n\t},\n\thide: (): void => {\n\t\t// 判断是否存在加载效果\n\t\tif (window.loading) {\n\t\t\tnextTick(() => {\n\t\t\t\tsetTimeout(() => {\n\t\t\t\t\tconst loadingEl = document.querySelector(\".__fa-loading__box\");\n\t\t\t\t\tloadingEl && loadingEl.parentNode?.removeChild(loadingEl);\n\t\t\t\t\twindow.loading = false;\n\t\t\t\t}, 500);\n\t\t\t});\n\t\t}\n\t},\n};\n"],"mappings":"oEAEA,IAAa,EAAa,CACzB,KAAA,KAEC,IAAK,OAAO,QAAS,CACpB,MAAM,EAAkB,SAAS,KAC3B,EAAM,SAAS,cAAc,OACnC,EAAI,UAAY,eAChB,EAAI,UAAY,wJAOhB,EAAO,aAAa,EAAK,EAAO,WAAW,IAC3C,OAAO,SAAU,IAGnB,KAAA,KAEK,OAAO,UACV,EAAA,EAAA,UAAA,KACC,WAAA,KACC,MAAM,EAAY,SAAS,cAAc,sBACzC,GAAa,EAAU,YAAY,YAAY,GAC/C,OAAO,SAAU,GACf"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"
|
|
2
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
require("../../_virtual/_rolldown/runtime.js");let e=require("vue");var o={show:(e=0)=>{if(!window.overlay){const o=document.body,r=document.createElement("div");r.className="__fa-overlay",r.style.backgroundColor=`rgba(0, 0, 0, ${e})`,o.insertBefore(r,o.childNodes[0]),window.overlay=!0}},hide:()=>{window.overlay&&(0,e.nextTick)(()=>{const e=document.querySelector(".__fa-overlay");e&&e.parentNode?.removeChild(e),window.overlay=!1})}};exports.useOverlay=o;
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../packages/hooks/use-overlay/index.ts"],"sourcesContent":["import { nextTick } from \"vue\";\n\nexport const useOverlay = {\n\tshow: (transparent = 0): void => {\n\t\t// 判断是否存在遮罩层\n\t\tif (!window.overlay) {\n\t\t\tconst bodyEl: Element = document.body;\n\t\t\tconst div = document.createElement(\"div\");\n\t\t\tdiv.className = \"__fa-overlay\";\n\t\t\tdiv.style.backgroundColor = `rgba(0, 0, 0, ${transparent})`;\n\t\t\tbodyEl.insertBefore(div, bodyEl.childNodes[0]);\n\t\t\twindow.overlay = true;\n\t\t}\n\t},\n\thide: (): void => {\n\t\t// 判断是否存在遮罩层\n\t\tif (window.overlay) {\n\t\t\tnextTick(() => {\n\t\t\t\tconst loadingEl = document.querySelector(\".__fa-overlay\");\n\t\t\t\tloadingEl && loadingEl.parentNode?.removeChild(loadingEl);\n\t\t\t\twindow.overlay = false;\n\t\t\t});\n\t\t}\n\t},\n};\n"],"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../packages/hooks/use-overlay/index.ts"],"sourcesContent":["import { nextTick } from \"vue\";\n\nexport const useOverlay = {\n\tshow: (transparent = 0): void => {\n\t\t// 判断是否存在遮罩层\n\t\tif (!window.overlay) {\n\t\t\tconst bodyEl: Element = document.body;\n\t\t\tconst div = document.createElement(\"div\");\n\t\t\tdiv.className = \"__fa-overlay\";\n\t\t\tdiv.style.backgroundColor = `rgba(0, 0, 0, ${transparent})`;\n\t\t\tbodyEl.insertBefore(div, bodyEl.childNodes[0]);\n\t\t\twindow.overlay = true;\n\t\t}\n\t},\n\thide: (): void => {\n\t\t// 判断是否存在遮罩层\n\t\tif (window.overlay) {\n\t\t\tnextTick(() => {\n\t\t\t\tconst loadingEl = document.querySelector(\".__fa-overlay\");\n\t\t\t\tloadingEl && loadingEl.parentNode?.removeChild(loadingEl);\n\t\t\t\twindow.overlay = false;\n\t\t\t});\n\t\t}\n\t},\n};\n"],"mappings":"oEAEA,IAAa,EAAa,CACzB,KAAA,CAAO,EAAc,KAEpB,IAAK,OAAO,QAAS,CACpB,MAAM,EAAkB,SAAS,KAC3B,EAAM,SAAS,cAAc,OACnC,EAAI,UAAY,eAChB,EAAI,MAAM,gBAAkB,iBAAiB,KAC7C,EAAO,aAAa,EAAK,EAAO,WAAW,IAC3C,OAAO,SAAU,IAGnB,KAAA,KAEK,OAAO,UACV,EAAA,EAAA,UAAA,KACC,MAAM,EAAY,SAAS,cAAc,iBACzC,GAAa,EAAU,YAAY,YAAY,GAC/C,OAAO,SAAU"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
const e=require("../../_virtual/_rolldown/runtime.js");let l=require("vue"),u=require("element-plus"),a=require("screenfull");a=e.__toESM(a);var s=(0,l.ref)(!1),r={isFullscreen:()=>s.value,init:()=>{a.default.isEnabled&&a.default.onchange(()=>{s.value=a.default.isFullscreen})},toggle:()=>{a.default.isEnabled?a.default.toggle():u.ElMessage.warning("当前您的浏览器不支持全屏 ❌")},full:()=>{a.default.isEnabled?a.default.isFullscreen||a.default.request():u.ElMessage.warning("当前您的浏览器不支持全屏 ❌")},exit:()=>{a.default.isEnabled?a.default.isFullscreen&&a.default.exit():u.ElMessage.warning("当前您的浏览器不支持全屏 ❌")}};exports.useScreenFull=r;
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../packages/hooks/use-screenFull/index.ts"],"sourcesContent":["import { ref } from \"vue\";\nimport { ElMessage } from \"element-plus\";\nimport screenfull from \"screenfull\";\n\nconst isFullscreen = ref(false);\n\nexport const useScreenFull = {\n\tisFullscreen: (): boolean => isFullscreen.value,\n\tinit: (): void => {\n\t\tif (!screenfull.isEnabled) {\n\t\t\treturn;\n\t\t}\n\t\tscreenfull.onchange(() => {\n\t\t\tisFullscreen.value = screenfull.isFullscreen;\n\t\t});\n\t},\n\ttoggle: (): void => {\n\t\tif (!screenfull.isEnabled) {\n\t\t\tElMessage.warning(\"当前您的浏览器不支持全屏 ❌\");\n\t\t\treturn;\n\t\t}\n\t\tscreenfull.toggle();\n\t},\n\tfull: (): void => {\n\t\tif (!screenfull.isEnabled) {\n\t\t\tElMessage.warning(\"当前您的浏览器不支持全屏 ❌\");\n\t\t\treturn;\n\t\t}\n\t\tif (screenfull.isFullscreen) {\n\t\t\treturn;\n\t\t}\n\t\t// const htmlEl = document.querySelector(\"html\");\n\t\t// screenfull.request(htmlEl);\n\t\tscreenfull.request();\n\t},\n\texit: (): void => {\n\t\tif (!screenfull.isEnabled) {\n\t\t\tElMessage.warning(\"当前您的浏览器不支持全屏 ❌\");\n\t\t\treturn;\n\t\t}\n\t\tif (screenfull.isFullscreen) {\n\t\t\tscreenfull.exit();\n\t\t}\n\t},\n};\n"],"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../packages/hooks/use-screenFull/index.ts"],"sourcesContent":["import { ref } from \"vue\";\nimport { ElMessage } from \"element-plus\";\nimport screenfull from \"screenfull\";\n\nconst isFullscreen = ref(false);\n\nexport const useScreenFull = {\n\tisFullscreen: (): boolean => isFullscreen.value,\n\tinit: (): void => {\n\t\tif (!screenfull.isEnabled) {\n\t\t\treturn;\n\t\t}\n\t\tscreenfull.onchange(() => {\n\t\t\tisFullscreen.value = screenfull.isFullscreen;\n\t\t});\n\t},\n\ttoggle: (): void => {\n\t\tif (!screenfull.isEnabled) {\n\t\t\tElMessage.warning(\"当前您的浏览器不支持全屏 ❌\");\n\t\t\treturn;\n\t\t}\n\t\tscreenfull.toggle();\n\t},\n\tfull: (): void => {\n\t\tif (!screenfull.isEnabled) {\n\t\t\tElMessage.warning(\"当前您的浏览器不支持全屏 ❌\");\n\t\t\treturn;\n\t\t}\n\t\tif (screenfull.isFullscreen) {\n\t\t\treturn;\n\t\t}\n\t\t// const htmlEl = document.querySelector(\"html\");\n\t\t// screenfull.request(htmlEl);\n\t\tscreenfull.request();\n\t},\n\texit: (): void => {\n\t\tif (!screenfull.isEnabled) {\n\t\t\tElMessage.warning(\"当前您的浏览器不支持全屏 ❌\");\n\t\t\treturn;\n\t\t}\n\t\tif (screenfull.isFullscreen) {\n\t\t\tscreenfull.exit();\n\t\t}\n\t},\n};\n"],"mappings":"6IAIA,IAAM,GAAA,EAAA,EAAA,MAAmB,GAEZ,EAAgB,CAC5B,aAAA,IAA6B,EAAa,MAC1C,KAAA,KACM,EAAA,QAAW,WAGhB,EAAA,QAAW,SAAA,KACV,EAAa,MAAQ,EAAA,QAAW,gBAGlC,OAAA,KACM,EAAA,QAAW,UAIhB,EAAA,QAAW,SAHV,EAAA,UAAU,QAAQ,mBAKpB,KAAA,KACM,EAAA,QAAW,UAIZ,EAAA,QAAW,cAKf,EAAA,QAAW,UARV,EAAA,UAAU,QAAQ,mBAUpB,KAAA,KACM,EAAA,QAAW,UAIZ,EAAA,QAAW,cACd,EAAA,QAAW,OAJX,EAAA,UAAU,QAAQ"}
|
package/lib/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("./_virtual/_rolldown/runtime.js");const e=require("./components/avatar/index.js"),r=require("./hooks/use-loading/index.js"),t=require("./hooks/use-overlay/index.js"),o=require("./hooks/use-screenFull/index.js");require("./hooks/index.js");const s=require("./components/button/src/button.js"),a=require("./components/button/index.js"),p=require("./constants/mime.js"),i=require("./constants/regex.js");require("./constants/index.js");const n=require("./components/carNumber/src/common.js"),l=require("./components/carNumber/index.js"),u=require("./components/icon/index.js"),c=require("./components/contextMenu/index.js"),m=require("./components/dialog/src/dialog.js"),x=require("./components/dialog/index.js"),d=require("./components/drawer/index.js"),f=require("./components/layoutGrid/index.js"),g=require("./components/form/utils/form.js"),j=require("./components/form/src/form.js"),q=require("./components/formItemTip/src/formItemTip.js"),P=require("./components/formItemTip/index.js"),b=require("./components/form/src/formItem.js"),F=require("./components/form/index.js"),I=require("./components/iconSelector/index.js"),S=require("./components/image/src/image.js"),T=require("./components/image/index.js"),E=require("./components/table/src/table.type.js"),v=require("./components/table/utils/table.js"),D=require("./components/table/src/tableColumn.js"),y=require("./components/table/src/table.js"),C=require("./components/table/src/page.type.js"),U=require("./components/table/index.js"),k=require("./components/inputDialogPage/src/inputDialogPage.js"),L=require("./components/inputDialogPage/index.js"),N=require("./components/select/src/select.js"),h=require("./components/select/index.js"),V=require("./components/selectPage/src/selectPage.js"),O=require("./components/selectPage/index.js"),_=require("./components/selectV2/src/selectV2.js"),M=require("./components/selectV2/index.js"),A=require("./components/tree/src/tree.js"),B=require("./components/tree/index.js"),G=require("./components/treeSelect/src/treeSelect.js"),w=require("./components/treeSelect/index.js"),K=require("./components/upload/src/upload.js"),R=require("./components/upload/index.js"),Y=require("./components/uploadImage/src/uploadImage.js"),z=require("./components/uploadImage/index.js"),H=require("./components/uploadImages/index.js"),J=require("./directives/click-copy/index.js"),Q=require("./directives/click-debounce/index.js"),W=require("./directives/click-draggable/index.js"),X=require("./directives/click-icon-copy/index.js"),Z=require("./directives/click-longpress/index.js"),$=require("./directives/click-throttle/index.js"),ee=require("./make-installer.js"),re=require("./components/index.js");require("./directives/index.js");let te=require("decimal.js");var oe=ee.makeInstaller(),se=oe.install,ae=oe.version;exports.CarNumberArea=n.CarNumberArea,exports.CarNumberDigit=n.CarNumberDigit,exports.CarNumberLetter=n.CarNumberLetter,Object.defineProperty(exports,"Decimal",{enumerable:!0,get:function(){return te.Decimal}}),exports.FaAvatar=e.default,exports.FaButton=a.default,exports.FaCarNumber=l.default,exports.FaContextMenu=c.default,exports.FaDialog=x.default,exports.FaDrawer=d.default,exports.FaForm=F.default,exports.FaFormItem=F.FaFormItem,exports.FaFormItemTip=P.default,exports.FaIcon=u.default,exports.FaIconSelector=I.default,exports.FaImage=T.default,exports.FaInputDialogPage=L.default,exports.FaLayoutGrid=f.default,exports.FaLayoutGridItem=f.FaLayoutGridItem,exports.FaMimeType=p.FaMimeType,exports.FaSelect=h.default,exports.FaSelectOption=h.FaSelectOption,exports.FaSelectPage=O.default,exports.FaSelectV2=M.default,exports.FaTable=U.default,exports.FaTableColumn=U.FaTableColumn,exports.FaTree=B.default,exports.FaTreeSelect=w.default,exports.FaUpload=R.default,exports.FaUploadImage=z.default,exports.FaUploadImages=H.default,Object.defineProperty(exports,"FastElementPlus",{enumerable:!0,get:function(){return re.components_exports}}),exports.INSTALLED_KEY=ee.INSTALLED_KEY,exports.PagedSearchTypeEnum=C.PagedSearchTypeEnum,exports.RegExps=i.RegExps,exports.SelectProps=N.SelectProps,exports.SelectV2Props=_.SelectV2Props,exports.default=oe,exports.faButtonEmits=s.faButtonEmits,exports.faButtonProps=s.faButtonProps,exports.faDialogEmits=m.faDialogEmits,exports.faDialogProps=m.faDialogProps,exports.faFormItemProps=b.faFormItemProps,exports.faFormItemTipProps=q.faFormItemTipProps,exports.faFormProps=j.faFormProps,exports.faImageProps=S.faImageProps,exports.faInputDialogPageEmits=k.faInputDialogPageEmits,exports.faInputDialogPageProps=k.faInputDialogPageProps,exports.faSelectPageEmits=V.faSelectPageEmits,exports.faSelectPageProps=V.faSelectPageProps,exports.faSelectProps=N.faSelectProps,exports.faSelectV2Props=_.faSelectV2Props,exports.faTableEmits=y.faTableEmits,exports.faTableProps=y.faTableProps,exports.faTreeEmits=A.faTreeEmits,exports.faTreeProps=A.faTreeProps,exports.faTreeSelectEmits=G.faTreeSelectEmits,exports.faTreeSelectProps=G.faTreeSelectProps,exports.faUploadEmits=K.faUploadEmits,exports.faUploadImageEmits=Y.faUploadImageEmits,exports.faUploadImageProps=Y.faUploadImageProps,exports.faUploadProps=K.faUploadProps,exports.formUtil=g.formUtil,exports.getTableDefaultSlots=E.getTableDefaultSlots,exports.install=se,exports.tableColumnProps=D.tableColumnProps,exports.tableProps=y.tableProps,exports.tableUtil=v.tableUtil,exports.useLoading=r.useLoading,exports.useOverlay=t.useOverlay,exports.useScreenFull=o.useScreenFull,exports.vCopy=J.default,exports.vDebounce=Q.default,exports.vDraggable=W.default,exports.vIconCopy=X.default,exports.vLongpress=Z.default,exports.vThrottle=$.default,exports.version=ae;
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../packages/index.ts"],"sourcesContent":["import { makeInstaller } from \"./make-installer\";\n\nexport { INSTALLED_KEY } from \"./make-installer\";\nexport * as FastElementPlus from \"@fast-element-plus/components\";\n\nexport * from \"@fast-element-plus/components\";\nexport * from \"@fast-element-plus/constants\";\nexport * from \"@fast-element-plus/directives\";\nexport * from \"@fast-element-plus/hooks\";\n\nexport { Decimal } from \"decimal.js\";\n\nconst installer = makeInstaller();\n\nexport const install = installer.install;\nexport const version = installer.version;\nexport default installer;\n"],"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../packages/index.ts"],"sourcesContent":["import { makeInstaller } from \"./make-installer\";\n\nexport { INSTALLED_KEY } from \"./make-installer\";\nexport * as FastElementPlus from \"@fast-element-plus/components\";\n\nexport * from \"@fast-element-plus/components\";\nexport * from \"@fast-element-plus/constants\";\nexport * from \"@fast-element-plus/directives\";\nexport * from \"@fast-element-plus/hooks\";\n\nexport { Decimal } from \"decimal.js\";\n\nconst installer = makeInstaller();\n\nexport const install = installer.install;\nexport const version = installer.version;\nexport default installer;\n"],"mappings":"uyFAYA,IAAM,GAAY,GAAA,gBAEL,GAAU,GAAU,QACpB,GAAU,GAAU"}
|
package/lib/make-installer.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
//# sourceMappingURL=make-installer.js.map
|
|
1
|
+
const e=require("./_virtual/_rolldown/runtime.js"),r=require("./component.js"),s=require("./directive.js"),t=require("./element-plus.js"),o=require("./version.js");let n=require("@fast-element-plus/icons-vue");n=e.__toESM(n,1);var i=Symbol("INSTALLED_KEY");exports.INSTALLED_KEY=i,exports.makeInstaller=()=>({version:o.version,install:e=>{if(!e[i]){e[i]=!0,t.installElementPlus(e);for(const[r,s]of Object.entries(n))e.component(`fa-icon-${r}`,s);r.default.forEach(r=>e.use(r)),s.default.forEach(r=>e.use(r))}}});
|
|
2
|
+
//# sourceMappingURL=make-installer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"make-installer.js","sources":["../../packages/make-installer.ts"],"sourcesContent":["import * as FastElementPlusIconsVue from \"@fast-element-plus/icons-vue\";\nimport FastElementPlusComponents from \"./component\";\nimport FastElementPlusDirectives from \"./directive\";\nimport { installElementPlus } from \"./element-plus\";\nimport { version } from \"./version\";\nimport type { App } from \"vue\";\n\nexport const INSTALLED_KEY = Symbol(\"INSTALLED_KEY\");\n\nexport const makeInstaller = (): {\n\tversion: string;\n\tinstall: (app: App) => void;\n} => {\n\tconst install = (app: App): void => {\n\t\tif (app[INSTALLED_KEY]) return;\n\n\t\tapp[INSTALLED_KEY] = true;\n\n\t\tinstallElementPlus(app);\n\n\t\t/** 注册所有 Fast Element Plus Icon */\n\t\tfor (const [key, component] of Object.entries(FastElementPlusIconsVue)) {\n\t\t\t// 这里是给 FaIcon 使用的\n\t\t\tapp.component(`fa-icon-${key}`, component);\n\t\t}\n\n\t\tFastElementPlusComponents.forEach((c) => app.use(c));\n\n\t\tFastElementPlusDirectives.forEach((d) => app.use(d));\n\t};\n\n\treturn {\n\t\tversion,\n\t\tinstall,\n\t};\n};\n"],"
|
|
1
|
+
{"version":3,"file":"make-installer.js","names":[],"sources":["../../packages/make-installer.ts"],"sourcesContent":["import * as FastElementPlusIconsVue from \"@fast-element-plus/icons-vue\";\nimport FastElementPlusComponents from \"./component\";\nimport FastElementPlusDirectives from \"./directive\";\nimport { installElementPlus } from \"./element-plus\";\nimport { version } from \"./version\";\nimport type { App } from \"vue\";\n\nexport const INSTALLED_KEY = Symbol(\"INSTALLED_KEY\");\n\nexport const makeInstaller = (): {\n\tversion: string;\n\tinstall: (app: App) => void;\n} => {\n\tconst install = (app: App): void => {\n\t\tif (app[INSTALLED_KEY]) return;\n\n\t\tapp[INSTALLED_KEY] = true;\n\n\t\tinstallElementPlus(app);\n\n\t\t/** 注册所有 Fast Element Plus Icon */\n\t\tfor (const [key, component] of Object.entries(FastElementPlusIconsVue)) {\n\t\t\t// 这里是给 FaIcon 使用的\n\t\t\tapp.component(`fa-icon-${key}`, component);\n\t\t}\n\n\t\tFastElementPlusComponents.forEach((c) => app.use(c));\n\n\t\tFastElementPlusDirectives.forEach((d) => app.use(d));\n\t};\n\n\treturn {\n\t\tversion,\n\t\tinstall,\n\t};\n};\n"],"mappings":"mOAOA,IAAa,EAAgB,OAAO,+DAEvB,KAsBL,CACN,QAAA,EAAA,QACA,QApBgB,IAChB,IAAI,EAAI,GAAR,CAEA,EAAI,IAAiB,EAErB,EAAA,mBAAmB,GAGnB,IAAK,MAAO,EAAK,KAAc,OAAO,QAAQ,GAE7C,EAAI,UAAU,WAAW,IAAO,GAGjC,EAAA,QAA0B,QAAS,GAAM,EAAI,IAAI,IAEjD,EAAA,QAA0B,QAAS,GAAM,EAAI,IAAI,GAdzB"}
|
package/lib/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "1.0.
|
|
1
|
+
export declare const version = "1.0.21";
|
package/lib/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
//# sourceMappingURL=version.js.map
|
|
1
|
+
exports.version="1.0.21";
|
|
2
|
+
//# sourceMappingURL=version.js.map
|
package/lib/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sources":["../../packages/version.ts"],"sourcesContent":["export const version = \"1.0.
|
|
1
|
+
{"version":3,"file":"version.js","names":[],"sources":["../../packages/version.ts"],"sourcesContent":["export const version = \"1.0.21\";\n"],"mappings":"gBAAuB"}
|