@king-one/antdv 1.2.21 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +0 -132
- package/dist/es/components/collapse-transtion/hooks/use-collapse-transtion.mjs +108 -41
- package/dist/es/components/collapse-transtion/index.mjs +7 -7
- package/dist/es/components/collapse-transtion/src/collapse-transtion.vue.mjs +2 -2
- package/dist/es/components/collapse-transtion/src/collapse-transtion.vue2.mjs +24 -19
- package/dist/es/components/collapse-transtion/src/types.mjs +3 -3
- package/dist/es/components/cover-scroll-bar/hooks/use-has-scroll.mjs +25 -12
- package/dist/es/components/cover-scroll-bar/index.mjs +7 -7
- package/dist/es/components/cover-scroll-bar/src/cover-scroll-bar.mjs +198 -123
- package/dist/es/components/cover-scroll-bar/src/types.mjs +2 -2
- package/dist/es/components/form/component/form-item.vue.mjs +4 -0
- package/dist/es/components/form/component/form-item.vue2.mjs +63 -0
- package/dist/es/components/form/component/form.mjs +14 -0
- package/dist/es/components/form/component/form.vue.mjs +4 -0
- package/dist/es/components/form/component/form.vue2.mjs +26 -0
- package/dist/es/components/form/content/form-content.mjs +13 -0
- package/dist/es/components/form/index.mjs +15 -0
- package/dist/es/components/icon/index.mjs +5 -5
- package/dist/es/components/icon/src/icon.vue.mjs +2 -2
- package/dist/es/components/icon/src/icon.vue2.mjs +31 -21
- package/dist/es/components/icon/src/types.mjs +3 -3
- package/dist/es/components/index.mjs +40 -44
- package/dist/es/components/plus-upload/apis/plus-upload.api.mjs +8 -8
- package/dist/es/components/plus-upload/hook/useExtractPlusUpload.mjs +37 -28
- package/dist/es/components/plus-upload/hook/usePlusUpload.mjs +29 -18
- package/dist/es/components/plus-upload/images/pdf-icon.png.mjs +2 -2
- package/dist/es/components/plus-upload/images/word-icon.png.mjs +2 -2
- package/dist/es/components/plus-upload/images/xls-icon.png.mjs +2 -2
- package/dist/es/components/plus-upload/index.mjs +5 -5
- package/dist/es/components/plus-upload/src/plus-upload.vue.mjs +2 -2
- package/dist/es/components/plus-upload/src/plus-upload.vue2.mjs +179 -140
- package/dist/es/components/plus-upload/src/types.mjs +22 -10
- package/dist/es/components/pro-area/apis/pro-area.api.mjs +3 -3
- package/dist/es/components/pro-area/hooks/use-pro-area.mjs +9 -8
- package/dist/es/components/pro-area/index.mjs +9 -9
- package/dist/es/components/pro-area/src/ProArea.vue.mjs +2 -2
- package/dist/es/components/pro-area/src/ProArea.vue2.mjs +116 -82
- package/dist/es/components/pro-area/src/types.mjs +4 -3
- package/dist/es/components/pro-contract-view/apis/pro-contract-view.api.mjs +7 -7
- package/dist/es/components/pro-contract-view/hooks/use-contract-view.mjs +28 -22
- package/dist/es/components/pro-contract-view/index.mjs +7 -7
- package/dist/es/components/pro-contract-view/src/pro-contract-view.vue.mjs +2 -2
- package/dist/es/components/pro-contract-view/src/pro-contract-view.vue2.mjs +127 -103
- package/dist/es/components/pro-contract-view/src/types.mjs +6 -6
- package/dist/es/components/pro-loading/index.mjs +2 -2
- package/dist/es/components/pro-loading/src/pro-loading.mjs +48 -32
- package/dist/es/components/pro-modal/hooks/useProModal.mjs +38 -25
- package/dist/es/components/pro-modal/index.mjs +8 -8
- package/dist/es/components/pro-modal/src/ProModal.vue.mjs +2 -2
- package/dist/es/components/pro-modal/src/ProModal.vue2.mjs +111 -79
- package/dist/es/components/pro-modal/src/types.mjs +4 -4
- package/dist/es/components/pro-overlay/index.mjs +5 -5
- package/dist/es/components/pro-overlay/src/pro-overlay.vue.mjs +2 -2
- package/dist/es/components/pro-overlay/src/pro-overlay.vue2.mjs +36 -29
- package/dist/es/components/pro-picker/apis/pro-picker.api.mjs +6 -6
- package/dist/es/components/pro-picker/index.mjs +8 -8
- package/dist/es/components/pro-picker/src/ProPicker.vue.mjs +2 -2
- package/dist/es/components/pro-picker/src/ProPicker.vue2.mjs +90 -74
- package/dist/es/components/pro-picker/src/types.mjs +10 -4
- package/dist/es/components/pro-selector/index.mjs +4 -10
- package/dist/es/components/pro-selector/src/components/org-tree.mjs +253 -177
- package/dist/es/components/pro-selector/src/components/user.mjs +57 -55
- package/dist/es/components/pro-selector/src/hooks/index.mjs +2 -2
- package/dist/es/components/pro-selector/src/hooks/useUserSelector.mjs +4 -3
- package/dist/es/components/pro-selector/src/pro-user.mjs +188 -143
- package/dist/es/components/pro-selector/src/types.mjs +1 -42
- package/dist/es/components/pro-selector/src/utils/orgTree.mjs +80 -44
- package/dist/es/components/pro-sign/apis/pro-sign-api.mjs +13 -13
- package/dist/es/components/pro-sign/index.mjs +13 -13
- package/dist/es/components/pro-sign/src/components/add-signature.vue.mjs +2 -2
- package/dist/es/components/pro-sign/src/components/add-signature.vue2.mjs +106 -88
- package/dist/es/components/pro-sign/src/components/batch.vue.mjs +2 -2
- package/dist/es/components/pro-sign/src/components/batch.vue2.mjs +240 -193
- package/dist/es/components/pro-sign/src/components/date.vue.mjs +31 -29
- package/dist/es/components/pro-sign/src/components/date.vue2.mjs +2 -2
- package/dist/es/components/pro-sign/src/components/files.vue.mjs +65 -54
- package/dist/es/components/pro-sign/src/components/files.vue2.mjs +2 -2
- package/dist/es/components/pro-sign/src/components/info.vue.mjs +56 -50
- package/dist/es/components/pro-sign/src/components/info.vue2.mjs +2 -2
- package/dist/es/components/pro-sign/src/components/loader.vue.mjs +2 -2
- package/dist/es/components/pro-sign/src/components/loader.vue2.mjs +343 -271
- package/dist/es/components/pro-sign/src/components/middle.vue.mjs +351 -303
- package/dist/es/components/pro-sign/src/components/middle.vue2.mjs +2 -2
- package/dist/es/components/pro-sign/src/components/pro-sign.vue.mjs +2 -2
- package/dist/es/components/pro-sign/src/components/pro-sign.vue2.mjs +278 -267
- package/dist/es/components/pro-sign/src/components/seals.vue.mjs +70 -61
- package/dist/es/components/pro-sign/src/components/seals.vue2.mjs +2 -2
- package/dist/es/components/pro-sign/src/components/signature.vue.mjs +86 -76
- package/dist/es/components/pro-sign/src/components/signature.vue2.mjs +2 -2
- package/dist/es/components/pro-sign/src/components/verify.vue.mjs +2 -2
- package/dist/es/components/pro-sign/src/components/verify.vue2.mjs +178 -153
- package/dist/es/components/pro-sign/src/context/contants.mjs +5 -5
- package/dist/es/components/pro-sign/src/context/effective.mjs +28 -16
- package/dist/es/components/pro-sign/src/context/sign-context.mjs +8 -8
- package/dist/es/components/pro-sign/src/core/Heart.mjs +25 -17
- package/dist/es/components/pro-sign/src/core/LifeCycle.mjs +22 -16
- package/dist/es/components/pro-sign/src/core/create-sign.mjs +131 -99
- package/dist/es/components/pro-sign/src/core/index.mjs +4 -4
- package/dist/es/components/pro-sign/src/core/move.mjs +210 -100
- package/dist/es/components/pro-sign/src/core/utils.mjs +22 -16
- package/dist/es/components/pro-sign/src/effects/effect.enum.mjs +7 -2
- package/dist/es/components/pro-sign/src/effects/index.mjs +6 -6
- package/dist/es/components/pro-sign/src/effects/onEffects.mjs +11 -9
- package/dist/es/components/pro-sign/src/hook/useProSign.mjs +54 -44
- package/dist/es/components/pro-sign/src/hook/useScrollDetection.mjs +25 -12
- package/dist/es/components/pro-sign/src/hook/useSms.mjs +33 -21
- package/dist/es/components/pro-sign/src/plugins/index.mjs +24 -21
- package/dist/es/components/pro-sign/src/plugins/modules/befor-sign.mjs +19 -14
- package/dist/es/components/pro-sign/src/plugins/modules/drop-crevice-seal.mjs +23 -13
- package/dist/es/components/pro-sign/src/plugins/modules/drop-date.mjs +27 -15
- package/dist/es/components/pro-sign/src/plugins/modules/drop-seal.mjs +18 -12
- package/dist/es/components/pro-sign/src/plugins/modules/index.mjs +8 -8
- package/dist/es/components/pro-sign/src/types.mjs +16 -9
- package/dist/es/components/pro-signature/index.mjs +7 -7
- package/dist/es/components/pro-signature/src/ProSignature.vue.mjs +2 -2
- package/dist/es/components/pro-signature/src/ProSignature.vue2.mjs +216 -103
- package/dist/es/components/pro-signature/src/types.mjs +4 -4
- package/dist/es/components/pro-table/hooks/use-pro-table.mjs +9 -8
- package/dist/es/components/pro-table/index.mjs +7 -7
- package/dist/es/components/pro-table/src/constants.mjs +8 -6
- package/dist/es/components/pro-table/src/field/field-date-range/field-date-range.vue.mjs +2 -2
- package/dist/es/components/pro-table/src/field/field-date-range/field-date-range.vue2.mjs +22 -17
- package/dist/es/components/pro-table/src/field/field-input/field-input.vue.mjs +2 -2
- package/dist/es/components/pro-table/src/field/field-input/field-input.vue2.mjs +22 -17
- package/dist/es/components/pro-table/src/field/field-radio/field-radio.vue.mjs +2 -2
- package/dist/es/components/pro-table/src/field/field-radio/field-radio.vue2.mjs +50 -43
- package/dist/es/components/pro-table/src/field/field-select/field-select.vue.mjs +2 -2
- package/dist/es/components/pro-table/src/field/field-select/field-select.vue2.mjs +50 -43
- package/dist/es/components/pro-table/src/field/field.css +3 -1
- package/dist/es/components/pro-table/src/field/field.vue.mjs +2 -2
- package/dist/es/components/pro-table/src/field/field.vue2.mjs +127 -102
- package/dist/es/components/pro-table/src/form-render.css +3 -1
- package/dist/es/components/pro-table/src/form-render.vue.mjs +2 -2
- package/dist/es/components/pro-table/src/form-render.vue2.mjs +136 -135
- package/dist/es/components/pro-table/src/hooks/use-form.mjs +20 -17
- package/dist/es/components/pro-table/src/hooks/use-table.mjs +47 -29
- package/dist/es/components/pro-table/src/pro-table.vue.mjs +2 -2
- package/dist/es/components/pro-table/src/pro-table.vue2.mjs +170 -157
- package/dist/es/components/pro-table/utils.mjs +10 -11
- package/dist/es/components/pro-tag/index.mjs +7 -7
- package/dist/es/components/pro-tag/src/ProTag.vue.mjs +2 -2
- package/dist/es/components/pro-tag/src/ProTag.vue2.mjs +28 -19
- package/dist/es/components/pro-tag/src/types.mjs +4 -3
- package/dist/es/components/pro-title/index.mjs +7 -7
- package/dist/es/components/pro-title/src/ProTitle.vue.mjs +2 -2
- package/dist/es/components/pro-title/src/ProTitle.vue2.mjs +47 -36
- package/dist/es/components/pro-title/src/types.mjs +4 -4
- package/dist/es/components/pro-upload/index.mjs +8 -9
- package/dist/es/components/pro-upload/src/assets/images/audio-icon.png.mjs +2 -2
- package/dist/es/components/pro-upload/src/assets/images/materials-icon.png.mjs +2 -2
- package/dist/es/components/pro-upload/src/assets/images/pdf-icon.png.mjs +2 -2
- package/dist/es/components/pro-upload/src/assets/images/ppt-icon.png.mjs +2 -2
- package/dist/es/components/pro-upload/src/assets/images/video-icon.png.mjs +2 -2
- package/dist/es/components/pro-upload/src/assets/images/word-icon.png.mjs +2 -2
- package/dist/es/components/pro-upload/src/assets/images/xls-icon.png.mjs +2 -2
- package/dist/es/components/pro-upload/src/assets/images/zip-icon.png.mjs +2 -2
- package/dist/es/components/pro-upload/src/data.mjs +18 -18
- package/dist/es/components/pro-upload/src/file-list.mjs +73 -74
- package/dist/es/components/pro-upload/src/gd-upload.mjs +174 -131
- package/dist/es/components/pro-upload/src/hooks/index.mjs +4 -4
- package/dist/es/components/pro-upload/src/hooks/useHttp.mjs +8 -8
- package/dist/es/components/pro-upload/src/hooks/useUpload.mjs +66 -36
- package/dist/es/components/pro-upload/src/props.mjs +6 -6
- package/dist/es/components/pro-upload/src/types.mjs +1 -4
- package/dist/es/components/pro-upload/src/utils/index.mjs +38 -25
- package/dist/es/components/pro-user-avatar/index.mjs +5 -6
- package/dist/es/components/pro-user-avatar/src/index.vue.mjs +2 -2
- package/dist/es/components/pro-user-avatar/src/index.vue2.mjs +52 -109
- package/dist/es/components/pro-user-avatar/src/util.mjs +11 -9
- package/dist/es/components/scale-virtual-list/component/scale-virtual-list.vue.mjs +2 -2
- package/dist/es/components/scale-virtual-list/component/scale-virtual-list.vue2.mjs +83 -69
- package/dist/es/components/scale-virtual-list/hooks/useVirtualList.mjs +176 -125
- package/dist/es/components/scale-virtual-list/index.mjs +5 -5
- package/dist/es/components/scroll-bar/index.mjs +7 -7
- package/dist/es/components/scroll-bar/src/scroll-bar.mjs +390 -240
- package/dist/es/components/scroll-bar/src/types.mjs +2 -2
- package/dist/es/components/utils/install.mjs +16 -14
- package/dist/es/hooks/index.mjs +3 -5
- package/dist/es/hooks/use-namespace/index.mjs +72 -41
- package/dist/es/hooks/useProForm.mjs +42 -27
- package/dist/es/index.mjs +89 -107
- package/dist/es/installer.mjs +8 -8
- package/dist/lib/components/base/style/index.js +2 -1
- package/dist/lib/components/collapse-transtion/hooks/use-collapse-transtion.js +134 -1
- package/dist/lib/components/collapse-transtion/index.js +11 -1
- package/dist/lib/components/collapse-transtion/src/collapse-transtion.vue.js +4 -1
- package/dist/lib/components/collapse-transtion/src/collapse-transtion.vue2.js +29 -1
- package/dist/lib/components/collapse-transtion/src/types.js +9 -1
- package/dist/lib/components/collapse-transtion/style/index.js +3 -1
- package/dist/lib/components/cover-scroll-bar/hooks/use-has-scroll.js +30 -1
- package/dist/lib/components/cover-scroll-bar/index.js +10 -1
- package/dist/lib/components/cover-scroll-bar/src/cover-scroll-bar.js +221 -1
- package/dist/lib/components/cover-scroll-bar/src/types.js +17 -1
- package/dist/lib/components/cover-scroll-bar/style/index.js +3 -1
- package/dist/lib/components/form/component/form-item.vue.js +4 -0
- package/dist/lib/components/form/component/form-item.vue2.js +63 -0
- package/dist/lib/components/form/component/form.js +14 -0
- package/dist/lib/components/form/component/form.vue.js +4 -0
- package/dist/lib/components/form/component/form.vue2.js +26 -0
- package/dist/lib/components/form/content/form-content.js +13 -0
- package/dist/lib/components/form/index.js +15 -0
- package/dist/lib/components/icon/index.js +9 -1
- package/dist/lib/components/icon/src/icon.vue.js +4 -1
- package/dist/lib/components/icon/src/icon.vue2.js +36 -1
- package/dist/lib/components/icon/src/types.js +17 -1
- package/dist/lib/components/icon/style/index.js +3 -1
- package/dist/lib/components/index.js +43 -1
- package/dist/lib/components/plus-upload/apis/plus-upload.api.js +21 -1
- package/dist/lib/components/plus-upload/hook/useExtractPlusUpload.js +64 -1
- package/dist/lib/components/plus-upload/hook/usePlusUpload.js +34 -1
- package/dist/lib/components/plus-upload/images/pdf-icon.png.js +4 -1
- package/dist/lib/components/plus-upload/images/word-icon.png.js +4 -1
- package/dist/lib/components/plus-upload/images/xls-icon.png.js +4 -1
- package/dist/lib/components/plus-upload/index.js +9 -1
- package/dist/lib/components/plus-upload/src/plus-upload.vue.js +4 -1
- package/dist/lib/components/plus-upload/src/plus-upload.vue2.js +199 -1
- package/dist/lib/components/plus-upload/src/types.js +37 -1
- package/dist/lib/components/plus-upload/style/index.js +3 -1
- package/dist/lib/components/pro-area/apis/pro-area.api.js +6 -1
- package/dist/lib/components/pro-area/hooks/use-pro-area.js +12 -1
- package/dist/lib/components/pro-area/index.js +13 -1
- package/dist/lib/components/pro-area/src/ProArea.vue.js +4 -1
- package/dist/lib/components/pro-area/src/ProArea.vue2.js +135 -1
- package/dist/lib/components/pro-area/src/types.js +22 -1
- package/dist/lib/components/pro-area/style/index.js +3 -1
- package/dist/lib/components/pro-contract-view/apis/pro-contract-view.api.js +10 -1
- package/dist/lib/components/pro-contract-view/hooks/use-contract-view.js +45 -1
- package/dist/lib/components/pro-contract-view/index.js +11 -1
- package/dist/lib/components/pro-contract-view/src/pro-contract-view.vue.js +4 -1
- package/dist/lib/components/pro-contract-view/src/pro-contract-view.vue2.js +152 -1
- package/dist/lib/components/pro-contract-view/src/types.js +24 -1
- package/dist/lib/components/pro-contract-view/style/index.js +3 -1
- package/dist/lib/components/pro-loading/index.js +5 -1
- package/dist/lib/components/pro-loading/src/pro-loading.js +76 -1
- package/dist/lib/components/pro-modal/hooks/useProModal.js +47 -1
- package/dist/lib/components/pro-modal/index.js +12 -1
- package/dist/lib/components/pro-modal/src/ProModal.vue.js +4 -1
- package/dist/lib/components/pro-modal/src/ProModal.vue2.js +122 -1
- package/dist/lib/components/pro-modal/src/types.js +16 -1
- package/dist/lib/components/pro-modal/style/index.js +3 -1
- package/dist/lib/components/pro-overlay/index.js +9 -1
- package/dist/lib/components/pro-overlay/src/pro-overlay.vue.js +4 -1
- package/dist/lib/components/pro-overlay/src/pro-overlay.vue2.js +41 -1
- package/dist/lib/components/pro-overlay/style/index.js +3 -1
- package/dist/lib/components/pro-picker/apis/pro-picker.api.js +9 -1
- package/dist/lib/components/pro-picker/index.js +11 -1
- package/dist/lib/components/pro-picker/src/ProPicker.vue.js +4 -1
- package/dist/lib/components/pro-picker/src/ProPicker.vue2.js +106 -1
- package/dist/lib/components/pro-picker/src/types.js +28 -1
- package/dist/lib/components/pro-selector/index.js +8 -1
- package/dist/lib/components/pro-selector/src/components/org-tree.js +304 -1
- package/dist/lib/components/pro-selector/src/components/user.js +92 -1
- package/dist/lib/components/pro-selector/src/hooks/index.js +4 -1
- package/dist/lib/components/pro-selector/src/hooks/useUserSelector.js +9 -1
- package/dist/lib/components/pro-selector/src/pro-user.js +210 -1
- package/dist/lib/components/pro-selector/src/types.js +1 -1
- package/dist/lib/components/pro-selector/src/utils/orgTree.js +93 -1
- package/dist/lib/components/pro-selector/style/index.js +3 -1
- package/dist/lib/components/pro-sign/apis/pro-sign-api.js +19 -1
- package/dist/lib/components/pro-sign/index.js +17 -1
- package/dist/lib/components/pro-sign/src/components/add-signature.vue.js +4 -1
- package/dist/lib/components/pro-sign/src/components/add-signature.vue2.js +129 -1
- package/dist/lib/components/pro-sign/src/components/batch.vue.js +4 -1
- package/dist/lib/components/pro-sign/src/components/batch.vue2.js +342 -1
- package/dist/lib/components/pro-sign/src/components/date.vue.js +49 -1
- package/dist/lib/components/pro-sign/src/components/date.vue2.js +4 -1
- package/dist/lib/components/pro-sign/src/components/files.vue.js +74 -1
- package/dist/lib/components/pro-sign/src/components/files.vue2.js +4 -1
- package/dist/lib/components/pro-sign/src/components/index.js +11 -1
- package/dist/lib/components/pro-sign/src/components/info.vue.js +61 -1
- package/dist/lib/components/pro-sign/src/components/info.vue2.js +4 -1
- package/dist/lib/components/pro-sign/src/components/loader.vue.js +4 -1
- package/dist/lib/components/pro-sign/src/components/loader.vue2.js +405 -3
- package/dist/lib/components/pro-sign/src/components/middle.vue.js +411 -1
- package/dist/lib/components/pro-sign/src/components/middle.vue2.js +4 -1
- package/dist/lib/components/pro-sign/src/components/pro-sign.vue.js +4 -1
- package/dist/lib/components/pro-sign/src/components/pro-sign.vue2.js +286 -1
- package/dist/lib/components/pro-sign/src/components/seals.vue.js +76 -1
- package/dist/lib/components/pro-sign/src/components/seals.vue2.js +4 -1
- package/dist/lib/components/pro-sign/src/components/signature.vue.js +106 -1
- package/dist/lib/components/pro-sign/src/components/signature.vue2.js +4 -1
- package/dist/lib/components/pro-sign/src/components/verify.vue.js +4 -1
- package/dist/lib/components/pro-sign/src/components/verify.vue2.js +205 -1
- package/dist/lib/components/pro-sign/src/context/contants.js +10 -1
- package/dist/lib/components/pro-sign/src/context/effective.js +36 -1
- package/dist/lib/components/pro-sign/src/context/sign-context.js +12 -1
- package/dist/lib/components/pro-sign/src/core/Heart.js +31 -1
- package/dist/lib/components/pro-sign/src/core/LifeCycle.js +30 -1
- package/dist/lib/components/pro-sign/src/core/create-sign.js +226 -1
- package/dist/lib/components/pro-sign/src/core/index.js +7 -1
- package/dist/lib/components/pro-sign/src/core/move.js +287 -1
- package/dist/lib/components/pro-sign/src/core/utils.js +30 -1
- package/dist/lib/components/pro-sign/src/effects/effect.enum.js +9 -1
- package/dist/lib/components/pro-sign/src/effects/index.js +8 -1
- package/dist/lib/components/pro-sign/src/effects/onEffects.js +15 -1
- package/dist/lib/components/pro-sign/src/hook/useProSign.js +60 -1
- package/dist/lib/components/pro-sign/src/hook/useScrollDetection.js +30 -1
- package/dist/lib/components/pro-sign/src/hook/useSms.js +39 -1
- package/dist/lib/components/pro-sign/src/plugins/index.js +38 -1
- package/dist/lib/components/pro-sign/src/plugins/modules/befor-sign.js +26 -1
- package/dist/lib/components/pro-sign/src/plugins/modules/drop-crevice-seal.js +31 -1
- package/dist/lib/components/pro-sign/src/plugins/modules/drop-date.js +34 -1
- package/dist/lib/components/pro-sign/src/plugins/modules/drop-seal.js +26 -1
- package/dist/lib/components/pro-sign/src/plugins/modules/index.js +10 -1
- package/dist/lib/components/pro-sign/src/types.js +32 -1
- package/dist/lib/components/pro-sign/style/index.js +3 -1
- package/dist/lib/components/pro-signature/index.js +10 -1
- package/dist/lib/components/pro-signature/src/ProSignature.vue.js +4 -1
- package/dist/lib/components/pro-signature/src/ProSignature.vue2.js +258 -1
- package/dist/lib/components/pro-signature/src/types.js +40 -1
- package/dist/lib/components/pro-table/hooks/use-pro-table.js +12 -1
- package/dist/lib/components/pro-table/index.js +12 -1
- package/dist/lib/components/pro-table/src/constants.js +25 -1
- package/dist/lib/components/pro-table/src/field/field-date-range/field-date-range.vue.js +4 -1
- package/dist/lib/components/pro-table/src/field/field-date-range/field-date-range.vue2.js +31 -1
- package/dist/lib/components/pro-table/src/field/field-input/field-input.vue.js +4 -1
- package/dist/lib/components/pro-table/src/field/field-input/field-input.vue2.js +31 -1
- package/dist/lib/components/pro-table/src/field/field-radio/field-radio.vue.js +4 -1
- package/dist/lib/components/pro-table/src/field/field-radio/field-radio.vue2.js +59 -1
- package/dist/lib/components/pro-table/src/field/field-select/field-select.vue.js +4 -1
- package/dist/lib/components/pro-table/src/field/field-select/field-select.vue2.js +59 -1
- package/dist/lib/components/pro-table/src/field/field.css +3 -1
- package/dist/lib/components/pro-table/src/field/field.vue.js +5 -1
- package/dist/lib/components/pro-table/src/field/field.vue2.js +149 -1
- package/dist/lib/components/pro-table/src/form-render.css +3 -1
- package/dist/lib/components/pro-table/src/form-render.vue.js +5 -1
- package/dist/lib/components/pro-table/src/form-render.vue2.js +166 -1
- package/dist/lib/components/pro-table/src/hooks/use-form.js +25 -1
- package/dist/lib/components/pro-table/src/hooks/use-table.js +57 -1
- package/dist/lib/components/pro-table/src/pro-table.vue.js +4 -1
- package/dist/lib/components/pro-table/src/pro-table.vue2.js +203 -1
- package/dist/lib/components/pro-table/style/index.js +3 -1
- package/dist/lib/components/pro-table/utils.js +15 -1
- package/dist/lib/components/pro-tag/index.js +10 -1
- package/dist/lib/components/pro-tag/src/ProTag.vue.js +4 -1
- package/dist/lib/components/pro-tag/src/ProTag.vue2.js +46 -1
- package/dist/lib/components/pro-tag/src/types.js +10 -1
- package/dist/lib/components/pro-title/index.js +11 -1
- package/dist/lib/components/pro-title/src/ProTitle.vue.js +4 -1
- package/dist/lib/components/pro-title/src/ProTitle.vue2.js +52 -1
- package/dist/lib/components/pro-title/src/types.js +21 -1
- package/dist/lib/components/pro-title/style/index.js +3 -1
- package/dist/lib/components/pro-upload/index.js +11 -1
- package/dist/lib/components/pro-upload/src/assets/images/audio-icon.png.js +4 -1
- package/dist/lib/components/pro-upload/src/assets/images/materials-icon.png.js +4 -1
- package/dist/lib/components/pro-upload/src/assets/images/pdf-icon.png.js +4 -1
- package/dist/lib/components/pro-upload/src/assets/images/ppt-icon.png.js +4 -1
- package/dist/lib/components/pro-upload/src/assets/images/video-icon.png.js +4 -1
- package/dist/lib/components/pro-upload/src/assets/images/word-icon.png.js +4 -1
- package/dist/lib/components/pro-upload/src/assets/images/xls-icon.png.js +4 -1
- package/dist/lib/components/pro-upload/src/assets/images/zip-icon.png.js +4 -1
- package/dist/lib/components/pro-upload/src/data.js +49 -1
- package/dist/lib/components/pro-upload/src/file-list.js +161 -1
- package/dist/lib/components/pro-upload/src/gd-upload.js +222 -1
- package/dist/lib/components/pro-upload/src/hooks/index.js +6 -1
- package/dist/lib/components/pro-upload/src/hooks/useHttp.js +23 -1
- package/dist/lib/components/pro-upload/src/hooks/useUpload.js +85 -1
- package/dist/lib/components/pro-upload/src/props.js +54 -1
- package/dist/lib/components/pro-upload/src/types.js +1 -1
- package/dist/lib/components/pro-upload/src/utils/index.js +46 -1
- package/dist/lib/components/pro-upload/style/index.js +3 -1
- package/dist/lib/components/pro-user-avatar/index.js +10 -1
- package/dist/lib/components/pro-user-avatar/src/index.vue.js +4 -1
- package/dist/lib/components/pro-user-avatar/src/index.vue2.js +69 -1
- package/dist/lib/components/pro-user-avatar/src/style/index.js +3 -1
- package/dist/lib/components/pro-user-avatar/src/util.js +28 -1
- package/dist/lib/components/scale-virtual-list/component/scale-virtual-list.vue.js +4 -1
- package/dist/lib/components/scale-virtual-list/component/scale-virtual-list.vue2.js +93 -1
- package/dist/lib/components/scale-virtual-list/hooks/useVirtualList.js +220 -1
- package/dist/lib/components/scale-virtual-list/index.js +10 -1
- package/dist/lib/components/scale-virtual-list/style/index.js +3 -1
- package/dist/lib/components/scroll-bar/index.js +10 -1
- package/dist/lib/components/scroll-bar/src/scroll-bar.js +424 -1
- package/dist/lib/components/scroll-bar/src/types.js +13 -1
- package/dist/lib/components/scroll-bar/style/index.js +3 -1
- package/dist/lib/components/utils/install.js +23 -1
- package/dist/lib/hooks/index.js +5 -1
- package/dist/lib/hooks/use-namespace/index.js +80 -1
- package/dist/lib/hooks/useProForm.js +50 -1
- package/dist/lib/index.js +93 -1
- package/dist/lib/installer.js +13 -1
- package/dist/theme-chalk/fonts/iconfont.ttf +0 -0
- package/dist/theme-chalk/fonts/iconfont.woff +0 -0
- package/dist/theme-chalk/fonts/iconfont.woff2 +0 -0
- package/dist/theme-chalk/icon.css +1 -1
- package/dist/theme-chalk/index.css +1 -1
- package/dist/theme-chalk/pro-table.css +1 -1
- package/dist/theme-chalk/pro-user-avatar.css +1 -1
- package/dist/types/components/index.d.ts +1 -2
- package/dist/types/components/pro-selector/index.d.ts +0 -93
- package/dist/types/components/pro-selector/src/components/org-tree.d.ts +19 -1
- package/dist/types/components/pro-selector/src/pro-user.d.ts +44 -62
- package/dist/types/components/pro-selector/src/types.d.ts +0 -46
- package/dist/types/components/pro-upload/src/types.d.ts +0 -4
- package/dist/types/components/pro-user-avatar/index.d.ts +4 -94
- package/dist/types/components/pro-user-avatar/src/index.vue.d.ts +1 -13
- package/dist/types/components/pro-user-avatar/src/types.d.ts +2 -38
- package/dist/types/components/scroll-bar/index.d.ts +1 -1
- package/dist/types/components/scroll-bar/src/scroll-bar.d.ts +1 -1
- package/dist/types/hooks/index.d.ts +0 -1
- package/global.d.ts +0 -4
- package/package.json +9 -6
- package/dist/es/components/dept-selector/index.mjs +0 -12
- package/dist/es/components/dept-selector/src/dept.mjs +0 -267
- package/dist/es/components/dept-selector/src/style/index.mjs +0 -2
- package/dist/es/components/dept-selector/src/types.mjs +0 -51
- package/dist/es/components/pro-user-avatar/src/load-error.png.mjs +0 -4
- package/dist/es/components/role-selector/index.mjs +0 -13
- package/dist/es/components/role-selector/src/role.mjs +0 -208
- package/dist/es/components/role-selector/src/style/index.mjs +0 -2
- package/dist/es/components/role-selector/src/types.mjs +0 -43
- package/dist/es/hooks/useModelValue.mjs +0 -15
- package/dist/lib/components/dept-selector/index.js +0 -1
- package/dist/lib/components/dept-selector/src/dept.js +0 -1
- package/dist/lib/components/dept-selector/src/style/index.js +0 -1
- package/dist/lib/components/dept-selector/src/types.js +0 -1
- package/dist/lib/components/pro-user-avatar/src/load-error.png.js +0 -1
- package/dist/lib/components/role-selector/index.js +0 -1
- package/dist/lib/components/role-selector/src/role.js +0 -1
- package/dist/lib/components/role-selector/src/style/index.js +0 -1
- package/dist/lib/components/role-selector/src/types.js +0 -1
- package/dist/lib/hooks/useModelValue.js +0 -1
- package/dist/theme-chalk/dept-selector.css +0 -1
- package/dist/theme-chalk/pro-tag-group.css +0 -1
- package/dist/theme-chalk/role-selector.css +0 -1
- package/dist/types/components/dept-selector/index.d.ts +0 -94
- package/dist/types/components/dept-selector/src/dept.d.ts +0 -92
- package/dist/types/components/dept-selector/src/types.d.ts +0 -65
- package/dist/types/components/pro-tag-group/index.d.ts +0 -63
- package/dist/types/components/pro-tag-group/src/ProTagGroup.vue.d.ts +0 -61
- package/dist/types/components/pro-tag-group/src/types.d.ts +0 -21
- package/dist/types/components/role-selector/index.d.ts +0 -125
- package/dist/types/components/role-selector/src/role.d.ts +0 -63
- package/dist/types/components/role-selector/src/types.d.ts +0 -46
- package/dist/types/hooks/useModelValue.d.ts +0 -4
|
@@ -1,208 +0,0 @@
|
|
|
1
|
-
import { isVNode as x, defineComponent as O, ref as d, watch as f, createVNode as l } from "vue";
|
|
2
|
-
import { useNamespace as j } from "../../../hooks/use-namespace/index.mjs";
|
|
3
|
-
import "../../index.mjs";
|
|
4
|
-
import { message as R, FormItemRest as D, InputSearch as M, Empty as m, RadioGroup as T, Radio as G, CheckboxGroup as L, Checkbox as F, Input as z } from "ant-design-vue";
|
|
5
|
-
import { GTE_OPTIONS_URL as B, roleSelectorEmits as K, roleSelectorProps as q } from "./types.mjs";
|
|
6
|
-
import { KIcon as h } from "../../icon/index.mjs";
|
|
7
|
-
import { KProModal as $ } from "../../pro-modal/index.mjs";
|
|
8
|
-
function g(t) {
|
|
9
|
-
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !x(t);
|
|
10
|
-
}
|
|
11
|
-
const i = j("role-selector"), ee = /* @__PURE__ */ O({
|
|
12
|
-
name: "KRoleSelector",
|
|
13
|
-
props: q,
|
|
14
|
-
emits: K,
|
|
15
|
-
setup(t, {
|
|
16
|
-
emit: s,
|
|
17
|
-
attrs: w,
|
|
18
|
-
slots: y
|
|
19
|
-
}) {
|
|
20
|
-
const u = d([]), b = d(""), n = d([]), r = d([]), v = d(""), c = d(!1);
|
|
21
|
-
if (t.isBuiltInRequest) {
|
|
22
|
-
if (!t.http)
|
|
23
|
-
throw new Error("请传入http实例");
|
|
24
|
-
t.http.get(`${t.prefix}/${B}`).then((e) => {
|
|
25
|
-
console.log(e), e.status === 0 && (n.value = e.data.list.map((a) => ({
|
|
26
|
-
label: a.roleName,
|
|
27
|
-
value: a.id
|
|
28
|
-
})));
|
|
29
|
-
}).catch((e) => {
|
|
30
|
-
console.log(e);
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
const E = () => {
|
|
34
|
-
if (!c.value) {
|
|
35
|
-
v.value = "";
|
|
36
|
-
const e = [];
|
|
37
|
-
t.options.forEach((a) => {
|
|
38
|
-
Array.isArray(u.value) ? u.value.includes(a.value) && e.push(a.label) : u.value === a.value && e.push(a.label);
|
|
39
|
-
}), v.value = e.join(",");
|
|
40
|
-
}
|
|
41
|
-
}, S = () => {
|
|
42
|
-
const e = [];
|
|
43
|
-
if (Array.isArray(u.value))
|
|
44
|
-
u.value.forEach((a) => {
|
|
45
|
-
const o = n.value.find((P) => P.value === a);
|
|
46
|
-
o && e.push(o);
|
|
47
|
-
});
|
|
48
|
-
else {
|
|
49
|
-
const a = n.value.find((o) => o.value === u.value);
|
|
50
|
-
a && e.push(a);
|
|
51
|
-
}
|
|
52
|
-
r.value = e;
|
|
53
|
-
}, C = () => {
|
|
54
|
-
Array.isArray(t.modelValue) ? u.value = t.modelValue.map((e) => e.value) : u.value = t.modelValue.value;
|
|
55
|
-
};
|
|
56
|
-
f(() => t.visible, (e) => {
|
|
57
|
-
C();
|
|
58
|
-
}), f(() => t.modelValue, (e) => {
|
|
59
|
-
c.value ? c.value = !1 : (C(), E());
|
|
60
|
-
}, {
|
|
61
|
-
deep: !0,
|
|
62
|
-
immediate: !0
|
|
63
|
-
}), f(() => t.options, (e) => {
|
|
64
|
-
t.isBuiltInRequest || (n.value = e || [], E(), S());
|
|
65
|
-
}, {
|
|
66
|
-
deep: !0,
|
|
67
|
-
immediate: !0
|
|
68
|
-
}), f(u, () => {
|
|
69
|
-
S();
|
|
70
|
-
}, {
|
|
71
|
-
deep: !0,
|
|
72
|
-
immediate: !0
|
|
73
|
-
});
|
|
74
|
-
const A = (e) => {
|
|
75
|
-
e ? n.value = n.value.filter((a) => {
|
|
76
|
-
var o;
|
|
77
|
-
return (o = a.label) == null ? void 0 : o.includes(e);
|
|
78
|
-
}) : n.value = [...t.options];
|
|
79
|
-
}, k = () => {
|
|
80
|
-
s("update:visible", !1);
|
|
81
|
-
}, V = () => {
|
|
82
|
-
var e;
|
|
83
|
-
if (t.type === "radio" && !u.value) {
|
|
84
|
-
R.warn("请选择角色");
|
|
85
|
-
return;
|
|
86
|
-
}
|
|
87
|
-
if (Array.isArray(u.value) && u.value.length === 0) {
|
|
88
|
-
R.warn("请选择角色");
|
|
89
|
-
return;
|
|
90
|
-
}
|
|
91
|
-
Array.isArray(u.value) ? (v.value = r.value.map((a) => a.label).join(","), s("update:modelValue", r.value)) : (v.value = ((e = r.value[0]) == null ? void 0 : e.label) || "", s("update:modelValue", r.value[0])), c.value = !0, s("update:visible", !1);
|
|
92
|
-
}, I = (e) => {
|
|
93
|
-
Array.isArray(u.value) ? u.value = u.value.filter((a) => a !== e.value) : u.value = "";
|
|
94
|
-
}, p = (e, a) => l("div", {
|
|
95
|
-
class: [i.e("role-item"), a && i.is("active")]
|
|
96
|
-
}, [l("div", {
|
|
97
|
-
class: i.e("role-item-label")
|
|
98
|
-
}, [l(h, {
|
|
99
|
-
name: "a-jiaoseguanli2",
|
|
100
|
-
size: 18,
|
|
101
|
-
color: "#606266"
|
|
102
|
-
}, null), l("span", {
|
|
103
|
-
class: i.e("label")
|
|
104
|
-
}, [e.label], 2)], 2), l("div", {
|
|
105
|
-
class: i.e("role-item-del"),
|
|
106
|
-
onClick: () => I(e)
|
|
107
|
-
}, [a && l(h, {
|
|
108
|
-
name: "shanchu",
|
|
109
|
-
size: 18,
|
|
110
|
-
color: "#606266"
|
|
111
|
-
}, null)], 10, ["onClick"])], 2), _ = () => l("div", {
|
|
112
|
-
class: i.b("left")
|
|
113
|
-
}, [l(D, null, {
|
|
114
|
-
default: () => [l(M, {
|
|
115
|
-
allowClear: !0,
|
|
116
|
-
placeholder: "请输入角色名称",
|
|
117
|
-
value: b.value,
|
|
118
|
-
"onUpdate:value": (e) => b.value = e,
|
|
119
|
-
onSearch: A
|
|
120
|
-
}, null, 8, ["allowClear", "value", "onUpdate:value", "onSearch"])]
|
|
121
|
-
}), l("div", {
|
|
122
|
-
class: i.e("role-list")
|
|
123
|
-
}, [n.value.length === 0 && l(m, {
|
|
124
|
-
description: "暂无数据",
|
|
125
|
-
image: m.PRESENTED_IMAGE_SIMPLE
|
|
126
|
-
}, null, 8, ["image"]), t.type === "radio" ? l(T, {
|
|
127
|
-
value: u.value,
|
|
128
|
-
"onUpdate:value": (e) => u.value = e
|
|
129
|
-
}, {
|
|
130
|
-
default: () => [l("div", {
|
|
131
|
-
style: "width: 100%;"
|
|
132
|
-
}, [n.value.map((e, a) => {
|
|
133
|
-
let o;
|
|
134
|
-
return l("div", {
|
|
135
|
-
key: a
|
|
136
|
-
}, [l(G, {
|
|
137
|
-
value: e.value
|
|
138
|
-
}, g(o = p(e)) ? o : {
|
|
139
|
-
default: () => [o],
|
|
140
|
-
_: 1
|
|
141
|
-
}, 8, ["value"])]);
|
|
142
|
-
})])]
|
|
143
|
-
}, 8, ["value", "onUpdate:value"]) : l(L, {
|
|
144
|
-
value: u.value,
|
|
145
|
-
"onUpdate:value": (e) => u.value = e
|
|
146
|
-
}, {
|
|
147
|
-
default: () => [l("div", {
|
|
148
|
-
style: "width: 100%;"
|
|
149
|
-
}, [n.value.map((e, a) => {
|
|
150
|
-
let o;
|
|
151
|
-
return l("div", {
|
|
152
|
-
key: a
|
|
153
|
-
}, [l(F, {
|
|
154
|
-
value: e.value
|
|
155
|
-
}, g(o = p(e)) ? o : {
|
|
156
|
-
default: () => [o],
|
|
157
|
-
_: 1
|
|
158
|
-
}, 8, ["value"])]);
|
|
159
|
-
})])]
|
|
160
|
-
}, 8, ["value", "onUpdate:value"])], 2)], 2), U = () => l("div", {
|
|
161
|
-
class: i.b("right")
|
|
162
|
-
}, [r.value.map((e, a) => l("div", {
|
|
163
|
-
key: a
|
|
164
|
-
}, [p(e, !0)])), r.value.length === 0 && l(m, {
|
|
165
|
-
description: "暂无数据",
|
|
166
|
-
image: m.PRESENTED_IMAGE_SIMPLE
|
|
167
|
-
}, null, 8, ["image"])], 2), N = () => l("div", null, [l($, {
|
|
168
|
-
modelValue: t.visible,
|
|
169
|
-
title: "选择角色",
|
|
170
|
-
modalProps: {
|
|
171
|
-
cancelText: "取消",
|
|
172
|
-
okText: "确定",
|
|
173
|
-
width: "700px",
|
|
174
|
-
...w
|
|
175
|
-
},
|
|
176
|
-
onOnCancel: () => k(),
|
|
177
|
-
onOnConfirm: () => V()
|
|
178
|
-
}, {
|
|
179
|
-
default: () => [l("div", {
|
|
180
|
-
class: i.b("modal")
|
|
181
|
-
}, [_(), U()], 2)]
|
|
182
|
-
}, 8, ["modelValue", "modalProps", "onOnCancel", "onOnConfirm"])]);
|
|
183
|
-
return () => l("div", {
|
|
184
|
-
class: i.b()
|
|
185
|
-
}, [y.default ? y.default() : l(z, {
|
|
186
|
-
style: "width: 100%;",
|
|
187
|
-
readonly: !0,
|
|
188
|
-
value: v.value,
|
|
189
|
-
"onUpdate:value": (e) => v.value = e,
|
|
190
|
-
onClick: () => s("update:visible", !0)
|
|
191
|
-
}, {
|
|
192
|
-
suffix: () => l("div", {
|
|
193
|
-
onClick: () => s("update:visible", !0)
|
|
194
|
-
}, [l(h, {
|
|
195
|
-
style: {
|
|
196
|
-
cursor: "pointer"
|
|
197
|
-
},
|
|
198
|
-
name: "a-jiaoseguanli2",
|
|
199
|
-
size: 18,
|
|
200
|
-
color: "#606266"
|
|
201
|
-
}, null)], 8, ["onClick"]),
|
|
202
|
-
_: 1
|
|
203
|
-
}, 8, ["readonly", "value", "onUpdate:value", "onClick"]), N()], 2);
|
|
204
|
-
}
|
|
205
|
-
});
|
|
206
|
-
export {
|
|
207
|
-
ee as default
|
|
208
|
-
};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
const t = {
|
|
2
|
-
visible: Boolean,
|
|
3
|
-
modelValue: {
|
|
4
|
-
type: [Array, Object],
|
|
5
|
-
default: () => []
|
|
6
|
-
},
|
|
7
|
-
type: {
|
|
8
|
-
type: String,
|
|
9
|
-
default: "checkbox"
|
|
10
|
-
},
|
|
11
|
-
options: {
|
|
12
|
-
type: Array,
|
|
13
|
-
default: () => []
|
|
14
|
-
},
|
|
15
|
-
/**
|
|
16
|
-
* 是否使用内置请求,内置请求会走用户中心即
|
|
17
|
-
* ${prefix}security/company/role/page?pageNum=1&pageSize=1000
|
|
18
|
-
*/
|
|
19
|
-
isBuiltInRequest: {
|
|
20
|
-
type: Boolean,
|
|
21
|
-
default: !1
|
|
22
|
-
},
|
|
23
|
-
/**
|
|
24
|
-
* axios 实例
|
|
25
|
-
*/
|
|
26
|
-
http: {
|
|
27
|
-
type: [Object, Function],
|
|
28
|
-
default: () => {
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
/**
|
|
32
|
-
* 请求前缀,如 qy-user-service
|
|
33
|
-
*/
|
|
34
|
-
prefix: String
|
|
35
|
-
}, l = "/security/company/role/page?pageNum=1&pageSize=1000", o = {
|
|
36
|
-
"update:visible": (e) => !0,
|
|
37
|
-
"update:modelValue": (e) => !0
|
|
38
|
-
};
|
|
39
|
-
export {
|
|
40
|
-
l as GTE_OPTIONS_URL,
|
|
41
|
-
o as roleSelectorEmits,
|
|
42
|
-
t as roleSelectorProps
|
|
43
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ref as a, watch as r } from "vue";
|
|
2
|
-
function u(o, l) {
|
|
3
|
-
const e = a(!1);
|
|
4
|
-
return r(() => o, (t) => {
|
|
5
|
-
e.value ? (console.log("内部更新"), e.value = !1) : (console.log("外部更新"), l && l(t));
|
|
6
|
-
}, {
|
|
7
|
-
deep: !0,
|
|
8
|
-
immediate: !0
|
|
9
|
-
}), {
|
|
10
|
-
isInternalUpdate: e
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
export {
|
|
14
|
-
u as useModelValue
|
|
15
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("../utils/install.js"),l=require("./src/dept.js");require("./src/style/index.js");const e=require("./src/types.js"),t=r.withInstall(l.default);exports.GET_DEPT_TREE_URL=e.GET_DEPT_TREE_URL;exports.deptSelectorEmits=e.deptSelectorEmits;exports.deptSelectorProps=e.deptSelectorProps;exports.KDeptSelector=t;exports.default=t;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),j=require("../../../hooks/use-namespace/index.js");require("../../index.js");const v=require("ant-design-vue"),C=require("./types.js"),H=require("../../pro-modal/index.js"),I=require("../../icon/index.js"),f=j.useNamespace("dept-selector"),J=t.defineComponent({name:"KDeptSelector",props:C.deptSelectorProps,emits:C.deptSelectorEmits,setup(a,{emit:m,attrs:q,slots:N}){const g=t.ref(!0),b=t.ref(!0),y=t.ref([]),h=t.ref([]),i=t.ref([]),T=t.ref(!1),u=t.ref(a.isBuiltInRequest?{children:"children",title:"deptName",key:"id"}:a.fieldNames),E=t.ref(""),o=t.ref([]),s=t.ref(a.treeData),p=t.ref(!1),k=t.ref("");if(a.isBuiltInRequest){if(!a.http)throw new Error("请传入http实例");a.http.get(`${a.prefix}${C.GET_DEPT_TREE_URL}`).then(e=>{e.status===0&&(s.value=e.data)})}const K=()=>{if(a.type==="checkbox"){if(!Array.isArray(a.modelValue))return;const e=a.modelValue.map(l=>l[u.value.key]);g.value?i.value={checked:e,halfChecked:[]}:i.value=e,y.value=e}else{if(Array.isArray(a.modelValue))return;const e=a.modelValue[u.value.key];h.value=[e],y.value=[e]}},S=e=>{if(p.value)return p.value=!1;a.type==="radio"?o.value.length>0&&(E.value=o.value[0][u.value.title]||""):E.value=o.value.map(l=>l[u.value.title]).join(",")};t.watch(()=>a.visible,()=>{a.visible&&K()},{immediate:!0}),t.watch(()=>a.modelValue,()=>{s.value.length>0&&K()},{immediate:!0,deep:!0}),t.watch(s,()=>{s.value.length>0&&K()},{immediate:!0,deep:!0});function _(e){const l=(c,d)=>{for(const n of c){if(n[u.value.key]===d)return n;if(n.children&&n.children.length){const r=l(n.children,d);if(r)return r}}return null};return l(s.value,e)}function w(e){return e?e.map(l=>_(l)).filter(Boolean):[]}t.watch(i,()=>{a.type==="checkbox"&&(g.value?o.value=w(i.value.checked):o.value=w(i.value),S("watch checkedKeys..."))},{immediate:!0,deep:!0}),t.watch(h,()=>{a.type==="radio"&&(o.value=w(h.value),S("watch selectedKeys..."))},{immediate:!0,deep:!0}),t.watch(()=>a.treeData,()=>{a.isBuiltInRequest||(s.value=a.treeData)});const U=()=>{p.value=!0},A=()=>{p.value=!0},R=()=>{m("update:visible",!1)},M=()=>{if(!o.value.length){v.message.warn("请选择部门");return}a.type==="radio"?m("update:modelValue",{[u.value.key]:h.value[0],[u.value.title]:o.value[0][u.value.title]}):m("update:modelValue",o.value.map(e=>({[u.value.key]:e[u.value.key],[u.value.title]:e[u.value.title]}))),m("update:visible",!1),S("handleConfirm ...")},O=e=>{if(p.value=!0,a.type==="radio")return o.value=[],h.value=[],!1;if(g.value)i.value.checked=i.value.checked.filter(l=>l!==e[u.value.key]);else{const l=e.parentId,c=i.value.indexOf(l);c!==-1&&i.value.splice(c,1),i.value=i.value.filter(n=>n!==e[u.value.key]),B(e.children).forEach(n=>{const r=i.value.indexOf(n);r!==-1&&i.value.splice(r,1)})}},B=e=>{const l=[],c=d=>{for(const n of d)l.push(n[u.value.key]),n.children&&n.children.length&&c(n.children)};return c(e),l},F=()=>t.createVNode(t.Fragment,null,[t.createVNode(H.KProModal,{modelValue:a.visible,modalProps:{cancelText:"取消",okText:"确定",width:"700px",...q},title:"选择部门",onOnCancel:R,onOnConfirm:M},{default:()=>[t.createVNode("div",{class:f.e("modal-content")},[z(),G()],2)]},8,["modelValue","modalProps","onOnCancel","onOnConfirm"])]),V=(e,l)=>{let c;for(let d=0;d<l.length;d++){const n=l[d];if(n.children)if(n.children.some(r=>r[u.value.key]===e)){c=n[u.value.key];break}else V(e,n.children)&&(c=V(e,n.children))}return c},L=e=>{if(!e.trim()){y.value=[],k.value="",b.value=!0;return}const l=new Set,c=(d,n)=>{d.forEach(r=>{var P;if((P=r[u.value.title])!=null&&P.includes(n)){let x=V(r[u.value.key],s.value);for(;x;)l.add(x),x=V(x,s.value);l.add(r[u.value.key])}r.children&&r.children.length>0&&c(r.children,n)})};c(s.value,e),y.value=Array.from(l),k.value=e,b.value=!0},$=e=>{const l=e[u.value.title]||"";if(!k.value)return t.createVNode("span",null,[l]);const c=l.indexOf(k.value);if(c===-1)return t.createVNode("span",null,[l]);const d=l.substring(0,c),n=l.substring(c,c+k.value.length),r=l.substring(c+k.value.length);return t.createVNode("span",null,[d,t.createVNode("span",{style:"color: #f50; font-weight: bold"},[n]),r])},z=()=>t.createVNode("div",{class:f.e("modal-content-left")},[t.createVNode(v.FormItemRest,null,{default:()=>[t.createVNode(v.InputSearch,{placeholder:"请输入部门名称",onSearch:L,style:{marginBottom:"10px"},allowClear:!0},null,8,["onSearch","allowClear"])]}),s.value.length>0?t.createVNode(v.Tree,{expandedKeys:y.value,"onUpdate:expandedKeys":e=>y.value=e,selectedKeys:h.value,"onUpdate:selectedKeys":e=>h.value=e,checkedKeys:i.value,"onUpdate:checkedKeys":e=>i.value=e,checkable:a.type==="checkbox",checkStrictly:g.value,"show-icon":!0,autoExpandParent:b.value,blockNode:!0,defaultExpandAll:!0,fieldNames:u.value,"show-line":T.value,"tree-data":s.value,onCheck:U,onSelect:A,class:f.e("modal-content-left-tree")},{icon:e=>D(e),title:$,_:1},8,["expandedKeys","onUpdate:expandedKeys","selectedKeys","onUpdate:selectedKeys","checkedKeys","onUpdate:checkedKeys","checkable","checkStrictly","show-icon","autoExpandParent","blockNode","defaultExpandAll","fieldNames","show-line","tree-data","onCheck","onSelect","class"]):t.createVNode(v.Empty,{description:"暂无数据",image:v.Empty.PRESENTED_IMAGE_SIMPLE},null,8,["image"])],2),D=e=>t.createVNode(I.KIcon,{name:e.parentId==="0"?"qiye":"bumen",size:16},null,8,["name"]),G=()=>t.createVNode("div",{class:f.e("modal-content-right")},[o.value.length>0?o.value.map(e=>t.createVNode("div",{class:f.e("modal-content-right-item")},[t.createVNode("div",{class:f.e("modal-content-right-item-label")},[D(e),t.createVNode("span",null,[e[u.value.title]])],2),t.createVNode("div",{class:f.e("modal-content-right-item-del"),onClick:()=>O(e)},[t.createVNode(I.KIcon,{name:"shanchu",size:16},null)],10,["onClick"])],2)):t.createVNode(v.Empty,{description:"暂无数据",image:v.Empty.PRESENTED_IMAGE_SIMPLE},null,8,["image"])],2);return()=>{var e;return t.createVNode("div",{class:f.b()},[(e=N.default)!=null&&e.call(N)?N.default():t.createVNode("div",null,[t.createVNode(v.Input,{style:"width: 100%;",readonly:!0,value:E.value,"onUpdate:value":l=>E.value=l,onClick:()=>m("update:visible",!0)},{suffix:()=>t.createVNode("div",{onClick:()=>m("update:visible",!0)},[t.createVNode(I.KIcon,{style:{cursor:"pointer"},name:"bumen",size:18,color:"#606266"},null)],8,["onClick"]),_:1},8,["readonly","value","onUpdate:value","onClick"])]),F()],2)}}});exports.default=J;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";require("../../../base/style/index.js");require("@king-one/antdv/dist/theme-chalk/dept-selector.css");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t={visible:Boolean,modelValue:{type:[Array,Object],default:()=>[]},type:{type:String,default:"checkbox"},treeData:{type:Array,default:()=>[]},fieldNames:{type:Object,default:()=>({title:"label",key:"id",children:"children"})},isBuiltInRequest:{type:Boolean,default:!1},http:{type:[Object,Function],default:()=>{}},prefix:String},l="/security/dept/company/tree",a={"update:visible":e=>!0,"update:modelValue":e=>!0};exports.GET_DEPT_TREE_URL=l;exports.deptSelectorEmits=a;exports.deptSelectorProps=t;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const E="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAAEPpJREFUeF7tXQuW5LYNHJ/MyckcnyzxyZJwd+TlaCQRVQD4EWve87OT5gesDwCqe3p++9CPEBACtwj8JmyEgBC4R0AGkTqEwAMCMojkIQRkEGlACHAIqIJwuGnWJgjIIJsQrWNyCMggHG6atQkCMsgmROuYHAIyCIebZm2CgAyyCdE6JoeADMLhplmbICCDbEK0jskh8HaD/OMTlv9w8GjW7gisYpBD6Adf9f/+/UTieezx8p+f//GviUk/Yj+foTa4zN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blijYLgdnMRJuDvrhkIat1t0Mg20wuc8gg2+lx6QNbzXS09+gfdL0EJ/IOsjT6Cl4IXCEgg0gXQuABARlE8hACMog0IAQ4BFRBONw0axMEZJBNiNYxOQRkEA43zdoEARlkE6J1TA4BGYTDTbM2QUAG2YRoHZNDQAbhcNOsTRD4HyhUuAUw3g1HAAAAAElFTkSuQmCC";exports.default=E;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("../utils/install.js"),o=require("./src/role.js");require("./src/style/index.js");const e=require("./src/types.js"),t=l.withInstall(o.default),r=l.withInstall(o.default);exports.GTE_OPTIONS_URL=e.GTE_OPTIONS_URL;exports.roleSelectorEmits=e.roleSelectorEmits;exports.roleSelectorProps=e.roleSelectorProps;exports.KProRoleSelector=r;exports.KRoleSelector=t;exports.default=t;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue"),x=require("../../../hooks/use-namespace/index.js");require("../../index.js");const r=require("ant-design-vue"),m=require("./types.js"),V=require("../../icon/index.js"),P=require("../../pro-modal/index.js");function E(u){return typeof u=="function"||Object.prototype.toString.call(u)==="[object Object]"&&!l.isVNode(u)}const i=x.useNamespace("role-selector"),U=l.defineComponent({name:"KRoleSelector",props:m.roleSelectorProps,emits:m.roleSelectorEmits,setup(u,{emit:c,attrs:g,slots:h}){const t=l.ref([]),p=l.ref(""),n=l.ref([]),d=l.ref([]),s=l.ref(""),v=l.ref(!1);if(u.isBuiltInRequest){if(!u.http)throw new Error("请传入http实例");u.http.get(`${u.prefix}/${m.GTE_OPTIONS_URL}`).then(e=>{console.log(e),e.status===0&&(n.value=e.data.list.map(a=>({label:a.roleName,value:a.id})))}).catch(e=>{console.log(e)})}const N=()=>{if(!v.value){s.value="";const e=[];u.options.forEach(a=>{Array.isArray(t.value)?t.value.includes(a.value)&&e.push(a.label):t.value===a.value&&e.push(a.label)}),s.value=e.join(",")}},y=()=>{const e=[];if(Array.isArray(t.value))t.value.forEach(a=>{const o=n.value.find(k=>k.value===a);o&&e.push(o)});else{const a=n.value.find(o=>o.value===t.value);a&&e.push(a)}d.value=e},b=()=>{Array.isArray(u.modelValue)?t.value=u.modelValue.map(e=>e.value):t.value=u.modelValue.value};l.watch(()=>u.visible,e=>{b()}),l.watch(()=>u.modelValue,e=>{v.value?v.value=!1:(b(),N())},{deep:!0,immediate:!0}),l.watch(()=>u.options,e=>{u.isBuiltInRequest||(n.value=e||[],N(),y())},{deep:!0,immediate:!0}),l.watch(t,()=>{y()},{deep:!0,immediate:!0});const S=e=>{e?n.value=n.value.filter(a=>{var o;return(o=a.label)==null?void 0:o.includes(e)}):n.value=[...u.options]},w=()=>{c("update:visible",!1)},C=()=>{var e;if(u.type==="radio"&&!t.value){r.message.warn("请选择角色");return}if(Array.isArray(t.value)&&t.value.length===0){r.message.warn("请选择角色");return}Array.isArray(t.value)?(s.value=d.value.map(a=>a.label).join(","),c("update:modelValue",d.value)):(s.value=((e=d.value[0])==null?void 0:e.label)||"",c("update:modelValue",d.value[0])),v.value=!0,c("update:visible",!1)},R=e=>{Array.isArray(t.value)?t.value=t.value.filter(a=>a!==e.value):t.value=""},f=(e,a)=>l.createVNode("div",{class:[i.e("role-item"),a&&i.is("active")]},[l.createVNode("div",{class:i.e("role-item-label")},[l.createVNode(V.KIcon,{name:"a-jiaoseguanli2",size:18,color:"#606266"},null),l.createVNode("span",{class:i.e("label")},[e.label],2)],2),l.createVNode("div",{class:i.e("role-item-del"),onClick:()=>R(e)},[a&&l.createVNode(V.KIcon,{name:"shanchu",size:18,color:"#606266"},null)],10,["onClick"])],2),A=()=>l.createVNode("div",{class:i.b("left")},[l.createVNode(r.FormItemRest,null,{default:()=>[l.createVNode(r.InputSearch,{allowClear:!0,placeholder:"请输入角色名称",value:p.value,"onUpdate:value":e=>p.value=e,onSearch:S},null,8,["allowClear","value","onUpdate:value","onSearch"])]}),l.createVNode("div",{class:i.e("role-list")},[n.value.length===0&&l.createVNode(r.Empty,{description:"暂无数据",image:r.Empty.PRESENTED_IMAGE_SIMPLE},null,8,["image"]),u.type==="radio"?l.createVNode(r.RadioGroup,{value:t.value,"onUpdate:value":e=>t.value=e},{default:()=>[l.createVNode("div",{style:"width: 100%;"},[n.value.map((e,a)=>{let o;return l.createVNode("div",{key:a},[l.createVNode(r.Radio,{value:e.value},E(o=f(e))?o:{default:()=>[o],_:1},8,["value"])])})])]},8,["value","onUpdate:value"]):l.createVNode(r.CheckboxGroup,{value:t.value,"onUpdate:value":e=>t.value=e},{default:()=>[l.createVNode("div",{style:"width: 100%;"},[n.value.map((e,a)=>{let o;return l.createVNode("div",{key:a},[l.createVNode(r.Checkbox,{value:e.value},E(o=f(e))?o:{default:()=>[o],_:1},8,["value"])])})])]},8,["value","onUpdate:value"])],2)],2),I=()=>l.createVNode("div",{class:i.b("right")},[d.value.map((e,a)=>l.createVNode("div",{key:a},[f(e,!0)])),d.value.length===0&&l.createVNode(r.Empty,{description:"暂无数据",image:r.Empty.PRESENTED_IMAGE_SIMPLE},null,8,["image"])],2),_=()=>l.createVNode("div",null,[l.createVNode(P.KProModal,{modelValue:u.visible,title:"选择角色",modalProps:{cancelText:"取消",okText:"确定",width:"700px",...g},onOnCancel:()=>w(),onOnConfirm:()=>C()},{default:()=>[l.createVNode("div",{class:i.b("modal")},[A(),I()],2)]},8,["modelValue","modalProps","onOnCancel","onOnConfirm"])]);return()=>l.createVNode("div",{class:i.b()},[h.default?h.default():l.createVNode(r.Input,{style:"width: 100%;",readonly:!0,value:s.value,"onUpdate:value":e=>s.value=e,onClick:()=>c("update:visible",!0)},{suffix:()=>l.createVNode("div",{onClick:()=>c("update:visible",!0)},[l.createVNode(V.KIcon,{style:{cursor:"pointer"},name:"a-jiaoseguanli2",size:18,color:"#606266"},null)],8,["onClick"]),_:1},8,["readonly","value","onUpdate:value","onClick"]),_()],2)}});exports.default=U;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";require("../../../base/style/index.js");require("@king-one/antdv/dist/theme-chalk/role-selector.css");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t={visible:Boolean,modelValue:{type:[Array,Object],default:()=>[]},type:{type:String,default:"checkbox"},options:{type:Array,default:()=>[]},isBuiltInRequest:{type:Boolean,default:!1},http:{type:[Object,Function],default:()=>{}},prefix:String},l="/security/company/role/page?pageNum=1&pageSize=1000",o={"update:visible":e=>!0,"update:modelValue":e=>!0};exports.GTE_OPTIONS_URL=l;exports.roleSelectorEmits=o;exports.roleSelectorProps=t;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue");function a(o,l){const e=t.ref(!1);return t.watch(()=>o,u=>{e.value?(console.log("内部更新"),e.value=!1):(console.log("外部更新"),l&&l(u))},{deep:!0,immediate:!0}),{isInternalUpdate:e}}exports.useModelValue=a;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@charset "UTF-8";.king-dept-selector__modal-content{display:flex;height:400px;border:1px solid #e5e5e5;border-radius:4px;box-sizing:border-box}.king-dept-selector__modal-content-left{width:50%;height:100%;box-sizing:border-box;border-right:1px solid #e5e5e5;padding:12px}.king-dept-selector__modal-content-left .king-dept-selector__modal-content-left-tree{height:320px;overflow-y:auto}.king-dept-selector__modal-content-left .king-dept-selector__modal-content-left-tree::-webkit-scrollbar{width:6px;height:6px}.king-dept-selector__modal-content-left .king-dept-selector__modal-content-left-tree::-webkit-scrollbar-track{background:#f1f1f1;border-radius:3px}.king-dept-selector__modal-content-left .king-dept-selector__modal-content-left-tree::-webkit-scrollbar-thumb{background:#c1c1c1;border-radius:3px}.king-dept-selector__modal-content-left .king-dept-selector__modal-content-left-tree::-webkit-scrollbar-thumb:hover{background:#a8a8a8}.king-dept-selector__modal-content-right{flex:1;height:100%;box-sizing:border-box;padding:12px;overflow-y:auto}.king-dept-selector__modal-content-right::-webkit-scrollbar{width:6px;height:6px}.king-dept-selector__modal-content-right::-webkit-scrollbar-track{background:#f1f1f1;border-radius:3px}.king-dept-selector__modal-content-right::-webkit-scrollbar-thumb{background:#c1c1c1;border-radius:3px}.king-dept-selector__modal-content-right::-webkit-scrollbar-thumb:hover{background:#a8a8a8}.king-dept-selector__modal-content-right .king-dept-selector__modal-content-right-item{display:flex;align-items:center;justify-content:space-between;height:40px;padding:0 12px;cursor:pointer;border-radius:4px}.king-dept-selector__modal-content-right .king-dept-selector__modal-content-right-item:hover{background-color:#f5f7fa}.king-dept-selector__modal-content-right .king-dept-selector__modal-content-right-item .king-dept-selector__modal-content-right-item-label{display:flex;align-items:center}.king-dept-selector__modal-content-right .king-dept-selector__modal-content-right-item span{padding:0 4px}.king-dept-selector__modal-content-right .king-dept-selector__modal-content-right-item .king-dept-selector__modal-content-right-item-del:hover .icon-king-shanchu{color:#409eff!important}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.king-pro-tag-group{border:1px solid #d9d9d9;height:30px;width:100%;display:flex;align-items:center;padding:5px;border-radius:3px;color:#3b3b3b}.king-pro-tag-group .king-pro-tag-group__tags{display:flex;flex:1;align-items:center;overflow-x:hidden;scrollbar-width:none;gap:5px;height:100%}.king-pro-tag-group .king-pro-tag-group__count{background:#d9d9d9;overflow:hidden;margin-left:5px;text-align:center;white-space:nowrap;text-overflow:ellipsis;line-height:normal;padding:0 5px;height:100%}.king-pro-tag-group .king-pro-tag-group__item{padding:0 5px;background:#d9d9d9;flex-shrink:0;visibility:hidden;line-height:normal}.king-pro-tag-group .king-pro-tag-group__item:hover .king-pro-tag-group__remove-icon{background:#a3a3a3;border-radius:50%;color:#fff!important}.king-pro-tag-group .king-pro-tag-group__remove-icon{margin-left:2px;padding:1px;cursor:pointer}.king-pro-tag-group .king-pro-tag-group__visible{visibility:inherit}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@charset "UTF-8";.king-role-selector-modal{display:flex;height:300px;width:100%;border:1px solid #e5e5e5;border-radius:4px;overflow:hidden}.king-role-selector-modal .king-role-selector__role-item{display:flex;align-items:center;justify-content:space-between;width:100%;height:40px;cursor:pointer}.king-role-selector-modal .king-role-selector__role-item.is-active{padding:0 10px}.king-role-selector-modal .king-role-selector__role-item:hover.is-active{background-color:#f5f7fa;border-radius:4px}.king-role-selector-modal .king-role-selector__role-item .king-role-selector-role-item-label{display:flex}.king-role-selector-modal .king-role-selector__role-item .king-role-selector__label{font-size:14px;padding-left:5px;color:#606266}.king-role-selector-modal .king-role-selector__role-item .king-role-selector__role-item-del:hover .icon-king-shanchu{color:#409eff!important}.king-role-selector-modal .king-role-selector-left{width:50%;height:300px;box-sizing:border-box;padding:15px}.king-role-selector-modal .king-role-selector-left .king-role-selector__role-list{margin-top:15px;height:230px;width:100%;overflow-y:auto}.king-role-selector-modal .king-role-selector-left .king-role-selector__role-list::-webkit-scrollbar{width:6px;height:6px}.king-role-selector-modal .king-role-selector-left .king-role-selector__role-list::-webkit-scrollbar-track{background:#f1f1f1;border-radius:3px}.king-role-selector-modal .king-role-selector-left .king-role-selector__role-list::-webkit-scrollbar-thumb{background:#c1c1c1;border-radius:3px}.king-role-selector-modal .king-role-selector-left .king-role-selector__role-list::-webkit-scrollbar-thumb:hover{background:#a8a8a8}.king-role-selector-modal .king-role-selector-right{flex:1;height:300px;box-sizing:border-box;border-left:1px solid #e5e5e5;padding:15px;overflow-y:auto}.king-role-selector-modal .king-role-selector-right::-webkit-scrollbar{width:6px;height:6px}.king-role-selector-modal .king-role-selector-right::-webkit-scrollbar-track{background:#f1f1f1;border-radius:3px}.king-role-selector-modal .king-role-selector-right::-webkit-scrollbar-thumb{background:#c1c1c1;border-radius:3px}.king-role-selector-modal .king-role-selector-right::-webkit-scrollbar-thumb:hover{background:#a8a8a8}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { SFCWithInstall } from '../utils/install';
|
|
2
|
-
import { DefineComponent, PropType, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
3
|
-
import { NodeType } from './src/types';
|
|
4
|
-
export * from './src/types';
|
|
5
|
-
export declare const KDeptSelector: SFCWithInstall<DefineComponent<{
|
|
6
|
-
readonly visible: BooleanConstructor;
|
|
7
|
-
readonly modelValue: {
|
|
8
|
-
readonly type: PropType<Record<string, string>[] | Record<string, string>>;
|
|
9
|
-
readonly default: () => never[];
|
|
10
|
-
};
|
|
11
|
-
readonly type: {
|
|
12
|
-
readonly type: PropType<"radio" | "checkbox">;
|
|
13
|
-
readonly default: "checkbox";
|
|
14
|
-
};
|
|
15
|
-
readonly treeData: {
|
|
16
|
-
readonly type: PropType< NodeType[]>;
|
|
17
|
-
readonly default: () => never[];
|
|
18
|
-
};
|
|
19
|
-
readonly fieldNames: {
|
|
20
|
-
readonly type: PropType<{
|
|
21
|
-
title: string;
|
|
22
|
-
key: string;
|
|
23
|
-
children: string;
|
|
24
|
-
}>;
|
|
25
|
-
readonly default: () => {
|
|
26
|
-
title: string;
|
|
27
|
-
key: string;
|
|
28
|
-
children: string;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
readonly isBuiltInRequest: {
|
|
32
|
-
readonly type: BooleanConstructor;
|
|
33
|
-
readonly default: false;
|
|
34
|
-
};
|
|
35
|
-
readonly http: {
|
|
36
|
-
readonly type: PropType<any>;
|
|
37
|
-
readonly default: () => void;
|
|
38
|
-
};
|
|
39
|
-
readonly prefix: StringConstructor;
|
|
40
|
-
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
41
|
-
'update:visible': (value: boolean) => boolean;
|
|
42
|
-
'update:modelValue': (value: Record<string, string>[] | Record<string, string>) => boolean;
|
|
43
|
-
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
44
|
-
readonly visible: BooleanConstructor;
|
|
45
|
-
readonly modelValue: {
|
|
46
|
-
readonly type: PropType<Record<string, string>[] | Record<string, string>>;
|
|
47
|
-
readonly default: () => never[];
|
|
48
|
-
};
|
|
49
|
-
readonly type: {
|
|
50
|
-
readonly type: PropType<"radio" | "checkbox">;
|
|
51
|
-
readonly default: "checkbox";
|
|
52
|
-
};
|
|
53
|
-
readonly treeData: {
|
|
54
|
-
readonly type: PropType< NodeType[]>;
|
|
55
|
-
readonly default: () => never[];
|
|
56
|
-
};
|
|
57
|
-
readonly fieldNames: {
|
|
58
|
-
readonly type: PropType<{
|
|
59
|
-
title: string;
|
|
60
|
-
key: string;
|
|
61
|
-
children: string;
|
|
62
|
-
}>;
|
|
63
|
-
readonly default: () => {
|
|
64
|
-
title: string;
|
|
65
|
-
key: string;
|
|
66
|
-
children: string;
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
readonly isBuiltInRequest: {
|
|
70
|
-
readonly type: BooleanConstructor;
|
|
71
|
-
readonly default: false;
|
|
72
|
-
};
|
|
73
|
-
readonly http: {
|
|
74
|
-
readonly type: PropType<any>;
|
|
75
|
-
readonly default: () => void;
|
|
76
|
-
};
|
|
77
|
-
readonly prefix: StringConstructor;
|
|
78
|
-
}>> & {
|
|
79
|
-
"onUpdate:modelValue"?: ((value: Record<string, string> | Record<string, string>[]) => any) | undefined;
|
|
80
|
-
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
81
|
-
}, {
|
|
82
|
-
readonly type: "checkbox" | "radio";
|
|
83
|
-
readonly visible: boolean;
|
|
84
|
-
readonly modelValue: Record<string, string> | Record<string, string>[];
|
|
85
|
-
readonly fieldNames: {
|
|
86
|
-
title: string;
|
|
87
|
-
key: string;
|
|
88
|
-
children: string;
|
|
89
|
-
};
|
|
90
|
-
readonly http: any;
|
|
91
|
-
readonly isBuiltInRequest: boolean;
|
|
92
|
-
readonly treeData: NodeType[];
|
|
93
|
-
}, {}>>;
|
|
94
|
-
export default KDeptSelector;
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import { NodeType } from './types';
|
|
2
|
-
import { DefineComponent, PropType, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
3
|
-
declare const _default: DefineComponent<{
|
|
4
|
-
readonly visible: BooleanConstructor;
|
|
5
|
-
readonly modelValue: {
|
|
6
|
-
readonly type: PropType<Record<string, string>[] | Record<string, string>>;
|
|
7
|
-
readonly default: () => never[];
|
|
8
|
-
};
|
|
9
|
-
readonly type: {
|
|
10
|
-
readonly type: PropType<"radio" | "checkbox">;
|
|
11
|
-
readonly default: "checkbox";
|
|
12
|
-
};
|
|
13
|
-
readonly treeData: {
|
|
14
|
-
readonly type: PropType<NodeType[]>;
|
|
15
|
-
readonly default: () => never[];
|
|
16
|
-
};
|
|
17
|
-
readonly fieldNames: {
|
|
18
|
-
readonly type: PropType<{
|
|
19
|
-
title: string;
|
|
20
|
-
key: string;
|
|
21
|
-
children: string;
|
|
22
|
-
}>;
|
|
23
|
-
readonly default: () => {
|
|
24
|
-
title: string;
|
|
25
|
-
key: string;
|
|
26
|
-
children: string;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
readonly isBuiltInRequest: {
|
|
30
|
-
readonly type: BooleanConstructor;
|
|
31
|
-
readonly default: false;
|
|
32
|
-
};
|
|
33
|
-
readonly http: {
|
|
34
|
-
readonly type: PropType<any>;
|
|
35
|
-
readonly default: () => void;
|
|
36
|
-
};
|
|
37
|
-
readonly prefix: StringConstructor;
|
|
38
|
-
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
39
|
-
'update:visible': (value: boolean) => boolean;
|
|
40
|
-
'update:modelValue': (value: Record<string, string>[] | Record<string, string>) => boolean;
|
|
41
|
-
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
42
|
-
readonly visible: BooleanConstructor;
|
|
43
|
-
readonly modelValue: {
|
|
44
|
-
readonly type: PropType<Record<string, string>[] | Record<string, string>>;
|
|
45
|
-
readonly default: () => never[];
|
|
46
|
-
};
|
|
47
|
-
readonly type: {
|
|
48
|
-
readonly type: PropType<"radio" | "checkbox">;
|
|
49
|
-
readonly default: "checkbox";
|
|
50
|
-
};
|
|
51
|
-
readonly treeData: {
|
|
52
|
-
readonly type: PropType<NodeType[]>;
|
|
53
|
-
readonly default: () => never[];
|
|
54
|
-
};
|
|
55
|
-
readonly fieldNames: {
|
|
56
|
-
readonly type: PropType<{
|
|
57
|
-
title: string;
|
|
58
|
-
key: string;
|
|
59
|
-
children: string;
|
|
60
|
-
}>;
|
|
61
|
-
readonly default: () => {
|
|
62
|
-
title: string;
|
|
63
|
-
key: string;
|
|
64
|
-
children: string;
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
readonly isBuiltInRequest: {
|
|
68
|
-
readonly type: BooleanConstructor;
|
|
69
|
-
readonly default: false;
|
|
70
|
-
};
|
|
71
|
-
readonly http: {
|
|
72
|
-
readonly type: PropType<any>;
|
|
73
|
-
readonly default: () => void;
|
|
74
|
-
};
|
|
75
|
-
readonly prefix: StringConstructor;
|
|
76
|
-
}>> & {
|
|
77
|
-
"onUpdate:modelValue"?: ((value: Record<string, string> | Record<string, string>[]) => any) | undefined;
|
|
78
|
-
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
79
|
-
}, {
|
|
80
|
-
readonly type: "checkbox" | "radio";
|
|
81
|
-
readonly visible: boolean;
|
|
82
|
-
readonly modelValue: Record<string, string> | Record<string, string>[];
|
|
83
|
-
readonly fieldNames: {
|
|
84
|
-
title: string;
|
|
85
|
-
key: string;
|
|
86
|
-
children: string;
|
|
87
|
-
};
|
|
88
|
-
readonly http: any;
|
|
89
|
-
readonly isBuiltInRequest: boolean;
|
|
90
|
-
readonly treeData: NodeType[];
|
|
91
|
-
}, {}>;
|
|
92
|
-
export default _default;
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
export type DeptSelectorModelValue = {
|
|
3
|
-
label?: string;
|
|
4
|
-
value: string;
|
|
5
|
-
};
|
|
6
|
-
export type NodeType = {
|
|
7
|
-
id: string;
|
|
8
|
-
parentId: string;
|
|
9
|
-
label?: string;
|
|
10
|
-
defaultPerms?: string | null;
|
|
11
|
-
children?: NodeType[];
|
|
12
|
-
};
|
|
13
|
-
export declare const deptSelectorProps: {
|
|
14
|
-
readonly visible: BooleanConstructor;
|
|
15
|
-
readonly modelValue: {
|
|
16
|
-
readonly type: PropType<Record<string, string>[] | Record<string, string>>;
|
|
17
|
-
readonly default: () => never[];
|
|
18
|
-
};
|
|
19
|
-
readonly type: {
|
|
20
|
-
readonly type: PropType<"radio" | "checkbox">;
|
|
21
|
-
readonly default: "checkbox";
|
|
22
|
-
};
|
|
23
|
-
readonly treeData: {
|
|
24
|
-
readonly type: PropType<NodeType[]>;
|
|
25
|
-
readonly default: () => never[];
|
|
26
|
-
};
|
|
27
|
-
readonly fieldNames: {
|
|
28
|
-
readonly type: PropType<{
|
|
29
|
-
title: string;
|
|
30
|
-
key: string;
|
|
31
|
-
children: string;
|
|
32
|
-
}>;
|
|
33
|
-
readonly default: () => {
|
|
34
|
-
title: string;
|
|
35
|
-
key: string;
|
|
36
|
-
children: string;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
/**
|
|
40
|
-
* 是否使用内置请求,内置请求会走用户中心即
|
|
41
|
-
* ${prefix}security/company/role/page?pageNum=1&pageSize=1000
|
|
42
|
-
*/
|
|
43
|
-
readonly isBuiltInRequest: {
|
|
44
|
-
readonly type: BooleanConstructor;
|
|
45
|
-
readonly default: false;
|
|
46
|
-
};
|
|
47
|
-
/**
|
|
48
|
-
* axios 实例
|
|
49
|
-
*/
|
|
50
|
-
readonly http: {
|
|
51
|
-
readonly type: PropType<any>;
|
|
52
|
-
readonly default: () => void;
|
|
53
|
-
};
|
|
54
|
-
/**
|
|
55
|
-
* 请求前缀,如 qy-user-service
|
|
56
|
-
*/
|
|
57
|
-
readonly prefix: StringConstructor;
|
|
58
|
-
};
|
|
59
|
-
export declare const GET_DEPT_TREE_URL = "/security/dept/company/tree";
|
|
60
|
-
export declare const deptSelectorEmits: {
|
|
61
|
-
'update:visible': (value: boolean) => boolean;
|
|
62
|
-
'update:modelValue': (value: Record<string, string>[] | Record<string, string>) => boolean;
|
|
63
|
-
};
|
|
64
|
-
export type DeptSelectorProps = ExtractPropTypes<typeof deptSelectorProps>;
|
|
65
|
-
export type DeptSelectorEmits = typeof deptSelectorEmits;
|