hs-admin-ui 15.7.9 → 15.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bcIcon-CeB9KE9m.js +1 -0
- package/dist/bcIcon-DKu6lfSZ.mjs +4 -0
- package/dist/index-BarHHxQ1.mjs +144280 -0
- package/dist/index-DXrJw19A.js +349 -0
- package/dist/index.css +1 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +135 -169
- package/dist/types/element-plus.d.ts +557 -0
- package/dist/types/index.d.ts +32 -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/Backtop/index.d.ts +1 -0
- package/dist/types/src/components/base/Backtop/src/Backtop.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 +2 -0
- package/dist/types/src/components/base/Descriptions/src/Descriptions.vue.d.ts +3 -0
- package/dist/types/src/components/base/Descriptions/src/DescriptionsItem.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 +3 -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/TimePicker/index.d.ts +1 -0
- package/dist/types/src/components/base/TimePicker/src/TimePicker.vue.d.ts +3 -0
- package/dist/types/src/components/base/TimeSelect/index.d.ts +1 -0
- package/dist/types/src/components/base/TimeSelect/src/TimeSelect.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 +60 -0
- package/dist/types/src/components/base/index.d.ts +174 -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 +40 -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 +7079 -7089
- 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 -19
- 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/dist/types/vxe-table.d.ts +3 -0
- package/package.json +16 -39
- package/LICENSE +0 -21
- package/dist/401-BlM5q_g-.mjs +0 -56
- package/dist/401-Bo_QA5Fo.js +0 -1
- package/dist/404-BYJby0Oi.mjs +0 -61
- package/dist/404-BYJby0Oi.mjs.gz +0 -0
- package/dist/404-jTTCKJNg.js +0 -1
- package/dist/404-jTTCKJNg.js.gz +0 -0
- package/dist/account-BRK3tZKc.js +0 -1
- package/dist/account-ilVpGdGH.mjs +0 -215
- package/dist/aside-5u9e_-Rp.mjs +0 -164
- package/dist/aside-BKZ-OlTP.js +0 -1
- 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-CSyA4kTg.mjs +0 -504
- package/dist/baseFormConfig-CSyA4kTg.mjs.gz +0 -0
- package/dist/baseFormConfig-CYgc6V2g.js +0 -1
- package/dist/baseFormConfig-D5Q35Bo3.js +0 -1
- package/dist/baseTableConfig-6WRe8rDM.mjs +0 -2624
- package/dist/baseTableConfig-6WRe8rDM.mjs.gz +0 -0
- package/dist/baseTableConfig-C6IDcU0g.js +0 -1
- package/dist/baseTableConfig-C6IDcU0g.js.gz +0 -0
- package/dist/bcFormConfig-DoLVqIr4.mjs +0 -234
- package/dist/bcFormConfig-DzpOGz-m.js +0 -1
- package/dist/bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-DEakn1bL.mjs +0 -131
- package/dist/bcPageTreeBySystem.vue_vue_type_script_setup_true_lang-DVy1L2nO.js +0 -1
- package/dist/bcSwitchSystems.vue_vue_type_script_setup_true_lang-DCGGzxo0.js +0 -1
- package/dist/bcSwitchSystems.vue_vue_type_script_setup_true_lang-DiZ76eyX.mjs +0 -101
- package/dist/btnIndex-BU6_Lgv3.mjs +0 -287
- package/dist/btnIndex-BU6_Lgv3.mjs.gz +0 -0
- package/dist/btnIndex-BYSMHQP-.js +0 -1
- package/dist/classic-CZ5jdtx0.js +0 -1
- package/dist/classic-Dm7VTY5J.mjs +0 -81
- package/dist/cloneConfigDialog-DIj9CUjJ.mjs +0 -817
- package/dist/cloneConfigDialog-DIj9CUjJ.mjs.gz +0 -0
- package/dist/cloneConfigDialog-TSUUyv9s.js +0 -1
- package/dist/cloneConfigDialog-TSUUyv9s.js.gz +0 -0
- package/dist/columns-CjXL-oE4.js +0 -1
- package/dist/columns-jTuNR_F4.mjs +0 -87
- package/dist/columnsAside-CLxxZNXo.mjs +0 -220
- package/dist/columnsAside-DLUbPkxh.js +0 -1
- package/dist/contextmenu-BamKr8IA.js +0 -1
- package/dist/contextmenu-Civj9yUS.mjs +0 -125
- package/dist/contextmenu-DtfFP8IO.mjs +0 -125
- package/dist/contextmenu-YsE3L-dB.js +0 -1
- package/dist/copyMenuConfig-DCjEoK5v.mjs +0 -4
- package/dist/copyMenuConfig-gd65a3RC.js +0 -1
- package/dist/copyMenuConfig.vue_vue_type_script_setup_true_lang-5Jz16QPo.js +0 -1
- package/dist/copyMenuConfig.vue_vue_type_script_setup_true_lang-BFA7qI18.mjs +0 -85
- package/dist/copySystem-CRf-zh9G.js +0 -1
- package/dist/copySystem-DBKbUuzU.mjs +0 -4
- package/dist/copySystem.vue_vue_type_script_setup_true_lang-BpIW8Rs7.js +0 -1
- package/dist/copySystem.vue_vue_type_script_setup_true_lang-Dp6K4ZPg.mjs +0 -78
- package/dist/defaults-DMH96QfT.mjs +0 -86
- package/dist/defaults-DlAHrNSO.js +0 -1
- package/dist/dialog-B_KS2otQ.mjs +0 -4
- package/dist/dialog-BpY5TPcI.mjs +0 -365
- package/dist/dialog-BpY5TPcI.mjs.gz +0 -0
- package/dist/dialog-Cu0CJXJR.mjs +0 -4
- package/dist/dialog-D5eV0gxD.mjs +0 -10
- package/dist/dialog-DD2puMT_.js +0 -1
- package/dist/dialog-DDL8gmtT.js +0 -1
- package/dist/dialog-DQP53khI.mjs +0 -359
- package/dist/dialog-DQP53khI.mjs.gz +0 -0
- package/dist/dialog-DsAzp4Nc.js +0 -1
- package/dist/dialog-DxBOYlwo.js +0 -1
- package/dist/dialog-TFJ52Qpk.js +0 -1
- package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-ecFz1B6I.mjs +0 -220
- package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-kd12ebSy.js +0 -1
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-BbmW4qwo.js +0 -1
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-BbmW4qwo.js.gz +0 -0
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-kYLsske7.mjs +0 -694
- package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-kYLsske7.mjs.gz +0 -0
- package/dist/dictDialog-BQ4b4nFI.js +0 -1
- package/dist/dictDialog-ZMamr0ZZ.mjs +0 -4
- package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-BtFVx7zg.mjs +0 -154
- package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-CgP7jKXr.js +0 -1
- package/dist/dictItemDialog-B5XYJXXR.mjs +0 -4
- package/dist/dictItemDialog-BZCOz1je.js +0 -1
- package/dist/dictItemDialog.vue_vue_type_script_setup_true_lang-BTAKd62E.js +0 -1
- package/dist/dictItemDialog.vue_vue_type_script_setup_true_lang-DbzDaqAf.mjs +0 -231
- package/dist/favicon.ico +0 -0
- package/dist/formConfig-EnNDrsXl.mjs +0 -592
- package/dist/formConfig-EnNDrsXl.mjs.gz +0 -0
- package/dist/formConfig-EvG_KMjq.js +0 -1
- package/dist/formConfig-EvG_KMjq.js.gz +0 -0
- package/dist/header-CJn5ZfnT.js +0 -1
- package/dist/header-_FT9tTGW.mjs +0 -28
- package/dist/horizontal-DNL1D1-M.mjs +0 -151
- package/dist/horizontal-hgY32trC.js +0 -1
- package/dist/hsAttrBtn-ChySkAD4.mjs +0 -4
- package/dist/hsAttrBtn-DMpk4Tpx.js +0 -1
- package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-1EVeiUB6.js +0 -1
- package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-C5gyfyIV.mjs +0 -128
- package/dist/hsAttrForm-CyQXJKL6.js +0 -1
- package/dist/hsAttrForm-D1giqvO1.mjs +0 -4
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-Dw6Xd3YW.js +0 -1
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-oxy3MMDf.mjs +0 -439
- package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-oxy3MMDf.mjs.gz +0 -0
- package/dist/hsBtnConfigList-BwzBiOgr.js +0 -1
- package/dist/hsBtnConfigList-ka6iO9u5.mjs +0 -117
- package/dist/hsBtnItemConfig-D7APNh5b.mjs +0 -4
- package/dist/hsBtnItemConfig-PwfkkSjP.js +0 -1
- package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-BcF9s_t7.js +0 -1
- package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-DhtnXiRo.mjs +0 -147
- package/dist/hsBtnPanel-B3_PpOx1.js +0 -1
- package/dist/hsBtnPanel-CfWQO5Yj.mjs +0 -4
- package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-BRRvl3m9.mjs +0 -67
- package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-WxsVtQoc.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-CPM-nNHm.js +0 -1
- package/dist/hsExpand-DxwmN1tA.mjs +0 -4
- package/dist/hsExpand.vue_vue_type_script_setup_true_lang-Dlu-fUiD.mjs +0 -285
- package/dist/hsExpand.vue_vue_type_script_setup_true_lang-xTcppBR0.js +0 -1
- package/dist/hsFormConfig-C4ciKuQQ.js +0 -1
- package/dist/hsFormConfig-oUbaU1I8.mjs +0 -207
- package/dist/hsFormConfigList-CvO9_-yH.js +0 -1
- package/dist/hsFormConfigList-D22P1SPx.mjs +0 -414
- package/dist/hsFormConfigList-D22P1SPx.mjs.gz +0 -0
- package/dist/hsFormPanel-BgKBv3R4.mjs +0 -238
- package/dist/hsFormPanel-BgKBv3R4.mjs.gz +0 -0
- package/dist/hsFormPanel-rf7405we.js +0 -1
- package/dist/hsFormParse-BJXuJ4Ap.mjs +0 -4
- package/dist/hsFormParse-Cbw_w3kr.js +0 -1
- package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-DewfGMUJ.mjs +0 -242
- package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-DhCHbkft.js +0 -1
- package/dist/hsPanelItem-DoFI4Td_.js +0 -1
- package/dist/hsPanelItem-Dvw5Xfgg.mjs +0 -4
- package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-Bt6r9TZf.mjs +0 -86
- package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-CzeSpu7q.js +0 -1
- package/dist/iframes-CWdXFiYU.mjs +0 -122
- package/dist/iframes-DnAW1ZV2.js +0 -1
- package/dist/index copy-B20iHEzm.mjs +0 -134
- package/dist/index copy-CRLKjXgw.js +0 -1
- package/dist/index copy-qsl_Cz0F.js +0 -1
- package/dist/index copy-vj8JtHui.mjs +0 -69
- package/dist/index-2cLSyOu4.mjs +0 -403
- package/dist/index-2cLSyOu4.mjs.gz +0 -0
- package/dist/index-4WkYxlVk.mjs +0 -131
- package/dist/index-4ncpQ4eO.js +0 -1
- package/dist/index-66A0dfxV.mjs +0 -95
- package/dist/index-6m-Zcn-q.js +0 -1
- package/dist/index-9-SK9FVJ.js +0 -1
- package/dist/index-B45hVvU9.mjs +0 -10
- package/dist/index-B6Iitxd9.mjs +0 -50
- package/dist/index-B6g-9ve6.mjs +0 -73
- package/dist/index-B8p9_cpY.mjs +0 -258289
- package/dist/index-B8p9_cpY.mjs.gz +0 -0
- package/dist/index-BDNL6vVh.js +0 -1
- package/dist/index-BDV6agxz.mjs +0 -22
- package/dist/index-BF32C3XO.js +0 -1
- package/dist/index-BFqTB98X.js +0 -1
- package/dist/index-BIgnSPCb.js +0 -1
- package/dist/index-BSdnLWle.mjs +0 -1009
- package/dist/index-BSdnLWle.mjs.gz +0 -0
- package/dist/index-BUJyZVH6.js +0 -1
- package/dist/index-BUcC4gD1.js +0 -110
- package/dist/index-BUcC4gD1.js.gz +0 -0
- package/dist/index-BX2TCVhI.js +0 -1
- package/dist/index-BXj-m_QU.mjs +0 -65
- package/dist/index-Bak90RK3.js +0 -1
- package/dist/index-BbDp5GL2.js +0 -1
- package/dist/index-Be5QcYb1.js +0 -1
- package/dist/index-BhMp70XH.mjs +0 -94
- package/dist/index-BlncRtDu.mjs +0 -213
- package/dist/index-BmxF4Rq-.js +0 -1
- package/dist/index-BrTyWpWz.js +0 -1
- package/dist/index-BwZWYngT.mjs +0 -14
- package/dist/index-ByE-Ghra.mjs +0 -4
- package/dist/index-C5uVtRxK.mjs +0 -4
- package/dist/index-C66bLfX7.mjs +0 -5403
- package/dist/index-C66bLfX7.mjs.gz +0 -0
- package/dist/index-C7UwTam3.js +0 -1
- package/dist/index-CEiNZm8f.js +0 -1
- package/dist/index-CHuCRx52.js +0 -1
- package/dist/index-CLJ404NA.mjs +0 -4
- package/dist/index-CQ9HULGA.js +0 -1
- package/dist/index-CTjkH_Wv.mjs +0 -89
- package/dist/index-CUE6cOFE.mjs +0 -76
- package/dist/index-CUHWC_OL.js +0 -1
- package/dist/index-CW4OWAEr.mjs +0 -65
- package/dist/index-CYuht4Th.mjs +0 -51
- package/dist/index-CZsXRpIN.js +0 -1
- package/dist/index-CbCppT2z.js +0 -1
- package/dist/index-CbgKih92.js +0 -1
- package/dist/index-Cn4LcIGB.js +0 -1
- package/dist/index-CpETTGp9.mjs +0 -2208
- package/dist/index-CpETTGp9.mjs.gz +0 -0
- package/dist/index-CpHenprW.mjs +0 -23
- package/dist/index-D-w2sUKg.mjs +0 -285
- package/dist/index-D1ExEnW1.js +0 -1
- package/dist/index-D5cTXNyh.js +0 -1
- package/dist/index-D6DzO6fV.mjs +0 -4
- package/dist/index-DBj7IN1r.js +0 -1
- package/dist/index-DEykAVeO.js +0 -1
- package/dist/index-DHHcO6BG.js +0 -1
- package/dist/index-DIbNridm.js +0 -1
- package/dist/index-DIzQj293.mjs +0 -4
- package/dist/index-DLbJH16Z.js +0 -1
- package/dist/index-DRRJUz_-.mjs +0 -73
- package/dist/index-DT3c6iM1.mjs +0 -49
- package/dist/index-DZ_UFJE2.mjs +0 -43
- package/dist/index-DZtEyYb2.mjs +0 -133
- package/dist/index-Dd9PdxaZ.js +0 -1
- package/dist/index-Defqrlha.js +0 -1
- package/dist/index-DhwXABy-.mjs +0 -200
- package/dist/index-DmxRNn0a.js +0 -1
- package/dist/index-DpL-wDyT.mjs +0 -47
- package/dist/index-Du8HrrrI.mjs +0 -30
- package/dist/index-DvcVe6OS.js +0 -1
- package/dist/index-E4SluhdQ.js +0 -1
- package/dist/index-E4SluhdQ.js.gz +0 -0
- package/dist/index-H0auNlrG.js +0 -1
- package/dist/index-OWB7DJzr.mjs +0 -10
- package/dist/index-OcEeKuZx.mjs +0 -67
- package/dist/index-PCI3lWru.mjs +0 -38
- package/dist/index-VC2NjBxE.mjs +0 -254
- package/dist/index-W6b8kigp.mjs +0 -152
- package/dist/index-WjdRiWAr.js +0 -1
- package/dist/index-Z83-84L3.js +0 -1
- package/dist/index-bDjpMN-I.mjs +0 -331
- package/dist/index-bDjpMN-I.mjs.gz +0 -0
- package/dist/index-ecVV8iQ5.js +0 -1
- package/dist/index-ecVV8iQ5.js.gz +0 -0
- package/dist/index-feq0FF6W.mjs +0 -23
- package/dist/index-g_BDa62N.mjs +0 -19
- package/dist/index-iMRuNPhx.js +0 -1
- package/dist/index-lPH7I4ZV.js +0 -1
- package/dist/index-lcjlHtTM.js +0 -1
- package/dist/index-ngUeuLCY.mjs +0 -119
- package/dist/index-p5axrses.mjs +0 -262
- package/dist/index-qkia8MBs.js +0 -1
- package/dist/index-qmspgcZh.mjs +0 -173
- package/dist/index-rfqCl2Kx.js +0 -1
- package/dist/index-rfqCl2Kx.js.gz +0 -0
- package/dist/index-wYWfrLhW.mjs +0 -172
- package/dist/index.vue_vue_type_script_setup_true_lang-C5yWC5iv.mjs +0 -194
- package/dist/index.vue_vue_type_script_setup_true_lang-CjSyMdNZ.js +0 -1
- package/dist/index.vue_vue_type_script_setup_true_lang-D09jZWrV.mjs +0 -267
- package/dist/index.vue_vue_type_script_setup_true_lang-D09jZWrV.mjs.gz +0 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-D3BpKELM.js +0 -1
- package/dist/index.vue_vue_type_script_setup_true_lang-DFnIHuqt.mjs +0 -103
- package/dist/index.vue_vue_type_script_setup_true_lang-IYpAU7dz.mjs +0 -97
- package/dist/index.vue_vue_type_script_setup_true_lang-O6Ui2xKr.js +0 -1
- package/dist/index.vue_vue_type_script_setup_true_lang-ZPh36D_p.js +0 -1
- package/dist/index.vue_vue_type_script_setup_true_name_iconSelector_lang-BKhSPbGe.js +0 -1
- package/dist/index.vue_vue_type_script_setup_true_name_iconSelector_lang-BtT1-wTD.mjs +0 -288
- package/dist/index.vue_vue_type_script_setup_true_name_iconSelector_lang-BtT1-wTD.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-7fl17XVb.js +0 -1
- package/dist/link-DCqhQmHl.mjs +0 -63
- package/dist/list-C64Pps9q.mjs +0 -85
- package/dist/list-Cfdh9YeV.js +0 -1
- package/dist/logo-mini-BQ9BrQ1U.mjs +0 -4
- package/dist/logo-mini-DwRdfcE7.js +0 -1
- package/dist/main-CYFKItn2.js +0 -1
- package/dist/main-Dk3cL6DT.mjs +0 -72
- package/dist/mobile-CmyNGxO7.js +0 -1
- package/dist/mobile-lH45gj78.mjs +0 -115
- package/dist/parent-DgeDCvel.js +0 -1
- package/dist/parent-Z3Gtuapy.mjs +0 -131
- package/dist/popup-BGBOgNbl.js +0 -1
- package/dist/popup-o6C8khWa.mjs +0 -4
- package/dist/popup.vue_vue_type_script_setup_true_name_replaceRules_lang-B9C2Jm2X.mjs +0 -89
- package/dist/popup.vue_vue_type_script_setup_true_name_replaceRules_lang-Cb8WwlgE.js +0 -1
- package/dist/roleItem-DJBnLnvt.js +0 -1
- package/dist/roleItem-OVIMEKUp.mjs +0 -103
- package/dist/saveForm-BVCoIREF.mjs +0 -160
- package/dist/saveForm-Bd1FexRX.js +0 -1
- package/dist/scan-LJSUYdNh.js +0 -1
- package/dist/scan-LJSUYdNh.js.gz +0 -0
- package/dist/scan-Nn9oVdkc.mjs +0 -945
- package/dist/scan-Nn9oVdkc.mjs.gz +0 -0
- package/dist/search-C8wRmosS.mjs +0 -114
- package/dist/search-DfOoOk9c.js +0 -1
- package/dist/selectConfig-46C7fd6S.js +0 -1
- package/dist/selectConfig-BRthHw2-.mjs +0 -546
- package/dist/selectConfig-BRthHw2-.mjs.gz +0 -0
- 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-CYHSTtj-.js +0 -1
- package/dist/subItem-DZGUO_Hg.mjs +0 -77
- package/dist/tagsView-Bi6oDkC3.js +0 -8
- package/dist/tagsView-Bi6oDkC3.js.gz +0 -0
- package/dist/tagsView-C2uglhO1.mjs +0 -2695
- package/dist/tagsView-C2uglhO1.mjs.gz +0 -0
- package/dist/transverse-CesMO5Ck.js +0 -1
- package/dist/transverse-DBc9UlFA.mjs +0 -65
- 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-B0eLT8MH.mjs +0 -246
- package/dist/user-DFm8D_Wg.js +0 -1
- package/dist/userNews-CuTBYfL9.js +0 -1
- package/dist/userNews-DTsXXPhl.mjs +0 -72
- package/dist/userSelect-BzDfBump.mjs +0 -4
- package/dist/userSelect-DrvmDzYf.js +0 -1
- package/dist/userSelect.vue_vue_type_script_setup_true_lang-CmxF68fq.js +0 -1
- package/dist/userSelect.vue_vue_type_script_setup_true_lang-DDVp4ZiP.mjs +0 -100
- package/dist/vertical-CNKTv1Fx.js +0 -1
- package/dist/vertical-CYqf_G2I.mjs +0 -133
- /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
package/dist/scan-Nn9oVdkc.mjs
DELETED
|
@@ -1,945 +0,0 @@
|
|
|
1
|
-
import { defineComponent, ref, onMounted, createElementBlock, openBlock, createElementVNode, nextTick } from "vue";
|
|
2
|
-
import { I as getDefaultExportFromCjs, J as commonjsGlobal, _ as _export_sfc } from "./index-B8p9_cpY.mjs";
|
|
3
|
-
var qrcode = { exports: {} };
|
|
4
|
-
(function(module, exports) {
|
|
5
|
-
var QRCode2;
|
|
6
|
-
(function(root, factory) {
|
|
7
|
-
module.exports = factory();
|
|
8
|
-
})(commonjsGlobal, function() {
|
|
9
|
-
function QR8bitByte(data) {
|
|
10
|
-
this.mode = QRMode.MODE_8BIT_BYTE;
|
|
11
|
-
this.data = data;
|
|
12
|
-
this.parsedData = [];
|
|
13
|
-
for (var i2 = 0, l = this.data.length; i2 < l; i2++) {
|
|
14
|
-
var byteArray = [];
|
|
15
|
-
var code = this.data.charCodeAt(i2);
|
|
16
|
-
if (code > 65536) {
|
|
17
|
-
byteArray[0] = 240 | (code & 1835008) >>> 18;
|
|
18
|
-
byteArray[1] = 128 | (code & 258048) >>> 12;
|
|
19
|
-
byteArray[2] = 128 | (code & 4032) >>> 6;
|
|
20
|
-
byteArray[3] = 128 | code & 63;
|
|
21
|
-
} else if (code > 2048) {
|
|
22
|
-
byteArray[0] = 224 | (code & 61440) >>> 12;
|
|
23
|
-
byteArray[1] = 128 | (code & 4032) >>> 6;
|
|
24
|
-
byteArray[2] = 128 | code & 63;
|
|
25
|
-
} else if (code > 128) {
|
|
26
|
-
byteArray[0] = 192 | (code & 1984) >>> 6;
|
|
27
|
-
byteArray[1] = 128 | code & 63;
|
|
28
|
-
} else {
|
|
29
|
-
byteArray[0] = code;
|
|
30
|
-
}
|
|
31
|
-
this.parsedData.push(byteArray);
|
|
32
|
-
}
|
|
33
|
-
this.parsedData = Array.prototype.concat.apply([], this.parsedData);
|
|
34
|
-
if (this.parsedData.length != this.data.length) {
|
|
35
|
-
this.parsedData.unshift(191);
|
|
36
|
-
this.parsedData.unshift(187);
|
|
37
|
-
this.parsedData.unshift(239);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
QR8bitByte.prototype = {
|
|
41
|
-
getLength: function(buffer) {
|
|
42
|
-
return this.parsedData.length;
|
|
43
|
-
},
|
|
44
|
-
write: function(buffer) {
|
|
45
|
-
for (var i2 = 0, l = this.parsedData.length; i2 < l; i2++) {
|
|
46
|
-
buffer.put(this.parsedData[i2], 8);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
function QRCodeModel(typeNumber, errorCorrectLevel) {
|
|
51
|
-
this.typeNumber = typeNumber;
|
|
52
|
-
this.errorCorrectLevel = errorCorrectLevel;
|
|
53
|
-
this.modules = null;
|
|
54
|
-
this.moduleCount = 0;
|
|
55
|
-
this.dataCache = null;
|
|
56
|
-
this.dataList = [];
|
|
57
|
-
}
|
|
58
|
-
QRCodeModel.prototype = { addData: function(data) {
|
|
59
|
-
var newData = new QR8bitByte(data);
|
|
60
|
-
this.dataList.push(newData);
|
|
61
|
-
this.dataCache = null;
|
|
62
|
-
}, isDark: function(row, col) {
|
|
63
|
-
if (row < 0 || this.moduleCount <= row || col < 0 || this.moduleCount <= col) {
|
|
64
|
-
throw new Error(row + "," + col);
|
|
65
|
-
}
|
|
66
|
-
return this.modules[row][col];
|
|
67
|
-
}, getModuleCount: function() {
|
|
68
|
-
return this.moduleCount;
|
|
69
|
-
}, make: function() {
|
|
70
|
-
this.makeImpl(false, this.getBestMaskPattern());
|
|
71
|
-
}, makeImpl: function(test, maskPattern) {
|
|
72
|
-
this.moduleCount = this.typeNumber * 4 + 17;
|
|
73
|
-
this.modules = new Array(this.moduleCount);
|
|
74
|
-
for (var row = 0; row < this.moduleCount; row++) {
|
|
75
|
-
this.modules[row] = new Array(this.moduleCount);
|
|
76
|
-
for (var col = 0; col < this.moduleCount; col++) {
|
|
77
|
-
this.modules[row][col] = null;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
this.setupPositionProbePattern(0, 0);
|
|
81
|
-
this.setupPositionProbePattern(this.moduleCount - 7, 0);
|
|
82
|
-
this.setupPositionProbePattern(0, this.moduleCount - 7);
|
|
83
|
-
this.setupPositionAdjustPattern();
|
|
84
|
-
this.setupTimingPattern();
|
|
85
|
-
this.setupTypeInfo(test, maskPattern);
|
|
86
|
-
if (this.typeNumber >= 7) {
|
|
87
|
-
this.setupTypeNumber(test);
|
|
88
|
-
}
|
|
89
|
-
if (this.dataCache == null) {
|
|
90
|
-
this.dataCache = QRCodeModel.createData(this.typeNumber, this.errorCorrectLevel, this.dataList);
|
|
91
|
-
}
|
|
92
|
-
this.mapData(this.dataCache, maskPattern);
|
|
93
|
-
}, setupPositionProbePattern: function(row, col) {
|
|
94
|
-
for (var r = -1; r <= 7; r++) {
|
|
95
|
-
if (row + r <= -1 || this.moduleCount <= row + r) continue;
|
|
96
|
-
for (var c = -1; c <= 7; c++) {
|
|
97
|
-
if (col + c <= -1 || this.moduleCount <= col + c) continue;
|
|
98
|
-
if (0 <= r && r <= 6 && (c == 0 || c == 6) || 0 <= c && c <= 6 && (r == 0 || r == 6) || 2 <= r && r <= 4 && 2 <= c && c <= 4) {
|
|
99
|
-
this.modules[row + r][col + c] = true;
|
|
100
|
-
} else {
|
|
101
|
-
this.modules[row + r][col + c] = false;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
}, getBestMaskPattern: function() {
|
|
106
|
-
var minLostPoint = 0;
|
|
107
|
-
var pattern = 0;
|
|
108
|
-
for (var i2 = 0; i2 < 8; i2++) {
|
|
109
|
-
this.makeImpl(true, i2);
|
|
110
|
-
var lostPoint = QRUtil.getLostPoint(this);
|
|
111
|
-
if (i2 == 0 || minLostPoint > lostPoint) {
|
|
112
|
-
minLostPoint = lostPoint;
|
|
113
|
-
pattern = i2;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
return pattern;
|
|
117
|
-
}, createMovieClip: function(target_mc, instance_name, depth) {
|
|
118
|
-
var qr_mc = target_mc.createEmptyMovieClip(instance_name, depth);
|
|
119
|
-
var cs = 1;
|
|
120
|
-
this.make();
|
|
121
|
-
for (var row = 0; row < this.modules.length; row++) {
|
|
122
|
-
var y = row * cs;
|
|
123
|
-
for (var col = 0; col < this.modules[row].length; col++) {
|
|
124
|
-
var x = col * cs;
|
|
125
|
-
var dark = this.modules[row][col];
|
|
126
|
-
if (dark) {
|
|
127
|
-
qr_mc.beginFill(0, 100);
|
|
128
|
-
qr_mc.moveTo(x, y);
|
|
129
|
-
qr_mc.lineTo(x + cs, y);
|
|
130
|
-
qr_mc.lineTo(x + cs, y + cs);
|
|
131
|
-
qr_mc.lineTo(x, y + cs);
|
|
132
|
-
qr_mc.endFill();
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
return qr_mc;
|
|
137
|
-
}, setupTimingPattern: function() {
|
|
138
|
-
for (var r = 8; r < this.moduleCount - 8; r++) {
|
|
139
|
-
if (this.modules[r][6] != null) {
|
|
140
|
-
continue;
|
|
141
|
-
}
|
|
142
|
-
this.modules[r][6] = r % 2 == 0;
|
|
143
|
-
}
|
|
144
|
-
for (var c = 8; c < this.moduleCount - 8; c++) {
|
|
145
|
-
if (this.modules[6][c] != null) {
|
|
146
|
-
continue;
|
|
147
|
-
}
|
|
148
|
-
this.modules[6][c] = c % 2 == 0;
|
|
149
|
-
}
|
|
150
|
-
}, setupPositionAdjustPattern: function() {
|
|
151
|
-
var pos = QRUtil.getPatternPosition(this.typeNumber);
|
|
152
|
-
for (var i2 = 0; i2 < pos.length; i2++) {
|
|
153
|
-
for (var j = 0; j < pos.length; j++) {
|
|
154
|
-
var row = pos[i2];
|
|
155
|
-
var col = pos[j];
|
|
156
|
-
if (this.modules[row][col] != null) {
|
|
157
|
-
continue;
|
|
158
|
-
}
|
|
159
|
-
for (var r = -2; r <= 2; r++) {
|
|
160
|
-
for (var c = -2; c <= 2; c++) {
|
|
161
|
-
if (r == -2 || r == 2 || c == -2 || c == 2 || r == 0 && c == 0) {
|
|
162
|
-
this.modules[row + r][col + c] = true;
|
|
163
|
-
} else {
|
|
164
|
-
this.modules[row + r][col + c] = false;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
}, setupTypeNumber: function(test) {
|
|
171
|
-
var bits = QRUtil.getBCHTypeNumber(this.typeNumber);
|
|
172
|
-
for (var i2 = 0; i2 < 18; i2++) {
|
|
173
|
-
var mod = !test && (bits >> i2 & 1) == 1;
|
|
174
|
-
this.modules[Math.floor(i2 / 3)][i2 % 3 + this.moduleCount - 8 - 3] = mod;
|
|
175
|
-
}
|
|
176
|
-
for (var i2 = 0; i2 < 18; i2++) {
|
|
177
|
-
var mod = !test && (bits >> i2 & 1) == 1;
|
|
178
|
-
this.modules[i2 % 3 + this.moduleCount - 8 - 3][Math.floor(i2 / 3)] = mod;
|
|
179
|
-
}
|
|
180
|
-
}, setupTypeInfo: function(test, maskPattern) {
|
|
181
|
-
var data = this.errorCorrectLevel << 3 | maskPattern;
|
|
182
|
-
var bits = QRUtil.getBCHTypeInfo(data);
|
|
183
|
-
for (var i2 = 0; i2 < 15; i2++) {
|
|
184
|
-
var mod = !test && (bits >> i2 & 1) == 1;
|
|
185
|
-
if (i2 < 6) {
|
|
186
|
-
this.modules[i2][8] = mod;
|
|
187
|
-
} else if (i2 < 8) {
|
|
188
|
-
this.modules[i2 + 1][8] = mod;
|
|
189
|
-
} else {
|
|
190
|
-
this.modules[this.moduleCount - 15 + i2][8] = mod;
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
for (var i2 = 0; i2 < 15; i2++) {
|
|
194
|
-
var mod = !test && (bits >> i2 & 1) == 1;
|
|
195
|
-
if (i2 < 8) {
|
|
196
|
-
this.modules[8][this.moduleCount - i2 - 1] = mod;
|
|
197
|
-
} else if (i2 < 9) {
|
|
198
|
-
this.modules[8][15 - i2 - 1 + 1] = mod;
|
|
199
|
-
} else {
|
|
200
|
-
this.modules[8][15 - i2 - 1] = mod;
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
this.modules[this.moduleCount - 8][8] = !test;
|
|
204
|
-
}, mapData: function(data, maskPattern) {
|
|
205
|
-
var inc = -1;
|
|
206
|
-
var row = this.moduleCount - 1;
|
|
207
|
-
var bitIndex = 7;
|
|
208
|
-
var byteIndex = 0;
|
|
209
|
-
for (var col = this.moduleCount - 1; col > 0; col -= 2) {
|
|
210
|
-
if (col == 6) col--;
|
|
211
|
-
while (true) {
|
|
212
|
-
for (var c = 0; c < 2; c++) {
|
|
213
|
-
if (this.modules[row][col - c] == null) {
|
|
214
|
-
var dark = false;
|
|
215
|
-
if (byteIndex < data.length) {
|
|
216
|
-
dark = (data[byteIndex] >>> bitIndex & 1) == 1;
|
|
217
|
-
}
|
|
218
|
-
var mask = QRUtil.getMask(maskPattern, row, col - c);
|
|
219
|
-
if (mask) {
|
|
220
|
-
dark = !dark;
|
|
221
|
-
}
|
|
222
|
-
this.modules[row][col - c] = dark;
|
|
223
|
-
bitIndex--;
|
|
224
|
-
if (bitIndex == -1) {
|
|
225
|
-
byteIndex++;
|
|
226
|
-
bitIndex = 7;
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
row += inc;
|
|
231
|
-
if (row < 0 || this.moduleCount <= row) {
|
|
232
|
-
row -= inc;
|
|
233
|
-
inc = -inc;
|
|
234
|
-
break;
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
} };
|
|
239
|
-
QRCodeModel.PAD0 = 236;
|
|
240
|
-
QRCodeModel.PAD1 = 17;
|
|
241
|
-
QRCodeModel.createData = function(typeNumber, errorCorrectLevel, dataList) {
|
|
242
|
-
var rsBlocks = QRRSBlock.getRSBlocks(typeNumber, errorCorrectLevel);
|
|
243
|
-
var buffer = new QRBitBuffer();
|
|
244
|
-
for (var i2 = 0; i2 < dataList.length; i2++) {
|
|
245
|
-
var data = dataList[i2];
|
|
246
|
-
buffer.put(data.mode, 4);
|
|
247
|
-
buffer.put(data.getLength(), QRUtil.getLengthInBits(data.mode, typeNumber));
|
|
248
|
-
data.write(buffer);
|
|
249
|
-
}
|
|
250
|
-
var totalDataCount = 0;
|
|
251
|
-
for (var i2 = 0; i2 < rsBlocks.length; i2++) {
|
|
252
|
-
totalDataCount += rsBlocks[i2].dataCount;
|
|
253
|
-
}
|
|
254
|
-
if (buffer.getLengthInBits() > totalDataCount * 8) {
|
|
255
|
-
throw new Error("code length overflow. (" + buffer.getLengthInBits() + ">" + totalDataCount * 8 + ")");
|
|
256
|
-
}
|
|
257
|
-
if (buffer.getLengthInBits() + 4 <= totalDataCount * 8) {
|
|
258
|
-
buffer.put(0, 4);
|
|
259
|
-
}
|
|
260
|
-
while (buffer.getLengthInBits() % 8 != 0) {
|
|
261
|
-
buffer.putBit(false);
|
|
262
|
-
}
|
|
263
|
-
while (true) {
|
|
264
|
-
if (buffer.getLengthInBits() >= totalDataCount * 8) {
|
|
265
|
-
break;
|
|
266
|
-
}
|
|
267
|
-
buffer.put(QRCodeModel.PAD0, 8);
|
|
268
|
-
if (buffer.getLengthInBits() >= totalDataCount * 8) {
|
|
269
|
-
break;
|
|
270
|
-
}
|
|
271
|
-
buffer.put(QRCodeModel.PAD1, 8);
|
|
272
|
-
}
|
|
273
|
-
return QRCodeModel.createBytes(buffer, rsBlocks);
|
|
274
|
-
};
|
|
275
|
-
QRCodeModel.createBytes = function(buffer, rsBlocks) {
|
|
276
|
-
var offset = 0;
|
|
277
|
-
var maxDcCount = 0;
|
|
278
|
-
var maxEcCount = 0;
|
|
279
|
-
var dcdata = new Array(rsBlocks.length);
|
|
280
|
-
var ecdata = new Array(rsBlocks.length);
|
|
281
|
-
for (var r = 0; r < rsBlocks.length; r++) {
|
|
282
|
-
var dcCount = rsBlocks[r].dataCount;
|
|
283
|
-
var ecCount = rsBlocks[r].totalCount - dcCount;
|
|
284
|
-
maxDcCount = Math.max(maxDcCount, dcCount);
|
|
285
|
-
maxEcCount = Math.max(maxEcCount, ecCount);
|
|
286
|
-
dcdata[r] = new Array(dcCount);
|
|
287
|
-
for (var i2 = 0; i2 < dcdata[r].length; i2++) {
|
|
288
|
-
dcdata[r][i2] = 255 & buffer.buffer[i2 + offset];
|
|
289
|
-
}
|
|
290
|
-
offset += dcCount;
|
|
291
|
-
var rsPoly = QRUtil.getErrorCorrectPolynomial(ecCount);
|
|
292
|
-
var rawPoly = new QRPolynomial(dcdata[r], rsPoly.getLength() - 1);
|
|
293
|
-
var modPoly = rawPoly.mod(rsPoly);
|
|
294
|
-
ecdata[r] = new Array(rsPoly.getLength() - 1);
|
|
295
|
-
for (var i2 = 0; i2 < ecdata[r].length; i2++) {
|
|
296
|
-
var modIndex = i2 + modPoly.getLength() - ecdata[r].length;
|
|
297
|
-
ecdata[r][i2] = modIndex >= 0 ? modPoly.get(modIndex) : 0;
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
var totalCodeCount = 0;
|
|
301
|
-
for (var i2 = 0; i2 < rsBlocks.length; i2++) {
|
|
302
|
-
totalCodeCount += rsBlocks[i2].totalCount;
|
|
303
|
-
}
|
|
304
|
-
var data = new Array(totalCodeCount);
|
|
305
|
-
var index = 0;
|
|
306
|
-
for (var i2 = 0; i2 < maxDcCount; i2++) {
|
|
307
|
-
for (var r = 0; r < rsBlocks.length; r++) {
|
|
308
|
-
if (i2 < dcdata[r].length) {
|
|
309
|
-
data[index++] = dcdata[r][i2];
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
for (var i2 = 0; i2 < maxEcCount; i2++) {
|
|
314
|
-
for (var r = 0; r < rsBlocks.length; r++) {
|
|
315
|
-
if (i2 < ecdata[r].length) {
|
|
316
|
-
data[index++] = ecdata[r][i2];
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
return data;
|
|
321
|
-
};
|
|
322
|
-
var QRMode = { MODE_NUMBER: 1 << 0, MODE_ALPHA_NUM: 1 << 1, MODE_8BIT_BYTE: 1 << 2, MODE_KANJI: 1 << 3 };
|
|
323
|
-
var QRErrorCorrectLevel = { L: 1, M: 0, Q: 3, H: 2 };
|
|
324
|
-
var QRMaskPattern = { PATTERN000: 0, PATTERN001: 1, PATTERN010: 2, PATTERN011: 3, PATTERN100: 4, PATTERN101: 5, PATTERN110: 6, PATTERN111: 7 };
|
|
325
|
-
var QRUtil = { PATTERN_POSITION_TABLE: [[], [6, 18], [6, 22], [6, 26], [6, 30], [6, 34], [6, 22, 38], [6, 24, 42], [6, 26, 46], [6, 28, 50], [6, 30, 54], [6, 32, 58], [6, 34, 62], [6, 26, 46, 66], [6, 26, 48, 70], [6, 26, 50, 74], [6, 30, 54, 78], [6, 30, 56, 82], [6, 30, 58, 86], [6, 34, 62, 90], [6, 28, 50, 72, 94], [6, 26, 50, 74, 98], [6, 30, 54, 78, 102], [6, 28, 54, 80, 106], [6, 32, 58, 84, 110], [6, 30, 58, 86, 114], [6, 34, 62, 90, 118], [6, 26, 50, 74, 98, 122], [6, 30, 54, 78, 102, 126], [6, 26, 52, 78, 104, 130], [6, 30, 56, 82, 108, 134], [6, 34, 60, 86, 112, 138], [6, 30, 58, 86, 114, 142], [6, 34, 62, 90, 118, 146], [6, 30, 54, 78, 102, 126, 150], [6, 24, 50, 76, 102, 128, 154], [6, 28, 54, 80, 106, 132, 158], [6, 32, 58, 84, 110, 136, 162], [6, 26, 54, 82, 110, 138, 166], [6, 30, 58, 86, 114, 142, 170]], G15: 1 << 10 | 1 << 8 | 1 << 5 | 1 << 4 | 1 << 2 | 1 << 1 | 1 << 0, G18: 1 << 12 | 1 << 11 | 1 << 10 | 1 << 9 | 1 << 8 | 1 << 5 | 1 << 2 | 1 << 0, G15_MASK: 1 << 14 | 1 << 12 | 1 << 10 | 1 << 4 | 1 << 1, getBCHTypeInfo: function(data) {
|
|
326
|
-
var d = data << 10;
|
|
327
|
-
while (QRUtil.getBCHDigit(d) - QRUtil.getBCHDigit(QRUtil.G15) >= 0) {
|
|
328
|
-
d ^= QRUtil.G15 << QRUtil.getBCHDigit(d) - QRUtil.getBCHDigit(QRUtil.G15);
|
|
329
|
-
}
|
|
330
|
-
return (data << 10 | d) ^ QRUtil.G15_MASK;
|
|
331
|
-
}, getBCHTypeNumber: function(data) {
|
|
332
|
-
var d = data << 12;
|
|
333
|
-
while (QRUtil.getBCHDigit(d) - QRUtil.getBCHDigit(QRUtil.G18) >= 0) {
|
|
334
|
-
d ^= QRUtil.G18 << QRUtil.getBCHDigit(d) - QRUtil.getBCHDigit(QRUtil.G18);
|
|
335
|
-
}
|
|
336
|
-
return data << 12 | d;
|
|
337
|
-
}, getBCHDigit: function(data) {
|
|
338
|
-
var digit = 0;
|
|
339
|
-
while (data != 0) {
|
|
340
|
-
digit++;
|
|
341
|
-
data >>>= 1;
|
|
342
|
-
}
|
|
343
|
-
return digit;
|
|
344
|
-
}, getPatternPosition: function(typeNumber) {
|
|
345
|
-
return QRUtil.PATTERN_POSITION_TABLE[typeNumber - 1];
|
|
346
|
-
}, getMask: function(maskPattern, i2, j) {
|
|
347
|
-
switch (maskPattern) {
|
|
348
|
-
case QRMaskPattern.PATTERN000:
|
|
349
|
-
return (i2 + j) % 2 == 0;
|
|
350
|
-
case QRMaskPattern.PATTERN001:
|
|
351
|
-
return i2 % 2 == 0;
|
|
352
|
-
case QRMaskPattern.PATTERN010:
|
|
353
|
-
return j % 3 == 0;
|
|
354
|
-
case QRMaskPattern.PATTERN011:
|
|
355
|
-
return (i2 + j) % 3 == 0;
|
|
356
|
-
case QRMaskPattern.PATTERN100:
|
|
357
|
-
return (Math.floor(i2 / 2) + Math.floor(j / 3)) % 2 == 0;
|
|
358
|
-
case QRMaskPattern.PATTERN101:
|
|
359
|
-
return i2 * j % 2 + i2 * j % 3 == 0;
|
|
360
|
-
case QRMaskPattern.PATTERN110:
|
|
361
|
-
return (i2 * j % 2 + i2 * j % 3) % 2 == 0;
|
|
362
|
-
case QRMaskPattern.PATTERN111:
|
|
363
|
-
return (i2 * j % 3 + (i2 + j) % 2) % 2 == 0;
|
|
364
|
-
default:
|
|
365
|
-
throw new Error("bad maskPattern:" + maskPattern);
|
|
366
|
-
}
|
|
367
|
-
}, getErrorCorrectPolynomial: function(errorCorrectLength) {
|
|
368
|
-
var a = new QRPolynomial([1], 0);
|
|
369
|
-
for (var i2 = 0; i2 < errorCorrectLength; i2++) {
|
|
370
|
-
a = a.multiply(new QRPolynomial([1, QRMath.gexp(i2)], 0));
|
|
371
|
-
}
|
|
372
|
-
return a;
|
|
373
|
-
}, getLengthInBits: function(mode, type) {
|
|
374
|
-
if (1 <= type && type < 10) {
|
|
375
|
-
switch (mode) {
|
|
376
|
-
case QRMode.MODE_NUMBER:
|
|
377
|
-
return 10;
|
|
378
|
-
case QRMode.MODE_ALPHA_NUM:
|
|
379
|
-
return 9;
|
|
380
|
-
case QRMode.MODE_8BIT_BYTE:
|
|
381
|
-
return 8;
|
|
382
|
-
case QRMode.MODE_KANJI:
|
|
383
|
-
return 8;
|
|
384
|
-
default:
|
|
385
|
-
throw new Error("mode:" + mode);
|
|
386
|
-
}
|
|
387
|
-
} else if (type < 27) {
|
|
388
|
-
switch (mode) {
|
|
389
|
-
case QRMode.MODE_NUMBER:
|
|
390
|
-
return 12;
|
|
391
|
-
case QRMode.MODE_ALPHA_NUM:
|
|
392
|
-
return 11;
|
|
393
|
-
case QRMode.MODE_8BIT_BYTE:
|
|
394
|
-
return 16;
|
|
395
|
-
case QRMode.MODE_KANJI:
|
|
396
|
-
return 10;
|
|
397
|
-
default:
|
|
398
|
-
throw new Error("mode:" + mode);
|
|
399
|
-
}
|
|
400
|
-
} else if (type < 41) {
|
|
401
|
-
switch (mode) {
|
|
402
|
-
case QRMode.MODE_NUMBER:
|
|
403
|
-
return 14;
|
|
404
|
-
case QRMode.MODE_ALPHA_NUM:
|
|
405
|
-
return 13;
|
|
406
|
-
case QRMode.MODE_8BIT_BYTE:
|
|
407
|
-
return 16;
|
|
408
|
-
case QRMode.MODE_KANJI:
|
|
409
|
-
return 12;
|
|
410
|
-
default:
|
|
411
|
-
throw new Error("mode:" + mode);
|
|
412
|
-
}
|
|
413
|
-
} else {
|
|
414
|
-
throw new Error("type:" + type);
|
|
415
|
-
}
|
|
416
|
-
}, getLostPoint: function(qrCode) {
|
|
417
|
-
var moduleCount = qrCode.getModuleCount();
|
|
418
|
-
var lostPoint = 0;
|
|
419
|
-
for (var row = 0; row < moduleCount; row++) {
|
|
420
|
-
for (var col = 0; col < moduleCount; col++) {
|
|
421
|
-
var sameCount = 0;
|
|
422
|
-
var dark = qrCode.isDark(row, col);
|
|
423
|
-
for (var r = -1; r <= 1; r++) {
|
|
424
|
-
if (row + r < 0 || moduleCount <= row + r) {
|
|
425
|
-
continue;
|
|
426
|
-
}
|
|
427
|
-
for (var c = -1; c <= 1; c++) {
|
|
428
|
-
if (col + c < 0 || moduleCount <= col + c) {
|
|
429
|
-
continue;
|
|
430
|
-
}
|
|
431
|
-
if (r == 0 && c == 0) {
|
|
432
|
-
continue;
|
|
433
|
-
}
|
|
434
|
-
if (dark == qrCode.isDark(row + r, col + c)) {
|
|
435
|
-
sameCount++;
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
if (sameCount > 5) {
|
|
440
|
-
lostPoint += 3 + sameCount - 5;
|
|
441
|
-
}
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
for (var row = 0; row < moduleCount - 1; row++) {
|
|
445
|
-
for (var col = 0; col < moduleCount - 1; col++) {
|
|
446
|
-
var count = 0;
|
|
447
|
-
if (qrCode.isDark(row, col)) count++;
|
|
448
|
-
if (qrCode.isDark(row + 1, col)) count++;
|
|
449
|
-
if (qrCode.isDark(row, col + 1)) count++;
|
|
450
|
-
if (qrCode.isDark(row + 1, col + 1)) count++;
|
|
451
|
-
if (count == 0 || count == 4) {
|
|
452
|
-
lostPoint += 3;
|
|
453
|
-
}
|
|
454
|
-
}
|
|
455
|
-
}
|
|
456
|
-
for (var row = 0; row < moduleCount; row++) {
|
|
457
|
-
for (var col = 0; col < moduleCount - 6; col++) {
|
|
458
|
-
if (qrCode.isDark(row, col) && !qrCode.isDark(row, col + 1) && qrCode.isDark(row, col + 2) && qrCode.isDark(row, col + 3) && qrCode.isDark(row, col + 4) && !qrCode.isDark(row, col + 5) && qrCode.isDark(row, col + 6)) {
|
|
459
|
-
lostPoint += 40;
|
|
460
|
-
}
|
|
461
|
-
}
|
|
462
|
-
}
|
|
463
|
-
for (var col = 0; col < moduleCount; col++) {
|
|
464
|
-
for (var row = 0; row < moduleCount - 6; row++) {
|
|
465
|
-
if (qrCode.isDark(row, col) && !qrCode.isDark(row + 1, col) && qrCode.isDark(row + 2, col) && qrCode.isDark(row + 3, col) && qrCode.isDark(row + 4, col) && !qrCode.isDark(row + 5, col) && qrCode.isDark(row + 6, col)) {
|
|
466
|
-
lostPoint += 40;
|
|
467
|
-
}
|
|
468
|
-
}
|
|
469
|
-
}
|
|
470
|
-
var darkCount = 0;
|
|
471
|
-
for (var col = 0; col < moduleCount; col++) {
|
|
472
|
-
for (var row = 0; row < moduleCount; row++) {
|
|
473
|
-
if (qrCode.isDark(row, col)) {
|
|
474
|
-
darkCount++;
|
|
475
|
-
}
|
|
476
|
-
}
|
|
477
|
-
}
|
|
478
|
-
var ratio = Math.abs(100 * darkCount / moduleCount / moduleCount - 50) / 5;
|
|
479
|
-
lostPoint += ratio * 10;
|
|
480
|
-
return lostPoint;
|
|
481
|
-
} };
|
|
482
|
-
var QRMath = { glog: function(n) {
|
|
483
|
-
if (n < 1) {
|
|
484
|
-
throw new Error("glog(" + n + ")");
|
|
485
|
-
}
|
|
486
|
-
return QRMath.LOG_TABLE[n];
|
|
487
|
-
}, gexp: function(n) {
|
|
488
|
-
while (n < 0) {
|
|
489
|
-
n += 255;
|
|
490
|
-
}
|
|
491
|
-
while (n >= 256) {
|
|
492
|
-
n -= 255;
|
|
493
|
-
}
|
|
494
|
-
return QRMath.EXP_TABLE[n];
|
|
495
|
-
}, EXP_TABLE: new Array(256), LOG_TABLE: new Array(256) };
|
|
496
|
-
for (var i = 0; i < 8; i++) {
|
|
497
|
-
QRMath.EXP_TABLE[i] = 1 << i;
|
|
498
|
-
}
|
|
499
|
-
for (var i = 8; i < 256; i++) {
|
|
500
|
-
QRMath.EXP_TABLE[i] = QRMath.EXP_TABLE[i - 4] ^ QRMath.EXP_TABLE[i - 5] ^ QRMath.EXP_TABLE[i - 6] ^ QRMath.EXP_TABLE[i - 8];
|
|
501
|
-
}
|
|
502
|
-
for (var i = 0; i < 255; i++) {
|
|
503
|
-
QRMath.LOG_TABLE[QRMath.EXP_TABLE[i]] = i;
|
|
504
|
-
}
|
|
505
|
-
function QRPolynomial(num, shift) {
|
|
506
|
-
if (num.length == void 0) {
|
|
507
|
-
throw new Error(num.length + "/" + shift);
|
|
508
|
-
}
|
|
509
|
-
var offset = 0;
|
|
510
|
-
while (offset < num.length && num[offset] == 0) {
|
|
511
|
-
offset++;
|
|
512
|
-
}
|
|
513
|
-
this.num = new Array(num.length - offset + shift);
|
|
514
|
-
for (var i2 = 0; i2 < num.length - offset; i2++) {
|
|
515
|
-
this.num[i2] = num[i2 + offset];
|
|
516
|
-
}
|
|
517
|
-
}
|
|
518
|
-
QRPolynomial.prototype = { get: function(index) {
|
|
519
|
-
return this.num[index];
|
|
520
|
-
}, getLength: function() {
|
|
521
|
-
return this.num.length;
|
|
522
|
-
}, multiply: function(e) {
|
|
523
|
-
var num = new Array(this.getLength() + e.getLength() - 1);
|
|
524
|
-
for (var i2 = 0; i2 < this.getLength(); i2++) {
|
|
525
|
-
for (var j = 0; j < e.getLength(); j++) {
|
|
526
|
-
num[i2 + j] ^= QRMath.gexp(QRMath.glog(this.get(i2)) + QRMath.glog(e.get(j)));
|
|
527
|
-
}
|
|
528
|
-
}
|
|
529
|
-
return new QRPolynomial(num, 0);
|
|
530
|
-
}, mod: function(e) {
|
|
531
|
-
if (this.getLength() - e.getLength() < 0) {
|
|
532
|
-
return this;
|
|
533
|
-
}
|
|
534
|
-
var ratio = QRMath.glog(this.get(0)) - QRMath.glog(e.get(0));
|
|
535
|
-
var num = new Array(this.getLength());
|
|
536
|
-
for (var i2 = 0; i2 < this.getLength(); i2++) {
|
|
537
|
-
num[i2] = this.get(i2);
|
|
538
|
-
}
|
|
539
|
-
for (var i2 = 0; i2 < e.getLength(); i2++) {
|
|
540
|
-
num[i2] ^= QRMath.gexp(QRMath.glog(e.get(i2)) + ratio);
|
|
541
|
-
}
|
|
542
|
-
return new QRPolynomial(num, 0).mod(e);
|
|
543
|
-
} };
|
|
544
|
-
function QRRSBlock(totalCount, dataCount) {
|
|
545
|
-
this.totalCount = totalCount;
|
|
546
|
-
this.dataCount = dataCount;
|
|
547
|
-
}
|
|
548
|
-
QRRSBlock.RS_BLOCK_TABLE = [[1, 26, 19], [1, 26, 16], [1, 26, 13], [1, 26, 9], [1, 44, 34], [1, 44, 28], [1, 44, 22], [1, 44, 16], [1, 70, 55], [1, 70, 44], [2, 35, 17], [2, 35, 13], [1, 100, 80], [2, 50, 32], [2, 50, 24], [4, 25, 9], [1, 134, 108], [2, 67, 43], [2, 33, 15, 2, 34, 16], [2, 33, 11, 2, 34, 12], [2, 86, 68], [4, 43, 27], [4, 43, 19], [4, 43, 15], [2, 98, 78], [4, 49, 31], [2, 32, 14, 4, 33, 15], [4, 39, 13, 1, 40, 14], [2, 121, 97], [2, 60, 38, 2, 61, 39], [4, 40, 18, 2, 41, 19], [4, 40, 14, 2, 41, 15], [2, 146, 116], [3, 58, 36, 2, 59, 37], [4, 36, 16, 4, 37, 17], [4, 36, 12, 4, 37, 13], [2, 86, 68, 2, 87, 69], [4, 69, 43, 1, 70, 44], [6, 43, 19, 2, 44, 20], [6, 43, 15, 2, 44, 16], [4, 101, 81], [1, 80, 50, 4, 81, 51], [4, 50, 22, 4, 51, 23], [3, 36, 12, 8, 37, 13], [2, 116, 92, 2, 117, 93], [6, 58, 36, 2, 59, 37], [4, 46, 20, 6, 47, 21], [7, 42, 14, 4, 43, 15], [4, 133, 107], [8, 59, 37, 1, 60, 38], [8, 44, 20, 4, 45, 21], [12, 33, 11, 4, 34, 12], [3, 145, 115, 1, 146, 116], [4, 64, 40, 5, 65, 41], [11, 36, 16, 5, 37, 17], [11, 36, 12, 5, 37, 13], [5, 109, 87, 1, 110, 88], [5, 65, 41, 5, 66, 42], [5, 54, 24, 7, 55, 25], [11, 36, 12], [5, 122, 98, 1, 123, 99], [7, 73, 45, 3, 74, 46], [15, 43, 19, 2, 44, 20], [3, 45, 15, 13, 46, 16], [1, 135, 107, 5, 136, 108], [10, 74, 46, 1, 75, 47], [1, 50, 22, 15, 51, 23], [2, 42, 14, 17, 43, 15], [5, 150, 120, 1, 151, 121], [9, 69, 43, 4, 70, 44], [17, 50, 22, 1, 51, 23], [2, 42, 14, 19, 43, 15], [3, 141, 113, 4, 142, 114], [3, 70, 44, 11, 71, 45], [17, 47, 21, 4, 48, 22], [9, 39, 13, 16, 40, 14], [3, 135, 107, 5, 136, 108], [3, 67, 41, 13, 68, 42], [15, 54, 24, 5, 55, 25], [15, 43, 15, 10, 44, 16], [4, 144, 116, 4, 145, 117], [17, 68, 42], [17, 50, 22, 6, 51, 23], [19, 46, 16, 6, 47, 17], [2, 139, 111, 7, 140, 112], [17, 74, 46], [7, 54, 24, 16, 55, 25], [34, 37, 13], [4, 151, 121, 5, 152, 122], [4, 75, 47, 14, 76, 48], [11, 54, 24, 14, 55, 25], [16, 45, 15, 14, 46, 16], [6, 147, 117, 4, 148, 118], [6, 73, 45, 14, 74, 46], [11, 54, 24, 16, 55, 25], [30, 46, 16, 2, 47, 17], [8, 132, 106, 4, 133, 107], [8, 75, 47, 13, 76, 48], [7, 54, 24, 22, 55, 25], [22, 45, 15, 13, 46, 16], [10, 142, 114, 2, 143, 115], [19, 74, 46, 4, 75, 47], [28, 50, 22, 6, 51, 23], [33, 46, 16, 4, 47, 17], [8, 152, 122, 4, 153, 123], [22, 73, 45, 3, 74, 46], [8, 53, 23, 26, 54, 24], [12, 45, 15, 28, 46, 16], [3, 147, 117, 10, 148, 118], [3, 73, 45, 23, 74, 46], [4, 54, 24, 31, 55, 25], [11, 45, 15, 31, 46, 16], [7, 146, 116, 7, 147, 117], [21, 73, 45, 7, 74, 46], [1, 53, 23, 37, 54, 24], [19, 45, 15, 26, 46, 16], [5, 145, 115, 10, 146, 116], [19, 75, 47, 10, 76, 48], [15, 54, 24, 25, 55, 25], [23, 45, 15, 25, 46, 16], [13, 145, 115, 3, 146, 116], [2, 74, 46, 29, 75, 47], [42, 54, 24, 1, 55, 25], [23, 45, 15, 28, 46, 16], [17, 145, 115], [10, 74, 46, 23, 75, 47], [10, 54, 24, 35, 55, 25], [19, 45, 15, 35, 46, 16], [17, 145, 115, 1, 146, 116], [14, 74, 46, 21, 75, 47], [29, 54, 24, 19, 55, 25], [11, 45, 15, 46, 46, 16], [13, 145, 115, 6, 146, 116], [14, 74, 46, 23, 75, 47], [44, 54, 24, 7, 55, 25], [59, 46, 16, 1, 47, 17], [12, 151, 121, 7, 152, 122], [12, 75, 47, 26, 76, 48], [39, 54, 24, 14, 55, 25], [22, 45, 15, 41, 46, 16], [6, 151, 121, 14, 152, 122], [6, 75, 47, 34, 76, 48], [46, 54, 24, 10, 55, 25], [2, 45, 15, 64, 46, 16], [17, 152, 122, 4, 153, 123], [29, 74, 46, 14, 75, 47], [49, 54, 24, 10, 55, 25], [24, 45, 15, 46, 46, 16], [4, 152, 122, 18, 153, 123], [13, 74, 46, 32, 75, 47], [48, 54, 24, 14, 55, 25], [42, 45, 15, 32, 46, 16], [20, 147, 117, 4, 148, 118], [40, 75, 47, 7, 76, 48], [43, 54, 24, 22, 55, 25], [10, 45, 15, 67, 46, 16], [19, 148, 118, 6, 149, 119], [18, 75, 47, 31, 76, 48], [34, 54, 24, 34, 55, 25], [20, 45, 15, 61, 46, 16]];
|
|
549
|
-
QRRSBlock.getRSBlocks = function(typeNumber, errorCorrectLevel) {
|
|
550
|
-
var rsBlock = QRRSBlock.getRsBlockTable(typeNumber, errorCorrectLevel);
|
|
551
|
-
if (rsBlock == void 0) {
|
|
552
|
-
throw new Error("bad rs block @ typeNumber:" + typeNumber + "/errorCorrectLevel:" + errorCorrectLevel);
|
|
553
|
-
}
|
|
554
|
-
var length = rsBlock.length / 3;
|
|
555
|
-
var list = [];
|
|
556
|
-
for (var i2 = 0; i2 < length; i2++) {
|
|
557
|
-
var count = rsBlock[i2 * 3 + 0];
|
|
558
|
-
var totalCount = rsBlock[i2 * 3 + 1];
|
|
559
|
-
var dataCount = rsBlock[i2 * 3 + 2];
|
|
560
|
-
for (var j = 0; j < count; j++) {
|
|
561
|
-
list.push(new QRRSBlock(totalCount, dataCount));
|
|
562
|
-
}
|
|
563
|
-
}
|
|
564
|
-
return list;
|
|
565
|
-
};
|
|
566
|
-
QRRSBlock.getRsBlockTable = function(typeNumber, errorCorrectLevel) {
|
|
567
|
-
switch (errorCorrectLevel) {
|
|
568
|
-
case QRErrorCorrectLevel.L:
|
|
569
|
-
return QRRSBlock.RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 0];
|
|
570
|
-
case QRErrorCorrectLevel.M:
|
|
571
|
-
return QRRSBlock.RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 1];
|
|
572
|
-
case QRErrorCorrectLevel.Q:
|
|
573
|
-
return QRRSBlock.RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 2];
|
|
574
|
-
case QRErrorCorrectLevel.H:
|
|
575
|
-
return QRRSBlock.RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 3];
|
|
576
|
-
default:
|
|
577
|
-
return void 0;
|
|
578
|
-
}
|
|
579
|
-
};
|
|
580
|
-
function QRBitBuffer() {
|
|
581
|
-
this.buffer = [];
|
|
582
|
-
this.length = 0;
|
|
583
|
-
}
|
|
584
|
-
QRBitBuffer.prototype = { get: function(index) {
|
|
585
|
-
var bufIndex = Math.floor(index / 8);
|
|
586
|
-
return (this.buffer[bufIndex] >>> 7 - index % 8 & 1) == 1;
|
|
587
|
-
}, put: function(num, length) {
|
|
588
|
-
for (var i2 = 0; i2 < length; i2++) {
|
|
589
|
-
this.putBit((num >>> length - i2 - 1 & 1) == 1);
|
|
590
|
-
}
|
|
591
|
-
}, getLengthInBits: function() {
|
|
592
|
-
return this.length;
|
|
593
|
-
}, putBit: function(bit) {
|
|
594
|
-
var bufIndex = Math.floor(this.length / 8);
|
|
595
|
-
if (this.buffer.length <= bufIndex) {
|
|
596
|
-
this.buffer.push(0);
|
|
597
|
-
}
|
|
598
|
-
if (bit) {
|
|
599
|
-
this.buffer[bufIndex] |= 128 >>> this.length % 8;
|
|
600
|
-
}
|
|
601
|
-
this.length++;
|
|
602
|
-
} };
|
|
603
|
-
var QRCodeLimitLength = [[17, 14, 11, 7], [32, 26, 20, 14], [53, 42, 32, 24], [78, 62, 46, 34], [106, 84, 60, 44], [134, 106, 74, 58], [154, 122, 86, 64], [192, 152, 108, 84], [230, 180, 130, 98], [271, 213, 151, 119], [321, 251, 177, 137], [367, 287, 203, 155], [425, 331, 241, 177], [458, 362, 258, 194], [520, 412, 292, 220], [586, 450, 322, 250], [644, 504, 364, 280], [718, 560, 394, 310], [792, 624, 442, 338], [858, 666, 482, 382], [929, 711, 509, 403], [1003, 779, 565, 439], [1091, 857, 611, 461], [1171, 911, 661, 511], [1273, 997, 715, 535], [1367, 1059, 751, 593], [1465, 1125, 805, 625], [1528, 1190, 868, 658], [1628, 1264, 908, 698], [1732, 1370, 982, 742], [1840, 1452, 1030, 790], [1952, 1538, 1112, 842], [2068, 1628, 1168, 898], [2188, 1722, 1228, 958], [2303, 1809, 1283, 983], [2431, 1911, 1351, 1051], [2563, 1989, 1423, 1093], [2699, 2099, 1499, 1139], [2809, 2213, 1579, 1219], [2953, 2331, 1663, 1273]];
|
|
604
|
-
function _isSupportCanvas() {
|
|
605
|
-
return typeof CanvasRenderingContext2D != "undefined";
|
|
606
|
-
}
|
|
607
|
-
function _getAndroid() {
|
|
608
|
-
var android = false;
|
|
609
|
-
var sAgent = navigator.userAgent;
|
|
610
|
-
if (/android/i.test(sAgent)) {
|
|
611
|
-
android = true;
|
|
612
|
-
var aMat = sAgent.toString().match(/android ([0-9]\.[0-9])/i);
|
|
613
|
-
if (aMat && aMat[1]) {
|
|
614
|
-
android = parseFloat(aMat[1]);
|
|
615
|
-
}
|
|
616
|
-
}
|
|
617
|
-
return android;
|
|
618
|
-
}
|
|
619
|
-
var svgDrawer = function() {
|
|
620
|
-
var Drawing2 = function(el, htOption) {
|
|
621
|
-
this._el = el;
|
|
622
|
-
this._htOption = htOption;
|
|
623
|
-
};
|
|
624
|
-
Drawing2.prototype.draw = function(oQRCode) {
|
|
625
|
-
var _htOption = this._htOption;
|
|
626
|
-
var _el = this._el;
|
|
627
|
-
var nCount = oQRCode.getModuleCount();
|
|
628
|
-
Math.floor(_htOption.width / nCount);
|
|
629
|
-
Math.floor(_htOption.height / nCount);
|
|
630
|
-
this.clear();
|
|
631
|
-
function makeSVG(tag, attrs) {
|
|
632
|
-
var el = document.createElementNS("http://www.w3.org/2000/svg", tag);
|
|
633
|
-
for (var k in attrs)
|
|
634
|
-
if (attrs.hasOwnProperty(k)) el.setAttribute(k, attrs[k]);
|
|
635
|
-
return el;
|
|
636
|
-
}
|
|
637
|
-
var svg = makeSVG("svg", { "viewBox": "0 0 " + String(nCount) + " " + String(nCount), "width": "100%", "height": "100%", "fill": _htOption.colorLight });
|
|
638
|
-
svg.setAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns:xlink", "http://www.w3.org/1999/xlink");
|
|
639
|
-
_el.appendChild(svg);
|
|
640
|
-
svg.appendChild(makeSVG("rect", { "fill": _htOption.colorLight, "width": "100%", "height": "100%" }));
|
|
641
|
-
svg.appendChild(makeSVG("rect", { "fill": _htOption.colorDark, "width": "1", "height": "1", "id": "template" }));
|
|
642
|
-
for (var row = 0; row < nCount; row++) {
|
|
643
|
-
for (var col = 0; col < nCount; col++) {
|
|
644
|
-
if (oQRCode.isDark(row, col)) {
|
|
645
|
-
var child = makeSVG("use", { "x": String(col), "y": String(row) });
|
|
646
|
-
child.setAttributeNS("http://www.w3.org/1999/xlink", "href", "#template");
|
|
647
|
-
svg.appendChild(child);
|
|
648
|
-
}
|
|
649
|
-
}
|
|
650
|
-
}
|
|
651
|
-
};
|
|
652
|
-
Drawing2.prototype.clear = function() {
|
|
653
|
-
while (this._el.hasChildNodes())
|
|
654
|
-
this._el.removeChild(this._el.lastChild);
|
|
655
|
-
};
|
|
656
|
-
return Drawing2;
|
|
657
|
-
}();
|
|
658
|
-
var useSVG = document.documentElement.tagName.toLowerCase() === "svg";
|
|
659
|
-
var Drawing = useSVG ? svgDrawer : !_isSupportCanvas() ? function() {
|
|
660
|
-
var Drawing2 = function(el, htOption) {
|
|
661
|
-
this._el = el;
|
|
662
|
-
this._htOption = htOption;
|
|
663
|
-
};
|
|
664
|
-
Drawing2.prototype.draw = function(oQRCode) {
|
|
665
|
-
var _htOption = this._htOption;
|
|
666
|
-
var _el = this._el;
|
|
667
|
-
var nCount = oQRCode.getModuleCount();
|
|
668
|
-
var nWidth = Math.floor(_htOption.width / nCount);
|
|
669
|
-
var nHeight = Math.floor(_htOption.height / nCount);
|
|
670
|
-
var aHTML = ['<table style="border:0;border-collapse:collapse;">'];
|
|
671
|
-
for (var row = 0; row < nCount; row++) {
|
|
672
|
-
aHTML.push("<tr>");
|
|
673
|
-
for (var col = 0; col < nCount; col++) {
|
|
674
|
-
aHTML.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:' + nWidth + "px;height:" + nHeight + "px;background-color:" + (oQRCode.isDark(row, col) ? _htOption.colorDark : _htOption.colorLight) + ';"></td>');
|
|
675
|
-
}
|
|
676
|
-
aHTML.push("</tr>");
|
|
677
|
-
}
|
|
678
|
-
aHTML.push("</table>");
|
|
679
|
-
_el.innerHTML = aHTML.join("");
|
|
680
|
-
var elTable = _el.childNodes[0];
|
|
681
|
-
var nLeftMarginTable = (_htOption.width - elTable.offsetWidth) / 2;
|
|
682
|
-
var nTopMarginTable = (_htOption.height - elTable.offsetHeight) / 2;
|
|
683
|
-
if (nLeftMarginTable > 0 && nTopMarginTable > 0) {
|
|
684
|
-
elTable.style.margin = nTopMarginTable + "px " + nLeftMarginTable + "px";
|
|
685
|
-
}
|
|
686
|
-
};
|
|
687
|
-
Drawing2.prototype.clear = function() {
|
|
688
|
-
this._el.innerHTML = "";
|
|
689
|
-
};
|
|
690
|
-
return Drawing2;
|
|
691
|
-
}() : function() {
|
|
692
|
-
function _onMakeImage() {
|
|
693
|
-
this._elImage.src = this._elCanvas.toDataURL("image/png");
|
|
694
|
-
this._elImage.style.display = "block";
|
|
695
|
-
this._elCanvas.style.display = "none";
|
|
696
|
-
}
|
|
697
|
-
if (this && this._android && this._android <= 2.1) {
|
|
698
|
-
var factor = 1 / window.devicePixelRatio;
|
|
699
|
-
var drawImage = CanvasRenderingContext2D.prototype.drawImage;
|
|
700
|
-
CanvasRenderingContext2D.prototype.drawImage = function(image, sx, sy, sw, sh, dx, dy, dw, dh) {
|
|
701
|
-
if ("nodeName" in image && /img/i.test(image.nodeName)) {
|
|
702
|
-
for (var i2 = arguments.length - 1; i2 >= 1; i2--) {
|
|
703
|
-
arguments[i2] = arguments[i2] * factor;
|
|
704
|
-
}
|
|
705
|
-
} else if (typeof dw == "undefined") {
|
|
706
|
-
arguments[1] *= factor;
|
|
707
|
-
arguments[2] *= factor;
|
|
708
|
-
arguments[3] *= factor;
|
|
709
|
-
arguments[4] *= factor;
|
|
710
|
-
}
|
|
711
|
-
drawImage.apply(this, arguments);
|
|
712
|
-
};
|
|
713
|
-
}
|
|
714
|
-
function _safeSetDataURI(fSuccess, fFail) {
|
|
715
|
-
var self = this;
|
|
716
|
-
self._fFail = fFail;
|
|
717
|
-
self._fSuccess = fSuccess;
|
|
718
|
-
if (self._bSupportDataURI === null) {
|
|
719
|
-
var el = document.createElement("img");
|
|
720
|
-
var fOnError = function() {
|
|
721
|
-
self._bSupportDataURI = false;
|
|
722
|
-
if (self._fFail) {
|
|
723
|
-
self._fFail.call(self);
|
|
724
|
-
}
|
|
725
|
-
};
|
|
726
|
-
var fOnSuccess = function() {
|
|
727
|
-
self._bSupportDataURI = true;
|
|
728
|
-
if (self._fSuccess) {
|
|
729
|
-
self._fSuccess.call(self);
|
|
730
|
-
}
|
|
731
|
-
};
|
|
732
|
-
el.onabort = fOnError;
|
|
733
|
-
el.onerror = fOnError;
|
|
734
|
-
el.onload = fOnSuccess;
|
|
735
|
-
el.src = "data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==";
|
|
736
|
-
return;
|
|
737
|
-
} else if (self._bSupportDataURI === true && self._fSuccess) {
|
|
738
|
-
self._fSuccess.call(self);
|
|
739
|
-
} else if (self._bSupportDataURI === false && self._fFail) {
|
|
740
|
-
self._fFail.call(self);
|
|
741
|
-
}
|
|
742
|
-
}
|
|
743
|
-
var Drawing2 = function(el, htOption) {
|
|
744
|
-
this._bIsPainted = false;
|
|
745
|
-
this._android = _getAndroid();
|
|
746
|
-
this._htOption = htOption;
|
|
747
|
-
this._elCanvas = document.createElement("canvas");
|
|
748
|
-
this._elCanvas.width = htOption.width;
|
|
749
|
-
this._elCanvas.height = htOption.height;
|
|
750
|
-
el.appendChild(this._elCanvas);
|
|
751
|
-
this._el = el;
|
|
752
|
-
this._oContext = this._elCanvas.getContext("2d");
|
|
753
|
-
this._bIsPainted = false;
|
|
754
|
-
this._elImage = document.createElement("img");
|
|
755
|
-
this._elImage.alt = "Scan me!";
|
|
756
|
-
this._elImage.style.display = "none";
|
|
757
|
-
this._el.appendChild(this._elImage);
|
|
758
|
-
this._bSupportDataURI = null;
|
|
759
|
-
};
|
|
760
|
-
Drawing2.prototype.draw = function(oQRCode) {
|
|
761
|
-
var _elImage = this._elImage;
|
|
762
|
-
var _oContext = this._oContext;
|
|
763
|
-
var _htOption = this._htOption;
|
|
764
|
-
var nCount = oQRCode.getModuleCount();
|
|
765
|
-
var nWidth = _htOption.width / nCount;
|
|
766
|
-
var nHeight = _htOption.height / nCount;
|
|
767
|
-
var nRoundedWidth = Math.round(nWidth);
|
|
768
|
-
var nRoundedHeight = Math.round(nHeight);
|
|
769
|
-
_elImage.style.display = "none";
|
|
770
|
-
this.clear();
|
|
771
|
-
for (var row = 0; row < nCount; row++) {
|
|
772
|
-
for (var col = 0; col < nCount; col++) {
|
|
773
|
-
var bIsDark = oQRCode.isDark(row, col);
|
|
774
|
-
var nLeft = col * nWidth;
|
|
775
|
-
var nTop = row * nHeight;
|
|
776
|
-
_oContext.strokeStyle = bIsDark ? _htOption.colorDark : _htOption.colorLight;
|
|
777
|
-
_oContext.lineWidth = 1;
|
|
778
|
-
_oContext.fillStyle = bIsDark ? _htOption.colorDark : _htOption.colorLight;
|
|
779
|
-
_oContext.fillRect(nLeft, nTop, nWidth, nHeight);
|
|
780
|
-
_oContext.strokeRect(
|
|
781
|
-
Math.floor(nLeft) + 0.5,
|
|
782
|
-
Math.floor(nTop) + 0.5,
|
|
783
|
-
nRoundedWidth,
|
|
784
|
-
nRoundedHeight
|
|
785
|
-
);
|
|
786
|
-
_oContext.strokeRect(
|
|
787
|
-
Math.ceil(nLeft) - 0.5,
|
|
788
|
-
Math.ceil(nTop) - 0.5,
|
|
789
|
-
nRoundedWidth,
|
|
790
|
-
nRoundedHeight
|
|
791
|
-
);
|
|
792
|
-
}
|
|
793
|
-
}
|
|
794
|
-
this._bIsPainted = true;
|
|
795
|
-
};
|
|
796
|
-
Drawing2.prototype.makeImage = function() {
|
|
797
|
-
if (this._bIsPainted) {
|
|
798
|
-
_safeSetDataURI.call(this, _onMakeImage);
|
|
799
|
-
}
|
|
800
|
-
};
|
|
801
|
-
Drawing2.prototype.isPainted = function() {
|
|
802
|
-
return this._bIsPainted;
|
|
803
|
-
};
|
|
804
|
-
Drawing2.prototype.clear = function() {
|
|
805
|
-
this._oContext.clearRect(0, 0, this._elCanvas.width, this._elCanvas.height);
|
|
806
|
-
this._bIsPainted = false;
|
|
807
|
-
};
|
|
808
|
-
Drawing2.prototype.round = function(nNumber) {
|
|
809
|
-
if (!nNumber) {
|
|
810
|
-
return nNumber;
|
|
811
|
-
}
|
|
812
|
-
return Math.floor(nNumber * 1e3) / 1e3;
|
|
813
|
-
};
|
|
814
|
-
return Drawing2;
|
|
815
|
-
}();
|
|
816
|
-
function _getTypeNumber(sText, nCorrectLevel) {
|
|
817
|
-
var nType = 1;
|
|
818
|
-
var length = _getUTF8Length(sText);
|
|
819
|
-
for (var i2 = 0, len = QRCodeLimitLength.length; i2 < len; i2++) {
|
|
820
|
-
var nLimit = 0;
|
|
821
|
-
switch (nCorrectLevel) {
|
|
822
|
-
case QRErrorCorrectLevel.L:
|
|
823
|
-
nLimit = QRCodeLimitLength[i2][0];
|
|
824
|
-
break;
|
|
825
|
-
case QRErrorCorrectLevel.M:
|
|
826
|
-
nLimit = QRCodeLimitLength[i2][1];
|
|
827
|
-
break;
|
|
828
|
-
case QRErrorCorrectLevel.Q:
|
|
829
|
-
nLimit = QRCodeLimitLength[i2][2];
|
|
830
|
-
break;
|
|
831
|
-
case QRErrorCorrectLevel.H:
|
|
832
|
-
nLimit = QRCodeLimitLength[i2][3];
|
|
833
|
-
break;
|
|
834
|
-
}
|
|
835
|
-
if (length <= nLimit) {
|
|
836
|
-
break;
|
|
837
|
-
} else {
|
|
838
|
-
nType++;
|
|
839
|
-
}
|
|
840
|
-
}
|
|
841
|
-
if (nType > QRCodeLimitLength.length) {
|
|
842
|
-
throw new Error("Too long data");
|
|
843
|
-
}
|
|
844
|
-
return nType;
|
|
845
|
-
}
|
|
846
|
-
function _getUTF8Length(sText) {
|
|
847
|
-
var replacedText = encodeURI(sText).toString().replace(/\%[0-9a-fA-F]{2}/g, "a");
|
|
848
|
-
return replacedText.length + (replacedText.length != sText ? 3 : 0);
|
|
849
|
-
}
|
|
850
|
-
QRCode2 = function(el, vOption) {
|
|
851
|
-
this._htOption = {
|
|
852
|
-
width: 256,
|
|
853
|
-
height: 256,
|
|
854
|
-
typeNumber: 4,
|
|
855
|
-
colorDark: "#000000",
|
|
856
|
-
colorLight: "#ffffff",
|
|
857
|
-
correctLevel: QRErrorCorrectLevel.H
|
|
858
|
-
};
|
|
859
|
-
if (typeof vOption === "string") {
|
|
860
|
-
vOption = {
|
|
861
|
-
text: vOption
|
|
862
|
-
};
|
|
863
|
-
}
|
|
864
|
-
if (vOption) {
|
|
865
|
-
for (var i2 in vOption) {
|
|
866
|
-
this._htOption[i2] = vOption[i2];
|
|
867
|
-
}
|
|
868
|
-
}
|
|
869
|
-
if (typeof el == "string") {
|
|
870
|
-
el = document.getElementById(el);
|
|
871
|
-
}
|
|
872
|
-
if (this._htOption.useSVG) {
|
|
873
|
-
Drawing = svgDrawer;
|
|
874
|
-
}
|
|
875
|
-
this._android = _getAndroid();
|
|
876
|
-
this._el = el;
|
|
877
|
-
this._oQRCode = null;
|
|
878
|
-
this._oDrawing = new Drawing(this._el, this._htOption);
|
|
879
|
-
if (this._htOption.text) {
|
|
880
|
-
this.makeCode(this._htOption.text);
|
|
881
|
-
}
|
|
882
|
-
};
|
|
883
|
-
QRCode2.prototype.makeCode = function(sText) {
|
|
884
|
-
this._oQRCode = new QRCodeModel(_getTypeNumber(sText, this._htOption.correctLevel), this._htOption.correctLevel);
|
|
885
|
-
this._oQRCode.addData(sText);
|
|
886
|
-
this._oQRCode.make();
|
|
887
|
-
this._el.title = sText;
|
|
888
|
-
this._oDrawing.draw(this._oQRCode);
|
|
889
|
-
this.makeImage();
|
|
890
|
-
};
|
|
891
|
-
QRCode2.prototype.makeImage = function() {
|
|
892
|
-
if (typeof this._oDrawing.makeImage == "function" && (!this._android || this._android >= 3)) {
|
|
893
|
-
this._oDrawing.makeImage();
|
|
894
|
-
}
|
|
895
|
-
};
|
|
896
|
-
QRCode2.prototype.clear = function() {
|
|
897
|
-
this._oDrawing.clear();
|
|
898
|
-
};
|
|
899
|
-
QRCode2.CorrectLevel = QRErrorCorrectLevel;
|
|
900
|
-
return QRCode2;
|
|
901
|
-
});
|
|
902
|
-
})(qrcode);
|
|
903
|
-
var qrcodeExports = qrcode.exports;
|
|
904
|
-
const QRCode = /* @__PURE__ */ getDefaultExportFromCjs(qrcodeExports);
|
|
905
|
-
const _hoisted_1 = { class: "login-scan-container" };
|
|
906
|
-
const __default__ = defineComponent({
|
|
907
|
-
name: "loginScan"
|
|
908
|
-
});
|
|
909
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
910
|
-
...__default__,
|
|
911
|
-
setup(__props) {
|
|
912
|
-
const qrcodeRef = ref(null);
|
|
913
|
-
const initQrcode = () => {
|
|
914
|
-
nextTick(() => {
|
|
915
|
-
qrcodeRef.value.innerHTML = "";
|
|
916
|
-
new QRCode(qrcodeRef.value, {
|
|
917
|
-
text: `https://qm.qq.com/cgi-bin/qm/qr?k=RdUY97Vx0T0vZ_1OOu-X1yFNkWgDwbjC&jump_from=webapi`,
|
|
918
|
-
width: 260,
|
|
919
|
-
height: 260,
|
|
920
|
-
colorDark: "#000000",
|
|
921
|
-
colorLight: "#ffffff"
|
|
922
|
-
});
|
|
923
|
-
});
|
|
924
|
-
};
|
|
925
|
-
onMounted(() => {
|
|
926
|
-
initQrcode();
|
|
927
|
-
});
|
|
928
|
-
return (_ctx, _cache) => {
|
|
929
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
930
|
-
createElementVNode("div", {
|
|
931
|
-
ref_key: "qrcodeRef",
|
|
932
|
-
ref: qrcodeRef
|
|
933
|
-
}, null, 512),
|
|
934
|
-
_cache[0] || (_cache[0] = createElementVNode("div", { class: "font12 mt20 login-msg" }, [
|
|
935
|
-
createElementVNode("i", { class: "iconfont icon-saoyisao mr5" }),
|
|
936
|
-
createElementVNode("span", null, "打开手机扫一扫,快速登录/注册")
|
|
937
|
-
], -1))
|
|
938
|
-
]);
|
|
939
|
-
};
|
|
940
|
-
}
|
|
941
|
-
});
|
|
942
|
-
const scan = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-38581de4"]]);
|
|
943
|
-
export {
|
|
944
|
-
scan as default
|
|
945
|
-
};
|