hs-admin-ui 1.0.0 → 1.0.3
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/favicon.ico +0 -0
- package/dist/style.css +1 -0
- package/dist/style.css.gz +0 -0
- package/dist/umd/index.js +169 -0
- package/dist/umd/index.js.gz +0 -0
- package/package.json +81 -78
- package/.env +0 -11
- package/.env.development +0 -5
- package/.env.production +0 -5
- package/.eslintignore +0 -18
- package/.eslintrc.js +0 -104
- package/.prettierrc.js +0 -39
- package/.vite/deps_temp_3669a513/chunk-FVXAE7ZR.js +0 -11400
- package/.vite/deps_temp_3669a513/chunk-ZS7NZCD4.js +0 -36
- package/.vite/deps_temp_3669a513/default-passive-events.js +0 -25
- package/.vite/deps_temp_3669a513/element-plus.js +0 -65013
- package/.vite/deps_temp_3669a513/lodash.js +0 -5497
- package/.vite/deps_temp_3669a513/package.json +0 -3
- package/.vite/deps_temp_3669a513/vue.js +0 -324
- package/.vite/deps_temp_3669a513/vxe-table.js +0 -32336
- package/CHANGELOG.md +0 -1
- package/directoryList.md +0 -180
- package/postcss.config.js +0 -7
- package/src/App.vue +0 -88
- package/src/api/fieldConfigController/index.ts +0 -76
- package/src/api/fieldConfigController/type.ts +0 -44
- package/src/api/login/index.ts +0 -78
- package/src/api/loginController/index.ts +0 -74
- package/src/api/menu/index.ts +0 -34
- package/src/api/menu/index2.ts +0 -291
- package/src/api/menuController/index.ts +0 -189
- package/src/api/systemController/index.ts +0 -26
- package/src/api/systemController/type.ts +0 -16
- package/src/api/test/index.ts +0 -22
- package/src/api/user/index.ts +0 -30
- package/src/assets/404.png +0 -0
- package/src/assets/logo-main.svg +0 -12
- package/src/assets/logo-mini.svg +0 -12
- package/src/components/base/hsAffix/src/hsAffix.vue +0 -22
- package/src/components/base/hsAlert/src/hsAlert.vue +0 -15
- package/src/components/base/hsAutocomplete/src/hsAutocomplete.vue +0 -36
- package/src/components/base/hsButton/src/hsButton.vue +0 -26
- package/src/components/base/hsButton/src/hsButtonGroup.vue +0 -8
- package/src/components/base/hsButton/useButtonEvents.ts +0 -19
- package/src/components/base/hsCalendar/src/hsCalendar.vue +0 -36
- package/src/components/base/hsCarousel/src/hsCarousel.vue +0 -15
- package/src/components/base/hsCarousel/src/hsCarouselItem.vue +0 -15
- package/src/components/base/hsCascader/src/hsCascader.vue +0 -36
- package/src/components/base/hsCascader/src/hsCascaderPanel.vue +0 -29
- package/src/components/base/hsCheckbox/src/hsCheckbox.vue +0 -32
- package/src/components/base/hsCheckbox/src/hsCheckboxButton.vue +0 -18
- package/src/components/base/hsCheckbox/src/hsCheckboxGroup.vue +0 -32
- package/src/components/base/hsCol/src/hsCol.vue +0 -20
- package/src/components/base/hsCollapse/src/hsCollapse.vue +0 -36
- package/src/components/base/hsCollapse/src/hsCollapseItem.vue +0 -22
- package/src/components/base/hsColorPicker/src/hsColorPicker.vue +0 -32
- package/src/components/base/hsDatePicker/src/hsDatePicker.vue +0 -40
- package/src/components/base/hsDialog/src/hsDialog.vue +0 -36
- package/src/components/base/hsDrawer/src/hsDrawer.vue +0 -29
- package/src/components/base/hsDropdown/src/hsDropdown.vue +0 -15
- package/src/components/base/hsDropdown/src/hsDropdownItem.vue +0 -15
- package/src/components/base/hsDropdown/src/hsDropdownMenu.vue +0 -15
- package/src/components/base/hsForm/src/hsForm.vue +0 -23
- package/src/components/base/hsForm/src/hsFormItem.vue +0 -22
- package/src/components/base/hsGetApi/src/hsGetApis.vue +0 -231
- package/src/components/base/hsGetApi/useGetApis.ts +0 -158
- package/src/components/base/hsInput/src/hsInput.vue +0 -40
- package/src/components/base/hsInput/useInputEvents.ts +0 -52
- package/src/components/base/hsInputNumber/src/hsInputNumber.vue +0 -31
- package/src/components/base/hsPopconfirm/src/hsPopconfirm.vue +0 -15
- package/src/components/base/hsPopover/src/hsPopover.vue +0 -22
- package/src/components/base/hsProgress/src/hsProgress.vue +0 -15
- package/src/components/base/hsRadio/src/hsRadio.vue +0 -32
- package/src/components/base/hsRadio/src/hsRadioButton.vue +0 -18
- package/src/components/base/hsRadio/src/hsRadioGroup.vue +0 -32
- package/src/components/base/hsRate/src/hsRate.vue +0 -33
- package/src/components/base/hsResult/src/hsResult.vue +0 -15
- package/src/components/base/hsRow/src/hsRow.vue +0 -20
- package/src/components/base/hsScrollbar/src/hsScrollbar.vue +0 -22
- package/src/components/base/hsSelect/src/hsOption.vue +0 -8
- package/src/components/base/hsSelect/src/hsOptionGroup.vue +0 -8
- package/src/components/base/hsSelect/src/hsSelect.vue +0 -42
- package/src/components/base/hsSelect/useSelectEvents.ts +0 -60
- package/src/components/base/hsSlider/src/hsSlider.vue +0 -25
- package/src/components/base/hsSteps/src/hsStep.vue +0 -15
- package/src/components/base/hsSteps/src/hsSteps.vue +0 -15
- package/src/components/base/hsSwitch/src/hsSwitch.vue +0 -35
- package/src/components/base/hsTable/hsBCTable.vue +0 -116
- package/src/components/base/hsTable/hsTable copy.vue +0 -226
- package/src/components/base/hsTable/hsTable.vue +0 -213
- package/src/components/base/hsTable/useHsTableConfig.ts +0 -95
- package/src/components/base/hsTable/useTableEvents.ts +0 -118
- package/src/components/base/hsTabs/src/hsTabPane.vue +0 -15
- package/src/components/base/hsTabs/src/hsTabs.vue +0 -29
- package/src/components/base/hsTag/src/hsCheckTag.vue +0 -16
- package/src/components/base/hsTag/src/hsTag.vue +0 -15
- package/src/components/base/hsTest/HsTest.vue +0 -320
- package/src/components/base/hsTooltip/src/hsTooltip.vue +0 -22
- package/src/components/base/hsTour/src/hsTour.vue +0 -31
- package/src/components/base/hsTour/src/hsTourStep.vue +0 -15
- package/src/components/base/hsTransfer/src/hsTransfer.vue +0 -36
- package/src/components/base/hsTree/src/hsTree.vue +0 -24
- package/src/components/base/hsTreeSelect/src/hsTreeSelect.vue +0 -39
- package/src/components/base/hsUpload/src/hsUpload.vue +0 -32
- package/src/components/base/hsWatermark/src/hsWatermark.vue +0 -15
- package/src/components/business/bcAutoComplete/bcAutoComplete.vue +0 -38
- package/src/components/business/bcAutoComplete/defaultData.ts +0 -25
- package/src/components/business/bcAutoComplete/useAutoComplete.ts +0 -65
- package/src/components/business/bcBtn/bcBtn.vue +0 -40
- package/src/components/business/bcForm/bcForm.vue +0 -113
- package/src/components/business/bcForm/bcFormDrag.vue +0 -104
- package/src/components/business/bcForm/bcFormSearch.vue +0 -154
- package/src/components/business/bcForm/components/sortForm/index.ts +0 -18
- package/src/components/business/bcForm/components/sortForm/sortForm.vue +0 -92
- package/src/components/business/bcFormConfig/bcFormConfig.vue +0 -196
- package/src/components/business/bcFormTable/bcFormTable.vue +0 -91
- package/src/components/business/bcFormTable/components/bcTabs/bcTabs.vue +0 -53
- package/src/components/business/bcFormTable/components/contextBody/contextBody.vue +0 -67
- package/src/components/business/bcFormTable/components/contextBody/useContextMenu.ts +0 -53
- package/src/components/business/bcFormTable/components/formSearchBtn/formSearchBtn.vue +0 -21
- package/src/components/business/bcFormTable/methods/cellDetailMethod.ts +0 -5
- package/src/components/business/bcFormTable/methods/filterAgeMethod.ts +0 -5
- package/src/components/business/bcFormTable/methods/footerMethod.ts +0 -25
- package/src/components/business/bcFormTable/methods/index.ts +0 -10
- package/src/components/business/bcFormTable/utils/onFormKey.ts +0 -121
- package/src/components/business/bcFormTable/utils/onTableKey.ts +0 -119
- package/src/components/business/bcFormTable/utils/parseTable.ts +0 -201
- package/src/components/business/bcFormTable/utils/useButon.ts +0 -20
- package/src/components/business/bcFormTable/utils/useTableHeight.ts +0 -44
- package/src/components/business/bcPageConfig/bcPageConfig.vue +0 -79
- package/src/components/business/bcPageConfig/components/hsBtn/src/hsAttrBtn.vue +0 -39
- package/src/components/business/bcPageConfig/components/hsBtn/src/hsBtnConfigList.vue +0 -45
- package/src/components/business/bcPageConfig/components/hsBtn/src/hsBtnItemConfig.vue +0 -32
- package/src/components/business/bcPageConfig/components/hsBtn/src/hsBtnPanel.vue +0 -45
- package/src/components/business/bcPageConfig/components/hsBtn/useAttrBtn.ts +0 -58
- package/src/components/business/bcPageConfig/components/hsBtn/useBtnConfigList.ts +0 -71
- package/src/components/business/bcPageConfig/components/hsBtn/useBtnItemConfig.ts +0 -35
- package/src/components/business/bcPageConfig/components/hsExpand/src/hsExpand.vue +0 -33
- package/src/components/business/bcPageConfig/components/hsExpand/useExpand.ts +0 -9
- package/src/components/business/bcPageConfig/components/hsForm/src/hsAttrForm.vue +0 -54
- package/src/components/business/bcPageConfig/components/hsForm/src/hsFormConfig.vue +0 -180
- package/src/components/business/bcPageConfig/components/hsForm/src/hsFormConfigList.vue +0 -45
- package/src/components/business/bcPageConfig/components/hsForm/src/hsFormPanel.vue +0 -64
- package/src/components/business/bcPageConfig/components/hsForm/src/hsFormParse.vue +0 -24
- package/src/components/business/bcPageConfig/components/hsForm/useAttrForm.ts +0 -108
- package/src/components/business/bcPageConfig/components/hsForm/useFormListConfig.ts +0 -69
- package/src/components/business/bcPageConfig/components/hsForm/useFormParse.ts +0 -120
- package/src/components/business/bcPageConfig/components/hsSaveForm/saveFormConfig.ts +0 -66
- package/src/components/business/bcPageConfig/components/hsSaveForm/src/saveForm.vue +0 -48
- package/src/components/business/bcPageConfig/components/hsSaveForm/useSaveForm.ts +0 -148
- package/src/components/business/bcPageConfig/components/hsTables/src/hsAttrTable.vue +0 -122
- package/src/components/business/bcPageConfig/components/hsTables/src/hsRecursionConfig.vue +0 -36
- package/src/components/business/bcPageConfig/components/hsTables/src/hsTableConfig.vue +0 -51
- package/src/components/business/bcPageConfig/components/hsTables/src/hsTableConfigList.vue +0 -46
- package/src/components/business/bcPageConfig/components/hsTables/src/hsTablePanel.vue +0 -68
- package/src/components/business/bcPageConfig/components/hsTables/src/hsTableParse.vue +0 -24
- package/src/components/business/bcPageConfig/components/hsTables/useAttrTable.ts +0 -218
- package/src/components/business/bcPageConfig/components/hsTables/useTableConfigList.ts +0 -77
- package/src/components/business/bcPageConfig/components/hsTables/useTableParse.ts +0 -78
- package/src/components/business/bcPageConfig/default/apis.json +0 -24712
- package/src/components/business/bcPageConfig/default/baseBtnConfig.ts +0 -256
- package/src/components/business/bcPageConfig/default/baseFormConfig.ts +0 -380
- package/src/components/business/bcPageConfig/default/baseTableConfig.ts +0 -2399
- package/src/components/business/bcPageConfig/usePageConfig.ts +0 -469
- package/src/components/business/bcSelect/bcSelect.vue +0 -50
- package/src/components/business/bcSwitchSystems/bcSwitchSystems.vue +0 -36
- package/src/components/business/bcSwitchSystems/useSwitchSystems.ts +0 -74
- package/src/components/business/bcTable/bcTable.vue +0 -63
- package/src/components/business/bcTable/components/sortColumn/index.ts +0 -19
- package/src/components/business/bcTable/components/sortColumn/sortColumn.vue +0 -107
- package/src/components/business/bcTable/useTable.ts +0 -51
- package/src/components/business/bcTable/useTableHeight.ts +0 -24
- package/src/components/business/bcTreeSelect/bcTreeSelect.vue +0 -12
- package/src/components/business/cardID/cardID.vue +0 -24
- package/src/components/business/cardID/type.ts +0 -0
- package/src/components/business/cardID/useCardID.ts +0 -0
- package/src/components/component.ts +0 -188
- package/src/components/config/autocompleteAttrConfig/autocompleteAttrConfig.vue +0 -26
- package/src/components/config/autocompleteAttrConfig/config.ts +0 -170
- package/src/components/config/baseForm.vue +0 -175
- package/src/components/config/buttonAttrConfig/buttonAttrConfig.vue +0 -26
- package/src/components/config/buttonAttrConfig/config.ts +0 -261
- package/src/components/config/cascaderAttrConfig/cascaderAttrConfig.vue +0 -26
- package/src/components/config/cascaderAttrConfig/config.ts +0 -287
- package/src/components/config/cascaderPanelAttrConfig/cascaderPanelAttrConfig.vue +0 -26
- package/src/components/config/cascaderPanelAttrConfig/config.ts +0 -278
- package/src/components/config/checkboxAttrConfig/checkboxAttrConfig.vue +0 -26
- package/src/components/config/checkboxAttrConfig/config.ts +0 -301
- package/src/components/config/datePickerAttrConfig/config.ts +0 -256
- package/src/components/config/datePickerAttrConfig/datePickerAttrConfig.vue +0 -26
- package/src/components/config/inputAttrConfig/config.ts +0 -322
- package/src/components/config/inputAttrConfig/inputAttrConfig.vue +0 -33
- package/src/components/config/inputAttrConfig/inputEventConfig.vue +0 -35
- package/src/components/config/inputNumberAttrConfig/config.ts +0 -177
- package/src/components/config/inputNumberAttrConfig/inputNumberAttrConfig.vue +0 -26
- package/src/components/config/radioAttrConfig/config.ts +0 -212
- package/src/components/config/radioAttrConfig/radioAttrConfig.vue +0 -26
- package/src/components/config/selectAttrConfig/config.ts +0 -478
- package/src/components/config/selectAttrConfig/selectAttrConfig.vue +0 -26
- package/src/components/config/switchAttrConfig/config.ts +0 -195
- package/src/components/config/switchAttrConfig/switchAttrConfig.vue +0 -26
- package/src/components/config/treeSelectAttrConfig/config.ts +0 -625
- package/src/components/config/treeSelectAttrConfig/treeSelectAttrConfig.vue +0 -26
- package/src/components/config/type/formType.ts +0 -25
- package/src/components/config/uploadAttrConfig/config.ts +0 -250
- package/src/components/config/uploadAttrConfig/uploadAttrConfig.vue +0 -26
- package/src/components/iconSelector/index.vue +0 -247
- package/src/components/iconSelector/list.vue +0 -84
- package/src/components/svgIcon/index.vue +0 -61
- package/src/directive/authDirective.ts +0 -40
- package/src/directive/customDirective.ts +0 -178
- package/src/directive/index.ts +0 -18
- package/src/hooks/useCrypto.ts +0 -36
- package/src/hooks/useExpose.ts +0 -60
- package/src/layout/component/aside.vue +0 -160
- package/src/layout/component/columnsAside.vue +0 -299
- package/src/layout/component/header.vue +0 -18
- package/src/layout/component/main.vue +0 -65
- package/src/layout/footer/index.vue +0 -25
- package/src/layout/index.vue +0 -53
- package/src/layout/lockScreen/index.vue +0 -352
- package/src/layout/logo/index.vue +0 -75
- package/src/layout/main/classic.vue +0 -73
- package/src/layout/main/columns.vue +0 -73
- package/src/layout/main/defaults.vue +0 -73
- package/src/layout/main/transverse.vue +0 -60
- package/src/layout/navBars/index.vue +0 -35
- package/src/layout/navBars/tagsView/contextmenu.vue +0 -133
- package/src/layout/navBars/tagsView/tagsView.vue +0 -737
- package/src/layout/navBars/topBar/breadcrumb.vue +0 -146
- package/src/layout/navBars/topBar/closeFull.vue +0 -53
- package/src/layout/navBars/topBar/index.vue +0 -107
- package/src/layout/navBars/topBar/search.vue +0 -123
- package/src/layout/navBars/topBar/setings.vue +0 -789
- package/src/layout/navBars/topBar/user.vue +0 -222
- package/src/layout/navBars/topBar/userNews.vue +0 -107
- package/src/layout/navMenu/horizontal.vue +0 -138
- package/src/layout/navMenu/subItem.vue +0 -49
- package/src/layout/navMenu/vertical.vue +0 -100
- package/src/layout/routerView/iframes.vue +0 -101
- package/src/layout/routerView/link.vue +0 -93
- package/src/layout/routerView/parent.vue +0 -104
- package/src/layout/upgrade/index.vue +0 -147
- package/src/main.ts +0 -70
- package/src/router/backEnd.ts +0 -173
- package/src/router/frontEnd.ts +0 -155
- package/src/router/index.ts +0 -138
- package/src/router/route.ts +0 -94
- package/src/stores/index.ts +0 -8
- package/src/stores/keepAliveNames.ts +0 -38
- package/src/stores/requestOldRoutes.ts +0 -16
- package/src/stores/routesList.ts +0 -26
- package/src/stores/tagsViewRoutes.ts +0 -23
- package/src/stores/themeConfig.ts +0 -142
- package/src/stores/userInfo.ts +0 -65
- package/src/style/index.scss +0 -0
- package/src/style/tailwind.css +0 -29
- package/src/theme/app.scss +0 -333
- package/src/theme/common/transition.scss +0 -147
- package/src/theme/dark.scss +0 -255
- package/src/theme/element.scss +0 -321
- package/src/theme/iconSelector.scss +0 -31
- package/src/theme/index.scss +0 -8
- package/src/theme/loading.scss +0 -51
- package/src/theme/media/chart.scss +0 -94
- package/src/theme/media/cityLinkage.scss +0 -10
- package/src/theme/media/date.scss +0 -25
- package/src/theme/media/dialog.scss +0 -12
- package/src/theme/media/error.scss +0 -45
- package/src/theme/media/form.scss +0 -31
- package/src/theme/media/home.scss +0 -23
- package/src/theme/media/index.scss +0 -15
- package/src/theme/media/layout.scss +0 -63
- package/src/theme/media/login.scss +0 -74
- package/src/theme/media/media.scss +0 -13
- package/src/theme/media/pagination.scss +0 -15
- package/src/theme/media/personal.scss +0 -16
- package/src/theme/media/scrollbar.scss +0 -56
- package/src/theme/media/tagsView.scss +0 -11
- package/src/theme/mixins/index.scss +0 -56
- package/src/theme/other.scss +0 -36
- package/src/theme/tableTool.scss +0 -27
- package/src/theme/waves.scss +0 -101
- package/src/types/auth.d.ts +0 -44
- package/src/types/axios.d.ts +0 -13
- package/src/types/components.d.ts +0 -30
- package/src/types/customData.d.ts +0 -163
- package/src/types/form.ts +0 -68
- package/src/types/formItem/autocomplete.ts +0 -43
- package/src/types/formItem/button.ts +0 -39
- package/src/types/formItem/input.ts +0 -66
- package/src/types/formItem/inputNumber.ts +0 -42
- package/src/types/formItem/selelct.ts +0 -54
- package/src/types/formItem/treeSelect.ts +0 -37
- package/src/types/formTable.d.ts +0 -210
- package/src/types/global.d.ts +0 -118
- package/src/types/layout.d.ts +0 -59
- package/src/types/mitt.d.ts +0 -38
- package/src/types/pinia.d.ts +0 -92
- package/src/types/views.d.ts +0 -331
- package/src/utils/arrayOperation.ts +0 -65
- package/src/utils/authFunction.ts +0 -38
- package/src/utils/build.ts +0 -124
- package/src/utils/commonFunction.ts +0 -64
- package/src/utils/formatTime.ts +0 -137
- package/src/utils/getDataType.ts +0 -136
- package/src/utils/getStyleSheets.ts +0 -101
- package/src/utils/loading.ts +0 -44
- package/src/utils/mitt.ts +0 -8
- package/src/utils/other.ts +0 -214
- package/src/utils/request.ts +0 -82
- package/src/utils/setIconfont.ts +0 -48
- package/src/utils/showMessage.ts +0 -57
- package/src/utils/showMessageBox.ts +0 -39
- package/src/utils/showNotification.ts +0 -50
- package/src/utils/showPopup.ts +0 -81
- package/src/utils/storage.ts +0 -137
- package/src/utils/theme.ts +0 -65
- package/src/utils/toolsValidate.ts +0 -370
- package/src/utils/watermark.ts +0 -47
- package/src/views/error/401.vue +0 -88
- package/src/views/error/404.vue +0 -89
- package/src/views/home/index.vue +0 -62
- package/src/views/login/component/account.vue +0 -172
- package/src/views/login/component/mobile.vue +0 -72
- package/src/views/login/component/scan.vue +0 -63
- package/src/views/login/index.vue +0 -254
- package/src/views/system/auth/index.vue +0 -48
- package/src/views/system/auth/list.ts +0 -50
- package/src/views/system/auth/useAuth.ts +0 -34
- package/src/views/system/dept/dialog.vue +0 -167
- package/src/views/system/dept/index.vue +0 -135
- package/src/views/system/dic/dialog.vue +0 -150
- package/src/views/system/dic/index.vue +0 -132
- package/src/views/system/form/data.json +0 -360
- package/src/views/system/form/index.vue +0 -24
- package/src/views/system/formSetting/components/hsBtn/src/hsAttrBtn.vue +0 -58
- package/src/views/system/formSetting/components/hsBtn/src/hsBtnConfigList.vue +0 -45
- package/src/views/system/formSetting/components/hsBtn/src/hsBtnPanel.vue +0 -51
- package/src/views/system/formSetting/components/hsBtn/useAttrBtn.ts +0 -129
- package/src/views/system/formSetting/components/hsBtn/useBtnConfigList.ts +0 -73
- package/src/views/system/formSetting/components/hsExpand/src/hsExpand.vue +0 -27
- package/src/views/system/formSetting/components/hsExpand/useExpand.ts +0 -9
- package/src/views/system/formSetting/components/hsForm/src/hsAttrForm.vue +0 -124
- package/src/views/system/formSetting/components/hsForm/src/hsFormConfig.vue +0 -180
- package/src/views/system/formSetting/components/hsForm/src/hsFormConfigList.vue +0 -45
- package/src/views/system/formSetting/components/hsForm/src/hsFormPanel.vue +0 -152
- package/src/views/system/formSetting/components/hsForm/src/hsFormParse.vue +0 -33
- package/src/views/system/formSetting/components/hsForm/useAttrForm.ts +0 -109
- package/src/views/system/formSetting/components/hsForm/useFormListConfig.ts +0 -70
- package/src/views/system/formSetting/components/hsPageTree/configData.ts +0 -3700
- package/src/views/system/formSetting/components/hsPageTree/src/hsPageTree.vue +0 -30
- package/src/views/system/formSetting/components/hsPageTree/usePageTree.ts +0 -50
- package/src/views/system/formSetting/components/hsSaveForm/saveFormConfig.ts +0 -66
- package/src/views/system/formSetting/components/hsSaveForm/src/saveForm.vue +0 -47
- package/src/views/system/formSetting/components/hsSaveForm/useSaveForm.ts +0 -122
- package/src/views/system/formSetting/components/hsTables/src/hsAttrTable.vue +0 -91
- package/src/views/system/formSetting/components/hsTables/src/hsRecursionConfig.vue +0 -36
- package/src/views/system/formSetting/components/hsTables/src/hsTableConfig.vue +0 -39
- package/src/views/system/formSetting/components/hsTables/src/hsTableConfigList.vue +0 -45
- package/src/views/system/formSetting/components/hsTables/src/hsTablePanel.vue +0 -56
- package/src/views/system/formSetting/components/hsTables/src/hsTableParse.vue +0 -29
- package/src/views/system/formSetting/components/hsTables/useAttrTable.ts +0 -125
- package/src/views/system/formSetting/components/hsTables/useTableConfigList.ts +0 -77
- package/src/views/system/formSetting/components/selectConfig/config.ts +0 -476
- package/src/views/system/formSetting/components/selectConfig/selectConfig.vue +0 -30
- package/src/views/system/formSetting/data.json +0 -360
- package/src/views/system/formSetting/default/baseBtnConfig.ts +0 -216
- package/src/views/system/formSetting/default/baseFormConfig.ts +0 -567
- package/src/views/system/formSetting/default/baseTableConfig.ts +0 -2353
- package/src/views/system/formSetting/formConfig.vue +0 -108
- package/src/views/system/formSetting/index.vue +0 -35
- package/src/views/system/formSetting/menuType.d.ts +0 -12
- package/src/views/system/formSetting/panelConfig.json +0 -164
- package/src/views/system/formSetting/useForm.ts +0 -89
- package/src/views/system/formSetting/useFormConfig.ts +0 -192
- package/src/views/system/menu/dialog.vue +0 -285
- package/src/views/system/menu/index.vue +0 -180
- package/src/views/system/page/components/hsPageTree/configData.ts +0 -3700
- package/src/views/system/page/components/hsPageTree/src/hsPageTree.vue +0 -30
- package/src/views/system/page/components/hsPageTree/usePageTree.ts +0 -49
- package/src/views/system/page/index.vue +0 -32
- package/src/views/system/page/menuType.d.ts +0 -12
- package/src/views/system/page/usePage.ts +0 -125
- package/src/views/system/role/dialog.vue +0 -236
- package/src/views/system/role/index.vue +0 -146
- package/src/views/system/table/data.json +0 -747
- package/src/views/system/table/formate.js +0 -49
- package/src/views/system/table/index.vue +0 -53
- package/src/views/system/user/dialog.vue +0 -187
- package/src/views/system/user/index.vue +0 -161
- package/src/views/test/test/components/hsBtn/src/hsAttrBtn.vue +0 -58
- package/src/views/test/test/components/hsBtn/src/hsBtnConfigList.vue +0 -45
- package/src/views/test/test/components/hsBtn/src/hsBtnPanel.vue +0 -51
- package/src/views/test/test/components/hsBtn/useAttrBtn.ts +0 -129
- package/src/views/test/test/components/hsBtn/useBtnConfigList.ts +0 -73
- package/src/views/test/test/components/hsExpand/src/hsExpand.vue +0 -27
- package/src/views/test/test/components/hsExpand/useExpand.ts +0 -9
- package/src/views/test/test/components/hsForm/src/hsAttrForm.vue +0 -124
- package/src/views/test/test/components/hsForm/src/hsFormConfig.vue +0 -180
- package/src/views/test/test/components/hsForm/src/hsFormConfigList.vue +0 -45
- package/src/views/test/test/components/hsForm/src/hsFormPanel.vue +0 -152
- package/src/views/test/test/components/hsForm/src/hsFormParse.vue +0 -33
- package/src/views/test/test/components/hsForm/useAttrForm.ts +0 -109
- package/src/views/test/test/components/hsForm/useFormListConfig.ts +0 -70
- package/src/views/test/test/components/hsSaveForm/saveFormConfig.ts +0 -66
- package/src/views/test/test/components/hsSaveForm/src/saveForm.vue +0 -47
- package/src/views/test/test/components/hsSaveForm/useSaveForm.ts +0 -122
- package/src/views/test/test/components/hsTables/src/hsAttrTable.vue +0 -91
- package/src/views/test/test/components/hsTables/src/hsRecursionConfig.vue +0 -36
- package/src/views/test/test/components/hsTables/src/hsTableConfig.vue +0 -39
- package/src/views/test/test/components/hsTables/src/hsTableConfigList.vue +0 -45
- package/src/views/test/test/components/hsTables/src/hsTablePanel.vue +0 -56
- package/src/views/test/test/components/hsTables/src/hsTableParse.vue +0 -29
- package/src/views/test/test/components/hsTables/useAttrTable.ts +0 -125
- package/src/views/test/test/components/hsTables/useTableConfigList.ts +0 -77
- package/src/views/test/test/components/selectConfig/config.ts +0 -476
- package/src/views/test/test/components/selectConfig/selectConfig.vue +0 -30
- package/src/views/test/test/data.json +0 -360
- package/src/views/test/test/default/baseBtnConfig.ts +0 -216
- package/src/views/test/test/default/baseFormConfig.ts +0 -567
- package/src/views/test/test/default/baseTableConfig.ts +0 -2353
- package/src/views/test/test/formConfig.vue +0 -102
- package/src/views/test/test/test.vue +0 -28
- package/src/views/test/test/test3.vue +0 -24
- package/src/views/test/test/test4.vue +0 -107
- package/src/views/test/test/test/345/211/257/346/234/254.vue +0 -2424
- package/src/views/test/test/useFormConfig.ts +0 -192
- package/src/views/test/test2/test2.vue +0 -17
- package/src/views/test/test3/test.vue +0 -20
- package/tailwind.config.js +0 -12
- package/tsconfig.json +0 -75
- package/vite.config.ts +0 -123
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<hs-button class="bc-button" v-bind="getBtnData(data)" @click="$emit('click')" :style="{ '--text-color': data.textColor }">
|
|
3
|
-
<template v-if="data.iconPosition === 'right'">
|
|
4
|
-
<span class="mr-1">{{ data.name }}</span>
|
|
5
|
-
<template v-if="data.btnIcon">
|
|
6
|
-
<i v-if="data.btnIcon.indexOf('iconfont') > -1" :class="[data.btnIcon]" />
|
|
7
|
-
<el-icon v-else class="mx-1"><component :is="data.btnIcon" /></el-icon>
|
|
8
|
-
</template>
|
|
9
|
-
</template>
|
|
10
|
-
<template v-else>
|
|
11
|
-
<template v-if="data.btnIcon">
|
|
12
|
-
<i v-if="data.btnIcon.indexOf('iconfont') > -1" :class="[data.btnIcon]" />
|
|
13
|
-
<el-icon v-else class="mx-1"><component :is="data.btnIcon" /></el-icon>
|
|
14
|
-
</template>
|
|
15
|
-
<span class="ml-1">{{ data.name }}</span>
|
|
16
|
-
</template>
|
|
17
|
-
</hs-button>
|
|
18
|
-
</template>
|
|
19
|
-
<script lang="ts" setup name="bcBtn">
|
|
20
|
-
import ICustomData from '/@/types/customData';
|
|
21
|
-
import _ from 'lodash';
|
|
22
|
-
|
|
23
|
-
interface Props {
|
|
24
|
-
data: ICustomData.BtnData;
|
|
25
|
-
}
|
|
26
|
-
defineEmits(['click']);
|
|
27
|
-
defineProps<Props>();
|
|
28
|
-
|
|
29
|
-
function getBtnData(data: ICustomData.BtnData) {
|
|
30
|
-
return _.omit(data, ['fnName', 'icon', 'name', 'btnIcon', 'textColor', 'isApply', 'iconPosition']);
|
|
31
|
-
}
|
|
32
|
-
</script>
|
|
33
|
-
<style scoped lang="scss">
|
|
34
|
-
:global(.bc-button > span) {
|
|
35
|
-
color: var(--text-color) !important;
|
|
36
|
-
}
|
|
37
|
-
:global(.bc-button.is-disabled > span) {
|
|
38
|
-
color: #a8abb2 !important;
|
|
39
|
-
}
|
|
40
|
-
</style>
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<hs-form :model="data.data" v-bind="data.attrs">
|
|
3
|
-
<div class="form-wrap p-5 rounded-md mb-2" v-for="(form, keys) in data.form" :key="keys" :style="{ '--bg-color': form?.attrs?.bg }">
|
|
4
|
-
<!-- form 表单 -->
|
|
5
|
-
<div v-if="form.formItemType === 'form'">
|
|
6
|
-
<div class="title h-4 flex items-center relative mb-4 font-bold">{{ form.label }}</div>
|
|
7
|
-
<div
|
|
8
|
-
class="grid"
|
|
9
|
-
:style="{
|
|
10
|
-
'grid-template-columns': `repeat(${form.grid}, minmax(0, 1fr))`,
|
|
11
|
-
'column-gap': form.attrs.columnGap + 'px',
|
|
12
|
-
'row-gap': form.attrs.rowGap + 'px',
|
|
13
|
-
}"
|
|
14
|
-
>
|
|
15
|
-
<hs-form-item
|
|
16
|
-
v-for="(formItem, key) in getFormConfig(form)"
|
|
17
|
-
:label="formItem.label"
|
|
18
|
-
:key="key"
|
|
19
|
-
:style="{
|
|
20
|
-
'--form-item-lable-bg': formItem.layoutData.labelBg,
|
|
21
|
-
'--form-item-lable-text': formItem.layoutData.labelColor,
|
|
22
|
-
'grid-row': `span ${formItem.layoutData.rowSpan}/span ${formItem.layoutData.rowSpan}`,
|
|
23
|
-
'grid-column': `span ${formItem.layoutData.colSpan}/span ${formItem.layoutData.colSpan}`,
|
|
24
|
-
}"
|
|
25
|
-
>
|
|
26
|
-
<div class="flex items-center w-full" v-for="(i, k) in formItem.config" :key="k">
|
|
27
|
-
<slot v-if="i.baseData.isSlot" :name="i.baseData.prop"></slot>
|
|
28
|
-
<bc-btn v-else-if="i.baseData.el === 'hs-button'" :data="getBindComponentData(i)" />
|
|
29
|
-
<component v-else :is="getRender(i.baseData.el)" v-bind="getBindComponentData(i)" />
|
|
30
|
-
</div>
|
|
31
|
-
</hs-form-item>
|
|
32
|
-
</div>
|
|
33
|
-
</div>
|
|
34
|
-
<!-- 自定义插槽 -->
|
|
35
|
-
<div v-if="form.formItemType === 'slot'">
|
|
36
|
-
<div class="title h-4 flex items-center relative mb-4 font-bold">{{ form.label }}</div>
|
|
37
|
-
<slot :name="getSlotConfig(form).name" v-bind="getBindData(form)"></slot>
|
|
38
|
-
</div>
|
|
39
|
-
<!-- 自定义组件 -->
|
|
40
|
-
<div v-if="form.formItemType === 'component'">
|
|
41
|
-
<div class="title h-4 flex items-center relative mb-4 font-bold">{{ form.label }}</div>
|
|
42
|
-
<component :is="getComponentConfig(form).name" v-bind="getBindData(form)" />
|
|
43
|
-
</div>
|
|
44
|
-
</div>
|
|
45
|
-
</hs-form>
|
|
46
|
-
</template>
|
|
47
|
-
<script lang="ts" setup name="bcForm">
|
|
48
|
-
import IFormData from '/@/types/form';
|
|
49
|
-
import ICustomData from '/@/types/customData';
|
|
50
|
-
import { getRender } from '/@parseTable';
|
|
51
|
-
import _ from 'lodash';
|
|
52
|
-
|
|
53
|
-
interface Props {
|
|
54
|
-
data: IFormData.Form;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
const props = defineProps<Props>();
|
|
58
|
-
|
|
59
|
-
function getFormConfig(form: IFormData.FormConfig) {
|
|
60
|
-
return form.config as IFormData.ConfigFormItem[];
|
|
61
|
-
}
|
|
62
|
-
function getSlotConfig(form: IFormData.FormConfig) {
|
|
63
|
-
return form.config as IFormData.ConfigSlotItem;
|
|
64
|
-
}
|
|
65
|
-
function getComponentConfig(form: IFormData.FormConfig) {
|
|
66
|
-
return form.config as IFormData.ConfigComponentItem;
|
|
67
|
-
}
|
|
68
|
-
function getBindData(form: IFormData.FormConfig) {
|
|
69
|
-
return {
|
|
70
|
-
...form,
|
|
71
|
-
data: props.data,
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
function getBindComponentData(data: ICustomData.FormItemConfigData) {
|
|
75
|
-
return {
|
|
76
|
-
...data.baseData,
|
|
77
|
-
...data.elData.attrs,
|
|
78
|
-
..._.omit(data.elData, ['attrs', 'rules']),
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
</script>
|
|
82
|
-
<style scoped lang="scss">
|
|
83
|
-
.title {
|
|
84
|
-
&::after {
|
|
85
|
-
content: '';
|
|
86
|
-
position: absolute;
|
|
87
|
-
left: -10px;
|
|
88
|
-
top: 0;
|
|
89
|
-
width: 5px;
|
|
90
|
-
bottom: 0;
|
|
91
|
-
background-color: #1890ff;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
:deep(.el-date-editor) {
|
|
95
|
-
width: 100%;
|
|
96
|
-
}
|
|
97
|
-
.form-wrap {
|
|
98
|
-
background-color: var(--bg-color);
|
|
99
|
-
&:last-of-type {
|
|
100
|
-
margin-bottom: 0;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
:deep(.el-form-item) {
|
|
104
|
-
margin-bottom: 0 !important;
|
|
105
|
-
}
|
|
106
|
-
:deep(.el-form-item__label) {
|
|
107
|
-
background-color: var(--form-item-lable-bg);
|
|
108
|
-
color: var(--form-item-lable-text);
|
|
109
|
-
}
|
|
110
|
-
:deep(.el-form-item__content) {
|
|
111
|
-
flex-wrap: nowrap !important;
|
|
112
|
-
}
|
|
113
|
-
</style>
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<hs-form v-bind="baseData" :model="formData">
|
|
3
|
-
<VueDraggable ref="dragRef" handle=".el-form-item__label" ghostClass="ghost" v-model="formItemList" :animation="150" class="bc-form bg-white p-4">
|
|
4
|
-
<hs-form-item v-for="item in formItemList" :key="item.id" v-bind="getLabel(item.data)">
|
|
5
|
-
<component
|
|
6
|
-
ref="componentRef"
|
|
7
|
-
class="pointer-events-none"
|
|
8
|
-
v-if="item.data.baseData.prop && !item.data.baseData.isSlot && item.data.baseData.el"
|
|
9
|
-
v-model="(formData as any)[item.data.baseData.prop]"
|
|
10
|
-
:is="item.data.baseData.el"
|
|
11
|
-
v-bind="_.omit(item.data.elData, 'rules')"
|
|
12
|
-
></component>
|
|
13
|
-
<slot v-if="item.data.baseData.isSlot" :name="item.data.baseData.prop"></slot>
|
|
14
|
-
</hs-form-item>
|
|
15
|
-
</VueDraggable>
|
|
16
|
-
</hs-form>
|
|
17
|
-
</template>
|
|
18
|
-
<script lang="ts" setup name="bcFormDrag">
|
|
19
|
-
import { ref, computed } from 'vue';
|
|
20
|
-
import { type UseDraggableReturn, VueDraggable } from 'vue-draggable-plus';
|
|
21
|
-
import ICustomData from '/@/types/customData';
|
|
22
|
-
import _ from 'lodash';
|
|
23
|
-
|
|
24
|
-
interface Props {
|
|
25
|
-
baseData: ICustomData.FormBaseConfig;
|
|
26
|
-
formData: ICustomData.Data;
|
|
27
|
-
formConfig: ICustomData.FormItemConfig[];
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
const props = defineProps<Props>();
|
|
31
|
-
const emit = defineEmits(['update:formConfig']);
|
|
32
|
-
const dragRef = ref<UseDraggableReturn>();
|
|
33
|
-
const componentRef = ref(null);
|
|
34
|
-
|
|
35
|
-
const formItemList = computed({
|
|
36
|
-
get() {
|
|
37
|
-
return props.formConfig;
|
|
38
|
-
},
|
|
39
|
-
set(val) {
|
|
40
|
-
emit('update:formConfig', val);
|
|
41
|
-
},
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
function getLabel(data: ICustomData.FormItemConfigData) {
|
|
45
|
-
return {
|
|
46
|
-
..._.omit(data.baseData, ['el', 'isSlot', 'isAuth', 'isApply', 'isShow']),
|
|
47
|
-
...data.elData.rules,
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
defineExpose({
|
|
52
|
-
componentRef,
|
|
53
|
-
});
|
|
54
|
-
</script>
|
|
55
|
-
<style scoped lang="scss">
|
|
56
|
-
:deep(.el-form-item) {
|
|
57
|
-
box-shadow: inset 0 0 0px 1px #c8ebfb;
|
|
58
|
-
border-radius: 4px;
|
|
59
|
-
}
|
|
60
|
-
:deep(.el-form-item__label) {
|
|
61
|
-
font-weight: 700;
|
|
62
|
-
margin-left: 10px;
|
|
63
|
-
cursor: move;
|
|
64
|
-
}
|
|
65
|
-
:deep(.el-select__wrapper) {
|
|
66
|
-
padding: 0;
|
|
67
|
-
}
|
|
68
|
-
:deep(.el-select__wrapper),
|
|
69
|
-
:deep(.el-input__wrapper) {
|
|
70
|
-
box-shadow: none;
|
|
71
|
-
background-color: transparent;
|
|
72
|
-
}
|
|
73
|
-
:deep(.el-date-editor) {
|
|
74
|
-
--el-date-editor-width: 100% !important;
|
|
75
|
-
}
|
|
76
|
-
:deep(.el-date-editor .el-range__icon) {
|
|
77
|
-
display: none;
|
|
78
|
-
}
|
|
79
|
-
:deep(.el-select__wrapper.is-hovering:not(.is-focused)) {
|
|
80
|
-
box-shadow: none;
|
|
81
|
-
}
|
|
82
|
-
:deep(.el-select__suffix) {
|
|
83
|
-
background-color: #f5f5f5;
|
|
84
|
-
justify-content: center;
|
|
85
|
-
margin-right: 1px;
|
|
86
|
-
}
|
|
87
|
-
:deep(.el-form-item--small .el-select__suffix) {
|
|
88
|
-
padding: 4px;
|
|
89
|
-
}
|
|
90
|
-
:deep(.el-form-item--default .el-select__suffix) {
|
|
91
|
-
padding: 7px;
|
|
92
|
-
}
|
|
93
|
-
:deep(.el-select__caret) {
|
|
94
|
-
color: #2f2f2f;
|
|
95
|
-
}
|
|
96
|
-
:deep(.el-form-item.is-required:not(.is-no-asterisk).asterisk-left > .el-form-item__label-wrap > .el-form-item__label:before),
|
|
97
|
-
:deep(.el-form-item.is-required:not(.is-no-asterisk).asterisk-left > .el-form-item__label:before) {
|
|
98
|
-
margin-right: 0;
|
|
99
|
-
}
|
|
100
|
-
.ghost {
|
|
101
|
-
opacity: 0.5;
|
|
102
|
-
background: #c8ebfb;
|
|
103
|
-
}
|
|
104
|
-
</style>
|
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div ref="wrapRef">
|
|
3
|
-
<div class="bc-form__wrapper px-4 pt-4 bg-white flex">
|
|
4
|
-
<hs-form v-bind="baseData" :model="formData" class="bc-form">
|
|
5
|
-
<hs-form-item v-for="item in formItemList" :key="item.id" v-bind="getLabel(item.data)">
|
|
6
|
-
<component
|
|
7
|
-
ref="componentRef"
|
|
8
|
-
v-if="item.data.baseData.prop && !item.data.baseData.isSlot && item.data.baseData.el"
|
|
9
|
-
v-model="(formData as any)[item.data.baseData.prop]"
|
|
10
|
-
:is="item.data.baseData.el"
|
|
11
|
-
v-bind="_.omit(item.data.elData, 'rules')"
|
|
12
|
-
></component>
|
|
13
|
-
<slot v-if="item.data.baseData.isSlot" :name="`hs_query_${item.data.baseData.prop}`"></slot>
|
|
14
|
-
</hs-form-item>
|
|
15
|
-
</hs-form>
|
|
16
|
-
<div class="bc-form__btn flex items-start justify-end mt-1 mx-2">
|
|
17
|
-
<hs-button v-if="formItemList.length !== formConfig.length" size="small" type="primary" :icon="ArrowUpBold" circle @click="toggleShowAll" />
|
|
18
|
-
<hs-button
|
|
19
|
-
v-if="formItemList.length === formConfig.length && showAll"
|
|
20
|
-
size="small"
|
|
21
|
-
type="primary"
|
|
22
|
-
:icon="ArrowDownBold"
|
|
23
|
-
circle
|
|
24
|
-
@click="toggleShowAll"
|
|
25
|
-
/>
|
|
26
|
-
</div>
|
|
27
|
-
</div>
|
|
28
|
-
<div class="h-4"></div>
|
|
29
|
-
</div>
|
|
30
|
-
</template>
|
|
31
|
-
<script lang="ts" setup name="bcFormSearch">
|
|
32
|
-
import { ref, computed, nextTick } from 'vue';
|
|
33
|
-
import { ArrowDownBold, ArrowUpBold } from '@element-plus/icons-vue';
|
|
34
|
-
import { useElementSize } from '@vueuse/core';
|
|
35
|
-
import ICustomData from '/@/types/customData';
|
|
36
|
-
import _ from 'lodash';
|
|
37
|
-
|
|
38
|
-
interface Props {
|
|
39
|
-
baseData: ICustomData.FormBaseConfig;
|
|
40
|
-
formConfig: Array<ICustomData.FormItemConfig>;
|
|
41
|
-
formData: ICustomData.Data;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
const props = defineProps<Props>();
|
|
45
|
-
const emit = defineEmits(['heightChange']);
|
|
46
|
-
const wrapRef = ref(null);
|
|
47
|
-
const componentRef = ref(null);
|
|
48
|
-
const showAll = ref(false);
|
|
49
|
-
const { width } = useElementSize(wrapRef);
|
|
50
|
-
const xl = 1280;
|
|
51
|
-
const lg = 1024;
|
|
52
|
-
const md = 768;
|
|
53
|
-
const sm = 640;
|
|
54
|
-
|
|
55
|
-
const formItemList = computed(() => {
|
|
56
|
-
if (showAll.value) return props.formConfig;
|
|
57
|
-
if (width.value > xl) {
|
|
58
|
-
return props.formConfig.slice(0, 5);
|
|
59
|
-
}
|
|
60
|
-
if (width.value > lg && width.value <= xl) {
|
|
61
|
-
return props.formConfig.slice(0, 4);
|
|
62
|
-
}
|
|
63
|
-
if (width.value > md && width.value <= lg) {
|
|
64
|
-
return props.formConfig.slice(0, 3);
|
|
65
|
-
}
|
|
66
|
-
if (width.value > sm && width.value <= md) {
|
|
67
|
-
return props.formConfig.slice(0, 2);
|
|
68
|
-
}
|
|
69
|
-
return props.formConfig.slice(0, 1);
|
|
70
|
-
});
|
|
71
|
-
|
|
72
|
-
function getLabel(data: ICustomData.FormItemConfigData) {
|
|
73
|
-
return {
|
|
74
|
-
..._.omit(data.baseData, ['el', 'isSlot', 'isAuth', 'isApply', 'isShow']),
|
|
75
|
-
...data.elData.rules,
|
|
76
|
-
};
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
function toggleShowAll() {
|
|
80
|
-
emit('heightChange');
|
|
81
|
-
nextTick(() => {
|
|
82
|
-
showAll.value = !showAll.value;
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
function getComponents() {
|
|
87
|
-
return componentRef.value || [];
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
defineExpose({
|
|
91
|
-
componentRef,
|
|
92
|
-
getComponents,
|
|
93
|
-
});
|
|
94
|
-
</script>
|
|
95
|
-
<style scoped lang="scss">
|
|
96
|
-
@media (max-width: 640px) {
|
|
97
|
-
.bc-form__wrapper {
|
|
98
|
-
flex-direction: column;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
:deep(.el-form-item) {
|
|
102
|
-
box-shadow: inset 0 0 0px 1px #cfd0d0;
|
|
103
|
-
border-radius: 4px;
|
|
104
|
-
}
|
|
105
|
-
:deep(.el-form-item__label) {
|
|
106
|
-
font-weight: 700;
|
|
107
|
-
margin-left: 10px;
|
|
108
|
-
}
|
|
109
|
-
:deep(.el-select__wrapper) {
|
|
110
|
-
padding: 0;
|
|
111
|
-
}
|
|
112
|
-
:deep(.el-select__wrapper),
|
|
113
|
-
:deep(.el-input__wrapper),
|
|
114
|
-
:deep(.el-date-editor.el-input__wrapper:hover) {
|
|
115
|
-
box-shadow: none;
|
|
116
|
-
background-color: transparent;
|
|
117
|
-
}
|
|
118
|
-
:deep(.el-date-editor) {
|
|
119
|
-
--el-date-editor-width: 100% !important;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
:deep(.el-date-editor .el-range__icon) {
|
|
123
|
-
display: none;
|
|
124
|
-
}
|
|
125
|
-
:deep(.el-select__wrapper.is-hovering:not(.is-focused)) {
|
|
126
|
-
box-shadow: none;
|
|
127
|
-
}
|
|
128
|
-
:deep(.el-select__suffix) {
|
|
129
|
-
background-color: #f5f5f5;
|
|
130
|
-
justify-content: center;
|
|
131
|
-
margin-right: 1px;
|
|
132
|
-
}
|
|
133
|
-
:deep(.el-form-item--small .el-select__suffix) {
|
|
134
|
-
padding: 4px;
|
|
135
|
-
}
|
|
136
|
-
:deep(.el-form-item--default .el-select__suffix) {
|
|
137
|
-
padding: 7px;
|
|
138
|
-
}
|
|
139
|
-
:deep(.el-select__caret) {
|
|
140
|
-
color: #2f2f2f;
|
|
141
|
-
}
|
|
142
|
-
:deep(.el-form-item.is-error .el-input__wrapper),
|
|
143
|
-
:deep(.el-form-item.is-error .el-select__wrapper),
|
|
144
|
-
:deep(.el-form-item.is-error .el-textarea__inner) {
|
|
145
|
-
box-shadow: none;
|
|
146
|
-
}
|
|
147
|
-
:deep(.el-form-item.is-required:not(.is-no-asterisk).asterisk-left > .el-form-item__label-wrap > .el-form-item__label:before),
|
|
148
|
-
:deep(.el-form-item.is-required:not(.is-no-asterisk).asterisk-left > .el-form-item__label:before) {
|
|
149
|
-
margin-right: 0;
|
|
150
|
-
}
|
|
151
|
-
:deep(.el-form-item.is-error) {
|
|
152
|
-
box-shadow: 0 0 0 1px var(--el-color-danger) inset;
|
|
153
|
-
}
|
|
154
|
-
</style>
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { showPopup } from '/@/utils/showPopup';
|
|
2
|
-
import SortForm from './sortForm.vue';
|
|
3
|
-
|
|
4
|
-
/** 自定义列排序高级设置 */
|
|
5
|
-
export function setSortPopup<T>(id: string): Promise<T> {
|
|
6
|
-
return new Promise((reslove) => {
|
|
7
|
-
showPopup(
|
|
8
|
-
SortForm,
|
|
9
|
-
{ id },
|
|
10
|
-
{
|
|
11
|
-
title: '高级设置',
|
|
12
|
-
success(params: T) {
|
|
13
|
-
reslove(params);
|
|
14
|
-
},
|
|
15
|
-
}
|
|
16
|
-
);
|
|
17
|
-
});
|
|
18
|
-
}
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="h-full flex flex-col">
|
|
3
|
-
<div class="flex-1 overflow-hidden border-bottom-1">
|
|
4
|
-
<div class="w-full h-full">
|
|
5
|
-
<ul class="head flex items-center list-none">
|
|
6
|
-
<li class="w-[50px] px-2">拖动</li>
|
|
7
|
-
<li class="flex-1 pl-6">列名称</li>
|
|
8
|
-
<li class="flex-1 px-2">显示状态</li>
|
|
9
|
-
<li class="flex-1 px-2">排序值</li>
|
|
10
|
-
</ul>
|
|
11
|
-
<VueDraggable
|
|
12
|
-
v-model="list"
|
|
13
|
-
ghostClass="ghost"
|
|
14
|
-
handle=".sort-target"
|
|
15
|
-
animation="150"
|
|
16
|
-
class="overflow-y-auto border-1"
|
|
17
|
-
style="height: calc(100% - 34px)"
|
|
18
|
-
>
|
|
19
|
-
<div v-for="(item, index) in list" :key="item.id" class="flex items-center w-full px-2 border-bottom-1">
|
|
20
|
-
<span class="sort-target w-[50px] cursor-move px-2">
|
|
21
|
-
<el-icon class="rotate-90" size="14"><MoreFilled /></el-icon>
|
|
22
|
-
</span>
|
|
23
|
-
<span class="flex-1 px-2"><hs-input v-model="item.data.baseData.prop" /></span>
|
|
24
|
-
<span class="flex-1 px-2"><hs-switch v-model="item.data.baseData.isShow" /></span>
|
|
25
|
-
<span class="flex-1 px-2">{{ index + 1 }}</span>
|
|
26
|
-
</div>
|
|
27
|
-
</VueDraggable>
|
|
28
|
-
</div>
|
|
29
|
-
</div>
|
|
30
|
-
<div class="footer h-12 mt-2 flex items-center justify-end">
|
|
31
|
-
<hs-button size="small" @click="$emit('success')">取消</hs-button>
|
|
32
|
-
<hs-button type="primary" size="small" @click="submit">保存</hs-button>
|
|
33
|
-
</div>
|
|
34
|
-
</div>
|
|
35
|
-
</template>
|
|
36
|
-
<script lang="ts" setup name="sortColumn">
|
|
37
|
-
import { MoreFilled } from '@element-plus/icons-vue';
|
|
38
|
-
import ICustomData from '/@/types/customData';
|
|
39
|
-
import { ref } from 'vue';
|
|
40
|
-
import { formStore } from '/@/utils/storage';
|
|
41
|
-
import { VueDraggable } from 'vue-draggable-plus';
|
|
42
|
-
|
|
43
|
-
interface Props {
|
|
44
|
-
id: string;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
const props = defineProps<Props>();
|
|
48
|
-
const emit = defineEmits(['success']);
|
|
49
|
-
const list = ref<ICustomData.FormItemConfig[]>([]);
|
|
50
|
-
|
|
51
|
-
getList(props.id);
|
|
52
|
-
|
|
53
|
-
function getList(id: string) {
|
|
54
|
-
return formStore.get<ICustomData.FormTable>(id).then((res) => {
|
|
55
|
-
list.value = res.form?.formConfig || [];
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
function submit() {
|
|
60
|
-
formStore.get<ICustomData.FormTable>(props.id).then((cache) => {
|
|
61
|
-
// 序列化掉代理数据,获取源数据
|
|
62
|
-
cache.form!.formConfig = JSON.parse(JSON.stringify([...list.value]));
|
|
63
|
-
formStore.set(props.id, cache).then(() => {
|
|
64
|
-
emit('success', cache);
|
|
65
|
-
});
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
</script>
|
|
69
|
-
<style scoped lang="scss">
|
|
70
|
-
.ghost {
|
|
71
|
-
opacity: 0.5;
|
|
72
|
-
background: #48c9b0;
|
|
73
|
-
}
|
|
74
|
-
:deep(.el-input__wrapper) {
|
|
75
|
-
box-shadow: none;
|
|
76
|
-
background-color: transparent;
|
|
77
|
-
}
|
|
78
|
-
:deep(.el-input__wrapper.is-focus) {
|
|
79
|
-
box-shadow: 0 0 0 1px var(--el-input-focus-border-color) inset;
|
|
80
|
-
}
|
|
81
|
-
ul {
|
|
82
|
-
&.head {
|
|
83
|
-
background-color: #f5f5f5;
|
|
84
|
-
border: 1px solid #f5f5f5;
|
|
85
|
-
}
|
|
86
|
-
li {
|
|
87
|
-
height: 34px;
|
|
88
|
-
display: flex;
|
|
89
|
-
align-items: center;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
</style>
|