hs-admin-ui 15.4.7 → 15.4.9
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/bcIcon-B-FFU7u0.js +1 -0
- package/dist/bcIcon-BjRYCHLT.mjs +4 -0
- package/dist/index-D1srXzgs.mjs +144132 -0
- package/dist/index-DtYpQa6r.js +349 -0
- package/dist/index.css +1 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +171 -169
- package/dist/types/element-plus.d.ts +2 -0
- package/dist/types/index.d.ts +35 -1
- package/dist/types/src/components/base/Affix/index.d.ts +1 -0
- package/dist/types/src/components/base/Affix/src/Affix.vue.d.ts +3 -0
- package/dist/types/src/components/base/Alert/index.d.ts +1 -0
- package/dist/types/src/components/base/Alert/src/Alert.vue.d.ts +3 -0
- package/dist/types/src/components/base/Aside/index.d.ts +1 -0
- package/dist/types/src/components/base/Aside/src/Aside.vue.d.ts +3 -0
- package/dist/types/src/components/base/Autocomplete/index.d.ts +1 -0
- package/dist/types/src/components/base/Autocomplete/src/Autocomplete.vue.d.ts +3 -0
- package/dist/types/src/components/base/Badge/index.d.ts +1 -0
- package/dist/types/src/components/base/Badge/src/Badge.vue.d.ts +3 -0
- package/dist/types/src/components/base/Button/index.d.ts +2 -0
- package/dist/types/src/components/base/Button/src/Button.vue.d.ts +3 -0
- package/dist/types/src/components/base/Button/src/ButtonGroup.vue.d.ts +3 -0
- package/dist/types/src/components/base/Calendar/index.d.ts +1 -0
- package/dist/types/src/components/base/Calendar/src/Calendar.vue.d.ts +3 -0
- package/dist/types/src/components/base/Card/index.d.ts +1 -0
- package/dist/types/src/components/base/Card/src/Card.vue.d.ts +3 -0
- package/dist/types/src/components/base/Carousel/index.d.ts +2 -0
- package/dist/types/src/components/base/Carousel/src/Carousel.vue.d.ts +3 -0
- package/dist/types/src/components/base/Carousel/src/CarouselItem.vue.d.ts +3 -0
- package/dist/types/src/components/base/Cascader/index.d.ts +2 -0
- package/dist/types/src/components/base/Cascader/src/Cascader.vue.d.ts +3 -0
- package/dist/types/src/components/base/Cascader/src/CascaderPanel.vue.d.ts +3 -0
- package/dist/types/src/components/base/Checkbox/index.d.ts +3 -0
- package/dist/types/src/components/base/Checkbox/src/Checkbox.vue.d.ts +3 -0
- package/dist/types/src/components/base/Checkbox/src/CheckboxButton.vue.d.ts +3 -0
- package/dist/types/src/components/base/Checkbox/src/CheckboxGroup.vue.d.ts +3 -0
- package/dist/types/src/components/base/Col/index.d.ts +1 -0
- package/dist/types/src/components/base/Col/src/Col.vue.d.ts +3 -0
- package/dist/types/src/components/base/Collapse/index.d.ts +2 -0
- package/dist/types/src/components/base/Collapse/src/Collapse.vue.d.ts +3 -0
- package/dist/types/src/components/base/Collapse/src/CollapseItem.vue.d.ts +3 -0
- package/dist/types/src/components/base/ColorPicker/index.d.ts +1 -0
- package/dist/types/src/components/base/ColorPicker/src/ColorPicker.vue.d.ts +3 -0
- package/dist/types/src/components/base/Container/index.d.ts +1 -0
- package/dist/types/src/components/base/Container/src/Container.vue.d.ts +3 -0
- package/dist/types/src/components/base/DatePicker/index.d.ts +1 -0
- package/dist/types/src/components/base/DatePicker/src/DatePicker.vue.d.ts +3 -0
- package/dist/types/src/components/base/Descriptions/index.d.ts +1 -0
- package/dist/types/src/components/base/Descriptions/src/Descriptions.vue.d.ts +3 -0
- package/dist/types/src/components/base/Dialog/index.d.ts +1 -0
- package/dist/types/src/components/base/Dialog/src/Dialog.vue.d.ts +3 -0
- package/dist/types/src/components/base/Divider/index.d.ts +1 -0
- package/dist/types/src/components/base/Divider/src/Divider.vue.d.ts +3 -0
- package/dist/types/src/components/base/Drawer/index.d.ts +1 -0
- package/dist/types/src/components/base/Drawer/src/Drawer.vue.d.ts +3 -0
- package/dist/types/src/components/base/Dropdown/index.d.ts +3 -0
- package/dist/types/src/components/base/Dropdown/src/Dropdown.vue.d.ts +3 -0
- package/dist/types/src/components/base/Dropdown/src/DropdownItem.vue.d.ts +3 -0
- package/dist/types/src/components/base/Dropdown/src/DropdownMenu.vue.d.ts +3 -0
- package/dist/types/src/components/base/Empty/index.d.ts +1 -0
- package/dist/types/src/components/base/Empty/src/Empty.vue.d.ts +3 -0
- package/dist/types/src/components/base/Footer/index.d.ts +1 -0
- package/dist/types/src/components/base/Footer/src/Footer.vue.d.ts +3 -0
- package/dist/types/src/components/base/Form/index.d.ts +2 -0
- package/dist/types/src/components/base/Form/src/Form.vue.d.ts +3 -0
- package/dist/types/src/components/base/Form/src/FormItem.vue.d.ts +3 -0
- package/dist/types/src/components/base/Header/index.d.ts +1 -0
- package/dist/types/src/components/base/Header/src/Header.vue.d.ts +3 -0
- package/dist/types/src/components/base/Icon/index.d.ts +1 -0
- package/dist/types/src/components/base/Icon/src/Icon.vue.d.ts +3 -0
- package/dist/types/src/components/base/Image/index.d.ts +1 -0
- package/dist/types/src/components/base/Image/src/Image.vue.d.ts +3 -0
- package/dist/types/src/components/base/ImageViewer/index.d.ts +1 -0
- package/dist/types/src/components/base/ImageViewer/src/ImageViewer.vue.d.ts +3 -0
- package/dist/types/src/components/base/Input/index.d.ts +1 -0
- package/dist/types/src/components/base/Input/src/Input.vue.d.ts +30 -0
- package/dist/types/src/components/base/InputNumber/index.d.ts +1 -0
- package/dist/types/src/components/base/InputNumber/src/InputNumber.vue.d.ts +3 -0
- package/dist/types/src/components/base/Main/index.d.ts +1 -0
- package/dist/types/src/components/base/Main/src/Main.vue.d.ts +3 -0
- package/dist/types/src/components/base/Menu/index.d.ts +3 -0
- package/dist/types/src/components/base/Menu/src/Menu.vue.d.ts +3 -0
- package/dist/types/src/components/base/Menu/src/MenuItem.vue.d.ts +3 -0
- package/dist/types/src/components/base/Menu/src/SubMenu.vue.d.ts +3 -0
- package/dist/types/src/components/base/Pagination/index.d.ts +1 -0
- package/dist/types/src/components/base/Pagination/src/Pagination.vue.d.ts +3 -0
- package/dist/types/src/components/base/Popconfirm/index.d.ts +1 -0
- package/dist/types/src/components/base/Popconfirm/src/Popconfirm.vue.d.ts +3 -0
- package/dist/types/src/components/base/Popover/index.d.ts +1 -0
- package/dist/types/src/components/base/Popover/src/Popover.vue.d.ts +3 -0
- package/dist/types/src/components/base/Progress/index.d.ts +1 -0
- package/dist/types/src/components/base/Progress/src/Progress.vue.d.ts +3 -0
- package/dist/types/src/components/base/Qr/index.d.ts +1 -0
- package/dist/types/src/components/base/Qr/src/Qr.vue.d.ts +3 -0
- package/dist/types/src/components/base/Radio/index.d.ts +3 -0
- package/dist/types/src/components/base/Radio/src/Radio.vue.d.ts +17 -0
- package/dist/types/src/components/base/Radio/src/RadioButton.vue.d.ts +3 -0
- package/dist/types/src/components/base/Radio/src/RadioGroup.vue.d.ts +3 -0
- package/dist/types/src/components/base/Rate/index.d.ts +1 -0
- package/dist/types/src/components/base/Rate/src/Rate.vue.d.ts +3 -0
- package/dist/types/src/components/base/Result/index.d.ts +1 -0
- package/dist/types/src/components/base/Result/src/Result.vue.d.ts +3 -0
- package/dist/types/src/components/base/Row/index.d.ts +1 -0
- package/dist/types/src/components/base/Row/src/Row.vue.d.ts +3 -0
- package/dist/types/src/components/base/Scrollbar/index.d.ts +1 -0
- package/dist/types/src/components/base/Scrollbar/src/Scrollbar.vue.d.ts +3 -0
- package/dist/types/src/components/base/Select/index.d.ts +3 -0
- package/dist/types/src/components/base/Select/src/Option.vue.d.ts +3 -0
- package/dist/types/src/components/base/Select/src/OptionGroup.vue.d.ts +3 -0
- package/dist/types/src/components/base/Select/src/Select.vue.d.ts +37 -0
- package/dist/types/src/components/base/SelectV2/index.d.ts +1 -0
- package/dist/types/src/components/base/SelectV2/src/SelectV2.vue.d.ts +3 -0
- package/dist/types/src/components/base/Slider/index.d.ts +1 -0
- package/dist/types/src/components/base/Slider/src/Slider.vue.d.ts +3 -0
- package/dist/types/src/components/base/Steps/index.d.ts +1 -0
- package/dist/types/src/components/base/Steps/src/Step.vue.d.ts +3 -0
- package/dist/types/src/components/base/Steps/src/Steps.vue.d.ts +3 -0
- package/dist/types/src/components/base/Switch/index.d.ts +1 -0
- package/dist/types/src/components/base/Switch/src/Switch.vue.d.ts +3 -0
- package/dist/types/src/components/base/Table/index.d.ts +2 -0
- package/dist/types/src/components/base/Table/src/Table.vue.d.ts +3 -0
- package/dist/types/src/components/base/Table/src/TableColumn.vue.d.ts +3 -0
- package/dist/types/src/components/base/Tabs/index.d.ts +2 -0
- package/dist/types/src/components/base/Tabs/src/TabPane.vue.d.ts +3 -0
- package/dist/types/src/components/base/Tabs/src/Tabs.vue.d.ts +3 -0
- package/dist/types/src/components/base/Tag/index.d.ts +2 -0
- package/dist/types/src/components/base/Tag/src/CheckTag.vue.d.ts +3 -0
- package/dist/types/src/components/base/Tag/src/Tag.vue.d.ts +3 -0
- package/dist/types/src/components/base/Text/index.d.ts +1 -0
- package/dist/types/src/components/base/Text/src/Text.vue.d.ts +3 -0
- package/dist/types/src/components/base/Tooltip/index.d.ts +1 -0
- package/dist/types/src/components/base/Tooltip/src/Tooltip.vue.d.ts +3 -0
- package/dist/types/src/components/base/Tour/index.d.ts +2 -0
- package/dist/types/src/components/base/Tour/src/Tour.vue.d.ts +3 -0
- package/dist/types/src/components/base/Tour/src/TourStep.vue.d.ts +3 -0
- package/dist/types/src/components/base/Transfer/index.d.ts +1 -0
- package/dist/types/src/components/base/Transfer/src/Transfer.vue.d.ts +3 -0
- package/dist/types/src/components/base/Tree/index.d.ts +1 -0
- package/dist/types/src/components/base/Tree/src/Tree.vue.d.ts +3 -0
- package/dist/types/src/components/base/TreeSelect/index.d.ts +1 -0
- package/dist/types/src/components/base/TreeSelect/src/TreeSelect.vue.d.ts +3 -0
- package/dist/types/src/components/base/TreeV2/index.d.ts +1 -0
- package/dist/types/src/components/base/TreeV2/src/TreeV2.vue.d.ts +3 -0
- package/dist/types/src/components/base/Upload/index.d.ts +1 -0
- package/dist/types/src/components/base/Upload/src/Upload.vue.d.ts +3 -0
- package/dist/types/src/components/base/Watermark/index.d.ts +1 -0
- package/dist/types/src/components/base/Watermark/src/Watermark.vue.d.ts +3 -0
- package/dist/types/src/components/base/components.d.ts +57 -0
- package/dist/types/src/components/base/index.d.ts +184 -0
- package/dist/types/src/components/business/bcBox/bcBox.vue.d.ts +48 -0
- package/dist/types/{components → src/components}/business/bcBox/utils.d.ts +10 -11
- package/dist/types/src/components/business/bcBreadcrumb/bcBreadcrumb.vue.d.ts +14 -0
- package/dist/types/{components → src/components}/business/bcBreadcrumb/index.d.ts +1 -2
- package/dist/types/src/components/business/bcButton/bcButton.vue.d.ts +13 -0
- package/dist/types/src/components/business/bcCheckbox/bcCheckbox.vue.d.ts +23 -0
- package/dist/types/src/components/business/bcContextBox/bcContextBox.vue.d.ts +40 -0
- package/dist/types/src/components/business/bcContextBox/useContextMenu.d.ts +34 -0
- package/dist/types/src/components/business/bcDivider/bcDivider.vue.d.ts +38 -0
- package/dist/types/src/components/business/bcFace/bcFace.vue.d.ts +24 -0
- package/dist/types/src/components/business/bcForm/baseForm.vue.d.ts +275 -0
- package/dist/types/src/components/business/bcForm/bcForm.vue.d.ts +33 -0
- package/dist/types/{components → src/components}/business/bcForm/type.d.ts +6 -7
- package/dist/types/src/components/business/bcForm/useGuide.d.ts +559 -0
- package/dist/types/src/components/business/bcGroup/bcGroup.vue.d.ts +36 -0
- package/dist/types/src/components/business/bcIcon/bcIcon.vue.d.ts +27 -0
- package/dist/types/src/components/business/bcInputGroup/bcInputGroup.vue.d.ts +20 -0
- package/dist/types/src/components/business/bcRadio/bcRadio.vue.d.ts +18 -0
- package/dist/types/src/components/business/bcSelect/bcSelect.vue.d.ts +33 -0
- package/dist/types/src/components/business/bcSignature/index.vue.d.ts +19 -0
- package/dist/types/src/components/business/bcSystemAuth/components/data.vue.d.ts +3 -0
- package/dist/types/src/components/business/bcSystemAuth/components/dict.vue.d.ts +3 -0
- package/dist/types/src/components/business/bcSystemAuth/components/fastSet/popup.vue.d.ts +17 -0
- package/dist/types/src/components/business/bcSystemAuth/components/field.vue.d.ts +3 -0
- package/dist/types/src/components/business/bcSystemAuth/components/form.vue.d.ts +11 -0
- package/dist/types/{components → src/components}/business/bcSystemAuth/components/selectAll/index.d.ts +2 -3
- package/dist/types/src/components/business/bcSystemAuth/components/selectAll/index.vue.d.ts +5 -0
- package/dist/types/src/components/business/bcSystemAuth/components/table.vue.d.ts +11 -0
- package/dist/types/src/components/business/bcSystemAuth/components/widget/btns.vue.d.ts +11 -0
- package/dist/types/src/components/business/bcSystemAuth/components/widget/form.vue.d.ts +11 -0
- package/dist/types/src/components/business/bcSystemAuth/components/widget/tab.vue.d.ts +17 -0
- package/dist/types/src/components/business/bcSystemAuth/components/widget/tables.vue.d.ts +11 -0
- package/dist/types/src/components/business/bcSystemAuth/components/widget/tablesWraper.vue.d.ts +11 -0
- package/dist/types/{components → src/components}/business/bcSystemAuth/fastStore.d.ts +48 -49
- package/dist/types/{components → src/components}/business/bcSystemAuth/fastUtils.d.ts +28 -30
- package/dist/types/src/components/business/bcSystemAuth/index.d.ts +2 -0
- package/dist/types/src/components/business/bcSystemAuth/index.vue.d.ts +17 -0
- package/dist/types/{components → src/components}/business/bcSystemAuth/store.d.ts +48 -49
- package/dist/types/src/components/business/bcSystemAuth/type.d.ts +342 -0
- package/dist/types/src/components/business/bcSystemAuth/useAuth.d.ts +26 -0
- package/dist/types/{components → src/components}/business/bcSystemAuth/utils.d.ts +28 -30
- package/dist/types/src/components/business/bcSystemField/components/field.vue.d.ts +3 -0
- package/dist/types/src/components/business/bcSystemField/components/form.vue.d.ts +11 -0
- package/dist/types/{components → src/components}/business/bcSystemField/components/selectAll/index.d.ts +4 -5
- package/dist/types/src/components/business/bcSystemField/components/selectAll/index.vue.d.ts +5 -0
- package/dist/types/src/components/business/bcSystemField/components/table.vue.d.ts +11 -0
- package/dist/types/src/components/business/bcSystemField/components/widget/form.vue.d.ts +11 -0
- package/dist/types/src/components/business/bcSystemField/components/widget/tab.vue.d.ts +17 -0
- package/dist/types/src/components/business/bcSystemField/components/widget/tables.vue.d.ts +11 -0
- package/dist/types/src/components/business/bcSystemField/components/widget/tablesWraper.vue.d.ts +11 -0
- package/dist/types/src/components/business/bcSystemField/index.d.ts +2 -0
- package/dist/types/src/components/business/bcSystemField/index.vue.d.ts +7 -0
- package/dist/types/{components → src/components}/business/bcSystemField/store.d.ts +39 -40
- package/dist/types/src/components/business/bcSystemField/useAuth.d.ts +14 -0
- package/dist/types/{components → src/components}/business/bcSystemField/utils.d.ts +20 -21
- package/dist/types/src/components/business/bcTable/bcFormTable.vue.d.ts +143 -0
- package/dist/types/src/components/business/bcTable/bcTable.vue.d.ts +32 -0
- package/dist/types/src/components/business/bcTable/components/btn/btn.vue.d.ts +58 -0
- package/dist/types/src/components/business/bcTable/components/popup/index.d.ts +2 -0
- package/dist/types/src/components/business/bcTable/components/popup/popup.vue.d.ts +49 -0
- package/dist/types/src/components/business/bcTable/components/query/components/sortForm/sortForm.vue.d.ts +14 -0
- package/dist/types/src/components/business/bcTable/components/query/drag.vue.d.ts +222 -0
- package/dist/types/src/components/business/bcTable/components/query/query.vue.d.ts +226 -0
- package/dist/types/{components → src/components}/business/bcTable/components/query/useQuickSearch.d.ts +2 -3
- package/dist/types/src/components/business/bcTable/components/table/colgroup.vue.d.ts +25 -0
- package/dist/types/src/components/business/bcTable/components/table/column.vue.d.ts +49 -0
- package/dist/types/src/components/business/bcTable/components/table/components/sortColumn/sortColumn.vue.d.ts +16 -0
- package/dist/types/{components → src/components}/business/bcTable/components/table/components/sortColumn/types.d.ts +1 -2
- package/dist/types/src/components/business/bcTable/components/table/table.vue.d.ts +64 -0
- package/dist/types/{components → src/components}/business/bcTable/components/table/useTable.d.ts +5 -5
- package/dist/types/src/components/business/bcTable/components/table/useTableHeight.d.ts +23 -0
- package/dist/types/{components → src/components}/business/bcTable/methods/cellDetailMethod.d.ts +0 -1
- package/dist/types/{components → src/components}/business/bcTable/methods/filterAgeMethod.d.ts +0 -1
- package/dist/types/{components → src/components}/business/bcTable/methods/footerMethod.d.ts +1 -2
- package/dist/types/{components → src/components}/business/bcTable/methods/formBtnMethod.d.ts +1 -2
- package/dist/types/{components → src/components}/business/bcTable/methods/index.d.ts +1 -2
- package/dist/types/{components → src/components}/business/bcTable/utils/authField.d.ts +1 -2
- package/dist/types/{components → src/components}/business/bcTable/utils/onFormKey.d.ts +4 -5
- package/dist/types/{components → src/components}/business/bcTable/utils/onTableKey.d.ts +5 -6
- package/dist/types/{components → src/components}/business/bcTable/utils/parseTable.d.ts +20 -21
- package/dist/types/{components → src/components}/business/bcTable/utils/type.d.ts +11 -12
- package/dist/types/{components → src/components}/business/bcTable/utils/useBcTable.d.ts +7071 -7077
- package/dist/types/{components → src/components}/business/bcTable/utils/useButon.d.ts +5 -6
- package/dist/types/src/components/business/bcTable/utils/useFormTableHeight.d.ts +18 -0
- package/dist/types/{components → src/components}/business/bcTable/utils/useKeydownEvent.d.ts +17 -18
- package/dist/types/src/components/business/bcTabs/bcTabs.vue.d.ts +61 -0
- package/dist/types/src/components/business/bcTabs/components/BetterScroll/index.d.ts +2 -0
- package/dist/types/src/components/business/bcTabs/components/BetterScroll/index.vue.d.ts +33 -0
- package/dist/types/src/components/business/bcTreeSearch/bcTreeSearch.vue.d.ts +55 -0
- package/dist/types/src/components/business/bcTreeSelect/bcTreeSelect.vue.d.ts +28 -0
- package/dist/types/src/components/business/bcTrtc/bcTrtc.vue.d.ts +104 -0
- package/dist/types/src/components/business/bcTrtc/hooks/useOperateLog.d.ts +8 -0
- package/dist/types/src/components/business/bcTrtc/hooks/useTrtcRoomEvent.d.ts +50 -0
- package/dist/types/src/components/business/bcTrtc/type.d.ts +124 -0
- package/dist/types/src/components/business/bcTrtc/useTrtc.d.ts +39 -0
- package/dist/types/src/components/business/bcTrtc/util/generateTestUserSig.d.ts +64 -0
- package/dist/types/src/components/business/bcTrtc/util/lib-generate-test-usersig-es.min.d.ts +20 -0
- package/dist/types/src/components/business/bcTrtc/util/utils.d.ts +4 -0
- package/dist/types/src/components/business/bcUpload/bcUpload.vue.d.ts +13 -0
- package/dist/types/src/components/business/bcUpload/component/highSpeedCamera.vue.d.ts +19 -0
- package/dist/types/src/components/business/bcUpload/component/qwebchannel.d.ts +15 -0
- package/dist/types/src/components/business/bcUpload/component/type.d.ts +44 -0
- package/dist/types/src/components/business/bcUpload/type.d.ts +83 -0
- package/dist/types/src/components/business/bcUpload/upload.vue.d.ts +272 -0
- package/dist/types/src/components/business/bcUpload/useUpload.d.ts +21 -0
- package/dist/types/{components → src/components}/business/bcVisual/bcVisual.vue.d.ts +9 -8
- package/dist/types/{components → src/components}/business/bcVisual/components/setting/dragItem.vue.d.ts +16 -9
- package/dist/types/src/components/business/bcVisual/components/setting/extendItem.vue.d.ts +13 -0
- package/dist/types/src/components/business/bcVisual/components/setting/setting.vue.d.ts +3 -0
- package/dist/types/{components → src/components}/business/bcVisual/components/setting/useDrag.d.ts +2 -4
- package/dist/types/src/components/business/bcVisual/components/table/table.vue.d.ts +6 -0
- package/dist/types/src/components/business/bcVisual/components/updateName/popup.vue.d.ts +17 -0
- package/dist/types/src/components/business/bcVisual/components/updateSql/addCondition.vue.d.ts +23 -0
- package/dist/types/{components → src/components}/business/bcVisual/components/updateSql/index.d.ts +1 -2
- package/dist/types/{components → src/components}/business/bcVisual/components/updateSql/nodeTree/index.d.ts +1 -2
- package/dist/types/src/components/business/bcVisual/components/updateSql/nodeTree/index.vue.d.ts +21 -0
- package/dist/types/src/components/business/bcVisual/components/updateSql/nodeTree/nodeTree.vue.d.ts +27 -0
- package/dist/types/src/components/business/bcVisual/components/updateSql/popup.vue.d.ts +17 -0
- package/dist/types/{components → src/components}/business/bcVisual/useTableFormat.d.ts +28 -29
- package/dist/types/{components → src/components}/business/bcVisual/utils.d.ts +1 -3
- package/dist/types/src/components/business/index.d.ts +52 -0
- package/dist/types/src/hooks/index.d.ts +3 -0
- package/dist/types/src/hooks/onKeyStroke.d.ts +13 -0
- package/dist/types/src/hooks/useExpose.d.ts +23 -0
- package/dist/types/src/hooks/useKeyStroke.d.ts +22 -0
- package/dist/types/{types → src/types}/auth.d.ts +1 -2
- package/dist/types/{types → src/types}/components.d.ts +1 -2
- package/dist/types/{types → src/types}/customData.d.ts +16 -17
- package/dist/types/{types → src/types}/form.d.ts +1 -2
- package/dist/types/{types → src/types}/formItem/autocomplete.d.ts +1 -2
- package/dist/types/{types → src/types}/formItem/checkbox.d.ts +1 -2
- package/dist/types/{types → src/types}/formItem/input.d.ts +1 -2
- package/dist/types/{types → src/types}/formItem/inputGroup.d.ts +1 -2
- package/dist/types/{types → src/types}/formItem/inputNumber.d.ts +1 -2
- package/dist/types/{types → src/types}/formItem/radio.d.ts +1 -2
- package/dist/types/{types → src/types}/formItem/selelct.d.ts +1 -2
- package/dist/types/{types → src/types}/formItem/treeSelect.d.ts +1 -2
- package/dist/types/{utils → src/utils}/arrayOperation.d.ts +1 -1
- package/dist/types/{utils → src/utils}/common.d.ts +3 -4
- package/dist/types/src/utils/commonFunction.d.ts +14 -0
- package/dist/types/{utils → src/utils}/download.d.ts +4 -4
- package/dist/types/{utils → src/utils}/getDataType.d.ts +2 -3
- package/dist/types/src/utils/index.d.ts +26 -0
- package/dist/types/{utils/loading.d.ts → src/utils/loading/index.d.ts} +1 -1
- package/dist/types/src/utils/lodash.d.ts +2 -0
- package/dist/types/{utils → src/utils}/mitt.d.ts +2 -3
- package/dist/types/{utils → src/utils}/number.d.ts +2 -14
- package/dist/types/{utils → src/utils}/other.d.ts +11 -12
- package/dist/types/src/utils/request/index.d.ts +6 -0
- package/dist/types/{utils → src/utils}/request/interceptors/request/authorization.interceptor.d.ts +1 -2
- package/dist/types/{utils → src/utils}/request/interceptors/request/result.type.interceptor.d.ts +6 -2
- package/dist/types/{utils → src/utils}/request/interceptors/request/undefined-params-handler.interceptor.d.ts +13 -2
- package/dist/types/{utils → src/utils}/request/interceptors/response/error-handler.interceptor.d.ts +1 -2
- package/dist/types/{utils → src/utils}/request/repeatRequest.d.ts +1 -2
- package/dist/types/src/utils/request/request.d.ts +6 -0
- package/dist/types/src/utils/showMessage.d.ts +3 -0
- package/dist/types/src/utils/showMessageBox.d.ts +3 -0
- package/dist/types/src/utils/showNotification.d.ts +3 -0
- package/dist/types/{utils → src/utils}/showPopup/index.d.ts +5 -6
- package/dist/types/src/utils/showPopup/showPopup.vue.d.ts +56 -0
- package/dist/types/{utils → src/utils}/storage.d.ts +12 -14
- package/dist/types/{utils → src/utils}/tree.d.ts +3 -4
- package/dist/types/{utils → src/utils}/url.d.ts +2 -3
- package/package.json +16 -41
- package/LICENSE +0 -21
- package/dist/401-BGiA3-m6.mjs +0 -56
- package/dist/401-Df8xtzTZ.js +0 -1
- package/dist/404-6-MJQt1a.js +0 -1
- package/dist/404-6-MJQt1a.js.gz +0 -0
- package/dist/404-DV6mA3fx.mjs +0 -61
- package/dist/404-DV6mA3fx.mjs.gz +0 -0
- package/dist/account-CcmFbc1t.mjs +0 -215
- package/dist/account-sd0YjbJ8.js +0 -1
- package/dist/aside-CjnPEBdS.js +0 -1
- package/dist/aside-kURauId4.mjs +0 -164
- package/dist/baseBtnConfig-C6KLedE5.mjs +0 -273
- package/dist/baseBtnConfig-DRxjBT8Z.js +0 -1
- package/dist/baseFormConfig-BaFbaMWd.mjs +0 -722
- package/dist/baseFormConfig-BaFbaMWd.mjs.gz +0 -0
- package/dist/baseFormConfig-D5Q35Bo3.js +0 -1
- package/dist/baseFormConfig-DusdAQYh.js +0 -1
- package/dist/baseFormConfig-WS8-k4HP.mjs +0 -504
- package/dist/baseFormConfig-WS8-k4HP.mjs.gz +0 -0
- package/dist/baseTableConfig-BcFWV085.js +0 -1
- package/dist/baseTableConfig-BcFWV085.js.gz +0 -0
- package/dist/baseTableConfig-CgAhsoic.mjs +0 -2624
- package/dist/baseTableConfig-CgAhsoic.mjs.gz +0 -0
- package/dist/bcFormConfig-DYslq6zZ.js +0 -1
- package/dist/bcFormConfig-FFWV9Ux9.mjs +0 -234
- package/dist/bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-C5BAQKoU.mjs +0 -131
- package/dist/bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-Ctq4jM16.js +0 -1
- package/dist/bcSwitchSystems.vue_vue_type_script_setup_true_lang-BWQgOhx4.js +0 -1
- package/dist/bcSwitchSystems.vue_vue_type_script_setup_true_lang-D_oSJ-qe.mjs +0 -101
- package/dist/btnIndex-BJSa6o9W.js +0 -1
- package/dist/btnIndex-TIqXvsKi.mjs +0 -287
- package/dist/btnIndex-TIqXvsKi.mjs.gz +0 -0
- package/dist/classic-Df7kSCY7.js +0 -1
- package/dist/classic-ICCql7k2.mjs +0 -81
- package/dist/cloneConfigDialog-FsII_S11.js +0 -1
- package/dist/cloneConfigDialog-FsII_S11.js.gz +0 -0
- package/dist/cloneConfigDialog-L7HVcin5.mjs +0 -817
- package/dist/cloneConfigDialog-L7HVcin5.mjs.gz +0 -0
- package/dist/columns-CPXE6bWU.mjs +0 -87
- package/dist/columns-DkSejU9v.js +0 -1
- package/dist/columnsAside-BJAuCr45.js +0 -1
- package/dist/columnsAside-KuAmHAoz.mjs +0 -220
- package/dist/contextmenu-B5x5CHAa.js +0 -1
- package/dist/contextmenu-BNN2yU7w.mjs +0 -125
- package/dist/contextmenu-Bkj8Ir4p.js +0 -1
- package/dist/contextmenu-dOHbsCTV.mjs +0 -125
- package/dist/copyMenuConfig-Bte2BCwb.js +0 -1
- package/dist/copyMenuConfig-CZyeTsiE.mjs +0 -4
- package/dist/copyMenuConfig.vue_vue_type_script_setup_true_lang-BboJhLYe.js +0 -1
- package/dist/copyMenuConfig.vue_vue_type_script_setup_true_lang-DuzaCHQU.mjs +0 -85
- package/dist/copySystem-C2-Crl8P.mjs +0 -4
- package/dist/copySystem-CAHvs-tT.js +0 -1
- package/dist/copySystem.vue_vue_type_script_setup_true_lang-Bpm1rkvt.mjs +0 -78
- package/dist/copySystem.vue_vue_type_script_setup_true_lang-DkbSM1ZP.js +0 -1
- package/dist/defaults-CvLyK4kj.js +0 -1
- package/dist/defaults-ds3deGy9.mjs +0 -86
- package/dist/dialog-BpY5TPcI.mjs +0 -365
- package/dist/dialog-BpY5TPcI.mjs.gz +0 -0
- package/dist/dialog-C-eO9yrL.mjs +0 -4
- package/dist/dialog-CvggNg-g.mjs +0 -10
- package/dist/dialog-D2lyP-OP.js +0 -1
- package/dist/dialog-D93yM7XK.js +0 -1
- package/dist/dialog-DDshx8tW.js +0 -1
- package/dist/dialog-DQP53khI.mjs +0 -359
- package/dist/dialog-DQP53khI.mjs.gz +0 -0
- package/dist/dialog-DxBOYlwo.js +0 -1
- package/dist/dialog-TFJ52Qpk.js +0 -1
- package/dist/dialog-qLQpDLcS.mjs +0 -4
- package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-CJFvaFot.js +0 -1
- package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-DyDtZVIf.mjs +0 -220
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-BNH1rs1N.js +0 -1
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-BNH1rs1N.js.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-Cr_knQjk.mjs +0 -694
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-Cr_knQjk.mjs.gz +0 -0
- package/dist/dictDialog-CqkpfYlF.mjs +0 -4
- package/dist/dictDialog-wDgoh-5d.js +0 -1
- package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-B7yqf3N4.js +0 -1
- package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-CIvz2YXl.mjs +0 -154
- package/dist/dictItemDialog-5R5yq9E7.js +0 -1
- package/dist/dictItemDialog-D5h5unLO.mjs +0 -4
- package/dist/dictItemDialog.vue_vue_type_script_setup_true_lang-8Sa3jwy5.js +0 -1
- package/dist/dictItemDialog.vue_vue_type_script_setup_true_lang-CZeBHQhd.mjs +0 -231
- package/dist/favicon.ico +0 -0
- package/dist/formConfig-BIFOWn3p.js +0 -1
- package/dist/formConfig-BIFOWn3p.js.gz +0 -0
- package/dist/formConfig-CXh83rv1.mjs +0 -592
- package/dist/formConfig-CXh83rv1.mjs.gz +0 -0
- package/dist/header-DnX92V9z.mjs +0 -28
- package/dist/header-DyEdgrOd.js +0 -1
- package/dist/horizontal-B1ikpGYO.mjs +0 -151
- package/dist/horizontal-D30rF_cs.js +0 -1
- package/dist/hsAttrBtn-DUCxH3Sd.js +0 -1
- package/dist/hsAttrBtn-DoENsG-r.mjs +0 -4
- package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-bLSbYNN2.mjs +0 -128
- package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-r1Nu37K6.js +0 -1
- package/dist/hsAttrForm-Do8SZ4gL.mjs +0 -4
- package/dist/hsAttrForm-IlSTsa2Q.js +0 -1
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-1mGuA-LC.mjs +0 -439
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-1mGuA-LC.mjs.gz +0 -0
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-TsXg-Rch.js +0 -1
- package/dist/hsBtnConfigList-BKG3qo0u.js +0 -1
- package/dist/hsBtnConfigList-R71-XPDK.mjs +0 -117
- package/dist/hsBtnItemConfig-DDBJqnHz.js +0 -1
- package/dist/hsBtnItemConfig-DqS_K7ID.mjs +0 -4
- package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-COzMIktD.mjs +0 -147
- package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-_udCtAX0.js +0 -1
- package/dist/hsBtnPanel-BZHOLD7P.js +0 -1
- package/dist/hsBtnPanel-DCZbFHVW.mjs +0 -4
- package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-BJSJJFZi.mjs +0 -67
- package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-BeMlse3T.js +0 -1
- package/dist/hsCheckbox-BKa_El3s.js +0 -1
- package/dist/hsCheckbox-CalDndlZ.mjs +0 -4
- package/dist/hsCheckbox.vue_vue_type_script_setup_true_lang-Dh-lqGjq.js +0 -1
- package/dist/hsCheckbox.vue_vue_type_script_setup_true_lang-XCUyHi8X.mjs +0 -28
- package/dist/hsExpand-9lyuN2Mm.mjs +0 -4
- package/dist/hsExpand-DBhmUYKm.js +0 -1
- package/dist/hsExpand.vue_vue_type_script_setup_true_lang-CoICcmRM.mjs +0 -285
- package/dist/hsExpand.vue_vue_type_script_setup_true_lang-DVJ_RiZ4.js +0 -1
- package/dist/hsFormConfig-C1CjM9qh.mjs +0 -207
- package/dist/hsFormConfig-PPYOgNn1.js +0 -1
- package/dist/hsFormConfigList-C_RL5HpN.mjs +0 -414
- package/dist/hsFormConfigList-C_RL5HpN.mjs.gz +0 -0
- package/dist/hsFormConfigList-C_dDcB_9.js +0 -1
- package/dist/hsFormPanel-nYnb16vP.js +0 -1
- package/dist/hsFormPanel-vqEkuXjb.mjs +0 -238
- package/dist/hsFormPanel-vqEkuXjb.mjs.gz +0 -0
- package/dist/hsFormParse-C5bf-LK5.mjs +0 -4
- package/dist/hsFormParse-MaIvm7qQ.js +0 -1
- package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-SVdNBn6t.js +0 -1
- package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-abt81ofe.mjs +0 -242
- package/dist/hsPanelItem-BvLlZSIi.js +0 -1
- package/dist/hsPanelItem-drz107BV.mjs +0 -4
- package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-Bm0gi853.js +0 -1
- package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-Ce0yaAma.mjs +0 -86
- package/dist/iframes-CWdXFiYU.mjs +0 -122
- package/dist/iframes-DnAW1ZV2.js +0 -1
- package/dist/index copy-CAuFn9Bl.js +0 -1
- package/dist/index copy-D5nspHSr.mjs +0 -69
- package/dist/index copy-DnPGzEYS.js +0 -1
- package/dist/index copy-Yydia60y.mjs +0 -134
- package/dist/index-2ITnFCXy.js +0 -1
- package/dist/index-3eRpeb1W.js +0 -1
- package/dist/index-4ncpQ4eO.js +0 -1
- package/dist/index-6N7rbleN.mjs +0 -258262
- package/dist/index-6N7rbleN.mjs.gz +0 -0
- package/dist/index-8Mx32voA.mjs +0 -4
- package/dist/index-9TGpwOo1.js +0 -1
- package/dist/index-B-kbiRXV.mjs +0 -73
- package/dist/index-B3hX4hTc.js +0 -110
- package/dist/index-B3hX4hTc.js.gz +0 -0
- package/dist/index-B7B0CD4_.mjs +0 -331
- package/dist/index-B7B0CD4_.mjs.gz +0 -0
- package/dist/index-B7MGKrVi.mjs +0 -14
- package/dist/index-BFD3f_UK.js +0 -1
- package/dist/index-BIgnSPCb.js +0 -1
- package/dist/index-BM-1M8cq.mjs +0 -23
- package/dist/index-BM_M6929.mjs +0 -285
- package/dist/index-BSfqHKHF.mjs +0 -119
- package/dist/index-BTlv1NF4.js +0 -1
- package/dist/index-Bcu8f_Q3.mjs +0 -95
- package/dist/index-BgBGJlY8.mjs +0 -152
- package/dist/index-BhMp70XH.mjs +0 -94
- package/dist/index-Bhso1ie5.mjs +0 -1009
- package/dist/index-Bhso1ie5.mjs.gz +0 -0
- package/dist/index-Bme3PG-s.mjs +0 -213
- package/dist/index-BrIla2kS.js +0 -1
- package/dist/index-BrIla2kS.js.gz +0 -0
- package/dist/index-BryvP3OJ.js +0 -1
- package/dist/index-C2Lwn57x.mjs +0 -30
- package/dist/index-C3CqVSI4.js +0 -1
- package/dist/index-CDNBPyol.mjs +0 -172
- package/dist/index-CEhpMI9J.mjs +0 -173
- package/dist/index-CIB14jto.js +0 -1
- package/dist/index-CIfReiDk.mjs +0 -10
- package/dist/index-CLpZpIBe.mjs +0 -131
- package/dist/index-CS2Ba7Wf.mjs +0 -133
- package/dist/index-CUE6cOFE.mjs +0 -76
- package/dist/index-CX00al3f.mjs +0 -47
- package/dist/index-CXf1fdjg.js +0 -1
- package/dist/index-CbCppT2z.js +0 -1
- package/dist/index-CbgKih92.js +0 -1
- package/dist/index-CcSPr-ou.mjs +0 -50
- package/dist/index-ChatAcFK.js +0 -1
- package/dist/index-CtXrtG1U.js +0 -1
- package/dist/index-Cu7kwCRF.mjs +0 -22
- package/dist/index-CyGB0fiT.mjs +0 -65
- package/dist/index-D08pw2ob.js +0 -1
- package/dist/index-D1JTmxcB.mjs +0 -4
- package/dist/index-D3LpqEnv.js +0 -1
- package/dist/index-D3yn4cpM.js +0 -1
- package/dist/index-D5txu7DV.js +0 -1
- package/dist/index-D9Oldjw4.mjs +0 -254
- package/dist/index-DAswW5rA.js +0 -1
- package/dist/index-DAswW5rA.js.gz +0 -0
- package/dist/index-DDhRJ6je.mjs +0 -5403
- package/dist/index-DDhRJ6je.mjs.gz +0 -0
- package/dist/index-DEykAVeO.js +0 -1
- package/dist/index-DHHcO6BG.js +0 -1
- package/dist/index-DLQv-ZOF.js +0 -1
- package/dist/index-DPkeHqJL.mjs +0 -262
- package/dist/index-DR25Mh6B.mjs +0 -4
- package/dist/index-DSIKI8GQ.js +0 -1
- package/dist/index-DT3c6iM1.mjs +0 -49
- package/dist/index-DX5XIzYR.js +0 -1
- package/dist/index-DYRb0aLl.mjs +0 -10
- package/dist/index-DZ_UFJE2.mjs +0 -43
- package/dist/index-DdFy0txF.mjs +0 -65
- package/dist/index-DeovhT6b.js +0 -1
- package/dist/index-DeovhT6b.js.gz +0 -0
- package/dist/index-DevHmWfX.mjs +0 -51
- package/dist/index-DfVym68N.js +0 -1
- package/dist/index-DgBUNZ1g.js +0 -1
- package/dist/index-DgqaFXTQ.js +0 -1
- package/dist/index-DiXwQssO.js +0 -1
- package/dist/index-Djm1ODkR.js +0 -1
- package/dist/index-DlAyjli2.js +0 -1
- package/dist/index-DlFSKMG-.js +0 -1
- package/dist/index-Dm7SocTi.mjs +0 -67
- package/dist/index-DnTufgck.mjs +0 -89
- package/dist/index-DpsP0WQx.js +0 -1
- package/dist/index-Dqo_PLLI.js +0 -1
- package/dist/index-DwRFwovV.mjs +0 -403
- package/dist/index-DwRFwovV.mjs.gz +0 -0
- package/dist/index-Dy-7T3MZ.js +0 -1
- package/dist/index-Lqg36ROx.js +0 -1
- package/dist/index-PCI3lWru.mjs +0 -38
- package/dist/index-TOKwyl8j.js +0 -1
- package/dist/index-VT-oTsUh.mjs +0 -73
- package/dist/index-WesdHpoJ.js +0 -1
- package/dist/index-XhFl0pgX.js +0 -1
- package/dist/index-Z83-84L3.js +0 -1
- package/dist/index-dSLBO-Az.mjs +0 -2208
- package/dist/index-dSLBO-Az.mjs.gz +0 -0
- package/dist/index-eTWfPvp0.js +0 -1
- package/dist/index-feq0FF6W.mjs +0 -23
- package/dist/index-g_BDa62N.mjs +0 -19
- package/dist/index-h_WBGfBy.mjs +0 -4
- package/dist/index-iKQcUr6y.js +0 -1
- package/dist/index-l9BMWbnT.mjs +0 -4
- package/dist/index-pu3CGbd_.mjs +0 -200
- package/dist/index.vue_vue_type_script_setup_true_lang-9HHYRGgf.mjs +0 -97
- package/dist/index.vue_vue_type_script_setup_true_lang-B5JzrfZM.js +0 -1
- package/dist/index.vue_vue_type_script_setup_true_lang-B5d_6F8i.mjs +0 -194
- package/dist/index.vue_vue_type_script_setup_true_lang-CN76eIwe.mjs +0 -103
- package/dist/index.vue_vue_type_script_setup_true_lang-D0z3pkgr.js +0 -1
- package/dist/index.vue_vue_type_script_setup_true_lang-D1WZZ6sk.js +0 -1
- package/dist/index.vue_vue_type_script_setup_true_lang-DDnIj-Je.mjs +0 -267
- package/dist/index.vue_vue_type_script_setup_true_lang-DDnIj-Je.mjs.gz +0 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-Fy9cNK68.js +0 -1
- package/dist/index.vue_vue_type_script_setup_true_name_iconSelector_lang-CpORXcqm.js +0 -1
- package/dist/index.vue_vue_type_script_setup_true_name_iconSelector_lang-DPhvpj3R.mjs +0 -288
- package/dist/index.vue_vue_type_script_setup_true_name_iconSelector_lang-DPhvpj3R.mjs.gz +0 -0
- package/dist/lib-generate-test-usersig.min.js +0 -2
- package/dist/lib-generate-test-usersig.min.js.gz +0 -0
- package/dist/link-Co1wBmAz.mjs +0 -63
- package/dist/link-D0JtsNky.js +0 -1
- package/dist/list-D6qUh3zx.js +0 -1
- package/dist/list-DdPA5WjU.mjs +0 -85
- package/dist/logo-mini-BQ9BrQ1U.mjs +0 -4
- package/dist/logo-mini-DwRdfcE7.js +0 -1
- package/dist/main-DN22E6VU.mjs +0 -72
- package/dist/main-Da73zleL.js +0 -1
- package/dist/mobile-CB0r_WGV.mjs +0 -115
- package/dist/mobile-D_i4mJ2c.js +0 -1
- package/dist/parent-4QGA5z4M.mjs +0 -131
- package/dist/parent-CQjlSwpy.js +0 -1
- package/dist/popup-7iNFJxKC.mjs +0 -4
- package/dist/popup-9BUbIbqc.js +0 -1
- package/dist/popup.vue_vue_type_script_setup_true_name_replaceRules_lang-BA7lo8dS.mjs +0 -89
- package/dist/popup.vue_vue_type_script_setup_true_name_replaceRules_lang-DVk-Y34E.js +0 -1
- package/dist/roleItem-B4mGBbPp.mjs +0 -103
- package/dist/roleItem-C2X2FgWS.js +0 -1
- package/dist/saveForm-DPgHDoZx.mjs +0 -160
- package/dist/saveForm-DswMEltR.js +0 -1
- package/dist/scan-dIvCcyMW.mjs +0 -945
- package/dist/scan-dIvCcyMW.mjs.gz +0 -0
- package/dist/scan-sEW81ryI.js +0 -1
- package/dist/scan-sEW81ryI.js.gz +0 -0
- package/dist/search-B8ER8vPa.mjs +0 -114
- package/dist/search-C0WIbv6N.js +0 -1
- package/dist/selectConfig-CKxHvOdl.mjs +0 -546
- package/dist/selectConfig-CKxHvOdl.mjs.gz +0 -0
- package/dist/selectConfig-DrHvF9yH.js +0 -1
- package/dist/shortcutList-BXBGQdNn.mjs +0 -76
- package/dist/shortcutList-WSi4lUlm.js +0 -1
- package/dist/style.css +0 -1
- package/dist/style.css.gz +0 -0
- package/dist/subItem-Cjqx2FHd.mjs +0 -77
- package/dist/subItem-_NU-K5k9.js +0 -1
- package/dist/tagsView-1HA15Zwh.mjs +0 -2695
- package/dist/tagsView-1HA15Zwh.mjs.gz +0 -0
- package/dist/tagsView-DG8YUOAI.js +0 -8
- package/dist/tagsView-DG8YUOAI.js.gz +0 -0
- package/dist/transverse-C4Wbvk35.mjs +0 -65
- package/dist/transverse-C63BENML.js +0 -1
- package/dist/types/components/business/bcBox/bcBox.vue.d.ts +0 -66
- package/dist/types/components/business/bcBreadcrumb/bcBreadcrumb.vue.d.ts +0 -23
- package/dist/types/components/business/bcForm/baseForm.vue.d.ts +0 -273
- package/dist/types/components/business/bcForm/bcForm.vue.d.ts +0 -42
- package/dist/types/components/business/bcForm/useGuide.d.ts +0 -564
- package/dist/types/components/business/bcSystemAuth/components/data.vue.d.ts +0 -3
- package/dist/types/components/business/bcSystemAuth/components/dict.vue.d.ts +0 -3
- package/dist/types/components/business/bcSystemAuth/components/fastSet/popup.vue.d.ts +0 -17
- package/dist/types/components/business/bcSystemAuth/components/field.vue.d.ts +0 -3
- package/dist/types/components/business/bcSystemAuth/components/form.vue.d.ts +0 -13
- package/dist/types/components/business/bcSystemAuth/components/selectAll/index.vue.d.ts +0 -5
- package/dist/types/components/business/bcSystemAuth/components/table.vue.d.ts +0 -13
- package/dist/types/components/business/bcSystemAuth/components/widget/btns.vue.d.ts +0 -15
- package/dist/types/components/business/bcSystemAuth/components/widget/form.vue.d.ts +0 -15
- package/dist/types/components/business/bcSystemAuth/components/widget/tab.vue.d.ts +0 -45
- package/dist/types/components/business/bcSystemAuth/components/widget/tables.vue.d.ts +0 -15
- package/dist/types/components/business/bcSystemAuth/components/widget/tablesWraper.vue.d.ts +0 -15
- package/dist/types/components/business/bcSystemAuth/index.d.ts +0 -3
- package/dist/types/components/business/bcSystemAuth/index.vue.d.ts +0 -26
- package/dist/types/components/business/bcSystemAuth/type.d.ts +0 -42
- package/dist/types/components/business/bcSystemAuth/useAuth.d.ts +0 -28
- package/dist/types/components/business/bcSystemField/components/field.vue.d.ts +0 -3
- package/dist/types/components/business/bcSystemField/components/form.vue.d.ts +0 -13
- package/dist/types/components/business/bcSystemField/components/selectAll/index.vue.d.ts +0 -5
- package/dist/types/components/business/bcSystemField/components/table.vue.d.ts +0 -13
- package/dist/types/components/business/bcSystemField/components/widget/form.vue.d.ts +0 -15
- package/dist/types/components/business/bcSystemField/components/widget/tab.vue.d.ts +0 -45
- package/dist/types/components/business/bcSystemField/components/widget/tables.vue.d.ts +0 -15
- package/dist/types/components/business/bcSystemField/components/widget/tablesWraper.vue.d.ts +0 -15
- package/dist/types/components/business/bcSystemField/index.d.ts +0 -3
- package/dist/types/components/business/bcSystemField/index.vue.d.ts +0 -16
- package/dist/types/components/business/bcSystemField/useAuth.d.ts +0 -16
- package/dist/types/components/business/bcTable/bcFormTable.vue.d.ts +0 -142
- package/dist/types/components/business/bcTable/bcTable.vue.d.ts +0 -51
- package/dist/types/components/business/bcTable/components/btn/btn.vue.d.ts +0 -77
- package/dist/types/components/business/bcTable/components/popup/index.d.ts +0 -3
- package/dist/types/components/business/bcTable/components/query/components/sortForm/sortForm.vue.d.ts +0 -23
- package/dist/types/components/business/bcTable/components/query/drag.vue.d.ts +0 -244
- package/dist/types/components/business/bcTable/components/query/query.vue.d.ts +0 -249
- package/dist/types/components/business/bcTable/components/table/colgroup.vue.d.ts +0 -28
- package/dist/types/components/business/bcTable/components/table/column.vue.d.ts +0 -35
- package/dist/types/components/business/bcTable/components/table/components/sortColumn/sortColumn.vue.d.ts +0 -25
- package/dist/types/components/business/bcTable/components/table/table.vue.d.ts +0 -67
- package/dist/types/components/business/bcTable/components/table/useTableHeight.d.ts +0 -25
- package/dist/types/components/business/bcTable/utils/useFormTableHeight.d.ts +0 -20
- package/dist/types/components/business/bcVisual/components/setting/extendItem.vue.d.ts +0 -13
- package/dist/types/components/business/bcVisual/components/setting/setting.vue.d.ts +0 -3
- package/dist/types/components/business/bcVisual/components/table/table.vue.d.ts +0 -6
- package/dist/types/components/business/bcVisual/components/updateName/popup.vue.d.ts +0 -17
- package/dist/types/components/business/bcVisual/components/updateSql/addCondition.vue.d.ts +0 -23
- package/dist/types/components/business/bcVisual/components/updateSql/nodeTree/index.vue.d.ts +0 -21
- package/dist/types/components/business/bcVisual/components/updateSql/nodeTree/nodeTree.vue.d.ts +0 -19
- package/dist/types/components/business/bcVisual/components/updateSql/popup.vue.d.ts +0 -17
- package/dist/types/plugins/index.d.ts +0 -33
- package/dist/types/types/system.d.ts +0 -14
- package/dist/types/utils/authFunction.d.ts +0 -18
- package/dist/types/utils/build.d.ts +0 -11
- package/dist/types/utils/commonFunction.d.ts +0 -29
- package/dist/types/utils/file.d.ts +0 -6
- package/dist/types/utils/getStyleSheets.d.ts +0 -11
- package/dist/types/utils/index.d.ts +0 -29
- package/dist/types/utils/lodash.d.ts +0 -3
- package/dist/types/utils/request/index.d.ts +0 -6
- package/dist/types/utils/request/request.d.ts +0 -7
- package/dist/types/utils/setIconfont.d.ts +0 -11
- package/dist/types/utils/showMessage.d.ts +0 -6
- package/dist/types/utils/showMessageBox.d.ts +0 -6
- package/dist/types/utils/showNotification.d.ts +0 -6
- package/dist/useConfigInfo-2zEYLSSs.js +0 -1
- package/dist/useConfigInfo-PTkkdx-l.mjs +0 -19
- package/dist/user-VZO0xDl5.mjs +0 -246
- package/dist/user-WqXbeoY5.js +0 -1
- package/dist/userNews-BLqy3aS_.js +0 -1
- package/dist/userNews-By3587zu.mjs +0 -72
- package/dist/userSelect-BDs3icv0.js +0 -1
- package/dist/userSelect-BrtP7ZnI.mjs +0 -4
- package/dist/userSelect.vue_vue_type_script_setup_true_lang-CPReSQ8E.mjs +0 -100
- package/dist/userSelect.vue_vue_type_script_setup_true_lang-Cc2DyJi7.js +0 -1
- package/dist/vertical-DPul8nQn.mjs +0 -133
- package/dist/vertical-DSif514K.js +0 -1
- /package/dist/types/{components → src/components}/business/bcSystemAuth/components/fastSet/index.d.ts +0 -0
- /package/dist/types/{components → src/components}/business/bcSystemAuth/components/index.d.ts +0 -0
- /package/dist/types/{components → src/components}/business/bcSystemAuth/components/widget/index.d.ts +0 -0
- /package/dist/types/{components → src/components}/business/bcSystemField/components/index.d.ts +0 -0
- /package/dist/types/{components → src/components}/business/bcSystemField/components/widget/index.d.ts +0 -0
- /package/dist/types/{components → src/components}/business/bcTable/components/index.d.ts +0 -0
- /package/dist/types/{components → src/components}/business/bcTable/components/query/components/sortForm/index.d.ts +0 -0
- /package/dist/types/{components → src/components}/business/bcTable/components/table/components/sortColumn/index.d.ts +0 -0
- /package/dist/types/{components → src/components}/business/bcVisual/components/updateName/index.d.ts +0 -0
- /package/dist/types/{components → src/components}/business/bcVisual/type.d.ts +0 -0
- /package/dist/types/{types → src/types}/formItem/button.d.ts +0 -0
- /package/dist/types/{types → src/types}/formItem/index.d.ts +0 -0
- /package/dist/types/{types → src/types}/index.d.ts +0 -0
- /package/dist/types/{utils → src/utils}/cfprint.d.ts +0 -0
- /package/dist/types/{utils → src/utils}/crypto.d.ts +0 -0
- /package/dist/types/{utils → src/utils}/device_info.d.ts +0 -0
- /package/dist/types/{utils → src/utils}/formatTime.d.ts +0 -0
- /package/dist/types/{utils → src/utils}/request/interceptors/request/index.d.ts +0 -0
- /package/dist/types/{utils → src/utils}/request/interceptors/response/index.d.ts +0 -0
- /package/dist/types/{utils → src/utils}/shortcutList.d.ts +0 -0
- /package/dist/types/{utils → src/utils}/theme.d.ts +0 -0
- /package/dist/types/{utils → src/utils}/toolsValidate.d.ts +0 -0
- /package/dist/types/{utils → src/utils}/update.d.ts +0 -0
- /package/dist/types/{utils → src/utils}/watermark.d.ts +0 -0
|
Binary file
|
package/dist/index-Bme3PG-s.mjs
DELETED
|
@@ -1,213 +0,0 @@
|
|
|
1
|
-
import { defineComponent, reactive, ref, resolveComponent, createElementBlock, openBlock, createElementVNode, createVNode, withCtx, createTextVNode, Fragment, renderList, toDisplayString } from "vue";
|
|
2
|
-
import { V as trtcUI, W as genTestUserSig } from "./index-6N7rbleN.mjs";
|
|
3
|
-
const _hoisted_1 = { class: "system-menu-container layout-padding" };
|
|
4
|
-
const _hoisted_2 = { class: "h-full overflow-hidden flex flex-col rounded" };
|
|
5
|
-
const _hoisted_3 = { class: "grid grid-cols-6 gap-2 px-3" };
|
|
6
|
-
const _hoisted_4 = { class: "w-full flex flex-row justify-between gap-2 bg-white rounded p-4 h-full overflow-hidden" };
|
|
7
|
-
const _hoisted_5 = { class: "flex-1 flex flex-col gap-2" };
|
|
8
|
-
const _hoisted_6 = { class: "text-right" };
|
|
9
|
-
const _hoisted_7 = {
|
|
10
|
-
class: "flex flex-col overflow-hidden",
|
|
11
|
-
style: { "width": "350px" }
|
|
12
|
-
};
|
|
13
|
-
const _hoisted_8 = { class: "log-wrapper h-0 flex-1 shrink-0 overflow-hidden overflow-y-auto mt-1 bg-gray-300" };
|
|
14
|
-
const __default__ = defineComponent({
|
|
15
|
-
name: "rtc"
|
|
16
|
-
});
|
|
17
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
18
|
-
...__default__,
|
|
19
|
-
setup(__props) {
|
|
20
|
-
const roomData = reactive({
|
|
21
|
-
sdkAppId: "1400829659",
|
|
22
|
-
userId: "456",
|
|
23
|
-
roomId: 888,
|
|
24
|
-
sdkSecretKey: "b838ac1178ea1bff2ab8ea72291a2c63709a1b4e2cce2afecc918f12c4912ac3",
|
|
25
|
-
userSig: "",
|
|
26
|
-
logs: [],
|
|
27
|
-
roomState: "exited"
|
|
28
|
-
});
|
|
29
|
-
const TRTCRef = ref();
|
|
30
|
-
const changeLog = (log) => {
|
|
31
|
-
roomData.logs = [...log.toReversed()];
|
|
32
|
-
};
|
|
33
|
-
const onChangeRoomState = (state) => {
|
|
34
|
-
roomData.roomState = state;
|
|
35
|
-
};
|
|
36
|
-
const handleEnter = () => {
|
|
37
|
-
var _a;
|
|
38
|
-
if (TRTCRef.value) {
|
|
39
|
-
console.log("handleEnter", TRTCRef.value);
|
|
40
|
-
(_a = TRTCRef.value) == null ? void 0 : _a.handleEnter();
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
const handleExit = () => {
|
|
44
|
-
if (TRTCRef.value) {
|
|
45
|
-
console.log("handleExit", TRTCRef.value);
|
|
46
|
-
TRTCRef.value.handleExit();
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
const handleClearLog = () => {
|
|
50
|
-
if (TRTCRef.value) TRTCRef.value.logs = [];
|
|
51
|
-
};
|
|
52
|
-
const ganerateUserSig = () => {
|
|
53
|
-
let userSignData = genTestUserSig(roomData.userId);
|
|
54
|
-
roomData.userSig = userSignData.userSig;
|
|
55
|
-
};
|
|
56
|
-
const handleUserHangingUp = () => {
|
|
57
|
-
console.log("%c 用户成功挂断电话 >>>", "background: blue; color: #fff");
|
|
58
|
-
};
|
|
59
|
-
return (_ctx, _cache) => {
|
|
60
|
-
const _component_el_input = resolveComponent("el-input");
|
|
61
|
-
const _component_el_button = resolveComponent("el-button");
|
|
62
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
63
|
-
createElementVNode("div", _hoisted_2, [
|
|
64
|
-
createElementVNode("div", _hoisted_3, [
|
|
65
|
-
createVNode(_component_el_input, {
|
|
66
|
-
class: "col-span-3",
|
|
67
|
-
modelValue: roomData.sdkAppId,
|
|
68
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => roomData.sdkAppId = $event),
|
|
69
|
-
readonly: "",
|
|
70
|
-
placeholder: "sdkAppId",
|
|
71
|
-
type: "number"
|
|
72
|
-
}, {
|
|
73
|
-
prepend: withCtx(() => _cache[5] || (_cache[5] = [
|
|
74
|
-
createTextVNode("SDKAppID")
|
|
75
|
-
])),
|
|
76
|
-
_: 1
|
|
77
|
-
}, 8, ["modelValue"]),
|
|
78
|
-
createVNode(_component_el_input, {
|
|
79
|
-
class: "col-span-3",
|
|
80
|
-
modelValue: roomData.sdkSecretKey,
|
|
81
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => roomData.sdkSecretKey = $event),
|
|
82
|
-
readonly: "",
|
|
83
|
-
placeholder: "sdkSecretKey",
|
|
84
|
-
type: "string"
|
|
85
|
-
}, {
|
|
86
|
-
prepend: withCtx(() => _cache[6] || (_cache[6] = [
|
|
87
|
-
createTextVNode("SDKSecretKey")
|
|
88
|
-
])),
|
|
89
|
-
_: 1
|
|
90
|
-
}, 8, ["modelValue"]),
|
|
91
|
-
createVNode(_component_el_input, {
|
|
92
|
-
modelValue: roomData.userId,
|
|
93
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => roomData.userId = $event),
|
|
94
|
-
placeholder: "userID"
|
|
95
|
-
}, {
|
|
96
|
-
prepend: withCtx(() => _cache[7] || (_cache[7] = [
|
|
97
|
-
createTextVNode("UserID")
|
|
98
|
-
])),
|
|
99
|
-
_: 1
|
|
100
|
-
}, 8, ["modelValue"]),
|
|
101
|
-
createVNode(_component_el_input, {
|
|
102
|
-
modelValue: roomData.roomId,
|
|
103
|
-
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => roomData.roomId = $event),
|
|
104
|
-
placeholder: "roomID",
|
|
105
|
-
type: "number"
|
|
106
|
-
}, {
|
|
107
|
-
prepend: withCtx(() => _cache[8] || (_cache[8] = [
|
|
108
|
-
createTextVNode("RoomID")
|
|
109
|
-
])),
|
|
110
|
-
_: 1
|
|
111
|
-
}, 8, ["modelValue"]),
|
|
112
|
-
createVNode(_component_el_input, {
|
|
113
|
-
class: "col-span-2",
|
|
114
|
-
modelValue: roomData.userSig,
|
|
115
|
-
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => roomData.userSig = $event),
|
|
116
|
-
placeholder: "userSig"
|
|
117
|
-
}, {
|
|
118
|
-
prepend: withCtx(() => _cache[9] || (_cache[9] = [
|
|
119
|
-
createTextVNode("UserSig")
|
|
120
|
-
])),
|
|
121
|
-
append: withCtx(() => [
|
|
122
|
-
createVNode(_component_el_button, {
|
|
123
|
-
type: "primary",
|
|
124
|
-
onClick: ganerateUserSig
|
|
125
|
-
}, {
|
|
126
|
-
default: withCtx(() => _cache[10] || (_cache[10] = [
|
|
127
|
-
createTextVNode("生成UserSig")
|
|
128
|
-
])),
|
|
129
|
-
_: 1,
|
|
130
|
-
__: [10]
|
|
131
|
-
})
|
|
132
|
-
]),
|
|
133
|
-
_: 1
|
|
134
|
-
}, 8, ["modelValue"])
|
|
135
|
-
]),
|
|
136
|
-
createElementVNode("div", _hoisted_4, [
|
|
137
|
-
createElementVNode("div", _hoisted_5, [
|
|
138
|
-
_cache[14] || (_cache[14] = createElementVNode("div", { class: "flex-1 bg-gray-300 p-2 rounded text-gray text-lg" }, "业务内容", -1)),
|
|
139
|
-
createElementVNode("div", _hoisted_6, [
|
|
140
|
-
createVNode(_component_el_button, {
|
|
141
|
-
size: "default",
|
|
142
|
-
loading: roomData.roomState === "entering",
|
|
143
|
-
disabled: roomData.roomState === "entered",
|
|
144
|
-
onClick: handleEnter
|
|
145
|
-
}, {
|
|
146
|
-
default: withCtx(() => _cache[11] || (_cache[11] = [
|
|
147
|
-
createTextVNode(" 进入房间 ")
|
|
148
|
-
])),
|
|
149
|
-
_: 1,
|
|
150
|
-
__: [11]
|
|
151
|
-
}, 8, ["loading", "disabled"]),
|
|
152
|
-
createVNode(_component_el_button, {
|
|
153
|
-
size: "default",
|
|
154
|
-
loading: roomData.roomState === "exiting",
|
|
155
|
-
onClick: handleExit
|
|
156
|
-
}, {
|
|
157
|
-
default: withCtx(() => _cache[12] || (_cache[12] = [
|
|
158
|
-
createTextVNode(" 离开房间 ")
|
|
159
|
-
])),
|
|
160
|
-
_: 1,
|
|
161
|
-
__: [12]
|
|
162
|
-
}, 8, ["loading"]),
|
|
163
|
-
createVNode(_component_el_button, {
|
|
164
|
-
size: "default",
|
|
165
|
-
onClick: handleClearLog
|
|
166
|
-
}, {
|
|
167
|
-
default: withCtx(() => _cache[13] || (_cache[13] = [
|
|
168
|
-
createTextVNode("清空日志")
|
|
169
|
-
])),
|
|
170
|
-
_: 1,
|
|
171
|
-
__: [13]
|
|
172
|
-
})
|
|
173
|
-
])
|
|
174
|
-
]),
|
|
175
|
-
createElementVNode("div", _hoisted_7, [
|
|
176
|
-
createVNode(trtcUI, {
|
|
177
|
-
style: { "height": "500px" },
|
|
178
|
-
ref_key: "TRTCRef",
|
|
179
|
-
ref: TRTCRef,
|
|
180
|
-
appId: roomData.sdkAppId,
|
|
181
|
-
userId: roomData.userId,
|
|
182
|
-
roomId: `${roomData.roomId}`,
|
|
183
|
-
userSig: roomData.userSig,
|
|
184
|
-
onUpdateLog: changeLog,
|
|
185
|
-
onChangeRoomState,
|
|
186
|
-
onUserHangingUp: handleUserHangingUp
|
|
187
|
-
}, null, 8, ["appId", "userId", "roomId", "userSig"]),
|
|
188
|
-
createElementVNode("div", _hoisted_8, [
|
|
189
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(roomData.logs, (item, index) => {
|
|
190
|
-
return openBlock(), createElementBlock("div", {
|
|
191
|
-
key: index,
|
|
192
|
-
class: "log"
|
|
193
|
-
}, [
|
|
194
|
-
item.type === "success" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
195
|
-
_cache[15] || (_cache[15] = createElementVNode("span", null, "🟩 ", -1)),
|
|
196
|
-
createTextVNode(toDisplayString(item.content), 1)
|
|
197
|
-
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
198
|
-
_cache[16] || (_cache[16] = createElementVNode("span", null, "🟥 ", -1)),
|
|
199
|
-
createTextVNode(toDisplayString(item.content), 1)
|
|
200
|
-
], 64))
|
|
201
|
-
]);
|
|
202
|
-
}), 128))
|
|
203
|
-
])
|
|
204
|
-
])
|
|
205
|
-
])
|
|
206
|
-
])
|
|
207
|
-
]);
|
|
208
|
-
};
|
|
209
|
-
}
|
|
210
|
-
});
|
|
211
|
-
export {
|
|
212
|
-
_sfc_main as default
|
|
213
|
-
};
|
package/dist/index-BrIla2kS.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),e=require("./index-B3hX4hTc.js"),i={};i.getData=t=>new Promise(((e,i)=>{let s={};(function(t){let e=null;return new Promise(((i,s)=>{if(t.src)if(/^data\:/i.test(t.src))e=function(t,e){e=e||t.match(/^data\:([^\;]+)\;base64,/im)[1]||"",t=t.replace(/^data\:([^\;]+)\;base64,/gim,"");for(var i=atob(t),s=i.length%2==0?i.length:i.length+1,o=new ArrayBuffer(s),h=new Uint16Array(o),r=0;r<s;r++)h[r]=i.charCodeAt(r);return o}(t.src),i(e);else if(/^blob\:/i.test(t.src)){var o=new FileReader;o.onload=function(t){e=t.target.result,i(e)},function(t,e){var i=new XMLHttpRequest;i.open("GET",t,!0),i.responseType="blob",i.onload=function(t){200!=this.status&&0!==this.status||e(this.response)},i.send()}(t.src,(function(t){o.readAsArrayBuffer(t)}))}else{var h=new XMLHttpRequest;h.onload=function(){if(200!=this.status&&0!==this.status)throw"Could not load image";e=h.response,i(e),h=null},h.open("GET",t.src,!0),h.responseType="arraybuffer",h.send(null)}else s("img error")}))})(t).then((t=>{s.arrayBuffer=t;try{s.orientation=function(t){var e,i,s,o,h,r,a,c,n,p=new DataView(t),l=p.byteLength;if(255===p.getUint8(0)&&216===p.getUint8(1))for(c=2;c<l;){if(255===p.getUint8(c)&&225===p.getUint8(c+1)){r=c;break}c++}r&&(i=r+10,"Exif"===function(t,e,i){var s,o="";for(s=e,i+=e;s<i;s++)o+=String.fromCharCode(t.getUint8(s));return o}(p,r+4,4)&&((o=18761===(h=p.getUint16(i)))||19789===h)&&42===p.getUint16(i+2,o)&&(s=p.getUint32(i+4,o))>=8&&(a=i+s));if(a)for(l=p.getUint16(a,o),n=0;n<l;n++)if(c=a+12*n+2,274===p.getUint16(c,o)){c+=8,e=p.getUint16(c,o);break}return e}(t)}catch{s.orientation=-1}e(s)})).catch((t=>{i(t)}))}));const s={data:function(){return{w:0,h:0,scale:1,x:0,y:0,loading:!0,trueWidth:0,trueHeight:0,move:!0,moveX:0,moveY:0,crop:!1,cropping:!1,cropW:0,cropH:0,cropOldW:0,cropOldH:0,canChangeX:!1,canChangeY:!1,changeCropTypeX:1,changeCropTypeY:1,cropX:0,cropY:0,cropChangeX:0,cropChangeY:0,cropOffsertX:0,cropOffsertY:0,support:"",touches:[],touchNow:!1,rotate:0,isIos:!1,orientation:0,imgs:"",coe:.2,scaling:!1,scalingSet:"",coeStatus:"",isCanShow:!0,imgIsQqualCrop:!1}},props:{img:{type:[String,Blob,null,File],default:""},outputSize:{type:Number,default:1},outputType:{type:String,default:"jpeg"},info:{type:Boolean,default:!0},canScale:{type:Boolean,default:!0},autoCrop:{type:Boolean,default:!1},autoCropWidth:{type:[Number,String],default:0},autoCropHeight:{type:[Number,String],default:0},fixed:{type:Boolean,default:!1},fixedNumber:{type:Array,default:()=>[1,1]},fixedBox:{type:Boolean,default:!1},full:{type:Boolean,default:!1},canMove:{type:Boolean,default:!0},canMoveBox:{type:Boolean,default:!0},original:{type:Boolean,default:!1},centerBox:{type:Boolean,default:!1},high:{type:Boolean,default:!0},infoTrue:{type:Boolean,default:!1},maxImgSize:{type:[Number,String],default:2e3},enlarge:{type:[Number,String],default:1},preW:{type:[Number,String],default:0},mode:{type:String,default:"contain"},limitMinSize:{type:[Number,Array,String],default:()=>10,validator:function(t){return Array.isArray(t)?Number(t[0])>=0&&Number(t[1])>=0:Number(t)>=0}},fillColor:{type:String,default:""}},computed:{cropInfo(){let t={};if(t.top=this.cropOffsertY>21?"-21px":"0px",t.width=this.cropW>0?this.cropW:0,t.height=this.cropH>0?this.cropH:0,this.infoTrue){let e=1;this.high&&!this.full&&(e=window.devicePixelRatio),1!==this.enlarge&!this.full&&(e=Math.abs(Number(this.enlarge))),t.width=t.width*e,t.height=t.height*e,this.full&&(t.width=t.width/this.scale,t.height=t.height/this.scale)}return t.width=t.width.toFixed(0),t.height=t.height.toFixed(0),t},isIE:()=>!!window.ActiveXObject||"ActiveXObject"in window,passive(){return this.isIE?null:{passive:!1}}},watch:{img(){this.checkedImg()},imgs(t){""!==t&&this.reload()},cropW(){this.showPreview()},cropH(){this.showPreview()},cropOffsertX(){this.showPreview()},cropOffsertY(){this.showPreview()},scale(t,e){this.showPreview()},x(){this.showPreview()},y(){this.showPreview()},autoCrop(t){t&&this.goAutoCrop()},autoCropWidth(){this.autoCrop&&this.goAutoCrop()},autoCropHeight(){this.autoCrop&&this.goAutoCrop()},mode(){this.checkedImg()},rotate(){this.showPreview(),(this.autoCrop||this.cropW>0||this.cropH>0)&&this.goAutoCrop(this.cropW,this.cropH)}},methods:{getVersion(t){var e=navigator.userAgent.split(" "),i="";let s=0;const o=new RegExp(t,"i");for(var h=0;h<e.length;h++)o.test(e[h])&&(i=e[h]);return s=i?i.split("/")[1].split("."):["0","0","0"],s},checkOrientationImage(t,e,i,s){if(this.getVersion("chrome")[0]>=81)e=-1;else if(this.getVersion("safari")[0]>=605){const t=this.getVersion("version");t[0]>13&&t[1]>1&&(e=-1)}else{const t=navigator.userAgent.toLowerCase().match(/cpu iphone os (.*?) like mac os/);if(t){let i=t[1];i=i.split("_"),(i[0]>13||i[0]>=13&&i[1]>=4)&&(e=-1)}}let o=document.createElement("canvas"),h=o.getContext("2d");switch(h.save(),e){case 2:o.width=i,o.height=s,h.translate(i,0),h.scale(-1,1);break;case 3:o.width=i,o.height=s,h.translate(i/2,s/2),h.rotate(180*Math.PI/180),h.translate(-i/2,-s/2);break;case 4:o.width=i,o.height=s,h.translate(0,s),h.scale(1,-1);break;case 5:o.height=i,o.width=s,h.rotate(.5*Math.PI),h.scale(1,-1);break;case 6:o.width=s,o.height=i,h.translate(s/2,i/2),h.rotate(90*Math.PI/180),h.translate(-i/2,-s/2);break;case 7:o.height=i,o.width=s,h.rotate(.5*Math.PI),h.translate(i,-s),h.scale(-1,1);break;case 8:o.height=i,o.width=s,h.translate(s/2,i/2),h.rotate(-90*Math.PI/180),h.translate(-i/2,-s/2);break;default:o.width=i,o.height=s}h.drawImage(t,0,0,i,s),h.restore(),o.toBlob((t=>{let e=URL.createObjectURL(t);URL.revokeObjectURL(this.imgs),this.imgs=e}),"image/"+this.outputType,1)},checkedImg(){if(null===this.img||""===this.img)return this.imgs="",void this.clearCrop();this.loading=!0,this.scale=1,this.rotate=0,this.clearCrop();let t=new Image;if(t.onload=()=>{if(""===this.img)return this.$emit("imgLoad","error"),this.$emit("img-load","error"),this.$emit("img-load",new Error("图片不能为空")),!1;let e=t.width,s=t.height;i.getData(t).then((i=>{this.orientation=i.orientation||1;let o=Number(this.maxImgSize);!this.orientation&&e<o&s<o?this.imgs=this.img:(e>o&&(s=s/e*o,e=o),s>o&&(e=e/s*o,s=o),this.checkOrientationImage(t,this.orientation,e,s))})).catch((t=>{this.$emit("img-load","error"),this.$emit("img-load-error",t)}))},t.onerror=()=>{this.$emit("imgLoad","error"),this.$emit("img-load","error"),this.$emit("img-load-error",error)},"data"!==this.img.substr(0,4)&&(t.crossOrigin=""),this.isIE){var e=new XMLHttpRequest;e.onload=function(){var e=URL.createObjectURL(this.response);t.src=e},e.open("GET",this.img,!0),e.responseType="blob",e.send()}else t.src=this.img},startMove(t){if(t.preventDefault(),this.move&&!this.crop){if(!this.canMove)return!1;this.moveX=("clientX"in t?t.clientX:t.touches[0].clientX)-this.x,this.moveY=("clientY"in t?t.clientY:t.touches[0].clientY)-this.y,t.touches?(window.addEventListener("touchmove",this.moveImg),window.addEventListener("touchend",this.leaveImg),2==t.touches.length&&(this.touches=t.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale))):(window.addEventListener("mousemove",this.moveImg),window.addEventListener("mouseup",this.leaveImg)),this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}else this.cropping=!0,window.addEventListener("mousemove",this.createCrop),window.addEventListener("mouseup",this.endCrop),window.addEventListener("touchmove",this.createCrop),window.addEventListener("touchend",this.endCrop),this.cropOffsertX=t.offsetX?t.offsetX:t.touches[0].pageX-this.$refs.cropper.offsetLeft,this.cropOffsertY=t.offsetY?t.offsetY:t.touches[0].pageY-this.$refs.cropper.offsetTop,this.cropX="clientX"in t?t.clientX:t.touches[0].clientX,this.cropY="clientY"in t?t.clientY:t.touches[0].clientY,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.cropW=0,this.cropH=0},touchScale(t){t.preventDefault();let e=this.scale;var i=this.touches[0].clientX,s=this.touches[0].clientY,o=t.touches[0].clientX,h=t.touches[0].clientY,r=this.touches[1].clientX,a=this.touches[1].clientY,c=t.touches[1].clientX,n=t.touches[1].clientY,p=Math.sqrt(Math.pow(i-r,2)+Math.pow(s-a,2)),l=Math.sqrt(Math.pow(o-c,2)+Math.pow(h-n,2))-p,d=1,u=(d=(d=d/this.trueWidth>d/this.trueHeight?d/this.trueHeight:d/this.trueWidth)>.1?.1:d)*l;if(!this.touchNow){if(this.touchNow=!0,l>0?e+=Math.abs(u):l<0&&e>Math.abs(u)&&(e-=Math.abs(u)),this.touches=t.touches,setTimeout((()=>{this.touchNow=!1}),8),!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e}},cancelTouchScale(t){window.removeEventListener("touchmove",this.touchScale)},moveImg(t){if(t.preventDefault(),t.touches&&2===t.touches.length)return this.touches=t.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale),window.removeEventListener("touchmove",this.moveImg),!1;let e,i,s="clientX"in t?t.clientX:t.touches[0].clientX,o="clientY"in t?t.clientY:t.touches[0].clientY;e=s-this.moveX,i=o-this.moveY,this.$nextTick((()=>{if(this.centerBox){let t,s,o,h,r=this.getImgAxis(e,i,this.scale),a=this.getCropAxis(),c=this.trueHeight*this.scale,n=this.trueWidth*this.scale;switch(this.rotate){case 1:case-1:case 3:case-3:t=this.cropOffsertX-this.trueWidth*(1-this.scale)/2+(c-n)/2,s=this.cropOffsertY-this.trueHeight*(1-this.scale)/2+(n-c)/2,o=t-c+this.cropW,h=s-n+this.cropH;break;default:t=this.cropOffsertX-this.trueWidth*(1-this.scale)/2,s=this.cropOffsertY-this.trueHeight*(1-this.scale)/2,o=t-n+this.cropW,h=s-c+this.cropH}r.x1>=a.x1&&(e=t),r.y1>=a.y1&&(i=s),r.x2<=a.x2&&(e=o),r.y2<=a.y2&&(i=h)}this.x=e,this.y=i,this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}))},leaveImg(t){window.removeEventListener("mousemove",this.moveImg),window.removeEventListener("touchmove",this.moveImg),window.removeEventListener("mouseup",this.leaveImg),window.removeEventListener("touchend",this.leaveImg),this.$emit("imgMoving",{moving:!1,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!1,axis:this.getImgAxis()})},scaleImg(){this.canScale&&window.addEventListener(this.support,this.changeSize,this.passive)},cancelScale(){this.canScale&&window.removeEventListener(this.support,this.changeSize)},changeSize(t){t.preventDefault();let e=this.scale;var i=t.deltaY||t.wheelDelta;i=navigator.userAgent.indexOf("Firefox")>0?30*i:i,this.isIE&&(i=-i);var s=this.coe,o=(s=s/this.trueWidth>s/this.trueHeight?s/this.trueHeight:s/this.trueWidth)*i;o<0?e+=Math.abs(o):e>Math.abs(o)&&(e-=Math.abs(o));let h=o<0?"add":"reduce";if(h!==this.coeStatus&&(this.coeStatus=h,this.coe=.2),this.scaling||(this.scalingSet=setTimeout((()=>{this.scaling=!1,this.coe=this.coe+=.01}),50)),this.scaling=!0,!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e},changeScale(t){let e=this.scale;t=t||1;var i=20;if((t*=i=i/this.trueWidth>i/this.trueHeight?i/this.trueHeight:i/this.trueWidth)>0?e+=Math.abs(t):e>Math.abs(t)&&(e-=Math.abs(t)),!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e},createCrop(t){t.preventDefault();var e="clientX"in t?t.clientX:t.touches?t.touches[0].clientX:0,i="clientY"in t?t.clientY:t.touches?t.touches[0].clientY:0;this.$nextTick((()=>{var t=e-this.cropX,s=i-this.cropY;if(t>0?(this.cropW=t+this.cropChangeX>this.w?this.w-this.cropChangeX:t,this.cropOffsertX=this.cropChangeX):(this.cropW=this.w-this.cropChangeX+Math.abs(t)>this.w?this.cropChangeX:Math.abs(t),this.cropOffsertX=this.cropChangeX+t>0?this.cropChangeX+t:0),this.fixed){var o=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];o+this.cropOffsertY>this.h?(this.cropH=this.h-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0],this.cropOffsertX=t>0?this.cropChangeX:this.cropChangeX-this.cropW):this.cropH=o,this.cropOffsertY=this.cropOffsertY}else s>0?(this.cropH=s+this.cropChangeY>this.h?this.h-this.cropChangeY:s,this.cropOffsertY=this.cropChangeY):(this.cropH=this.h-this.cropChangeY+Math.abs(s)>this.h?this.cropChangeY:Math.abs(s),this.cropOffsertY=this.cropChangeY+s>0?this.cropChangeY+s:0)}))},changeCropSize(t,e,i,s,o){t.preventDefault(),window.addEventListener("mousemove",this.changeCropNow),window.addEventListener("mouseup",this.changeCropEnd),window.addEventListener("touchmove",this.changeCropNow),window.addEventListener("touchend",this.changeCropEnd),this.canChangeX=e,this.canChangeY=i,this.changeCropTypeX=s,this.changeCropTypeY=o,this.cropX="clientX"in t?t.clientX:t.touches[0].clientX,this.cropY="clientY"in t?t.clientY:t.touches[0].clientY,this.cropOldW=this.cropW,this.cropOldH=this.cropH,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.fixed&&this.canChangeX&&this.canChangeY&&(this.canChangeY=0),this.$emit("changeCropSize",{width:this.cropW,height:this.cropH}),this.$emit("change-crop-size",{width:this.cropW,height:this.cropH})},changeCropNow(t){t.preventDefault();var e="clientX"in t?t.clientX:t.touches?t.touches[0].clientX:0,i="clientY"in t?t.clientY:t.touches?t.touches[0].clientY:0;let s=this.w,o=this.h,h=0,r=0;if(this.centerBox){let t=this.getImgAxis(),e=t.x2,i=t.y2;h=t.x1>0?t.x1:0,r=t.y1>0?t.y1:0,s>e&&(s=e),o>i&&(o=i)}const[a,c]=this.checkCropLimitSize();this.$nextTick((()=>{var t=e-this.cropX,n=i-this.cropY;if(this.canChangeX&&(1===this.changeCropTypeX?this.cropOldW-t<a?(this.cropW=a,this.cropOffsertX=this.cropOldW+this.cropChangeX-h-a):this.cropOldW-t>0?(this.cropW=s-this.cropChangeX-t<=s-h?this.cropOldW-t:this.cropOldW+this.cropChangeX-h,this.cropOffsertX=s-this.cropChangeX-t<=s-h?this.cropChangeX+t:h):(this.cropW=Math.abs(t)+this.cropChangeX<=s?Math.abs(t)-this.cropOldW:s-this.cropOldW-this.cropChangeX,this.cropOffsertX=this.cropChangeX+this.cropOldW):2===this.changeCropTypeX&&(this.cropOldW+t<a?this.cropW=a:this.cropOldW+t>0?(this.cropW=this.cropOldW+t+this.cropOffsertX<=s?this.cropOldW+t:s-this.cropOffsertX,this.cropOffsertX=this.cropChangeX):(this.cropW=s-this.cropChangeX+Math.abs(t+this.cropOldW)<=s-h?Math.abs(t+this.cropOldW):this.cropChangeX-h,this.cropOffsertX=s-this.cropChangeX+Math.abs(t+this.cropOldW)<=s-h?this.cropChangeX-Math.abs(t+this.cropOldW):h))),this.canChangeY&&(1===this.changeCropTypeY?this.cropOldH-n<c?(this.cropH=c,this.cropOffsertY=this.cropOldH+this.cropChangeY-r-c):this.cropOldH-n>0?(this.cropH=o-this.cropChangeY-n<=o-r?this.cropOldH-n:this.cropOldH+this.cropChangeY-r,this.cropOffsertY=o-this.cropChangeY-n<=o-r?this.cropChangeY+n:r):(this.cropH=Math.abs(n)+this.cropChangeY<=o?Math.abs(n)-this.cropOldH:o-this.cropOldH-this.cropChangeY,this.cropOffsertY=this.cropChangeY+this.cropOldH):2===this.changeCropTypeY&&(this.cropOldH+n<c?this.cropH=c:this.cropOldH+n>0?(this.cropH=this.cropOldH+n+this.cropOffsertY<=o?this.cropOldH+n:o-this.cropOffsertY,this.cropOffsertY=this.cropChangeY):(this.cropH=o-this.cropChangeY+Math.abs(n+this.cropOldH)<=o-r?Math.abs(n+this.cropOldH):this.cropChangeY-r,this.cropOffsertY=o-this.cropChangeY+Math.abs(n+this.cropOldH)<=o-r?this.cropChangeY-Math.abs(n+this.cropOldH):r))),this.canChangeX&&this.fixed){var p=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];p<c?(this.cropH=c,this.cropW=this.fixedNumber[0]*c/this.fixedNumber[1],1===this.changeCropTypeX&&(this.cropOffsertX=this.cropChangeX+(this.cropOldW-this.cropW))):p+this.cropOffsertY>o?(this.cropH=o-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0],1===this.changeCropTypeX&&(this.cropOffsertX=this.cropChangeX+(this.cropOldW-this.cropW))):this.cropH=p}if(this.canChangeY&&this.fixed){var l=this.cropH/this.fixedNumber[1]*this.fixedNumber[0];l<a?(this.cropW=a,this.cropH=this.fixedNumber[1]*a/this.fixedNumber[0]):l+this.cropOffsertX>s?(this.cropW=s-this.cropOffsertX,this.cropH=this.cropW/this.fixedNumber[0]*this.fixedNumber[1]):this.cropW=l}this.$emit("cropSizing",{cropW:this.cropW,cropH:this.cropH}),this.$emit("crop-sizing",{cropW:this.cropW,cropH:this.cropH})}))},checkCropLimitSize(){let{cropW:t,cropH:e,limitMinSize:i}=this,s=new Array;return s=Array.isArray(i)?i:[i,i],t=parseFloat(s[0]),e=parseFloat(s[1]),[t,e]},changeCropEnd(t){window.removeEventListener("mousemove",this.changeCropNow),window.removeEventListener("mouseup",this.changeCropEnd),window.removeEventListener("touchmove",this.changeCropNow),window.removeEventListener("touchend",this.changeCropEnd)},calculateSize(t,e,i,s,o,h){const r=t/e;let a=o,c=h;return a<i&&(a=i,c=Math.ceil(a/r)),c<s&&(c=s,a=Math.ceil(c*r),a<i&&(a=i,c=Math.ceil(a/r))),a<o&&(a=o,c=Math.ceil(a/r)),c<h&&(c=h,a=Math.ceil(c*r)),{width:a,height:c}},endCrop(){0===this.cropW&&0===this.cropH&&(this.cropping=!1);let[t,e]=this.checkCropLimitSize();const{width:i,height:s}=this.fixed?this.calculateSize(this.fixedNumber[0],this.fixedNumber[1],t,e,this.cropW,this.cropH):{width:t,height:e};i>this.cropW&&(this.cropW=i,this.cropOffsertX+i>this.w&&(this.cropOffsertX=this.w-i)),s>this.cropH&&(this.cropH=s,this.cropOffsertY+s>this.h&&(this.cropOffsertY=this.h-s)),window.removeEventListener("mousemove",this.createCrop),window.removeEventListener("mouseup",this.endCrop),window.removeEventListener("touchmove",this.createCrop),window.removeEventListener("touchend",this.endCrop)},startCrop(){this.crop=!0},stopCrop(){this.crop=!1},clearCrop(){this.cropping=!1,this.cropW=0,this.cropH=0},cropMove(t){if(t.preventDefault(),!this.canMoveBox)return this.crop=!1,this.startMove(t),!1;if(t.touches&&2===t.touches.length)return this.crop=!1,this.startMove(t),this.leaveCrop(),!1;window.addEventListener("mousemove",this.moveCrop),window.addEventListener("mouseup",this.leaveCrop),window.addEventListener("touchmove",this.moveCrop),window.addEventListener("touchend",this.leaveCrop);let e,i,s="clientX"in t?t.clientX:t.touches[0].clientX,o="clientY"in t?t.clientY:t.touches[0].clientY;e=s-this.cropOffsertX,i=o-this.cropOffsertY,this.cropX=e,this.cropY=i,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})},moveCrop(t,e){let i=0,s=0;t&&(t.preventDefault(),i="clientX"in t?t.clientX:t.touches[0].clientX,s="clientY"in t?t.clientY:t.touches[0].clientY),this.$nextTick((()=>{let t,o,h=i-this.cropX,r=s-this.cropY;if(e&&(h=this.cropOffsertX,r=this.cropOffsertY),t=h<=0?0:h+this.cropW>this.w?this.w-this.cropW:h,o=r<=0?0:r+this.cropH>this.h?this.h-this.cropH:r,this.centerBox){let e=this.getImgAxis();t<=e.x1&&(t=e.x1),t+this.cropW>e.x2&&(t=e.x2-this.cropW),o<=e.y1&&(o=e.y1),o+this.cropH>e.y2&&(o=e.y2-this.cropH)}this.cropOffsertX=t,this.cropOffsertY=o,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})}))},getImgAxis(t,e,i){t=t||this.x,e=e||this.y,i=i||this.scale;let s={x1:0,x2:0,y1:0,y2:0},o=this.trueWidth*i,h=this.trueHeight*i;switch(this.rotate){case 0:s.x1=t+this.trueWidth*(1-i)/2,s.x2=s.x1+this.trueWidth*i,s.y1=e+this.trueHeight*(1-i)/2,s.y2=s.y1+this.trueHeight*i;break;case 1:case-1:case 3:case-3:s.x1=t+this.trueWidth*(1-i)/2+(o-h)/2,s.x2=s.x1+this.trueHeight*i,s.y1=e+this.trueHeight*(1-i)/2+(h-o)/2,s.y2=s.y1+this.trueWidth*i;break;default:s.x1=t+this.trueWidth*(1-i)/2,s.x2=s.x1+this.trueWidth*i,s.y1=e+this.trueHeight*(1-i)/2,s.y2=s.y1+this.trueHeight*i}return s},getCropAxis(){let t={x1:0,x2:0,y1:0,y2:0};return t.x1=this.cropOffsertX,t.x2=t.x1+this.cropW,t.y1=this.cropOffsertY,t.y2=t.y1+this.cropH,t},leaveCrop(t){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.$emit("cropMoving",{moving:!1,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!1,axis:this.getCropAxis()})},getCropChecked(t){let e=document.createElement("canvas"),i=e.getContext("2d"),s=new Image,o=this.rotate,h=this.trueWidth,r=this.trueHeight,a=this.cropOffsertX,c=this.cropOffsertY;s.onload=()=>{if(0!==this.cropW){let t=1;this.high&!this.full&&(t=window.devicePixelRatio),1!==this.enlarge&!this.full&&(t=Math.abs(Number(this.enlarge)));let e=this.cropW*t,n=this.cropH*t,l=h*this.scale*t,d=r*this.scale*t,u=(this.x-a+this.trueWidth*(1-this.scale)/2)*t,g=(this.y-c+this.trueHeight*(1-this.scale)/2)*t;switch(p(e,n),i.save(),o){case 0:this.full?(p(e/this.scale,n/this.scale),i.drawImage(s,u/this.scale,g/this.scale,l/this.scale,d/this.scale)):i.drawImage(s,u,g,l,d);break;case 1:case-3:this.full?(p(e/this.scale,n/this.scale),u=u/this.scale+(l/this.scale-d/this.scale)/2,g=g/this.scale+(d/this.scale-l/this.scale)/2,i.rotate(90*o*Math.PI/180),i.drawImage(s,g,-u-d/this.scale,l/this.scale,d/this.scale)):(u+=(l-d)/2,g+=(d-l)/2,i.rotate(90*o*Math.PI/180),i.drawImage(s,g,-u-d,l,d));break;case 2:case-2:this.full?(p(e/this.scale,n/this.scale),i.rotate(90*o*Math.PI/180),u/=this.scale,g/=this.scale,i.drawImage(s,-u-l/this.scale,-g-d/this.scale,l/this.scale,d/this.scale)):(i.rotate(90*o*Math.PI/180),i.drawImage(s,-u-l,-g-d,l,d));break;case 3:case-1:this.full?(p(e/this.scale,n/this.scale),u=u/this.scale+(l/this.scale-d/this.scale)/2,g=g/this.scale+(d/this.scale-l/this.scale)/2,i.rotate(90*o*Math.PI/180),i.drawImage(s,-g-l/this.scale,u,l/this.scale,d/this.scale)):(u+=(l-d)/2,g+=(d-l)/2,i.rotate(90*o*Math.PI/180),i.drawImage(s,-g-l,u,l,d));break;default:this.full?(p(e/this.scale,n/this.scale),i.drawImage(s,u/this.scale,g/this.scale,l/this.scale,d/this.scale)):i.drawImage(s,u,g,l,d)}i.restore()}else{let t=h*this.scale,e=r*this.scale;switch(i.save(),o){case 0:p(t,e),i.drawImage(s,0,0,t,e);break;case 1:case-3:p(e,t),i.rotate(90*o*Math.PI/180),i.drawImage(s,0,-e,t,e);break;case 2:case-2:p(t,e),i.rotate(90*o*Math.PI/180),i.drawImage(s,-t,-e,t,e);break;case 3:case-1:p(e,t),i.rotate(90*o*Math.PI/180),i.drawImage(s,-t,0,t,e);break;default:p(t,e),i.drawImage(s,0,0,t,e)}i.restore()}t(e)},"data"!==this.img.substr(0,4)&&(s.crossOrigin="Anonymous"),s.src=this.imgs;const n=this.fillColor;function p(t,s){e.width=Math.round(t),e.height=Math.round(s),n&&(i.fillStyle=n,i.fillRect(0,0,e.width,e.height))}},getCropData(t){this.getCropChecked((e=>{t(e.toDataURL("image/"+this.outputType,this.outputSize))}))},getCropBlob(t){this.getCropChecked((e=>{e.toBlob((e=>t(e)),"image/"+this.outputType,this.outputSize)}))},showPreview(){if(!this.isCanShow)return!1;this.isCanShow=!1,setTimeout((()=>{this.isCanShow=!0}),16);let t=this.cropW,e=this.cropH,i=this.scale;var s={};s.div={width:`${t}px`,height:`${e}px`};let o=(this.x-this.cropOffsertX)/i,h=(this.y-this.cropOffsertY)/i;s.w=t,s.h=e,s.url=this.imgs,s.img={width:`${this.trueWidth}px`,height:`${this.trueHeight}px`,transform:`scale(${i})translate3d(${o}px, ${h}px, 0px)rotateZ(${90*this.rotate}deg)`},s.html=`\n <div class="show-preview" style="width: ${s.w}px; height: ${s.h}px; overflow: hidden">\n <div style="width: ${t}px; height: ${e}px">\n <img src=${s.url} style="width: ${this.trueWidth}px; height: ${this.trueHeight}px; transform:\n scale(${i})translate3d(${o}px, ${h}px, 0px)rotateZ(${90*this.rotate}deg)">\n </div>\n </div>`,this.$emit("realTime",s),this.$emit("real-time",s)},reload(){let t=new Image;t.onload=()=>{this.w=parseFloat(window.getComputedStyle(this.$refs.cropper).width),this.h=parseFloat(window.getComputedStyle(this.$refs.cropper).height),this.trueWidth=t.width,this.trueHeight=t.height,this.original?this.scale=1:this.scale=this.checkedMode(),this.$nextTick((()=>{this.x=-(this.trueWidth-this.trueWidth*this.scale)/2+(this.w-this.trueWidth*this.scale)/2,this.y=-(this.trueHeight-this.trueHeight*this.scale)/2+(this.h-this.trueHeight*this.scale)/2,this.loading=!1,this.autoCrop&&this.goAutoCrop(),this.$emit("img-load","success"),this.$emit("imgLoad","success"),setTimeout((()=>{this.showPreview()}),20)}))},t.onerror=()=>{this.$emit("imgLoad","error"),this.$emit("img-load","error")},t.src=this.imgs},checkedMode(){let t=1,e=this.trueWidth,i=this.trueHeight;const s=this.mode.split(" ");switch(s[0]){case"contain":this.trueWidth>this.w&&(t=this.w/this.trueWidth),this.trueHeight*t>this.h&&(t=this.h/this.trueHeight);break;case"cover":e=this.w,t=e/this.trueWidth,i*=t,i<this.h&&(i=this.h,t=i/this.trueHeight);break;default:try{let o=s[0];if(-1!==o.search("px")){o=o.replace("px",""),e=parseFloat(o);const h=e/this.trueWidth;let r=1,a=s[1];-1!==a.search("px")&&(a=a.replace("px",""),i=parseFloat(a),r=i/this.trueHeight),t=Math.min(h,r)}if(-1!==o.search("%")&&(o=o.replace("%",""),e=parseFloat(o)/100*this.w,t=e/this.trueWidth),2===s.length&&"auto"===o){let e=s[1];-1!==e.search("px")&&(e=e.replace("px",""),i=parseFloat(e),t=i/this.trueHeight),-1!==e.search("%")&&(e=e.replace("%",""),i=parseFloat(e)/100*this.h,t=i/this.trueHeight)}}catch(o){t=1}}return t},goAutoCrop(t,e){if(""===this.imgs||null===this.imgs)return;this.clearCrop(),this.cropping=!0;let i=this.w,s=this.h;if(this.centerBox){const t=Math.abs(this.rotate)%2>0;let e=(t?this.trueHeight:this.trueWidth)*this.scale,o=(t?this.trueWidth:this.trueHeight)*this.scale;i=e<i?e:i,s=o<s?o:s}var o=t||parseFloat(this.autoCropWidth),h=e||parseFloat(this.autoCropHeight);0!==o&&0!==h||(o=.8*i,h=.8*s),o=o>i?i:o,h=h>s?s:h,this.fixed&&(h=o/this.fixedNumber[0]*this.fixedNumber[1]),h>this.h&&(o=(h=this.h)/this.fixedNumber[1]*this.fixedNumber[0]),this.changeCrop(o,h)},changeCrop(t,e){if(this.centerBox){let i=this.getImgAxis();t>i.x2-i.x1&&(e=(t=i.x2-i.x1)/this.fixedNumber[0]*this.fixedNumber[1]),e>i.y2-i.y1&&(t=(e=i.y2-i.y1)/this.fixedNumber[1]*this.fixedNumber[0])}this.cropW=t,this.cropH=e,this.checkCropLimitSize(),this.$nextTick((()=>{this.cropOffsertX=(this.w-this.cropW)/2,this.cropOffsertY=(this.h-this.cropH)/2,this.centerBox&&this.moveCrop(null,!0)}))},refresh(){this.img,this.imgs="",this.scale=1,this.crop=!1,this.rotate=0,this.w=0,this.h=0,this.trueWidth=0,this.trueHeight=0,this.clearCrop(),this.$nextTick((()=>{this.checkedImg()}))},rotateLeft(){this.rotate=this.rotate<=-3?0:this.rotate-1},rotateRight(){this.rotate=this.rotate>=3?0:this.rotate+1},rotateClear(){this.rotate=0},checkoutImgAxis(t,e,i){t=t||this.x,e=e||this.y,i=i||this.scale;let s=!0;if(this.centerBox){let o=this.getImgAxis(t,e,i),h=this.getCropAxis();o.x1>=h.x1&&(s=!1),o.x2<=h.x2&&(s=!1),o.y1>=h.y1&&(s=!1),o.y2<=h.y2&&(s=!1),s||this.changeImgScale(o,h,i)}return s},changeImgScale(t,e,i){let s=this.trueWidth,o=this.trueHeight,h=s*i,r=o*i;if(h>=this.cropW&&r>=this.cropH)this.scale=i;else{const t=this.cropW/s,e=this.cropH/o,i=this.cropH<=o*t?t:e;this.scale=i,h=s*i,r=o*i}this.imgIsQqualCrop||(t.x1>=e.x1&&(this.isRotateRightOrLeft?this.x=e.x1-(s-h)/2-(h-r)/2:this.x=e.x1-(s-h)/2),t.x2<=e.x2&&(this.isRotateRightOrLeft?this.x=e.x1-(s-h)/2-(h-r)/2-r+this.cropW:this.x=e.x2-(s-h)/2-h),t.y1>=e.y1&&(this.isRotateRightOrLeft?this.y=e.y1-(o-r)/2-(r-h)/2:this.y=e.y1-(o-r)/2),t.y2<=e.y2&&(this.isRotateRightOrLeft?this.y=e.y2-(o-r)/2-(r-h)/2-h:this.y=e.y2-(o-r)/2-r)),(h<this.cropW||r<this.cropH)&&(this.imgIsQqualCrop=!0)}},mounted(){this.support="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll";let t=this;var e=navigator.userAgent;this.isIOS=!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(e,i,s){for(var o=atob(this.toDataURL(i,s).split(",")[1]),h=o.length,r=new Uint8Array(h),a=0;a<h;a++)r[a]=o.charCodeAt(a);e(new Blob([r],{type:t.type||"image/png"}))}}),this.showPreview(),this.checkedImg()},destroyed(){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.cancelScale()}},o={key:0,class:"cropper-box"},h=["src"],r={class:"cropper-view-box"},a=["src"],c={key:1};const n=e._export_sfc(s,[["render",function(e,i,s,n,p,l){return t.openBlock(),t.createElementBlock("div",{class:"vue-cropper",ref:"cropper",onMouseover:i[28]||(i[28]=(...t)=>l.scaleImg&&l.scaleImg(...t)),onMouseout:i[29]||(i[29]=(...t)=>l.cancelScale&&l.cancelScale(...t))},[e.imgs?(t.openBlock(),t.createElementBlock("div",o,[t.withDirectives(t.createElementVNode("div",{class:"cropper-box-canvas",style:t.normalizeStyle({width:e.trueWidth+"px",height:e.trueHeight+"px",transform:"scale("+e.scale+","+e.scale+") translate3d("+e.x/e.scale+"px,"+e.y/e.scale+"px,0)rotateZ("+90*e.rotate+"deg)"})},[t.createElementVNode("img",{src:e.imgs,alt:"cropper-img",ref:"cropperImg"},null,8,h)],4),[[t.vShow,!e.loading]])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["cropper-drag-box",{"cropper-move":e.move&&!e.crop,"cropper-crop":e.crop,"cropper-modal":e.cropping}]),onMousedown:i[0]||(i[0]=(...t)=>l.startMove&&l.startMove(...t)),onTouchstart:i[1]||(i[1]=(...t)=>l.startMove&&l.startMove(...t))},null,34),t.withDirectives(t.createElementVNode("div",{class:"cropper-crop-box",style:t.normalizeStyle({width:e.cropW+"px",height:e.cropH+"px",transform:"translate3d("+e.cropOffsertX+"px,"+e.cropOffsertY+"px,0)"})},[t.createElementVNode("span",r,[t.createElementVNode("img",{style:t.normalizeStyle({width:e.trueWidth+"px",height:e.trueHeight+"px",transform:"scale("+e.scale+","+e.scale+") translate3d("+(e.x-e.cropOffsertX)/e.scale+"px,"+(e.y-e.cropOffsertY)/e.scale+"px,0)rotateZ("+90*e.rotate+"deg)"}),src:e.imgs,alt:"cropper-img"},null,12,a)]),t.createElementVNode("span",{class:"cropper-face cropper-move",onMousedown:i[2]||(i[2]=(...t)=>l.cropMove&&l.cropMove(...t)),onTouchstart:i[3]||(i[3]=(...t)=>l.cropMove&&l.cropMove(...t))},null,32),s.info?(t.openBlock(),t.createElementBlock("span",{key:0,class:"crop-info",style:t.normalizeStyle({top:l.cropInfo.top})},t.toDisplayString(l.cropInfo.width)+" × "+t.toDisplayString(l.cropInfo.height),5)):t.createCommentVNode("",!0),s.fixedBox?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",c,[t.createElementVNode("span",{class:"crop-line line-w",onMousedown:i[4]||(i[4]=t=>l.changeCropSize(t,!1,!0,0,1)),onTouchstart:i[5]||(i[5]=t=>l.changeCropSize(t,!1,!0,0,1))},null,32),t.createElementVNode("span",{class:"crop-line line-a",onMousedown:i[6]||(i[6]=t=>l.changeCropSize(t,!0,!1,1,0)),onTouchstart:i[7]||(i[7]=t=>l.changeCropSize(t,!0,!1,1,0))},null,32),t.createElementVNode("span",{class:"crop-line line-s",onMousedown:i[8]||(i[8]=t=>l.changeCropSize(t,!1,!0,0,2)),onTouchstart:i[9]||(i[9]=t=>l.changeCropSize(t,!1,!0,0,2))},null,32),t.createElementVNode("span",{class:"crop-line line-d",onMousedown:i[10]||(i[10]=t=>l.changeCropSize(t,!0,!1,2,0)),onTouchstart:i[11]||(i[11]=t=>l.changeCropSize(t,!0,!1,2,0))},null,32),t.createElementVNode("span",{class:"crop-point point1",onMousedown:i[12]||(i[12]=t=>l.changeCropSize(t,!0,!0,1,1)),onTouchstart:i[13]||(i[13]=t=>l.changeCropSize(t,!0,!0,1,1))},null,32),t.createElementVNode("span",{class:"crop-point point2",onMousedown:i[14]||(i[14]=t=>l.changeCropSize(t,!1,!0,0,1)),onTouchstart:i[15]||(i[15]=t=>l.changeCropSize(t,!1,!0,0,1))},null,32),t.createElementVNode("span",{class:"crop-point point3",onMousedown:i[16]||(i[16]=t=>l.changeCropSize(t,!0,!0,2,1)),onTouchstart:i[17]||(i[17]=t=>l.changeCropSize(t,!0,!0,2,1))},null,32),t.createElementVNode("span",{class:"crop-point point4",onMousedown:i[18]||(i[18]=t=>l.changeCropSize(t,!0,!1,1,0)),onTouchstart:i[19]||(i[19]=t=>l.changeCropSize(t,!0,!1,1,0))},null,32),t.createElementVNode("span",{class:"crop-point point5",onMousedown:i[20]||(i[20]=t=>l.changeCropSize(t,!0,!1,2,0)),onTouchstart:i[21]||(i[21]=t=>l.changeCropSize(t,!0,!1,2,0))},null,32),t.createElementVNode("span",{class:"crop-point point6",onMousedown:i[22]||(i[22]=t=>l.changeCropSize(t,!0,!0,1,2)),onTouchstart:i[23]||(i[23]=t=>l.changeCropSize(t,!0,!0,1,2))},null,32),t.createElementVNode("span",{class:"crop-point point7",onMousedown:i[24]||(i[24]=t=>l.changeCropSize(t,!1,!0,0,2)),onTouchstart:i[25]||(i[25]=t=>l.changeCropSize(t,!1,!0,0,2))},null,32),t.createElementVNode("span",{class:"crop-point point8",onMousedown:i[26]||(i[26]=t=>l.changeCropSize(t,!0,!0,2,2)),onTouchstart:i[27]||(i[27]=t=>l.changeCropSize(t,!0,!0,2,2))},null,32)]))],4),[[t.vShow,e.cropping]])],544)}],["__scopeId","data-v-8e42ffcf"]]),p={class:"h-full"},l={class:"avatar-upload-preview"},d=["src"],u=t.defineComponent({name:"cropper"}),g=t.defineComponent({...u,props:{avatar:{default:""},close:{type:Function,default:close},proxyId:{default:""}},setup(i){const{postSinglefile:s,postUpdateFile:o}=e.useFileController(),h=i;let r=t.ref({});t.onMounted((async()=>{r.value=await e.systemStore.get("userInfo")}));let{avatar:a}=t.toRefs(h);const c=t.reactive({img:"",autoCrop:!0,autoCropWidth:200,autoCropHeight:200,fixedBox:!1,outputSize:.5,outputType:"jpeg",canScale:!1,fixed:!1,fixedNumber:[1,1],full:!0,canMoveBox:!1,original:!1,centerBox:!1,infoTrue:!0,filename:""}),u=t.ref({}),g=t.ref({});t.ref(!1);let f=t=>{"left"==t&&g.value.rotateLeft(),"right"==t&&g.value.rotateRight()},m=t=>{const e=t||1;g.value.changeScale(e)},w=()=>{g.value.refresh()};const v=t=>{u.value=t};let x=()=>{},C=t=>{if(!["image/png","image/jpg","image/jpeg","image/PNG","image/JPG","image/JPEG","image/gif"].includes(t.type))return e.ElMessage.error("图片格式有误,请重新上传"),!1;{const e=new FileReader;e.readAsDataURL(t),e.onload=()=>{c.img=e.result,c.filename=t.name}}},y=()=>{c.img||e.ElMessage.warning("请先选择图片"),g.value.getCropBlob((async t=>{const e=await s({data:{file:t},proxy:h.proxyId}),i=await o({data:{id:r.value.id,attchIdArrStr:e.data.id,attachType:2},proxy:h.proxyId});h.close(i)}))};return t.onMounted((()=>{setTimeout((()=>{c.img=a.value}),100)})),(e,i)=>{const s=t.resolveComponent("el-col"),o=t.resolveComponent("el-row"),h=t.resolveComponent("bc-icon"),r=t.resolveComponent("el-button"),a=t.resolveComponent("hs-upload");return t.openBlock(),t.createElementBlock("div",p,[t.createVNode(o,null,{default:t.withCtx((()=>[t.createVNode(s,{xs:24,md:13,style:{height:"350px"}},{default:t.withCtx((()=>[t.createVNode(n,{ref_key:"cropperRef",ref:g,img:c.img,info:!0,infoTrue:c.infoTrue,"auto-crop":c.autoCrop,"fixed-box":c.fixedBox,fixedNumber:c.fixedNumber,fixed:c.fixed,centerBox:c.centerBox,outputType:"png",onRealTime:v},null,8,["img","infoTrue","auto-crop","fixed-box","fixedNumber","fixed","centerBox"])])),_:1}),t.createVNode(s,{xs:24,md:11,style:{height:"350px"}},{default:t.withCtx((()=>[t.createElementVNode("div",l,[t.createElementVNode("img",{src:u.value.url,style:t.normalizeStyle(u.value.img)},null,12,d)])])),_:1})])),_:1}),t.createVNode(o,{class:"ptb2 py-3"},{default:t.withCtx((()=>[t.createVNode(s,{lg:2,md:2},{default:t.withCtx((()=>[t.createVNode(a,{action:"#","http-request":t.unref(x),"show-file-list":!1,"before-upload":t.unref(C),accept:"image/*"},{default:t.withCtx((()=>[t.createVNode(r,{size:"default"},{default:t.withCtx((()=>[i[6]||(i[6]=t.createTextVNode(" 选择 ")),t.createVNode(h,{name:"ele-UploadFilled"})])),_:1,__:[6]})])),_:1},8,["http-request","before-upload"])])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-Plus",onClick:i[0]||(i[0]=e=>t.unref(m)(1))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-Minus",onClick:i[1]||(i[1]=e=>t.unref(m)(-1))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-RefreshLeft",onClick:i[2]||(i[2]=e=>t.unref(f)("left"))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",icon:"ele-RefreshRight",onClick:i[3]||(i[3]=e=>t.unref(f)("right"))})])),_:1}),t.createVNode(s,{lg:{span:1,offset:1},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",onClick:i[4]||(i[4]=e=>t.unref(w)())},{default:t.withCtx((()=>i[7]||(i[7]=[t.createTextVNode("重 置")]))),_:1,__:[7]})])),_:1}),t.createVNode(s,{lg:{span:1,offset:7},md:2},{default:t.withCtx((()=>[t.createVNode(r,{size:"default",type:"primary",onClick:i[5]||(i[5]=e=>t.unref(y)())},{default:t.withCtx((()=>i[8]||(i[8]=[t.createTextVNode("提 交")]))),_:1,__:[8]})])),_:1})])),_:1})])}}}),f=e._export_sfc(g,[["__scopeId","data-v-730d1d41"]]);exports.default=f;
|
|
Binary file
|
package/dist/index-BryvP3OJ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-B3hX4hTc.js"),o=require("./index-DLQv-ZOF.js"),l=require("./index.vue_vue_type_script_setup_true_lang-D0z3pkgr.js"),a=o.useFieldConfigController();const i={class:"system-menu-container layout-padding"},n=e.defineComponent({name:"fieldPool"}),d=e.defineComponent({...n,setup(o){const n=e.ref(),d=e=>{n.value=e},{addField:r,editField:c,deleteField:s}=function(o){const i=e.reactive({}),n=(e,a)=>{t.showPopup(l._sfc_main,{dialog_type:e,row:a},{title:"add"==e?"新增字典配置":"编辑字段配置",mask:!0,async success({type:e,close:t,data:l}){var a;"cancel"==e?t():"confirm"==e&&"success"==await l()&&(t(),null==(a=o.value)||a.fetchTableData({}))}})};return{poolData:i,addField:()=>{n("add")},editField:e=>{n("edit",e)},deleteField:l=>{t.ElMessageBox.confirm(`确认删除【${l.field_name}】字段吗?`,"提示",{confirmButtonText:"确认",cancelButtonText:"取消",closeOnClickModal:!1,type:"warning"}).then((()=>{a.postDelFieldPoolById({id:l.id}).then((l=>{var a,i;if(1!=l.code)return t.ElMessage.warning(l.msg);t.ElMessage.success("删除成功");let n=e.toValue(null==(a=o.value)?void 0:a.formData)||{};null==(i=o.value)||i.fetchTableData(n)}))}))}}}(n);return(t,o)=>{const l=e.resolveComponent("hs-button"),a=e.resolveComponent("bc-box");return e.openBlock(),e.createElementBlock("div",i,[e.createVNode(a,{id:"1710819624063",type:"1",projectCode:"scmp",isAuth:!1,mid:"3ec707509a534ef28ed3ab4744b1121f",onReady:d},{btn_add:e.withCtx((()=>[e.createVNode(l,{size:"default",type:"primary",onClick:e.unref(r)},{default:e.withCtx((()=>o[0]||(o[0]=[e.createTextVNode("新增")]))),_:1,__:[0]},8,["onClick"])])),field_type:e.withCtx((({row:t})=>[e.createTextVNode(e.toDisplayString("2"==t.field_type?"查询条件字段或表单字段":"表格字段"),1)])),table_btn_edit:e.withCtx((({row:t})=>[e.createVNode(l,{type:"primary",size:"small",text:"",onClick:o=>e.unref(c)(t)},{default:e.withCtx((()=>o[1]||(o[1]=[e.createTextVNode("编辑")]))),_:2,__:[1]},1032,["onClick"])])),table_btn_delete:e.withCtx((({row:t})=>[e.createVNode(l,{type:"primary",size:"small",text:"",onClick:o=>e.unref(s)(t)},{default:e.withCtx((()=>o[2]||(o[2]=[e.createTextVNode("删除")]))),_:2,__:[2]},1032,["onClick"])])),_:1})])}}});exports.default=d;
|
package/dist/index-C2Lwn57x.mjs
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { defineComponent, defineAsyncComponent, computed, createElementBlock, openBlock, createVNode, createBlock, createCommentVNode, unref } from "vue";
|
|
2
|
-
import { storeToRefs } from "pinia";
|
|
3
|
-
import { a as useThemeConfig, _ as _export_sfc } from "./index-6N7rbleN.mjs";
|
|
4
|
-
const _hoisted_1 = { class: "layout-navbars-container" };
|
|
5
|
-
const __default__ = defineComponent({
|
|
6
|
-
name: "layoutNavBars"
|
|
7
|
-
});
|
|
8
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
|
-
...__default__,
|
|
10
|
-
setup(__props) {
|
|
11
|
-
const BreadcrumbIndex = defineAsyncComponent(() => import("./index-Bcu8f_Q3.mjs"));
|
|
12
|
-
const TagsView = defineAsyncComponent(() => import("./tagsView-1HA15Zwh.mjs"));
|
|
13
|
-
const storesThemeConfig = useThemeConfig();
|
|
14
|
-
const { themeConfig } = storeToRefs(storesThemeConfig);
|
|
15
|
-
const setShowTagsView = computed(() => {
|
|
16
|
-
let { layout, isTagsview } = themeConfig.value;
|
|
17
|
-
return layout !== "classic" && isTagsview;
|
|
18
|
-
});
|
|
19
|
-
return (_ctx, _cache) => {
|
|
20
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
21
|
-
createVNode(unref(BreadcrumbIndex)),
|
|
22
|
-
setShowTagsView.value ? (openBlock(), createBlock(unref(TagsView), { key: 0 })) : createCommentVNode("", true)
|
|
23
|
-
]);
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-6cf86195"]]);
|
|
28
|
-
export {
|
|
29
|
-
index as default
|
|
30
|
-
};
|
package/dist/index-C3CqVSI4.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.vue_vue_type_script_setup_true_lang-D1WZZ6sk.js");exports.default=e._sfc_main;
|
package/dist/index-CDNBPyol.mjs
DELETED
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
import { defineComponent, ref, onMounted, createElementBlock, openBlock, withDirectives, createElementVNode, vShow } from "vue";
|
|
2
|
-
import { X as useElementSize, Y as SmoothSignature, _ as _export_sfc } from "./index-6N7rbleN.mjs";
|
|
3
|
-
const _hoisted_1 = { class: "wrap1" };
|
|
4
|
-
const _hoisted_2 = { class: "wrap2" };
|
|
5
|
-
const __default__ = defineComponent({
|
|
6
|
-
name: "signature"
|
|
7
|
-
});
|
|
8
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
|
-
...__default__,
|
|
10
|
-
props: {
|
|
11
|
-
showFull: {
|
|
12
|
-
type: Boolean,
|
|
13
|
-
default: true
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
emits: ["save"],
|
|
17
|
-
setup(__props, { emit: __emit }) {
|
|
18
|
-
const signFinish = ref(null);
|
|
19
|
-
const { width: signFinishWidth, height: signFinishHeight } = useElementSize(signFinish);
|
|
20
|
-
const props = __props;
|
|
21
|
-
const showFull = ref(false);
|
|
22
|
-
const canvas2 = ref(null);
|
|
23
|
-
const canvas1 = ref(null);
|
|
24
|
-
const signature1 = ref(null);
|
|
25
|
-
const signature2 = ref(null);
|
|
26
|
-
const emit = __emit;
|
|
27
|
-
const handleFull = () => {
|
|
28
|
-
var _a, _b;
|
|
29
|
-
showFull.value = !showFull.value;
|
|
30
|
-
(_a = signature1 == null ? void 0 : signature1.value) == null ? void 0 : _a.clear();
|
|
31
|
-
(_b = signature2 == null ? void 0 : signature2.value) == null ? void 0 : _b.clear();
|
|
32
|
-
};
|
|
33
|
-
const initSignature1 = () => {
|
|
34
|
-
const canvas = canvas1.value;
|
|
35
|
-
const options = {
|
|
36
|
-
width: signFinishWidth.value - 30,
|
|
37
|
-
height: 200,
|
|
38
|
-
minWidth: 2,
|
|
39
|
-
maxWidth: 6,
|
|
40
|
-
openSmooth: false,
|
|
41
|
-
bgColor: "#ffffff"
|
|
42
|
-
};
|
|
43
|
-
signature1.value = new SmoothSignature(canvas, options);
|
|
44
|
-
};
|
|
45
|
-
const initSignture2 = () => {
|
|
46
|
-
const canvas = canvas2.value;
|
|
47
|
-
const options = {
|
|
48
|
-
width: signFinishWidth.value - 120,
|
|
49
|
-
height: signFinishHeight.value - 60,
|
|
50
|
-
minWidth: 3,
|
|
51
|
-
maxWidth: 10,
|
|
52
|
-
openSmooth: false,
|
|
53
|
-
bgColor: "#ffffff"
|
|
54
|
-
};
|
|
55
|
-
signature2.value = new SmoothSignature(canvas, options);
|
|
56
|
-
};
|
|
57
|
-
const handleClear1 = () => {
|
|
58
|
-
const sgn = signature1.value;
|
|
59
|
-
sgn.clear();
|
|
60
|
-
};
|
|
61
|
-
const handleClear2 = () => {
|
|
62
|
-
const sgn2 = signature2.value;
|
|
63
|
-
sgn2.clear();
|
|
64
|
-
};
|
|
65
|
-
const handleUndo1 = () => {
|
|
66
|
-
const sgn = signature1.value;
|
|
67
|
-
sgn.undo();
|
|
68
|
-
};
|
|
69
|
-
const handleUndo2 = () => {
|
|
70
|
-
const sgn2 = signature2.value;
|
|
71
|
-
sgn2.undo();
|
|
72
|
-
};
|
|
73
|
-
const handlePreview1 = () => {
|
|
74
|
-
const sgn = signature1.value;
|
|
75
|
-
const isEmpty = sgn.isEmpty();
|
|
76
|
-
if (isEmpty) {
|
|
77
|
-
alert("isEmpty");
|
|
78
|
-
return;
|
|
79
|
-
}
|
|
80
|
-
const pngUrl = sgn.getJPG();
|
|
81
|
-
console.log(pngUrl);
|
|
82
|
-
emit("save", pngUrl);
|
|
83
|
-
};
|
|
84
|
-
const handlePreview2 = () => {
|
|
85
|
-
const sgn2 = signature2.value;
|
|
86
|
-
const isEmpty = sgn2.isEmpty();
|
|
87
|
-
if (isEmpty) {
|
|
88
|
-
alert("isEmpty");
|
|
89
|
-
return;
|
|
90
|
-
}
|
|
91
|
-
const canvas = sgn2.getRotateCanvas(-90);
|
|
92
|
-
const pngUrl = canvas.toDataURL();
|
|
93
|
-
emit("save", pngUrl);
|
|
94
|
-
};
|
|
95
|
-
onMounted(() => {
|
|
96
|
-
showFull.value = props.showFull;
|
|
97
|
-
setTimeout(() => {
|
|
98
|
-
initSignature1();
|
|
99
|
-
initSignture2();
|
|
100
|
-
}, 100);
|
|
101
|
-
});
|
|
102
|
-
return (_ctx, _cache) => {
|
|
103
|
-
return openBlock(), createElementBlock("div", {
|
|
104
|
-
class: "h-full w-full sign-finish",
|
|
105
|
-
ref_key: "signFinish",
|
|
106
|
-
ref: signFinish
|
|
107
|
-
}, [
|
|
108
|
-
withDirectives(createElementVNode("div", _hoisted_1, [
|
|
109
|
-
_cache[0] || (_cache[0] = createElementVNode("span", { class: "sign-title" }, "请在区域内签字", -1)),
|
|
110
|
-
createElementVNode("canvas", {
|
|
111
|
-
class: "canvas1",
|
|
112
|
-
ref_key: "canvas1",
|
|
113
|
-
ref: canvas1
|
|
114
|
-
}, null, 512),
|
|
115
|
-
createElementVNode("div", { class: "actions" }, [
|
|
116
|
-
createElementVNode("button", {
|
|
117
|
-
class: "danger",
|
|
118
|
-
onClick: handleClear1
|
|
119
|
-
}, "清除"),
|
|
120
|
-
createElementVNode("button", {
|
|
121
|
-
class: "warning",
|
|
122
|
-
onClick: handleUndo1
|
|
123
|
-
}, "撤销"),
|
|
124
|
-
createElementVNode("button", {
|
|
125
|
-
class: "primary",
|
|
126
|
-
onClick: handleFull
|
|
127
|
-
}, "横屏"),
|
|
128
|
-
createElementVNode("button", {
|
|
129
|
-
class: "success",
|
|
130
|
-
onClick: handlePreview1
|
|
131
|
-
}, "保存")
|
|
132
|
-
])
|
|
133
|
-
], 512), [
|
|
134
|
-
[vShow, showFull.value]
|
|
135
|
-
]),
|
|
136
|
-
withDirectives(createElementVNode("div", _hoisted_2, [
|
|
137
|
-
createElementVNode("div", { class: "actionsWrap" }, [
|
|
138
|
-
createElementVNode("div", { class: "actions" }, [
|
|
139
|
-
createElementVNode("button", {
|
|
140
|
-
class: "danger",
|
|
141
|
-
onClick: handleClear2
|
|
142
|
-
}, "清除"),
|
|
143
|
-
createElementVNode("button", {
|
|
144
|
-
class: "warning",
|
|
145
|
-
onClick: handleUndo2
|
|
146
|
-
}, "撤销"),
|
|
147
|
-
createElementVNode("button", {
|
|
148
|
-
class: "primary",
|
|
149
|
-
onClick: handleFull
|
|
150
|
-
}, "竖屏"),
|
|
151
|
-
createElementVNode("button", {
|
|
152
|
-
class: "success",
|
|
153
|
-
onClick: handlePreview2
|
|
154
|
-
}, "保存")
|
|
155
|
-
])
|
|
156
|
-
]),
|
|
157
|
-
createElementVNode("canvas", {
|
|
158
|
-
class: "canvas",
|
|
159
|
-
ref_key: "canvas2",
|
|
160
|
-
ref: canvas2
|
|
161
|
-
}, null, 512)
|
|
162
|
-
], 512), [
|
|
163
|
-
[vShow, !showFull.value]
|
|
164
|
-
])
|
|
165
|
-
], 512);
|
|
166
|
-
};
|
|
167
|
-
}
|
|
168
|
-
});
|
|
169
|
-
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8300751a"]]);
|
|
170
|
-
export {
|
|
171
|
-
index as default
|
|
172
|
-
};
|