hs-admin-ui 1.0.0 → 1.0.2
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 +175 -0
- package/dist/umd/index.js.gz +0 -0
- package/package.json +5 -2
- 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,2424 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="system-user-container layout-padding">
|
|
3
|
-
<el-card shadow="hover" class="layout-padding-auto">
|
|
4
|
-
<div class="flex flex-row min-h-[600px]">
|
|
5
|
-
<div class="flex-1 bg-red-200">
|
|
6
|
-
<!-- <hs-input v-bind="data2.attrs" v-model="inputVal"></hs-input>
|
|
7
|
-
{{ data2 }} -->
|
|
8
|
-
<!-- <hs-select v-bind="selectData.selectAttrs" v-model="selectValue3">
|
|
9
|
-
<hs-option v-for="item in JSON.parse(selectData.selectAttrs.options)" v-bind="selectData.optionAttrs" :key="item.value" :label="item[selectData.optionAttrs.label]" :value="item[selectData.optionAttrs.value]" />
|
|
10
|
-
</hs-select> -->
|
|
11
|
-
<!-- {{ selectData }} -->
|
|
12
|
-
|
|
13
|
-
<!-- <hs-date-picker v-model="datePickerValue" v-bind="datePickerData.attrs" />
|
|
14
|
-
{{ datePickerData }} -->
|
|
15
|
-
<!-- {{ buttonData }} -->
|
|
16
|
-
<!-- <hs-autocomplete v-model="autocompleteValue" v-bind="autocompleteData.attrs"></hs-autocomplete>
|
|
17
|
-
{{autocompleteData}} -->
|
|
18
|
-
<!-- <hs-switch v-model="switchValue" v-bind="switchData.attrs" />
|
|
19
|
-
{{ switchData }} -->
|
|
20
|
-
<!-- {{ uploadData }} -->
|
|
21
|
-
<!-- {{ checkboxData }} -->
|
|
22
|
-
<!-- {{ radioData }} -->
|
|
23
|
-
<!-- <hs-input-number v-model="inputNumberValue" v-bind="inputNumberData.attrs"/>
|
|
24
|
-
{{ inputNumberData }} -->
|
|
25
|
-
<!-- <hs-cascader v-model="cascaderValue" v-bind="cascaderData.attrs" :options="cascaderData.attrs.options ?JSON.parse(cascaderData.attrs.options) : []" />
|
|
26
|
-
{{ cascaderData }} -->
|
|
27
|
-
<!-- <hs-cascader-panel
|
|
28
|
-
v-model="cascaderPanelValue2"
|
|
29
|
-
v-bind="cascaderPanelData.attrs"
|
|
30
|
-
:options="cascaderPanelData.attrs && cascaderPanelData.attrs.options ? JSON.parse(cascaderPanelData.attrs.options) : []"
|
|
31
|
-
/>
|
|
32
|
-
{{ cascaderPanelData }} -->
|
|
33
|
-
{{ treeSelectData2 }}
|
|
34
|
-
</div>
|
|
35
|
-
<div class="basis-1/4 border-2 border-amber-400 border-solid">
|
|
36
|
-
<!-- <input-attr-config :data="data2"> </input-attr-config> -->
|
|
37
|
-
<!-- <input-event-config :data="data2"></input-event-config> -->
|
|
38
|
-
<!-- <select-attr-config :data="selectData"></select-attr-config> -->
|
|
39
|
-
<!-- <date-picker-attr-config :data="datePickerData"></date-picker-attr-config> -->
|
|
40
|
-
<!-- <button-attr-config :data="buttonData"></button-attr-config> -->
|
|
41
|
-
<!-- <autocomplete-attr-config :data="autocompleteData"></autocomplete-attr-config> -->
|
|
42
|
-
<!-- <switch-attr-config :data="switchData"></switch-attr-config> -->
|
|
43
|
-
<!-- <upload-attr-config :data="uploadData"></upload-attr-config> -->
|
|
44
|
-
<!-- <checkbox-attr-config :data="checkboxData"></checkbox-attr-config> -->
|
|
45
|
-
|
|
46
|
-
<!-- <radio-attr-config :data="radioData"></radio-attr-config> -->
|
|
47
|
-
<!-- <input-number-attr-config :data="inputNumberData"></input-number-attr-config> -->
|
|
48
|
-
<!-- <cascader-attr-config :data="cascaderData"></cascader-attr-config> -->
|
|
49
|
-
<!-- <cascader-panel-attr-config :data="cascaderPanelData" :isVModel="false"></cascader-panel-attr-config> -->
|
|
50
|
-
<tree-select-attr-config :data="treeSelectData2" :isVModel="true"></tree-select-attr-config>
|
|
51
|
-
</div>
|
|
52
|
-
</div>
|
|
53
|
-
<!-- 新组件 -->
|
|
54
|
-
<hs-button color="#626aef" ref="buttonRef" @click="getCheckedNodes">
|
|
55
|
-
按钮
|
|
56
|
-
<template #icon> icon </template>
|
|
57
|
-
</hs-button>
|
|
58
|
-
|
|
59
|
-
<!-- 原组件 -->
|
|
60
|
-
<!-- <div> -->
|
|
61
|
-
<el-button type="danger" ref="buttonRef2" @click="testMessage"> 测试 </el-button>
|
|
62
|
-
<!-- </div> -->
|
|
63
|
-
<hs-button-group>
|
|
64
|
-
<hs-button type="primary" icon="ele-ArrowLeft" @click="getVal()">Previous Page</hs-button>
|
|
65
|
-
<hs-button type="primary" @click="click(2, 4, 6)">
|
|
66
|
-
Next Page<el-icon class="el-icon--right"><ele-ArrowRight /></el-icon>
|
|
67
|
-
</hs-button>
|
|
68
|
-
</hs-button-group>
|
|
69
|
-
<hs-input
|
|
70
|
-
v-model="testValue"
|
|
71
|
-
placeholder="请输入hs-input"
|
|
72
|
-
@blur="handleBlur"
|
|
73
|
-
@focus="handleFocus"
|
|
74
|
-
@change="handleChange"
|
|
75
|
-
@input="handleInput"
|
|
76
|
-
@clear="handleClear"
|
|
77
|
-
clearable
|
|
78
|
-
@keyup.enter="inputEnter"
|
|
79
|
-
ref="inputRef"
|
|
80
|
-
size="small"
|
|
81
|
-
maxlength="10"
|
|
82
|
-
>
|
|
83
|
-
<template #prefix>prefix</template>
|
|
84
|
-
<template #suffix>Hsuffix</template>
|
|
85
|
-
<template #prepend>Http://</template>
|
|
86
|
-
<template #append>
|
|
87
|
-
<el-select v-model="select" placeholder="Select" style="width: 115px">
|
|
88
|
-
<el-option label="Restaurant" value="1" />
|
|
89
|
-
<el-option label="Order No." value="2" />
|
|
90
|
-
<el-option label="Tel" value="3" />
|
|
91
|
-
</el-select>
|
|
92
|
-
</template>
|
|
93
|
-
</hs-input>
|
|
94
|
-
<el-input
|
|
95
|
-
v-model="testValue2"
|
|
96
|
-
placeholder="请输入el-input"
|
|
97
|
-
@blur="handleBlur"
|
|
98
|
-
@focus="handleFocus"
|
|
99
|
-
@change="handleChange"
|
|
100
|
-
@input="handleInput"
|
|
101
|
-
@clear="handleClear"
|
|
102
|
-
clearable
|
|
103
|
-
@keyup.enter="inputEnter"
|
|
104
|
-
ref="inputRef2"
|
|
105
|
-
size="small"
|
|
106
|
-
maxlength="10"
|
|
107
|
-
>
|
|
108
|
-
<template #prefix>prefix</template>
|
|
109
|
-
<template #suffix>Hsuffix</template>
|
|
110
|
-
<template #prepend>Http://</template>
|
|
111
|
-
<template #append>
|
|
112
|
-
<el-select v-model="select" placeholder="Select" style="width: 115px">
|
|
113
|
-
<el-option label="Restaurant" value="1" />
|
|
114
|
-
<el-option label="Order No." value="2" />
|
|
115
|
-
<el-option label="Tel" value="3" />
|
|
116
|
-
</el-select>
|
|
117
|
-
</template>
|
|
118
|
-
</el-input>
|
|
119
|
-
<hs-input
|
|
120
|
-
v-model.number="testValue3"
|
|
121
|
-
placeholder="请输入hs-input"
|
|
122
|
-
@blur="handleBlur"
|
|
123
|
-
@focus="handleFocus"
|
|
124
|
-
@change="handleChange"
|
|
125
|
-
@input="handleInput"
|
|
126
|
-
@clear="handleClear"
|
|
127
|
-
clearable
|
|
128
|
-
@keyup.enter="inputEnter"
|
|
129
|
-
ref="inputRef3"
|
|
130
|
-
size="small"
|
|
131
|
-
type="textarea"
|
|
132
|
-
show-password
|
|
133
|
-
autosize
|
|
134
|
-
>
|
|
135
|
-
<template #prefix>prefix</template>
|
|
136
|
-
<template #suffix>Hsuffix</template>
|
|
137
|
-
<template #prepend>Http://</template>
|
|
138
|
-
<template #append>
|
|
139
|
-
<el-select v-model="select" placeholder="Select" style="width: 115px">
|
|
140
|
-
<el-option label="Restaurant" value="1" />
|
|
141
|
-
<el-option label="Order No." value="2" />
|
|
142
|
-
<el-option label="Tel" value="3" />
|
|
143
|
-
</el-select>
|
|
144
|
-
</template>
|
|
145
|
-
</hs-input>
|
|
146
|
-
<el-select
|
|
147
|
-
v-model="selectValue"
|
|
148
|
-
class="m-2"
|
|
149
|
-
placeholder="el-Select"
|
|
150
|
-
size="large"
|
|
151
|
-
ref="elSelectRef"
|
|
152
|
-
multiple
|
|
153
|
-
clearable
|
|
154
|
-
@change="selectChange"
|
|
155
|
-
filterable
|
|
156
|
-
allow-create
|
|
157
|
-
clear-icon="ele-Close"
|
|
158
|
-
fit-input-width
|
|
159
|
-
suffix-icon="ele-Search"
|
|
160
|
-
tag-type="warning"
|
|
161
|
-
>
|
|
162
|
-
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" />
|
|
163
|
-
<template #header>header</template>
|
|
164
|
-
<template #footer>footer</template>
|
|
165
|
-
<template #prefix>el-select prefix</template>
|
|
166
|
-
<template #empty>empty</template>
|
|
167
|
-
</el-select>
|
|
168
|
-
<hs-select
|
|
169
|
-
v-model="selectValue2"
|
|
170
|
-
class="m-2"
|
|
171
|
-
placeholder="hs-Select"
|
|
172
|
-
size="large"
|
|
173
|
-
ref="hsSelectRef"
|
|
174
|
-
multiple
|
|
175
|
-
clearable
|
|
176
|
-
@change="selectChange"
|
|
177
|
-
filterable
|
|
178
|
-
allow-create
|
|
179
|
-
clear-icon="ele-Close"
|
|
180
|
-
fit-input-width
|
|
181
|
-
suffix-icon="ele-Search"
|
|
182
|
-
tag-type="warning"
|
|
183
|
-
>
|
|
184
|
-
<hs-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" />
|
|
185
|
-
<template #header>header</template>
|
|
186
|
-
<template #footer>footer</template>
|
|
187
|
-
<template #prefix>hs-select prefix</template>
|
|
188
|
-
<template #empty>empty</template>
|
|
189
|
-
</hs-select>
|
|
190
|
-
|
|
191
|
-
<!-- tree -->
|
|
192
|
-
<el-input v-model="filterText" placeholder="el-input Filter keyword" />
|
|
193
|
-
|
|
194
|
-
<el-tree
|
|
195
|
-
ref="treeRef"
|
|
196
|
-
class="filter-tree"
|
|
197
|
-
:data="data"
|
|
198
|
-
:props="defaultProps"
|
|
199
|
-
:filter-node-method="filterNode"
|
|
200
|
-
show-checkbox
|
|
201
|
-
:check-strictly="true"
|
|
202
|
-
draggable
|
|
203
|
-
@check="treeCheck"
|
|
204
|
-
@node-click="treeNodeClick"
|
|
205
|
-
@node-contextmenu="treeNodeContextmenu"
|
|
206
|
-
@check-change="treeCheckChange"
|
|
207
|
-
/>
|
|
208
|
-
|
|
209
|
-
<hs-input v-model="filterText" placeholder="hs-input Filter keyword" />
|
|
210
|
-
|
|
211
|
-
<hs-tree
|
|
212
|
-
ref="treeRef2"
|
|
213
|
-
class="filter-tree"
|
|
214
|
-
:data="data"
|
|
215
|
-
:props="defaultProps"
|
|
216
|
-
:filter-node-method="filterNode"
|
|
217
|
-
show-checkbox
|
|
218
|
-
:check-strictly="true"
|
|
219
|
-
draggable
|
|
220
|
-
@check="treeCheck"
|
|
221
|
-
@node-click="treeNodeClick"
|
|
222
|
-
@node-contextmenu="treeNodeContextmenu"
|
|
223
|
-
@check-change="treeCheckChange"
|
|
224
|
-
>
|
|
225
|
-
<template #empty>
|
|
226
|
-
<div>empty</div>
|
|
227
|
-
</template>
|
|
228
|
-
</hs-tree>
|
|
229
|
-
<!-- input-number -->
|
|
230
|
-
<el-input-number v-model="num" :precision="2" :step="0.1" :max="10" ref="elInputNumberRef" />
|
|
231
|
-
<hs-input-number v-model="num" :precision="2" :step="0.1" :max="10" ref="hsInputNumberRef" />
|
|
232
|
-
<!-- switch -->
|
|
233
|
-
<el-switch
|
|
234
|
-
v-model="switchValue"
|
|
235
|
-
active-color="#13ce66"
|
|
236
|
-
inactive-color="#ff4949"
|
|
237
|
-
ref="elSwitchRef"
|
|
238
|
-
active-text="el-switch active-text"
|
|
239
|
-
inactive-text="el-switch inactive-text"
|
|
240
|
-
@change="switchChange"
|
|
241
|
-
>
|
|
242
|
-
<template #active-action>active</template>
|
|
243
|
-
<template #inactive-action>inactive</template>
|
|
244
|
-
</el-switch>
|
|
245
|
-
<hs-switch
|
|
246
|
-
v-model="switchValue"
|
|
247
|
-
active-color="#13ce66"
|
|
248
|
-
inactive-color="#ff4949"
|
|
249
|
-
ref="hsSwitchRef"
|
|
250
|
-
active-text="hs-switch active-text"
|
|
251
|
-
inactive-text="hs-switch inactive-text"
|
|
252
|
-
@change="switchChange"
|
|
253
|
-
>
|
|
254
|
-
<template #active-action>active</template>
|
|
255
|
-
<template #inactive-action>inactive</template>
|
|
256
|
-
</hs-switch>
|
|
257
|
-
<!-- radio -->
|
|
258
|
-
<el-radio-group v-model="radio" ref="elRadioGroupRef" @change="radioChange">
|
|
259
|
-
<el-radio-button label="上海" ref="elRadioButtonRef">上海</el-radio-button>
|
|
260
|
-
<el-radio-button label="北京">北京</el-radio-button>
|
|
261
|
-
<el-radio-button label="广州">广州</el-radio-button>
|
|
262
|
-
<el-radio-button label="深圳">深圳</el-radio-button>
|
|
263
|
-
</el-radio-group>
|
|
264
|
-
<hs-radio-group v-model="radio" ref="hsRadioGroupRef" @change="radioChange">
|
|
265
|
-
<hs-radio-button label="上海" ref="hsRadioButtonRef">上海</hs-radio-button>
|
|
266
|
-
<hs-radio-button label="北京">北京</hs-radio-button>
|
|
267
|
-
<hs-radio-button label="广州">广州</hs-radio-button>
|
|
268
|
-
<hs-radio-button label="深圳">深圳</hs-radio-button>
|
|
269
|
-
</hs-radio-group>
|
|
270
|
-
<el-radio-group v-model="radio1" class="ml-4" @change="radioChange">
|
|
271
|
-
<el-radio label="1" size="large">Option 1</el-radio>
|
|
272
|
-
<el-radio label="2" size="large">Option 2</el-radio>
|
|
273
|
-
</el-radio-group>
|
|
274
|
-
<hs-radio-group v-model="radio1" class="ml-4" @change="radioChange">
|
|
275
|
-
<hs-radio label="1" size="large">Option 1</hs-radio>
|
|
276
|
-
<hs-radio label="2" size="large">Option 2</hs-radio>
|
|
277
|
-
</hs-radio-group>
|
|
278
|
-
<el-radio v-model="switchValue" :label="true" size="large" @change="radioChange"></el-radio>
|
|
279
|
-
<hs-radio v-model="switchValue" :label="true" size="large" @change="radioChange"></hs-radio>
|
|
280
|
-
<!-- checkbox -->
|
|
281
|
-
<el-checkbox v-model="checked1" label="Option 1" size="large" ref="elCheckboxRef" @change="checkboxChange" />
|
|
282
|
-
<el-checkbox v-model="checked2" label="Option 2" size="large" />
|
|
283
|
-
<hs-checkbox v-model="checked1" label="Option 1" size="large" ref="hsCheckboxRef" @change="checkboxChange" />
|
|
284
|
-
<hs-checkbox v-model="checked2" label="Option 2" size="large" />
|
|
285
|
-
<el-checkbox-group v-model="checkList">
|
|
286
|
-
<el-checkbox label="Option A" />
|
|
287
|
-
<el-checkbox label="Option B" />
|
|
288
|
-
<el-checkbox label="Option C" />
|
|
289
|
-
<el-checkbox label="disabled" disabled />
|
|
290
|
-
<el-checkbox label="selected and disabled" disabled />
|
|
291
|
-
</el-checkbox-group>
|
|
292
|
-
<hs-checkbox-group v-model="checkList">
|
|
293
|
-
<hs-checkbox label="Option A" />
|
|
294
|
-
<hs-checkbox label="Option B" />
|
|
295
|
-
<hs-checkbox label="Option C" />
|
|
296
|
-
<hs-checkbox label="disabled" disabled />
|
|
297
|
-
<hs-checkbox label="selected and disabled" disabled />
|
|
298
|
-
</hs-checkbox-group>
|
|
299
|
-
<el-checkbox-group v-model="checkboxGroup4" size="small">
|
|
300
|
-
<el-checkbox-button v-for="city in cities" :key="city" :label="city">{{ city }}</el-checkbox-button>
|
|
301
|
-
</el-checkbox-group>
|
|
302
|
-
<hs-checkbox-group v-model="checkboxGroup4" size="small">
|
|
303
|
-
<hs-checkbox-button v-for="city in cities" :key="city" :label="city">{{ city }}</hs-checkbox-button>
|
|
304
|
-
</hs-checkbox-group>
|
|
305
|
-
<!-- rate -->
|
|
306
|
-
<el-rate v-model="value2" :colors="colors" clearable size="small" @change="rateChange" ref="elRateRef" />
|
|
307
|
-
<hs-rate v-model="value2" :colors="colors" clearable size="small" @change="rateChange" ref="hsRateRef" />
|
|
308
|
-
<!-- autocomplete -->
|
|
309
|
-
<el-autocomplete
|
|
310
|
-
v-model="state1"
|
|
311
|
-
:fetch-suggestions="querySearchAsync"
|
|
312
|
-
clearable
|
|
313
|
-
class="inline-input w-50"
|
|
314
|
-
placeholder="Please el-Input"
|
|
315
|
-
@select="handleSelect"
|
|
316
|
-
ref="elAutocompleteRef"
|
|
317
|
-
>
|
|
318
|
-
</el-autocomplete>
|
|
319
|
-
<hs-autocomplete
|
|
320
|
-
v-model="state1"
|
|
321
|
-
:fetch-suggestions="querySearchAsync"
|
|
322
|
-
clearable
|
|
323
|
-
class="inline-input w-50"
|
|
324
|
-
placeholder="Please hs-Input"
|
|
325
|
-
@select="handleSelect"
|
|
326
|
-
ref="hsAutocompleteRef"
|
|
327
|
-
>
|
|
328
|
-
</hs-autocomplete>
|
|
329
|
-
<!-- slider -->
|
|
330
|
-
<div class="slider-demo-block">
|
|
331
|
-
<span class="demonstration">el-slider</span>
|
|
332
|
-
<el-slider
|
|
333
|
-
v-model="innerValue"
|
|
334
|
-
ref="sliderRef"
|
|
335
|
-
@change="sliderChange"
|
|
336
|
-
@input="sliderInput"
|
|
337
|
-
:max="50"
|
|
338
|
-
:step="10"
|
|
339
|
-
show-input
|
|
340
|
-
:show-input-controls="false"
|
|
341
|
-
size="small"
|
|
342
|
-
show-stops
|
|
343
|
-
></el-slider>
|
|
344
|
-
</div>
|
|
345
|
-
<div class="slider-demo-block">
|
|
346
|
-
<span class="demonstration">hs-slider</span>
|
|
347
|
-
<hs-slider
|
|
348
|
-
v-model="innerValue"
|
|
349
|
-
ref="hsSliderRef"
|
|
350
|
-
@change="sliderChange"
|
|
351
|
-
@input="sliderInput"
|
|
352
|
-
:max="50"
|
|
353
|
-
:step="10"
|
|
354
|
-
show-input
|
|
355
|
-
:show-input-controls="false"
|
|
356
|
-
size="small"
|
|
357
|
-
show-stops
|
|
358
|
-
></hs-slider>
|
|
359
|
-
<!-- color-picker -->
|
|
360
|
-
<div class="demo-color-block">
|
|
361
|
-
<span class="demonstration">el-color-picker</span>
|
|
362
|
-
<el-color-picker
|
|
363
|
-
v-model="color"
|
|
364
|
-
ref="colorPickerRef"
|
|
365
|
-
show-alpha
|
|
366
|
-
@change="colorChange"
|
|
367
|
-
@active-change="colorActiveChange"
|
|
368
|
-
@focus="colorFocus"
|
|
369
|
-
@blur="colorBlur"
|
|
370
|
-
></el-color-picker>
|
|
371
|
-
</div>
|
|
372
|
-
<div class="demo-color-block">
|
|
373
|
-
<span class="demonstration">hs-color-picker</span>
|
|
374
|
-
<hs-color-picker
|
|
375
|
-
v-model="color"
|
|
376
|
-
ref="hsColorPickerRef"
|
|
377
|
-
show-alpha
|
|
378
|
-
@change="colorChange"
|
|
379
|
-
@active-change="colorActiveChange"
|
|
380
|
-
@focus="colorFocus"
|
|
381
|
-
@blur="colorBlur"
|
|
382
|
-
></hs-color-picker>
|
|
383
|
-
</div>
|
|
384
|
-
</div>
|
|
385
|
-
<!-- cascader -->
|
|
386
|
-
<div class="m-4">
|
|
387
|
-
<p>Child options expand when clicked (default) el-cascader</p>
|
|
388
|
-
<el-cascader v-model="value" :options="options1" clearable filterable @change="cascaderChange" ref="elCascaderRef">
|
|
389
|
-
<template #default="{ data, node }">
|
|
390
|
-
<span>{{ data.label }}</span>
|
|
391
|
-
<span v-if="!node.isLeaf"> ({{ data.children.length }}) </span>
|
|
392
|
-
</template>
|
|
393
|
-
</el-cascader>
|
|
394
|
-
</div>
|
|
395
|
-
<div class="m-4">
|
|
396
|
-
<p>Child options expand when hovered el-cascader</p>
|
|
397
|
-
<el-cascader v-model="value" :options="options1" :props="props" clearable collapse-tags filterable @change="cascaderChange" />
|
|
398
|
-
</div>
|
|
399
|
-
<div class="m-4">
|
|
400
|
-
<p>Child options expand when clicked (default) hs-cascader</p>
|
|
401
|
-
<hs-cascader v-model="value" :options="options1" clearable filterable @change="cascaderChange" ref="hsCascaderRef">
|
|
402
|
-
<template #default="{ data, node }">
|
|
403
|
-
<span>{{ data.label }}</span>
|
|
404
|
-
<span v-if="!node.isLeaf"> ({{ data.children.length }}) </span>
|
|
405
|
-
</template>
|
|
406
|
-
</hs-cascader>
|
|
407
|
-
</div>
|
|
408
|
-
<div class="m-4">
|
|
409
|
-
<p>Child options expand when hovered hs-cascader</p>
|
|
410
|
-
<hs-cascader v-model="value" :options="options1" :props="props" clearable collapse-tags filterable @change="cascaderChange" />
|
|
411
|
-
</div>
|
|
412
|
-
<el-cascader-panel v-model="cascaderPanelValue" :options="options1" @change="cascaderPanelChange" ref="elCascaderPanelRef" />
|
|
413
|
-
<hs-cascader-panel v-model="cascaderPanelValue" :options="options1" @change="cascaderPanelChange" ref="hsCascaderPanelRef" />
|
|
414
|
-
<!-- upload -->
|
|
415
|
-
<el-upload
|
|
416
|
-
v-model:file-list="fileList"
|
|
417
|
-
class="upload-demo"
|
|
418
|
-
action="/xypms-web/pub/singlefile"
|
|
419
|
-
name="file"
|
|
420
|
-
:data="{
|
|
421
|
-
top_company_id: '2001',
|
|
422
|
-
company_id: '2001',
|
|
423
|
-
pup_token: 'a842ca95c67ec5c722afdb4e69d40d45',
|
|
424
|
-
}"
|
|
425
|
-
multiple
|
|
426
|
-
:on-preview="handlePreview"
|
|
427
|
-
:on-remove="handleRemove"
|
|
428
|
-
:before-remove="beforeRemove"
|
|
429
|
-
:limit="3"
|
|
430
|
-
:on-exceed="handleExceed"
|
|
431
|
-
ref="elUploadRef"
|
|
432
|
-
:on-error="handleError"
|
|
433
|
-
:on-success="handleSuccess"
|
|
434
|
-
>
|
|
435
|
-
<el-button type="primary">Click to upload</el-button>
|
|
436
|
-
<template #tip>
|
|
437
|
-
<div class="el-upload__tip">jpg/png files with a size less than 500KB.</div>
|
|
438
|
-
</template>
|
|
439
|
-
</el-upload>
|
|
440
|
-
<hs-upload
|
|
441
|
-
v-model:file-list="fileList"
|
|
442
|
-
class="upload-demo"
|
|
443
|
-
action="/xypms-web/pub/singlefile"
|
|
444
|
-
name="file"
|
|
445
|
-
:data="{
|
|
446
|
-
top_company_id: '2001',
|
|
447
|
-
company_id: '2001',
|
|
448
|
-
pup_token: 'a842ca95c67ec5c722afdb4e69d40d45',
|
|
449
|
-
}"
|
|
450
|
-
multiple
|
|
451
|
-
:on-preview="handlePreview"
|
|
452
|
-
:on-remove="handleRemove"
|
|
453
|
-
:before-remove="beforeRemove"
|
|
454
|
-
:limit="3"
|
|
455
|
-
:on-exceed="handleExceed"
|
|
456
|
-
ref="hsUploadRef"
|
|
457
|
-
:on-error="handleError"
|
|
458
|
-
:on-success="handleSuccess"
|
|
459
|
-
>
|
|
460
|
-
<hs-button type="primary">Click to upload</hs-button>
|
|
461
|
-
<template #tip>
|
|
462
|
-
<div class="el-upload__tip">jpg/png files with a size less than 500KB.</div>
|
|
463
|
-
</template>
|
|
464
|
-
</hs-upload>
|
|
465
|
-
<!-- transfer -->
|
|
466
|
-
<el-transfer v-model="transferValue" :data="transferData" ref="elTransferRef" />
|
|
467
|
-
<el-divider border-style="dashed" />
|
|
468
|
-
<hs-transfer v-model="transferValue" :data="transferData" ref="hsTransferRef" />
|
|
469
|
-
<el-divider border-style="dashed" />
|
|
470
|
-
<el-transfer v-model="transferValue" :data="transferData" :button-texts="['To left', 'To right']" filterable :titles="['Source', 'Target']">
|
|
471
|
-
<template #left-footer>
|
|
472
|
-
<el-button class="transfer-footer" size="small">Operation</el-button>
|
|
473
|
-
</template>
|
|
474
|
-
<template #right-footer>
|
|
475
|
-
<el-button class="transfer-footer" size="small">Operation</el-button>
|
|
476
|
-
</template>
|
|
477
|
-
</el-transfer>
|
|
478
|
-
<el-divider border-style="dashed" />
|
|
479
|
-
<hs-transfer v-model="transferValue" :data="transferData" :button-texts="['To left', 'To right']" filterable :titles="['Source', 'Target']">
|
|
480
|
-
<template #left-footer>
|
|
481
|
-
<el-button class="transfer-footer" size="small">Operation</el-button>
|
|
482
|
-
</template>
|
|
483
|
-
<template #right-footer>
|
|
484
|
-
<el-button class="transfer-footer" size="small">Operation</el-button>
|
|
485
|
-
</template>
|
|
486
|
-
</hs-transfer>
|
|
487
|
-
<!-- date-picker -->
|
|
488
|
-
<el-date-picker
|
|
489
|
-
v-model="date"
|
|
490
|
-
type="date"
|
|
491
|
-
placeholder="选择日期"
|
|
492
|
-
ref="elDatePickerRef"
|
|
493
|
-
@change="dateChange"
|
|
494
|
-
@input="dateInput"
|
|
495
|
-
@focus="dateFocus"
|
|
496
|
-
@blur="dateBlur"
|
|
497
|
-
:picker-options="{
|
|
498
|
-
disabledDate(time) {
|
|
499
|
-
return time.getTime() > Date.now();
|
|
500
|
-
},
|
|
501
|
-
}"
|
|
502
|
-
/>
|
|
503
|
-
<hs-date-picker
|
|
504
|
-
v-model="date"
|
|
505
|
-
type="date"
|
|
506
|
-
placeholder="选择日期"
|
|
507
|
-
ref="hsDatePickerRef"
|
|
508
|
-
@change="dateChange"
|
|
509
|
-
@input="dateInput"
|
|
510
|
-
@focus="dateFocus"
|
|
511
|
-
@blur="dateBlur"
|
|
512
|
-
:picker-options="{
|
|
513
|
-
disabledDate(time) {
|
|
514
|
-
return time.getTime() > Date.now();
|
|
515
|
-
},
|
|
516
|
-
}"
|
|
517
|
-
/>
|
|
518
|
-
<el-divider border-style="dashed" />
|
|
519
|
-
<el-date-picker
|
|
520
|
-
v-model="date"
|
|
521
|
-
type="datetime"
|
|
522
|
-
placeholder="选择日期"
|
|
523
|
-
ref="elDatePickerRef"
|
|
524
|
-
@change="dateChange"
|
|
525
|
-
@input="dateInput"
|
|
526
|
-
@focus="dateFocus"
|
|
527
|
-
@blur="dateBlur"
|
|
528
|
-
:picker-options="{
|
|
529
|
-
disabledDate(time) {
|
|
530
|
-
return time.getTime() > Date.now();
|
|
531
|
-
},
|
|
532
|
-
}"
|
|
533
|
-
/>
|
|
534
|
-
<hs-date-picker
|
|
535
|
-
v-model="date"
|
|
536
|
-
type="datetime"
|
|
537
|
-
placeholder="选择日期"
|
|
538
|
-
ref="hsDatePickerRef"
|
|
539
|
-
@change="dateChange"
|
|
540
|
-
@input="dateInput"
|
|
541
|
-
@focus="dateFocus"
|
|
542
|
-
@blur="dateBlur"
|
|
543
|
-
:picker-options="{
|
|
544
|
-
disabledDate(time) {
|
|
545
|
-
return time.getTime() > Date.now();
|
|
546
|
-
},
|
|
547
|
-
}"
|
|
548
|
-
/>
|
|
549
|
-
<el-divider border-style="dashed" />
|
|
550
|
-
<el-date-picker
|
|
551
|
-
v-model="dateArray"
|
|
552
|
-
type="datetimerange"
|
|
553
|
-
start-placeholder="Start date"
|
|
554
|
-
end-placeholder="End date"
|
|
555
|
-
ref="elDatePickerRef"
|
|
556
|
-
@change="dateChange"
|
|
557
|
-
@input="dateInput"
|
|
558
|
-
@focus="dateFocus"
|
|
559
|
-
@blur="dateBlur"
|
|
560
|
-
:picker-options="{
|
|
561
|
-
disabledDate(time) {
|
|
562
|
-
return time.getTime() > Date.now();
|
|
563
|
-
},
|
|
564
|
-
}"
|
|
565
|
-
/>
|
|
566
|
-
<hs-date-picker
|
|
567
|
-
v-model="dateArray"
|
|
568
|
-
type="datetimerange"
|
|
569
|
-
start-placeholder="Start date"
|
|
570
|
-
end-placeholder="End date"
|
|
571
|
-
ref="hsDatePickerRef"
|
|
572
|
-
@change="dateChange"
|
|
573
|
-
@input="dateInput"
|
|
574
|
-
@focus="dateFocus"
|
|
575
|
-
@blur="dateBlur"
|
|
576
|
-
:picker-options="{
|
|
577
|
-
disabledDate(time) {
|
|
578
|
-
return time.getTime() > Date.now();
|
|
579
|
-
},
|
|
580
|
-
}"
|
|
581
|
-
/>
|
|
582
|
-
<!-- calendar -->
|
|
583
|
-
<el-calendar v-model="calendarValue" :range="[new Date(2019, 2, 4), new Date(2019, 2, 24)]" ref="elCalendarRef" />
|
|
584
|
-
<el-divider border-style="dashed" />
|
|
585
|
-
<hs-calendar v-model="calendarValue" :range="[new Date(2019, 2, 4), new Date(2019, 2, 24)]" ref="hsCalendarRef" />
|
|
586
|
-
<!-- carousel -->
|
|
587
|
-
<div class="block text-center">
|
|
588
|
-
<span class="demonstration">Switch when indicator is hovered (default) el-carousel</span>
|
|
589
|
-
<el-carousel height="150px" type="card" direction="vertical">
|
|
590
|
-
<el-carousel-item v-for="item in 4" :key="item">
|
|
591
|
-
<h3 class="small justify-center" text="2xl">{{ item }}</h3>
|
|
592
|
-
</el-carousel-item>
|
|
593
|
-
</el-carousel>
|
|
594
|
-
</div>
|
|
595
|
-
<div class="block text-center">
|
|
596
|
-
<span class="demonstration">Switch when indicator is hovered (default) hs-carousel</span>
|
|
597
|
-
<hs-carousel height="150px" type="card" direction="vertical">
|
|
598
|
-
<hs-carousel-item v-for="item in 4" :key="item">
|
|
599
|
-
<h3 class="small justify-center" text="2xl">{{ item }}</h3>
|
|
600
|
-
</hs-carousel-item>
|
|
601
|
-
</hs-carousel>
|
|
602
|
-
</div>
|
|
603
|
-
<!-- collapse -->
|
|
604
|
-
<!-- <el-collapse v-model="activeNames" ref="elCollapseRef" @change="collapseChange">
|
|
605
|
-
<el-collapse-item title="一致性 Consistency" name="1" ref="elCollapseItemRef">
|
|
606
|
-
<p>一致性 Consistency</p>
|
|
607
|
-
</el-collapse-item>
|
|
608
|
-
<el-collapse-item title="反馈 Feedback" name="2">
|
|
609
|
-
<p>反馈 Feedback</p>
|
|
610
|
-
</el-collapse-item>
|
|
611
|
-
<el-collapse-item title="效率 Efficiency" name="3">
|
|
612
|
-
<p>效率 Efficiency</p>
|
|
613
|
-
</el-collapse-item>
|
|
614
|
-
</el-collapse>
|
|
615
|
-
<el-divider border-style="dashed" />
|
|
616
|
-
<hs-collapse v-model="activeNames" ref="hsCollapseRef" @change="collapseChange">
|
|
617
|
-
<hs-collapse-item title="一致性 Consistency" name="1" ref="hsCollapseItemRef">
|
|
618
|
-
<p>一致性 Consistency</p>
|
|
619
|
-
</hs-collapse-item>
|
|
620
|
-
<hs-collapse-item title="反馈 Feedback" name="2">
|
|
621
|
-
<p>反馈 Feedback</p>
|
|
622
|
-
</hs-collapse-item>
|
|
623
|
-
<hs-collapse-item title="效率 Efficiency" name="3">
|
|
624
|
-
<p>效率 Efficiency</p>
|
|
625
|
-
</hs-collapse-item>
|
|
626
|
-
</hs-collapse> -->
|
|
627
|
-
<!-- progress -->
|
|
628
|
-
<!-- <div class="demo-progress">
|
|
629
|
-
<el-progress :percentage="50" ref="elProgressRef" />
|
|
630
|
-
<el-progress :percentage="100" status="success" />
|
|
631
|
-
<el-progress :percentage="100" status="warning" />
|
|
632
|
-
<el-progress :percentage="50" status="exception" />
|
|
633
|
-
</div>
|
|
634
|
-
<el-divider border-style="dashed" />
|
|
635
|
-
<div class="demo-progress">
|
|
636
|
-
<hs-progress :percentage="50" ref="hsProgressRef" />
|
|
637
|
-
<hs-progress :percentage="100" status="success" />
|
|
638
|
-
<hs-progress :percentage="100" status="warning" />
|
|
639
|
-
<hs-progress :percentage="50" status="exception" />
|
|
640
|
-
</div>
|
|
641
|
-
<div class="demo-progress">
|
|
642
|
-
<el-progress type="dashboard" :percentage="percentage" :color="colors2" :indeterminate="true" :duration="5" />
|
|
643
|
-
<el-progress type="dashboard" :percentage="percentage2" :color="colors2" />
|
|
644
|
-
<el-progress :percentage="percentage" :color="colors2" :indeterminate="true" :duration="5" />
|
|
645
|
-
<el-progress :percentage="percentage2" :color="colors2" striped striped-flow :duration="10" />
|
|
646
|
-
<div>
|
|
647
|
-
<el-button-group>
|
|
648
|
-
<el-button icon="ele-Minus" @click="decrease" />
|
|
649
|
-
<el-button icon="ele-Plus" @click="increase" />
|
|
650
|
-
</el-button-group>
|
|
651
|
-
</div>
|
|
652
|
-
</div>
|
|
653
|
-
<el-divider border-style="dashed" />
|
|
654
|
-
<div class="demo-progress">
|
|
655
|
-
<hs-progress type="dashboard" :percentage="percentage" :color="colors2" :indeterminate="true" :duration="5" />
|
|
656
|
-
<hs-progress type="dashboard" :percentage="percentage2" :color="colors2" />
|
|
657
|
-
<hs-progress :percentage="percentage" :color="colors2" :indeterminate="true" :duration="5" />
|
|
658
|
-
<hs-progress :percentage="percentage2" :color="colors2" striped striped-flow :duration="10" />
|
|
659
|
-
<div>
|
|
660
|
-
<hs-button-group>
|
|
661
|
-
<hs-button icon="ele-Minus" @click="decrease" />
|
|
662
|
-
<hs-button icon="ele-Plus" @click="increase" />
|
|
663
|
-
</hs-button-group>
|
|
664
|
-
</div>
|
|
665
|
-
</div> -->
|
|
666
|
-
<!-- result -->
|
|
667
|
-
<!-- <el-result icon="success" title="Success Tip" sub-title="Please follow the instructions">
|
|
668
|
-
<template #extra>
|
|
669
|
-
<el-button type="primary">Back</el-button>
|
|
670
|
-
</template>
|
|
671
|
-
</el-result>
|
|
672
|
-
<el-divider border-style="dashed" />
|
|
673
|
-
<hs-result icon="success" title="Success Tip" sub-title="Please follow the instructions">
|
|
674
|
-
<template #extra>
|
|
675
|
-
<hs-button type="primary">Back</hs-button>
|
|
676
|
-
</template>
|
|
677
|
-
</hs-result> -->
|
|
678
|
-
<!-- tour -->
|
|
679
|
-
<!-- <el-button type="primary" @click="open = true">Begin Tour</el-button>
|
|
680
|
-
|
|
681
|
-
<el-divider />
|
|
682
|
-
|
|
683
|
-
<el-space>
|
|
684
|
-
<el-button ref="ref1">upload</el-button>
|
|
685
|
-
<el-button ref="ref2" type="primary">save</el-button>
|
|
686
|
-
<el-button ref="ref3" icon="ele-MoreFilled" />
|
|
687
|
-
</el-space>
|
|
688
|
-
|
|
689
|
-
<el-tour v-model="open" v-model:current="current" @change="tourChange" ref="elTourRef">
|
|
690
|
-
<el-tour-step :target="ref1?.$el" title="Upload File">
|
|
691
|
-
<img src="https://element-plus.org/images/element-plus-logo.svg" alt="tour.png" />
|
|
692
|
-
<div>Put you files here.</div>
|
|
693
|
-
</el-tour-step>
|
|
694
|
-
<el-tour-step :target="ref2?.$el" title="Save" description="Save your changes" />
|
|
695
|
-
<el-tour-step :target="ref3?.$el" title="Other Actions" description="Click to see other" />
|
|
696
|
-
</el-tour>
|
|
697
|
-
<el-divider border-style="dashed" />
|
|
698
|
-
<hs-button type="primary" @click="open2 = true">Begin Tour</hs-button>
|
|
699
|
-
|
|
700
|
-
<el-divider />
|
|
701
|
-
|
|
702
|
-
<el-space>
|
|
703
|
-
<el-button ref="ref4">upload</el-button>
|
|
704
|
-
<el-button ref="ref5" type="primary">save</el-button>
|
|
705
|
-
<el-button ref="ref6" icon="ele-MoreFilled" />
|
|
706
|
-
</el-space>
|
|
707
|
-
|
|
708
|
-
<hs-tour v-model="open2" v-model:current="current" @change="tourChange" ref="hsTourRef">
|
|
709
|
-
<el-tour-step :target="ref4?.$el" title="Upload File">
|
|
710
|
-
<img src="https://element-plus.org/images/element-plus-logo.svg" alt="tour.png" />
|
|
711
|
-
<div>Put you files here.</div>
|
|
712
|
-
</el-tour-step>
|
|
713
|
-
<el-tour-step :target="ref5?.$el" title="Save" description="Save your changes" />
|
|
714
|
-
<el-tour-step :target="ref6?.$el" title="Other Actions" description="Click to see other" />
|
|
715
|
-
</hs-tour> -->
|
|
716
|
-
<!-- tag -->
|
|
717
|
-
<!-- <el-divider />
|
|
718
|
-
<div>
|
|
719
|
-
<el-tag ref="elTagRef">Tag 1</el-tag>
|
|
720
|
-
<el-tag class="ml-2" type="success">Tag 2</el-tag>
|
|
721
|
-
<el-tag class="ml-2" type="info">Tag 3</el-tag>
|
|
722
|
-
<el-tag class="ml-2" type="warning">Tag 4</el-tag>
|
|
723
|
-
<el-tag class="ml-2" type="danger" round>Tag 5</el-tag>
|
|
724
|
-
<el-divider />
|
|
725
|
-
<el-tag v-for="tag in tags" :key="tag.name" class="mx-1" closable :type="tag.type">
|
|
726
|
-
{{ tag.name }}
|
|
727
|
-
</el-tag>
|
|
728
|
-
<el-check-tag checked style="margin-right: 8px">Checked</el-check-tag>
|
|
729
|
-
<el-check-tag v-model:checked="checkTagChecked" @change="checkTagChange" ref="elCheckTagRef">Toggle me</el-check-tag>
|
|
730
|
-
</div>
|
|
731
|
-
<el-divider />
|
|
732
|
-
<div>
|
|
733
|
-
<hs-tag ref="hsTagRef">Tag 1</hs-tag>
|
|
734
|
-
<hs-tag class="ml-2" type="success">Tag 2</hs-tag>
|
|
735
|
-
<hs-tag class="ml-2" type="info">Tag 3</hs-tag>
|
|
736
|
-
<hs-tag class="ml-2" type="warning">Tag 4</hs-tag>
|
|
737
|
-
<hs-tag class="ml-2" type="danger" round>Tag 5</hs-tag>
|
|
738
|
-
<el-divider />
|
|
739
|
-
<hs-tag v-for="tag in tags" :key="tag.name" class="mx-1" closable :type="tag.type">
|
|
740
|
-
{{ tag.name }}
|
|
741
|
-
</hs-tag>
|
|
742
|
-
<hs-check-tag checked style="margin-right: 8px">Checked</hs-check-tag>
|
|
743
|
-
<hs-check-tag v-model:checked="checkTagChecked" @change="checkTagChange" ref="hsCheckTagRef">Toggle me</hs-check-tag>
|
|
744
|
-
</div> -->
|
|
745
|
-
<!-- affix -->
|
|
746
|
-
<!-- <el-affix :offset="100" ref="elAffixRef">
|
|
747
|
-
<el-button type="primary" @click="scrollToTop">Affix top UP</el-button>
|
|
748
|
-
</el-affix>
|
|
749
|
-
<el-affix :offset="150" position="bottom" ref="elAffixRef2">
|
|
750
|
-
<el-button type="primary" @click="scrollToTop">Affix bottom UP</el-button>
|
|
751
|
-
</el-affix>
|
|
752
|
-
<el-divider />
|
|
753
|
-
<hs-affix :offset="150" ref="hsAffixRef">
|
|
754
|
-
<hs-button type="primary" @click="scrollToBottom">Affix top Down</hs-button>
|
|
755
|
-
</hs-affix>
|
|
756
|
-
<hs-affix :offset="100" position="bottom" ref="hsAffixRef2">
|
|
757
|
-
<hs-button type="primary" @click="scrollToBottom">Affix bottom Down</hs-button>
|
|
758
|
-
</hs-affix> -->
|
|
759
|
-
<!-- tab -->
|
|
760
|
-
<!-- <el-tabs v-model="tabsActiveName" class="demo-tabs" @tab-click="tabsClick" type="border-card" closable addable>
|
|
761
|
-
<el-tab-pane label="User" name="first">User</el-tab-pane>
|
|
762
|
-
<el-tab-pane label="Config" name="second">Config</el-tab-pane>
|
|
763
|
-
<el-tab-pane label="Role" name="third">Role</el-tab-pane>
|
|
764
|
-
<el-tab-pane label="Task" name="fourth">Task</el-tab-pane>
|
|
765
|
-
</el-tabs>
|
|
766
|
-
<el-divider />
|
|
767
|
-
<hs-tabs v-model="tabsActiveName" class="demo-tabs" @tab-click="tabsClick" type="border-card" closable addable>
|
|
768
|
-
<hs-tab-pane label="User" name="first">User</hs-tab-pane>
|
|
769
|
-
<hs-tab-pane label="Config" name="second">Config</hs-tab-pane>
|
|
770
|
-
<hs-tab-pane label="Role" name="third">Role</hs-tab-pane>
|
|
771
|
-
<hs-tab-pane label="Task" name="fourth">Task</hs-tab-pane>
|
|
772
|
-
</hs-tabs> -->
|
|
773
|
-
<!-- steps -->
|
|
774
|
-
<!-- <el-steps :active="stepsActive" finish-status="success" align-center>
|
|
775
|
-
<el-step title="Step 1" />
|
|
776
|
-
<el-step title="Step 2" />
|
|
777
|
-
<el-step title="Step 3" />
|
|
778
|
-
</el-steps>
|
|
779
|
-
|
|
780
|
-
<el-button style="margin-top: 12px" @click="stepsNext">Next step</el-button>
|
|
781
|
-
<el-divider />
|
|
782
|
-
<hs-steps :active="stepsActive" finish-status="success" align-center>
|
|
783
|
-
<hs-step title="Step 1" />
|
|
784
|
-
<hs-step title="Step 2" />
|
|
785
|
-
<hs-step title="Step 3" />
|
|
786
|
-
</hs-steps>
|
|
787
|
-
|
|
788
|
-
<hs-button style="margin-top: 12px" @click="stepsNext">Next step</hs-button> -->
|
|
789
|
-
<!-- alert -->
|
|
790
|
-
<!-- <div>
|
|
791
|
-
<el-alert title="success alert" type="success" ref="elAlertRef" />
|
|
792
|
-
<el-alert title="info alert" type="info" />
|
|
793
|
-
<el-alert title="warning alert" type="warning" />
|
|
794
|
-
<el-alert title="error alert" type="error" />
|
|
795
|
-
</div>
|
|
796
|
-
<el-divider />
|
|
797
|
-
<div>
|
|
798
|
-
<hs-alert title="success alert" type="success" ref="hsAlertRef" />
|
|
799
|
-
<hs-alert title="info alert" type="info" />
|
|
800
|
-
<hs-alert title="warning alert" type="warning" />
|
|
801
|
-
<hs-alert title="error alert" type="error" />
|
|
802
|
-
</div> -->
|
|
803
|
-
<!-- dialog -->
|
|
804
|
-
<!-- <div>
|
|
805
|
-
<hs-button text @click="dialogVisible2 = true"> click to open the Dialog </hs-button>
|
|
806
|
-
</div>
|
|
807
|
-
|
|
808
|
-
<hs-dialog v-model="dialogVisible2" title="Tips" width="30%" :before-close="handleClose" ref="hsDialogRef" draggable :modal="false">
|
|
809
|
-
<span>This is a message</span>
|
|
810
|
-
<template #footer>
|
|
811
|
-
<span class="dialog-footer">
|
|
812
|
-
<hs-button @click="dialogVisible2 = false">Cancel</hs-button>
|
|
813
|
-
<hs-button type="primary" @click="dialogVisible2 = false"> Confirm </hs-button>
|
|
814
|
-
</span>
|
|
815
|
-
</template>
|
|
816
|
-
</hs-dialog>
|
|
817
|
-
|
|
818
|
-
<el-divider />
|
|
819
|
-
<div>
|
|
820
|
-
<el-button text @click="dialogVisible = true"> click to open the Dialog </el-button>
|
|
821
|
-
</div>
|
|
822
|
-
|
|
823
|
-
<el-dialog v-model="dialogVisible" title="Tips" width="30%" :before-close="handleClose" ref="elDialogRef" draggable :modal="false">
|
|
824
|
-
<span>This is a message</span>
|
|
825
|
-
<template #footer>
|
|
826
|
-
<span class="dialog-footer">
|
|
827
|
-
<el-button @click="dialogVisible = false">Cancel</el-button>
|
|
828
|
-
<el-button type="primary" @click="dialogVisible = false"> Confirm </el-button>
|
|
829
|
-
</span>
|
|
830
|
-
</template>
|
|
831
|
-
</el-dialog> -->
|
|
832
|
-
<!-- drawer -->
|
|
833
|
-
<!-- <el-radio-group v-model="direction">
|
|
834
|
-
<el-radio label="ltr">left to right</el-radio>
|
|
835
|
-
<el-radio label="rtl">right to left</el-radio>
|
|
836
|
-
<el-radio label="ttb">top to bottom</el-radio>
|
|
837
|
-
<el-radio label="btt">bottom to top</el-radio>
|
|
838
|
-
</el-radio-group>
|
|
839
|
-
|
|
840
|
-
<el-button type="primary" style="margin-left: 16px" @click="drawer = true"> open </el-button>
|
|
841
|
-
<el-button type="primary" style="margin-left: 16px" @click="drawer2 = true"> with footer </el-button>
|
|
842
|
-
|
|
843
|
-
<el-drawer v-model="drawer" title="I am the title" :direction="direction" :before-close="handleClose" ref="elDrawerRef">
|
|
844
|
-
<span>Hi, there!</span>
|
|
845
|
-
</el-drawer>
|
|
846
|
-
<el-drawer v-model="drawer2" :direction="direction">
|
|
847
|
-
<template #header>
|
|
848
|
-
<h4>set title by slot</h4>
|
|
849
|
-
</template>
|
|
850
|
-
<template #default>
|
|
851
|
-
<div>
|
|
852
|
-
<el-radio v-model="radio1" label="Option 1" size="large">Option 1</el-radio>
|
|
853
|
-
<el-radio v-model="radio1" label="Option 2" size="large">Option 2</el-radio>
|
|
854
|
-
</div>
|
|
855
|
-
</template>
|
|
856
|
-
<template #footer>
|
|
857
|
-
<div style="flex: auto">
|
|
858
|
-
<el-button @click="cancelClick">cancel</el-button>
|
|
859
|
-
<el-button type="primary" @click="confirmClick">confirm</el-button>
|
|
860
|
-
</div>
|
|
861
|
-
</template>
|
|
862
|
-
</el-drawer>
|
|
863
|
-
<el-divider />
|
|
864
|
-
<hs-radio-group v-model="direction">
|
|
865
|
-
<hs-radio label="ltr">left to right</hs-radio>
|
|
866
|
-
<hs-radio label="rtl">right to left</hs-radio>
|
|
867
|
-
<hs-radio label="ttb">top to bottom</hs-radio>
|
|
868
|
-
<hs-radio label="btt">bottom to top</hs-radio>
|
|
869
|
-
</hs-radio-group>
|
|
870
|
-
|
|
871
|
-
<hs-button type="primary" style="margin-left: 16px" @click="drawer = true"> open </hs-button>
|
|
872
|
-
<hs-button type="primary" style="margin-left: 16px" @click="drawer2 = true"> with footer </hs-button>
|
|
873
|
-
|
|
874
|
-
<hs-drawer v-model="drawer" title="I am the title" :direction="direction" :before-close="handleClose" ref="hsDrawerRef">
|
|
875
|
-
<span>Hi, there!</span>
|
|
876
|
-
</hs-drawer>
|
|
877
|
-
|
|
878
|
-
<hs-drawer v-model="drawer2" :direction="direction">
|
|
879
|
-
<template #header>
|
|
880
|
-
<h4>set title by slot</h4>
|
|
881
|
-
</template>
|
|
882
|
-
<template #default>
|
|
883
|
-
<div>
|
|
884
|
-
<hs-radio v-model="radio1" label="Option 1" size="large">Option 1</hs-radio>
|
|
885
|
-
<hs-radio v-model="radio1" label="Option 2" size="large">Option 2</hs-radio>
|
|
886
|
-
</div>
|
|
887
|
-
</template>
|
|
888
|
-
<template #footer>
|
|
889
|
-
<div style="flex: auto">
|
|
890
|
-
<hs-button @click="cancelClick">cancel</hs-button>
|
|
891
|
-
<hs-button type="primary" @click="confirmClick">confirm</hs-button>
|
|
892
|
-
</div>
|
|
893
|
-
</template>
|
|
894
|
-
</hs-drawer> -->
|
|
895
|
-
<!-- popconfirm -->
|
|
896
|
-
<!-- <el-popconfirm title="Are you sure to delete this?" ref="elPopconfirmRef">
|
|
897
|
-
<template #reference>
|
|
898
|
-
<el-button>Delete el</el-button>
|
|
899
|
-
</template>
|
|
900
|
-
</el-popconfirm>
|
|
901
|
-
<el-divider />
|
|
902
|
-
<hs-popconfirm title="Are you sure to delete this?" ref="hsPopconfirmRef">
|
|
903
|
-
<template #reference>
|
|
904
|
-
<hs-button>Delete hs</hs-button>
|
|
905
|
-
</template>
|
|
906
|
-
</hs-popconfirm> -->
|
|
907
|
-
<!-- popover -->
|
|
908
|
-
<!-- <el-popover
|
|
909
|
-
placement="top-start"
|
|
910
|
-
title="Title"
|
|
911
|
-
:width="200"
|
|
912
|
-
trigger="hover"
|
|
913
|
-
content="this is content, this is content, this is content"
|
|
914
|
-
ref="elPopoverRef"
|
|
915
|
-
>
|
|
916
|
-
<template #reference>
|
|
917
|
-
<el-button class="m-2">Hover to activate</el-button>
|
|
918
|
-
</template>
|
|
919
|
-
</el-popover>
|
|
920
|
-
|
|
921
|
-
<el-popover placement="bottom" title="Title" :width="200" trigger="click" content="this is content, this is content, this is content">
|
|
922
|
-
<template #reference>
|
|
923
|
-
<el-button class="m-2">Click to activate</el-button>
|
|
924
|
-
</template>
|
|
925
|
-
</el-popover>
|
|
926
|
-
|
|
927
|
-
<el-popover
|
|
928
|
-
ref="popover"
|
|
929
|
-
placement="right"
|
|
930
|
-
title="Title"
|
|
931
|
-
:width="200"
|
|
932
|
-
trigger="focus"
|
|
933
|
-
content="this is content, this is content, this is content"
|
|
934
|
-
>
|
|
935
|
-
<template #reference>
|
|
936
|
-
<el-button class="m-2">Focus to activate</el-button>
|
|
937
|
-
</template>
|
|
938
|
-
</el-popover>
|
|
939
|
-
|
|
940
|
-
<el-popover ref="popover" title="Title" :width="200" trigger="contextmenu" content="this is content, this is content, this is content">
|
|
941
|
-
<template #reference>
|
|
942
|
-
<el-button class="m-2">contextmenu to activate</el-button>
|
|
943
|
-
</template>
|
|
944
|
-
</el-popover>
|
|
945
|
-
|
|
946
|
-
<el-popover :visible="visible" placement="bottom" title="Title" :width="200" content="this is content, this is content, this is content">
|
|
947
|
-
<template #reference>
|
|
948
|
-
<el-button class="m-2" @click="visible = !visible">Manual to activate</el-button>
|
|
949
|
-
</template>
|
|
950
|
-
</el-popover>
|
|
951
|
-
<el-divider />
|
|
952
|
-
<hs-popover
|
|
953
|
-
placement="top-start"
|
|
954
|
-
title="Title"
|
|
955
|
-
:width="200"
|
|
956
|
-
trigger="hover"
|
|
957
|
-
content="this is content, this is content, this is content"
|
|
958
|
-
ref="hsPopoverRef"
|
|
959
|
-
>
|
|
960
|
-
<template #reference>
|
|
961
|
-
<el-button class="m-2">Hover to activate</el-button>
|
|
962
|
-
</template>
|
|
963
|
-
</hs-popover>
|
|
964
|
-
|
|
965
|
-
<hs-popover placement="bottom" title="Title" :width="200" trigger="click" content="this is content, this is content, this is content">
|
|
966
|
-
<template #reference>
|
|
967
|
-
<el-button class="m-2">Click to activate</el-button>
|
|
968
|
-
</template>
|
|
969
|
-
</hs-popover>
|
|
970
|
-
|
|
971
|
-
<hs-popover
|
|
972
|
-
ref="popover"
|
|
973
|
-
placement="right"
|
|
974
|
-
title="Title"
|
|
975
|
-
:width="200"
|
|
976
|
-
trigger="focus"
|
|
977
|
-
content="this is content, this is content, this is content"
|
|
978
|
-
>
|
|
979
|
-
<template #reference>
|
|
980
|
-
<el-button class="m-2">Focus to activate</el-button>
|
|
981
|
-
</template>
|
|
982
|
-
</hs-popover>
|
|
983
|
-
|
|
984
|
-
<hs-popover ref="popover" title="Title" :width="200" trigger="contextmenu" content="this is content, this is content, this is content">
|
|
985
|
-
<template #reference>
|
|
986
|
-
<el-button class="m-2">contextmenu to activate</el-button>
|
|
987
|
-
</template>
|
|
988
|
-
</hs-popover>
|
|
989
|
-
|
|
990
|
-
<hs-popover :visible="visible" placement="bottom" title="Title" :width="200" content="this is content, this is content, this is content">
|
|
991
|
-
<template #reference>
|
|
992
|
-
<el-button class="m-2" @click="visible = !visible">Manual to activate</el-button>
|
|
993
|
-
</template>
|
|
994
|
-
</hs-popover> -->
|
|
995
|
-
<!-- tooltip -->
|
|
996
|
-
<!-- <div class="tooltip-base-box">
|
|
997
|
-
<div class="row center">
|
|
998
|
-
<el-tooltip class="box-item" effect="dark" content="Top Left prompts info" placement="top-start" ref="elTooltipRef">
|
|
999
|
-
<el-button>top-start</el-button>
|
|
1000
|
-
</el-tooltip>
|
|
1001
|
-
<el-tooltip class="box-item" effect="dark" content="Top Center prompts info" placement="top">
|
|
1002
|
-
<el-button>top</el-button>
|
|
1003
|
-
</el-tooltip>
|
|
1004
|
-
<el-tooltip class="box-item" effect="dark" content="Top Right prompts info" placement="top-end">
|
|
1005
|
-
<el-button>top-end</el-button>
|
|
1006
|
-
</el-tooltip>
|
|
1007
|
-
</div>
|
|
1008
|
-
<div class="row">
|
|
1009
|
-
<el-tooltip class="box-item" effect="dark" content="Left Top prompts info" placement="left-start">
|
|
1010
|
-
<el-button>left-start</el-button>
|
|
1011
|
-
</el-tooltip>
|
|
1012
|
-
<el-tooltip class="box-item" effect="dark" content="Right Top prompts info" placement="right-start">
|
|
1013
|
-
<el-button>right-start</el-button>
|
|
1014
|
-
</el-tooltip>
|
|
1015
|
-
</div>
|
|
1016
|
-
<div class="row">
|
|
1017
|
-
<el-tooltip class="box-item" effect="dark" content="Left Center prompts info" placement="left">
|
|
1018
|
-
<el-button class="mt-3 mb-3">left</el-button>
|
|
1019
|
-
</el-tooltip>
|
|
1020
|
-
<el-tooltip class="box-item" effect="dark" content="Right Center prompts info" placement="right">
|
|
1021
|
-
<el-button>right</el-button>
|
|
1022
|
-
</el-tooltip>
|
|
1023
|
-
</div>
|
|
1024
|
-
<div class="row">
|
|
1025
|
-
<el-tooltip class="box-item" effect="dark" content="Left Bottom prompts info" placement="left-end">
|
|
1026
|
-
<el-button>left-end</el-button>
|
|
1027
|
-
</el-tooltip>
|
|
1028
|
-
<el-tooltip class="box-item" effect="dark" content="Right Bottom prompts info" placement="right-end">
|
|
1029
|
-
<el-button>right-end</el-button>
|
|
1030
|
-
</el-tooltip>
|
|
1031
|
-
</div>
|
|
1032
|
-
<div class="row center">
|
|
1033
|
-
<el-tooltip class="box-item" effect="dark" content="Bottom Left prompts info" placement="bottom-start">
|
|
1034
|
-
<el-button>bottom-start</el-button>
|
|
1035
|
-
</el-tooltip>
|
|
1036
|
-
<el-tooltip class="box-item" effect="dark" content="Bottom Center prompts info" placement="bottom">
|
|
1037
|
-
<el-button>bottom</el-button>
|
|
1038
|
-
</el-tooltip>
|
|
1039
|
-
<el-tooltip class="box-item" effect="dark" content="Bottom Right prompts info" placement="bottom-end">
|
|
1040
|
-
<el-button>bottom-end</el-button>
|
|
1041
|
-
</el-tooltip>
|
|
1042
|
-
</div>
|
|
1043
|
-
</div>
|
|
1044
|
-
<el-divider />
|
|
1045
|
-
<div class="tooltip-base-box">
|
|
1046
|
-
<div class="row center">
|
|
1047
|
-
<hs-tooltip class="box-item" effect="dark" content="Top Left prompts info" placement="top-start" ref="hsTooltipRef">
|
|
1048
|
-
<hs-button>top-start</hs-button>
|
|
1049
|
-
</hs-tooltip>
|
|
1050
|
-
<hs-tooltip class="box-item" effect="dark" content="Top Center prompts info" placement="top">
|
|
1051
|
-
<hs-button>top</hs-button>
|
|
1052
|
-
</hs-tooltip>
|
|
1053
|
-
<hs-tooltip class="box-item" effect="dark" content="Top Right prompts info" placement="top-end">
|
|
1054
|
-
<hs-button>top-end</hs-button>
|
|
1055
|
-
</hs-tooltip>
|
|
1056
|
-
</div>
|
|
1057
|
-
<div class="row">
|
|
1058
|
-
<hs-tooltip class="box-item" effect="dark" content="Left Top prompts info" placement="left-start">
|
|
1059
|
-
<hs-button>left-start</hs-button>
|
|
1060
|
-
</hs-tooltip>
|
|
1061
|
-
<hs-tooltip class="box-item" effect="dark" content="Right Top prompts info" placement="right-start">
|
|
1062
|
-
<hs-button>right-start</hs-button>
|
|
1063
|
-
</hs-tooltip>
|
|
1064
|
-
</div>
|
|
1065
|
-
<div class="row">
|
|
1066
|
-
<hs-tooltip class="box-item" effect="dark" content="Left Center prompts info" placement="left">
|
|
1067
|
-
<hs-button class="mt-3 mb-3">left</hs-button>
|
|
1068
|
-
</hs-tooltip>
|
|
1069
|
-
<hs-tooltip class="box-item" effect="dark" content="Right Center prompts info" placement="right">
|
|
1070
|
-
<hs-button>right</hs-button>
|
|
1071
|
-
</hs-tooltip>
|
|
1072
|
-
</div>
|
|
1073
|
-
<div class="row">
|
|
1074
|
-
<hs-tooltip class="box-item" effect="dark" content="Left Bottom prompts info" placement="left-end">
|
|
1075
|
-
<hs-button>left-end</hs-button>
|
|
1076
|
-
</hs-tooltip>
|
|
1077
|
-
<hs-tooltip class="box-item" effect="dark" content="Right Bottom prompts info" placement="right-end">
|
|
1078
|
-
<hs-button>right-end</hs-button>
|
|
1079
|
-
</hs-tooltip>
|
|
1080
|
-
</div>
|
|
1081
|
-
<div class="row center">
|
|
1082
|
-
<hs-tooltip class="box-item" effect="dark" content="Bottom Left prompts info" placement="bottom-start">
|
|
1083
|
-
<hs-button>bottom-start</hs-button>
|
|
1084
|
-
</hs-tooltip>
|
|
1085
|
-
<hs-tooltip class="box-item" effect="dark" content="Bottom Center prompts info" placement="bottom">
|
|
1086
|
-
<hs-button>bottom</hs-button>
|
|
1087
|
-
</hs-tooltip>
|
|
1088
|
-
<hs-tooltip class="box-item" effect="dark" content="Bottom Right prompts info" placement="bottom-end">
|
|
1089
|
-
<hs-button>bottom-end</hs-button>
|
|
1090
|
-
</hs-tooltip>
|
|
1091
|
-
</div>
|
|
1092
|
-
</div> -->
|
|
1093
|
-
<!-- watermark -->
|
|
1094
|
-
<!-- <el-watermark :font="watermarkFont" ref="elWatermarkRef" :content="['Element+', 'Element Plus']">
|
|
1095
|
-
<div style="height: 500px" />
|
|
1096
|
-
</el-watermark>
|
|
1097
|
-
<el-divider />
|
|
1098
|
-
<hs-watermark :font="watermarkFont" ref="hsWatermarkRef" :content="['Element+', 'Element Plus']">
|
|
1099
|
-
<div style="height: 500px" />
|
|
1100
|
-
</hs-watermark> -->
|
|
1101
|
-
<!-- dropdown -->
|
|
1102
|
-
<!-- <el-dropdown>
|
|
1103
|
-
<span class="el-dropdown-link"> Dropdown List </span>
|
|
1104
|
-
<template #dropdown>
|
|
1105
|
-
<el-dropdown-menu>
|
|
1106
|
-
<el-dropdown-item>Action 1</el-dropdown-item>
|
|
1107
|
-
<el-dropdown-item>Action 2</el-dropdown-item>
|
|
1108
|
-
<el-dropdown-item>Action 3</el-dropdown-item>
|
|
1109
|
-
<el-dropdown-item disabled>Action 4</el-dropdown-item>
|
|
1110
|
-
<el-dropdown-item divided>Action 5</el-dropdown-item>
|
|
1111
|
-
</el-dropdown-menu>
|
|
1112
|
-
</template>
|
|
1113
|
-
</el-dropdown> -->
|
|
1114
|
-
<el-divider />
|
|
1115
|
-
<!-- <hs-dropdown>
|
|
1116
|
-
<span class="el-dropdown-link"> Dropdown List </span>
|
|
1117
|
-
<template #dropdown>
|
|
1118
|
-
<hs-dropdown-menu>
|
|
1119
|
-
<hs-dropdown-item>Action 1</hs-dropdown-item>
|
|
1120
|
-
<hs-dropdown-item>Action 2</hs-dropdown-item>
|
|
1121
|
-
<hs-dropdown-item>Action 3</hs-dropdown-item>
|
|
1122
|
-
<hs-dropdown-item disabled>Action 4</hs-dropdown-item>
|
|
1123
|
-
<hs-dropdown-item divided>Action 5</hs-dropdown-item>
|
|
1124
|
-
</hs-dropdown-menu>
|
|
1125
|
-
</template>
|
|
1126
|
-
</hs-dropdown> -->
|
|
1127
|
-
<!-- tree-select -->
|
|
1128
|
-
<el-tree-select
|
|
1129
|
-
v-model="treeSelectValue"
|
|
1130
|
-
:data="treeSelectData"
|
|
1131
|
-
:render-after-expand="false"
|
|
1132
|
-
show-checkbox
|
|
1133
|
-
style="width: 240px"
|
|
1134
|
-
:filterable="true"
|
|
1135
|
-
multiple
|
|
1136
|
-
ref="hsTreeSelectRef"
|
|
1137
|
-
/>
|
|
1138
|
-
</el-card>
|
|
1139
|
-
</div>
|
|
1140
|
-
</template>
|
|
1141
|
-
|
|
1142
|
-
<script setup lang="ts" name="systemUser">
|
|
1143
|
-
import { Action, CascaderValue, ElSwitch, ElTree } from 'element-plus';
|
|
1144
|
-
import { ref, watch, onMounted, reactive, getCurrentInstance, h, markRaw } from 'vue';
|
|
1145
|
-
// import useMessage from '/@/utils/showMessage';
|
|
1146
|
-
import { Delete, ArrowDown } from '@element-plus/icons-vue';
|
|
1147
|
-
import inputAttrConfig from '/@/components/config/inputAttrConfig/inputAttrConfig.vue';
|
|
1148
|
-
import inputEventConfig from '/@/components/config/inputAttrConfig/inputEventConfig.vue';
|
|
1149
|
-
import selectAttrConfig from '/@/components/config/selectAttrConfig/selectAttrConfig.vue';
|
|
1150
|
-
import datePickerAttrConfig from '/@/components/config/datePickerAttrConfig/datePickerAttrConfig.vue';
|
|
1151
|
-
import buttonAttrConfig from '/@/components/config/buttonAttrConfig/buttonAttrConfig.vue';
|
|
1152
|
-
import autocompleteAttrConfig from '/@/components/config/autocompleteAttrConfig/autocompleteAttrConfig.vue';
|
|
1153
|
-
import switchAttrConfig from '/@/components/config/switchAttrConfig/switchAttrConfig.vue';
|
|
1154
|
-
import uploadAttrConfig from '/@/components/config/uploadAttrConfig/uploadAttrConfig.vue';
|
|
1155
|
-
import checkboxAttrConfig from '/@/components/config/checkboxAttrConfig/checkboxAttrConfig.vue';
|
|
1156
|
-
import radioAttrConfig from '/@/components/config/radioAttrConfig/radioAttrConfig.vue';
|
|
1157
|
-
import inputNumberAttrConfig from '/@/components/config/inputNumberAttrConfig/inputNumberAttrConfig.vue';
|
|
1158
|
-
import cascaderAttrConfig from '/@/components/config/cascaderAttrConfig/cascaderAttrConfig.vue';
|
|
1159
|
-
import cascaderPanelAttrConfig from '/@/components/config/cascaderPanelAttrConfig/cascaderPanelAttrConfig.vue';
|
|
1160
|
-
import treeSelectAttrConfig from '/@/components/config/treeSelectAttrConfig/treeSelectAttrConfig.vue';
|
|
1161
|
-
|
|
1162
|
-
// ======================================================================== 按钮 start ===================================================================
|
|
1163
|
-
const buttonRef = ref(null);
|
|
1164
|
-
const buttonRef2 = ref(null);
|
|
1165
|
-
// ======================================================================== 按钮 end =====================================================================
|
|
1166
|
-
// ======================================================================== 输入框 start =================================================================
|
|
1167
|
-
const inputRef = ref(null);
|
|
1168
|
-
const inputRef2 = ref(null);
|
|
1169
|
-
const select = ref('1');
|
|
1170
|
-
const testValue = ref('');
|
|
1171
|
-
const testValue2 = ref('');
|
|
1172
|
-
const testValue3 = ref('');
|
|
1173
|
-
const handleBlur = (value) => {
|
|
1174
|
-
console.debug('handleBlur失焦事件', value);
|
|
1175
|
-
};
|
|
1176
|
-
const handleFocus = (value) => {
|
|
1177
|
-
console.debug('handleFocus聚焦事件', value);
|
|
1178
|
-
};
|
|
1179
|
-
const handleChange = (value) => {
|
|
1180
|
-
console.debug('handleChange值改变事件', value);
|
|
1181
|
-
};
|
|
1182
|
-
const handleInput = (value) => {
|
|
1183
|
-
console.debug('handleInput输入事件', value);
|
|
1184
|
-
};
|
|
1185
|
-
const handleClear = (value) => {
|
|
1186
|
-
console.debug('handleClear清空事件', value);
|
|
1187
|
-
};
|
|
1188
|
-
const inputEnter = (value) => {
|
|
1189
|
-
console.debug('inputEnter回车事件', value);
|
|
1190
|
-
};
|
|
1191
|
-
// ======================================================================== 输入框 end ===================================================================
|
|
1192
|
-
|
|
1193
|
-
// ======================================================================== 下拉框 start ================================================================
|
|
1194
|
-
const selectValue = ref([]);
|
|
1195
|
-
const selectValue2 = ref([]);
|
|
1196
|
-
const elSelectRef = ref(null);
|
|
1197
|
-
const hsSelectRef = ref(null);
|
|
1198
|
-
const options = [
|
|
1199
|
-
{
|
|
1200
|
-
value: '1',
|
|
1201
|
-
label: '黄金糕',
|
|
1202
|
-
},
|
|
1203
|
-
{
|
|
1204
|
-
value: '2',
|
|
1205
|
-
label: '双皮奶',
|
|
1206
|
-
},
|
|
1207
|
-
{
|
|
1208
|
-
value: '3',
|
|
1209
|
-
label: '蚵仔煎',
|
|
1210
|
-
},
|
|
1211
|
-
{
|
|
1212
|
-
value: '4',
|
|
1213
|
-
label: '龙须面',
|
|
1214
|
-
},
|
|
1215
|
-
{
|
|
1216
|
-
value: '5',
|
|
1217
|
-
label: '北京烤鸭',
|
|
1218
|
-
},
|
|
1219
|
-
];
|
|
1220
|
-
const selectChange = (value) => {
|
|
1221
|
-
console.debug('selectChange', value);
|
|
1222
|
-
};
|
|
1223
|
-
// ======================================================================== 下拉框 end ==================================================================
|
|
1224
|
-
// ======================================================================== 树 start =====================================================================
|
|
1225
|
-
const filterText = ref('');
|
|
1226
|
-
const treeRef = ref<InstanceType<typeof ElTree>>();
|
|
1227
|
-
const treeRef2 = ref<InstanceType<typeof ElTree>>();
|
|
1228
|
-
watch(filterText, (val) => {
|
|
1229
|
-
treeRef.value!.filter(val);
|
|
1230
|
-
treeRef2.value.treeRef!.filter(val);
|
|
1231
|
-
console.debug('treeRef2.value', treeRef2.value.treeRef);
|
|
1232
|
-
});
|
|
1233
|
-
const data = [
|
|
1234
|
-
{
|
|
1235
|
-
id: 1,
|
|
1236
|
-
label: '一级 1',
|
|
1237
|
-
children: [
|
|
1238
|
-
{
|
|
1239
|
-
id: 4,
|
|
1240
|
-
label: '二级 1-1',
|
|
1241
|
-
children: [
|
|
1242
|
-
{
|
|
1243
|
-
id: 9,
|
|
1244
|
-
label: '三级 1-1-1',
|
|
1245
|
-
},
|
|
1246
|
-
{
|
|
1247
|
-
id: 10,
|
|
1248
|
-
label: '三级 1-1-2',
|
|
1249
|
-
},
|
|
1250
|
-
],
|
|
1251
|
-
},
|
|
1252
|
-
],
|
|
1253
|
-
},
|
|
1254
|
-
{
|
|
1255
|
-
id: 2,
|
|
1256
|
-
label: '一级 2',
|
|
1257
|
-
children: [
|
|
1258
|
-
{
|
|
1259
|
-
id: 5,
|
|
1260
|
-
label: '二级 2-1',
|
|
1261
|
-
},
|
|
1262
|
-
{
|
|
1263
|
-
id: 6,
|
|
1264
|
-
label: '二级 2-2',
|
|
1265
|
-
},
|
|
1266
|
-
],
|
|
1267
|
-
},
|
|
1268
|
-
{
|
|
1269
|
-
id: 3,
|
|
1270
|
-
label: '一级 3',
|
|
1271
|
-
children: [
|
|
1272
|
-
{
|
|
1273
|
-
id: 7,
|
|
1274
|
-
label: '二级 3-1',
|
|
1275
|
-
},
|
|
1276
|
-
{
|
|
1277
|
-
id: 8,
|
|
1278
|
-
label: '二级 3-2',
|
|
1279
|
-
},
|
|
1280
|
-
],
|
|
1281
|
-
},
|
|
1282
|
-
];
|
|
1283
|
-
const defaultProps = {
|
|
1284
|
-
children: 'children',
|
|
1285
|
-
label: 'label',
|
|
1286
|
-
};
|
|
1287
|
-
const filterNode = (value, data) => {
|
|
1288
|
-
if (!value) return true;
|
|
1289
|
-
return data.label.indexOf(value) !== -1;
|
|
1290
|
-
};
|
|
1291
|
-
// 获取选中节点
|
|
1292
|
-
const getCheckedNodes = () => {
|
|
1293
|
-
console.log(treeRef.value!.getCheckedNodes(false, false));
|
|
1294
|
-
console.log(treeRef2.value.treeRef!.getCheckedNodes(false, false));
|
|
1295
|
-
};
|
|
1296
|
-
// 选中节点
|
|
1297
|
-
const treeCheck = (data, checked, indeterminate) => {
|
|
1298
|
-
console.debug('treeCheck', data, checked, indeterminate);
|
|
1299
|
-
};
|
|
1300
|
-
// 点击节点
|
|
1301
|
-
const treeNodeClick = (data, node, instance) => {
|
|
1302
|
-
console.debug('treeNodeClick', data, node, instance);
|
|
1303
|
-
};
|
|
1304
|
-
// 右键节点
|
|
1305
|
-
const treeNodeContextmenu = (event, data, node) => {
|
|
1306
|
-
console.debug('treeNodeContextmenu', event, data, node);
|
|
1307
|
-
};
|
|
1308
|
-
// 选中节点
|
|
1309
|
-
const treeCheckChange = (data, checked, indeterminate) => {
|
|
1310
|
-
console.debug('treeCheckChange', data, checked, indeterminate);
|
|
1311
|
-
};
|
|
1312
|
-
// ======================================================================== 树 end =======================================================================
|
|
1313
|
-
// ======================================================================== 数字输入框 start ==============================================================
|
|
1314
|
-
const num = ref(0);
|
|
1315
|
-
const elInputNumberRef = ref(null);
|
|
1316
|
-
const hsInputNumberRef = ref(null);
|
|
1317
|
-
// ======================================================================== 数字输入框 end ================================================================
|
|
1318
|
-
// ======================================================================== 开关 start ===================================================================
|
|
1319
|
-
const switchValue = ref(false);
|
|
1320
|
-
const elSwitchRef = ref(null);
|
|
1321
|
-
const hsSwitchRef = ref(null);
|
|
1322
|
-
const switchChange = (value: boolean | number | string) => {
|
|
1323
|
-
console.debug('switchChange', value);
|
|
1324
|
-
};
|
|
1325
|
-
// ======================================================================== 开关 end =====================================================================
|
|
1326
|
-
// ======================================================================== 单选框 start =================================================================
|
|
1327
|
-
const radio = ref('上海');
|
|
1328
|
-
const elRadioGroupRef = ref(null);
|
|
1329
|
-
const elRadioButtonRef = ref(null);
|
|
1330
|
-
const hsRadioGroupRef = ref(null);
|
|
1331
|
-
const hsRadioButtonRef = ref(null);
|
|
1332
|
-
const radio1 = ref('1');
|
|
1333
|
-
const radioChange = (value) => {
|
|
1334
|
-
console.debug('radioChange', value);
|
|
1335
|
-
};
|
|
1336
|
-
// ======================================================================== 单选框 end ===================================================================
|
|
1337
|
-
// ======================================================================== 复选框 start =================================================================
|
|
1338
|
-
const checked1 = ref(false);
|
|
1339
|
-
const checked2 = ref(false);
|
|
1340
|
-
const elCheckboxRef = ref(null);
|
|
1341
|
-
const hsCheckboxRef = ref(null);
|
|
1342
|
-
const checkList = ref([]);
|
|
1343
|
-
const checkboxGroup4 = ref(['深圳']);
|
|
1344
|
-
const cities = ['上海', '北京', '广州', '深圳'];
|
|
1345
|
-
const checkboxChange = (value) => {
|
|
1346
|
-
console.debug('checkboxChange', value);
|
|
1347
|
-
console.debug('checkList', checkList.value);
|
|
1348
|
-
console.debug('checkboxGroup4', checkboxGroup4.value);
|
|
1349
|
-
};
|
|
1350
|
-
// ======================================================================== 复选框 end ===================================================================
|
|
1351
|
-
// ======================================================================== 评分 start ===================================================================
|
|
1352
|
-
const value2 = ref(3);
|
|
1353
|
-
const colors = ['#99A9BF', '#F7BA2A', '#FF9900', '#FF6600', '#FF3300'];
|
|
1354
|
-
const elRateRef = ref(null);
|
|
1355
|
-
const hsRateRef = ref(null);
|
|
1356
|
-
const rateChange = (value) => {
|
|
1357
|
-
console.debug('rateChange', value);
|
|
1358
|
-
};
|
|
1359
|
-
// ======================================================================== 评分 end =====================================================================
|
|
1360
|
-
// ======================================================================== 自动完成 start ================================================================
|
|
1361
|
-
const state1 = ref('');
|
|
1362
|
-
const elAutocompleteRef = ref(null);
|
|
1363
|
-
const hsAutocompleteRef = ref(null);
|
|
1364
|
-
interface RestaurantItem {
|
|
1365
|
-
value: string;
|
|
1366
|
-
link: string;
|
|
1367
|
-
}
|
|
1368
|
-
interface LinkItem {
|
|
1369
|
-
value: string;
|
|
1370
|
-
link: string;
|
|
1371
|
-
}
|
|
1372
|
-
const links = ref<LinkItem[]>([]);
|
|
1373
|
-
const loadAll = () => {
|
|
1374
|
-
return [
|
|
1375
|
-
{ value: 'vue', link: 'https://github.com/vuejs/vue' },
|
|
1376
|
-
{ value: 'element', link: 'https://github.com/ElemeFE/element' },
|
|
1377
|
-
{ value: 'cooking', link: 'https://github.com/ElemeFE/cooking' },
|
|
1378
|
-
{ value: 'mint-ui', link: 'https://github.com/ElemeFE/mint-ui' },
|
|
1379
|
-
{ value: 'vuex', link: 'https://github.com/vuejs/vuex' },
|
|
1380
|
-
{ value: 'vue-router', link: 'https://github.com/vuejs/vue-router' },
|
|
1381
|
-
{ value: 'babel', link: 'https://github.com/babel/babel' },
|
|
1382
|
-
];
|
|
1383
|
-
};
|
|
1384
|
-
let timeout: ReturnType<typeof setTimeout>;
|
|
1385
|
-
const createFilter = (queryString: string) => {
|
|
1386
|
-
return (restaurant: LinkItem) => {
|
|
1387
|
-
return restaurant.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0;
|
|
1388
|
-
};
|
|
1389
|
-
};
|
|
1390
|
-
const querySearchAsync = (queryString: string, cb: (arg: any) => void) => {
|
|
1391
|
-
const results = queryString ? links.value.filter(createFilter(queryString)) : links.value;
|
|
1392
|
-
|
|
1393
|
-
clearTimeout(timeout);
|
|
1394
|
-
timeout = setTimeout(() => {
|
|
1395
|
-
cb(results);
|
|
1396
|
-
}, 3000 * Math.random());
|
|
1397
|
-
};
|
|
1398
|
-
|
|
1399
|
-
const handleSelect = (item: RestaurantItem) => {
|
|
1400
|
-
console.debug('handleSelect', item);
|
|
1401
|
-
};
|
|
1402
|
-
// ======================================================================== 自动完成 end ==================================================================
|
|
1403
|
-
// ======================================================================== 滑块 start ===================================================================
|
|
1404
|
-
const innerValue = ref(20);
|
|
1405
|
-
const sliderRef = ref(null);
|
|
1406
|
-
const hsSliderRef = ref(null);
|
|
1407
|
-
const sliderChange = (value) => {
|
|
1408
|
-
console.debug('sliderChange', value);
|
|
1409
|
-
};
|
|
1410
|
-
const sliderInput = (value) => {
|
|
1411
|
-
console.debug('sliderInput', value);
|
|
1412
|
-
};
|
|
1413
|
-
// ======================================================================== 滑块 end =====================================================================
|
|
1414
|
-
// ======================================================================== 颜色选择器 start ==============================================================
|
|
1415
|
-
const color = ref('#ff0000');
|
|
1416
|
-
const colorPickerRef = ref(null);
|
|
1417
|
-
const hsColorPickerRef = ref(null);
|
|
1418
|
-
const colorChange = (value: string) => {
|
|
1419
|
-
console.debug('colorChange', value);
|
|
1420
|
-
};
|
|
1421
|
-
const colorActiveChange = (value: string) => {
|
|
1422
|
-
console.debug('colorActiveChange', value);
|
|
1423
|
-
};
|
|
1424
|
-
const colorFocus = (value: FocusEvent) => {
|
|
1425
|
-
console.debug('colorFocus', value);
|
|
1426
|
-
};
|
|
1427
|
-
const colorBlur = (value: FocusEvent) => {
|
|
1428
|
-
console.debug('colorBlur', value);
|
|
1429
|
-
};
|
|
1430
|
-
// ======================================================================== 颜色选择器 end ================================================================
|
|
1431
|
-
// ======================================================================== 级联选择器 start ==============================================================
|
|
1432
|
-
const value = ref([]);
|
|
1433
|
-
const props = {
|
|
1434
|
-
value: 'value',
|
|
1435
|
-
label: 'label',
|
|
1436
|
-
children: 'children',
|
|
1437
|
-
expandTrigger: 'hover' as const,
|
|
1438
|
-
multiple: true,
|
|
1439
|
-
checkStrictly: true,
|
|
1440
|
-
};
|
|
1441
|
-
const options1 = [
|
|
1442
|
-
{
|
|
1443
|
-
value: 'guide',
|
|
1444
|
-
label: 'Guide',
|
|
1445
|
-
children: [
|
|
1446
|
-
{
|
|
1447
|
-
value: 'disciplines',
|
|
1448
|
-
label: 'Disciplines',
|
|
1449
|
-
children: [
|
|
1450
|
-
{
|
|
1451
|
-
value: 'consistency',
|
|
1452
|
-
label: 'Consistency',
|
|
1453
|
-
},
|
|
1454
|
-
{
|
|
1455
|
-
value: 'feedback',
|
|
1456
|
-
label: 'Feedback',
|
|
1457
|
-
},
|
|
1458
|
-
{
|
|
1459
|
-
value: 'efficiency',
|
|
1460
|
-
label: 'Efficiency',
|
|
1461
|
-
},
|
|
1462
|
-
{
|
|
1463
|
-
value: 'controllability',
|
|
1464
|
-
label: 'Controllability',
|
|
1465
|
-
},
|
|
1466
|
-
],
|
|
1467
|
-
},
|
|
1468
|
-
{
|
|
1469
|
-
value: 'navigation',
|
|
1470
|
-
label: 'Navigation',
|
|
1471
|
-
children: [
|
|
1472
|
-
{
|
|
1473
|
-
value: 'side nav',
|
|
1474
|
-
label: 'Side Navigation',
|
|
1475
|
-
},
|
|
1476
|
-
{
|
|
1477
|
-
value: 'top nav',
|
|
1478
|
-
label: 'Top Navigation',
|
|
1479
|
-
},
|
|
1480
|
-
],
|
|
1481
|
-
},
|
|
1482
|
-
],
|
|
1483
|
-
},
|
|
1484
|
-
{
|
|
1485
|
-
value: 'component',
|
|
1486
|
-
label: 'Component',
|
|
1487
|
-
children: [
|
|
1488
|
-
{
|
|
1489
|
-
value: 'basic',
|
|
1490
|
-
label: 'Basic',
|
|
1491
|
-
children: [
|
|
1492
|
-
{
|
|
1493
|
-
value: 'layout',
|
|
1494
|
-
label: 'Layout',
|
|
1495
|
-
},
|
|
1496
|
-
{
|
|
1497
|
-
value: 'color',
|
|
1498
|
-
label: 'Color',
|
|
1499
|
-
},
|
|
1500
|
-
{
|
|
1501
|
-
value: 'typography',
|
|
1502
|
-
label: 'Typography',
|
|
1503
|
-
},
|
|
1504
|
-
{
|
|
1505
|
-
value: 'icon',
|
|
1506
|
-
label: 'Icon',
|
|
1507
|
-
},
|
|
1508
|
-
{
|
|
1509
|
-
value: 'button',
|
|
1510
|
-
label: 'Button',
|
|
1511
|
-
},
|
|
1512
|
-
],
|
|
1513
|
-
},
|
|
1514
|
-
{
|
|
1515
|
-
value: 'form',
|
|
1516
|
-
label: 'Form',
|
|
1517
|
-
children: [
|
|
1518
|
-
{
|
|
1519
|
-
value: 'radio',
|
|
1520
|
-
label: 'Radio',
|
|
1521
|
-
},
|
|
1522
|
-
{
|
|
1523
|
-
value: 'checkbox',
|
|
1524
|
-
label: 'Checkbox',
|
|
1525
|
-
},
|
|
1526
|
-
{
|
|
1527
|
-
value: 'input',
|
|
1528
|
-
label: 'Input',
|
|
1529
|
-
},
|
|
1530
|
-
{
|
|
1531
|
-
value: 'input-number',
|
|
1532
|
-
label: 'InputNumber',
|
|
1533
|
-
},
|
|
1534
|
-
{
|
|
1535
|
-
value: 'select',
|
|
1536
|
-
label: 'Select',
|
|
1537
|
-
},
|
|
1538
|
-
{
|
|
1539
|
-
value: 'cascader',
|
|
1540
|
-
label: 'Cascader',
|
|
1541
|
-
},
|
|
1542
|
-
{
|
|
1543
|
-
value: 'switch',
|
|
1544
|
-
label: 'Switch',
|
|
1545
|
-
},
|
|
1546
|
-
{
|
|
1547
|
-
value: 'slider',
|
|
1548
|
-
label: 'Slider',
|
|
1549
|
-
},
|
|
1550
|
-
{
|
|
1551
|
-
value: 'time-picker',
|
|
1552
|
-
label: 'TimePicker',
|
|
1553
|
-
},
|
|
1554
|
-
{
|
|
1555
|
-
value: 'date-picker',
|
|
1556
|
-
label: 'DatePicker',
|
|
1557
|
-
},
|
|
1558
|
-
{
|
|
1559
|
-
value: 'datetime-picker',
|
|
1560
|
-
label: 'DateTimePicker',
|
|
1561
|
-
},
|
|
1562
|
-
{
|
|
1563
|
-
value: 'upload',
|
|
1564
|
-
label: 'Upload',
|
|
1565
|
-
},
|
|
1566
|
-
{
|
|
1567
|
-
value: 'rate',
|
|
1568
|
-
label: 'Rate',
|
|
1569
|
-
},
|
|
1570
|
-
{
|
|
1571
|
-
value: 'form',
|
|
1572
|
-
label: 'Form',
|
|
1573
|
-
},
|
|
1574
|
-
],
|
|
1575
|
-
},
|
|
1576
|
-
{
|
|
1577
|
-
value: 'data',
|
|
1578
|
-
label: 'Data',
|
|
1579
|
-
children: [
|
|
1580
|
-
{
|
|
1581
|
-
value: 'table',
|
|
1582
|
-
label: 'Table',
|
|
1583
|
-
},
|
|
1584
|
-
{
|
|
1585
|
-
value: 'tag',
|
|
1586
|
-
label: 'Tag',
|
|
1587
|
-
},
|
|
1588
|
-
{
|
|
1589
|
-
value: 'progress',
|
|
1590
|
-
label: 'Progress',
|
|
1591
|
-
},
|
|
1592
|
-
{
|
|
1593
|
-
value: 'tree',
|
|
1594
|
-
label: 'Tree',
|
|
1595
|
-
},
|
|
1596
|
-
{
|
|
1597
|
-
value: 'pagination',
|
|
1598
|
-
label: 'Pagination',
|
|
1599
|
-
},
|
|
1600
|
-
{
|
|
1601
|
-
value: 'badge',
|
|
1602
|
-
label: 'Badge',
|
|
1603
|
-
},
|
|
1604
|
-
],
|
|
1605
|
-
},
|
|
1606
|
-
{
|
|
1607
|
-
value: 'notice',
|
|
1608
|
-
label: 'Notice',
|
|
1609
|
-
children: [
|
|
1610
|
-
{
|
|
1611
|
-
value: 'alert',
|
|
1612
|
-
label: 'Alert',
|
|
1613
|
-
},
|
|
1614
|
-
{
|
|
1615
|
-
value: 'loading',
|
|
1616
|
-
label: 'Loading',
|
|
1617
|
-
},
|
|
1618
|
-
{
|
|
1619
|
-
value: 'message',
|
|
1620
|
-
label: 'Message',
|
|
1621
|
-
},
|
|
1622
|
-
{
|
|
1623
|
-
value: 'message-box',
|
|
1624
|
-
label: 'MessageBox',
|
|
1625
|
-
},
|
|
1626
|
-
{
|
|
1627
|
-
value: 'notification',
|
|
1628
|
-
label: 'Notification',
|
|
1629
|
-
},
|
|
1630
|
-
],
|
|
1631
|
-
},
|
|
1632
|
-
{
|
|
1633
|
-
value: 'navigation',
|
|
1634
|
-
label: 'Navigation',
|
|
1635
|
-
children: [
|
|
1636
|
-
{
|
|
1637
|
-
value: 'menu',
|
|
1638
|
-
label: 'Menu',
|
|
1639
|
-
},
|
|
1640
|
-
{
|
|
1641
|
-
value: 'tabs',
|
|
1642
|
-
label: 'Tabs',
|
|
1643
|
-
},
|
|
1644
|
-
{
|
|
1645
|
-
value: 'breadcrumb',
|
|
1646
|
-
label: 'Breadcrumb',
|
|
1647
|
-
},
|
|
1648
|
-
{
|
|
1649
|
-
value: 'dropdown',
|
|
1650
|
-
label: 'Dropdown',
|
|
1651
|
-
},
|
|
1652
|
-
{
|
|
1653
|
-
value: 'steps',
|
|
1654
|
-
label: 'Steps',
|
|
1655
|
-
},
|
|
1656
|
-
],
|
|
1657
|
-
},
|
|
1658
|
-
{
|
|
1659
|
-
value: 'others',
|
|
1660
|
-
label: 'Others',
|
|
1661
|
-
children: [
|
|
1662
|
-
{
|
|
1663
|
-
value: 'dialog',
|
|
1664
|
-
label: 'Dialog',
|
|
1665
|
-
},
|
|
1666
|
-
{
|
|
1667
|
-
value: 'tooltip',
|
|
1668
|
-
label: 'Tooltip',
|
|
1669
|
-
},
|
|
1670
|
-
{
|
|
1671
|
-
value: 'popover',
|
|
1672
|
-
label: 'Popover',
|
|
1673
|
-
},
|
|
1674
|
-
{
|
|
1675
|
-
value: 'card',
|
|
1676
|
-
label: 'Card',
|
|
1677
|
-
},
|
|
1678
|
-
{
|
|
1679
|
-
value: 'carousel',
|
|
1680
|
-
label: 'Carousel',
|
|
1681
|
-
},
|
|
1682
|
-
{
|
|
1683
|
-
value: 'collapse',
|
|
1684
|
-
label: 'Collapse',
|
|
1685
|
-
},
|
|
1686
|
-
],
|
|
1687
|
-
},
|
|
1688
|
-
],
|
|
1689
|
-
},
|
|
1690
|
-
{
|
|
1691
|
-
value: 'resource',
|
|
1692
|
-
label: 'Resource',
|
|
1693
|
-
children: [
|
|
1694
|
-
{
|
|
1695
|
-
value: 'axure',
|
|
1696
|
-
label: 'Axure Components',
|
|
1697
|
-
},
|
|
1698
|
-
{
|
|
1699
|
-
value: 'sketch',
|
|
1700
|
-
label: 'Sketch Templates',
|
|
1701
|
-
},
|
|
1702
|
-
{
|
|
1703
|
-
value: 'docs',
|
|
1704
|
-
label: 'Design Documentation',
|
|
1705
|
-
},
|
|
1706
|
-
],
|
|
1707
|
-
},
|
|
1708
|
-
];
|
|
1709
|
-
const cascaderChange = (value) => {
|
|
1710
|
-
console.debug('handleChange', value);
|
|
1711
|
-
};
|
|
1712
|
-
const cascaderPanelValue = ref('');
|
|
1713
|
-
const cascaderPanelChange = (value: CascaderValue) => {
|
|
1714
|
-
console.debug('cascaderPanelChange', value, cascaderPanelValue.value);
|
|
1715
|
-
};
|
|
1716
|
-
const elCascaderRef = ref(null);
|
|
1717
|
-
const hsCascaderRef = ref(null);
|
|
1718
|
-
const elCascaderPanelRef = ref(null);
|
|
1719
|
-
const hsCascaderPanelRef = ref(null);
|
|
1720
|
-
// ======================================================================== 级联选择器 end ================================================================
|
|
1721
|
-
// ======================================================================== 上传 start ===================================================================
|
|
1722
|
-
const elUploadRef = ref(null);
|
|
1723
|
-
const hsUploadRef = ref(null);
|
|
1724
|
-
const fileList = ref([
|
|
1725
|
-
{
|
|
1726
|
-
name: 'element-plus-logo.svg',
|
|
1727
|
-
url: 'https://element-plus.org/images/element-plus-logo.svg',
|
|
1728
|
-
},
|
|
1729
|
-
{
|
|
1730
|
-
name: 'element-plus-logo2.svg',
|
|
1731
|
-
url: 'https://element-plus.org/images/element-plus-logo.svg',
|
|
1732
|
-
},
|
|
1733
|
-
]);
|
|
1734
|
-
const handlePreview = (file: any) => {
|
|
1735
|
-
console.debug('handlePreview', file);
|
|
1736
|
-
};
|
|
1737
|
-
const handleRemove = (file: any, fileList: any) => {
|
|
1738
|
-
console.debug('handleRemove', file, fileList);
|
|
1739
|
-
};
|
|
1740
|
-
const beforeRemove = (file: any, fileList: any) => {
|
|
1741
|
-
console.debug('beforeRemove', file, fileList);
|
|
1742
|
-
};
|
|
1743
|
-
const handleExceed = (files: any, fileList: any) => {
|
|
1744
|
-
console.debug('handleExceed', files, fileList);
|
|
1745
|
-
};
|
|
1746
|
-
const handleError = (err: any, file: any, fileList: any) => {
|
|
1747
|
-
console.debug('handleError', err, file, fileList);
|
|
1748
|
-
};
|
|
1749
|
-
const handleSuccess = () => {
|
|
1750
|
-
// console.debug('handleSuccess', res, file, fileList);
|
|
1751
|
-
console.debug('handleSuccess', fileList.value);
|
|
1752
|
-
};
|
|
1753
|
-
// ======================================================================== 上传 end =====================================================================
|
|
1754
|
-
// ======================================================================== 穿梭框 start =================================================================
|
|
1755
|
-
const transferValue = ref([]);
|
|
1756
|
-
const transferData = ref([
|
|
1757
|
-
{
|
|
1758
|
-
key: 1,
|
|
1759
|
-
label: '备选项1',
|
|
1760
|
-
},
|
|
1761
|
-
{
|
|
1762
|
-
key: 2,
|
|
1763
|
-
label: '备选项2',
|
|
1764
|
-
},
|
|
1765
|
-
{
|
|
1766
|
-
key: 3,
|
|
1767
|
-
label: '备选项3',
|
|
1768
|
-
},
|
|
1769
|
-
{
|
|
1770
|
-
key: 4,
|
|
1771
|
-
label: '备选项4',
|
|
1772
|
-
},
|
|
1773
|
-
{
|
|
1774
|
-
key: 5,
|
|
1775
|
-
label: '备选项5',
|
|
1776
|
-
},
|
|
1777
|
-
{
|
|
1778
|
-
key: 6,
|
|
1779
|
-
label: '备选项6',
|
|
1780
|
-
disabled: true,
|
|
1781
|
-
},
|
|
1782
|
-
]);
|
|
1783
|
-
const elTransferRef = ref(null);
|
|
1784
|
-
const hsTransferRef = ref(null);
|
|
1785
|
-
// ======================================================================== 穿梭框 end ===================================================================
|
|
1786
|
-
// ======================================================================== 日期选择器 start ================================================================
|
|
1787
|
-
const date = ref('');
|
|
1788
|
-
const dateArray = ref(['2021-06-01 00:00:00', '2021-06-02 00:00:00']);
|
|
1789
|
-
const dateChange = (value) => {
|
|
1790
|
-
console.debug('dateChange', value);
|
|
1791
|
-
};
|
|
1792
|
-
const dateInput = (value) => {
|
|
1793
|
-
console.debug('dateInput', value);
|
|
1794
|
-
};
|
|
1795
|
-
const dateFocus = (value) => {
|
|
1796
|
-
console.debug('dateFocus', value);
|
|
1797
|
-
};
|
|
1798
|
-
const dateBlur = (value) => {
|
|
1799
|
-
console.debug('dateBlur', value);
|
|
1800
|
-
};
|
|
1801
|
-
const elDatePickerRef = ref(null);
|
|
1802
|
-
const hsDatePickerRef = ref(null);
|
|
1803
|
-
// ======================================================================== 日期选择器 end ==================================================================
|
|
1804
|
-
// ======================================================================== 日历 start ===================================================================
|
|
1805
|
-
const calendarValue = ref();
|
|
1806
|
-
const elCalendarRef = ref(null);
|
|
1807
|
-
const hsCalendarRef = ref(null);
|
|
1808
|
-
// ======================================================================== 日历 end =====================================================================
|
|
1809
|
-
// ======================================================================== 折叠面板 start =================================================================
|
|
1810
|
-
const activeNames = ref([]);
|
|
1811
|
-
const elCollapseRef = ref(null);
|
|
1812
|
-
const hsCollapseRef = ref(null);
|
|
1813
|
-
const elCollapseItemRef = ref(null);
|
|
1814
|
-
const hsCollapseItemRef = ref(null);
|
|
1815
|
-
const collapseChange = (value) => {
|
|
1816
|
-
console.debug('collapseChange', value);
|
|
1817
|
-
};
|
|
1818
|
-
// ======================================================================== 折叠面板 end ===================================================================
|
|
1819
|
-
// ======================================================================== 走马灯 start ===================================================================
|
|
1820
|
-
const carouselValue = ref();
|
|
1821
|
-
// ======================================================================== 走马灯 end =====================================================================
|
|
1822
|
-
// ======================================================================== 进度条 start ===================================================================
|
|
1823
|
-
const elProgressRef = ref(null);
|
|
1824
|
-
const hsProgressRef = ref(null);
|
|
1825
|
-
const percentage = ref(0);
|
|
1826
|
-
const percentage2 = ref(0);
|
|
1827
|
-
const colors2 = [
|
|
1828
|
-
{ color: '#f56c6c', percentage: 20 },
|
|
1829
|
-
{ color: '#e6a23c', percentage: 40 },
|
|
1830
|
-
{ color: '#5cb87a', percentage: 60 },
|
|
1831
|
-
{ color: '#1989fa', percentage: 80 },
|
|
1832
|
-
{ color: '#6f7ad3', percentage: 100 },
|
|
1833
|
-
];
|
|
1834
|
-
|
|
1835
|
-
const increase = () => {
|
|
1836
|
-
percentage.value += 10;
|
|
1837
|
-
if (percentage.value > 100) {
|
|
1838
|
-
percentage.value = 100;
|
|
1839
|
-
}
|
|
1840
|
-
};
|
|
1841
|
-
const decrease = () => {
|
|
1842
|
-
percentage.value -= 10;
|
|
1843
|
-
if (percentage.value < 0) {
|
|
1844
|
-
percentage.value = 0;
|
|
1845
|
-
}
|
|
1846
|
-
};
|
|
1847
|
-
// ======================================================================== 进度条 end =====================================================================
|
|
1848
|
-
// ======================================================================== 结果 start =====================================================================
|
|
1849
|
-
// ======================================================================== 结果 end =======================================================================
|
|
1850
|
-
// ======================================================================== 引导 start =====================================================================
|
|
1851
|
-
const open = ref(false);
|
|
1852
|
-
const ref1 = ref(null);
|
|
1853
|
-
const ref2 = ref(null);
|
|
1854
|
-
const ref3 = ref(null);
|
|
1855
|
-
const open2 = ref(false);
|
|
1856
|
-
const ref4 = ref(null);
|
|
1857
|
-
const ref5 = ref(null);
|
|
1858
|
-
const ref6 = ref(null);
|
|
1859
|
-
const current = ref(2);
|
|
1860
|
-
const elTourRef = ref(null);
|
|
1861
|
-
const hsTourRef = ref(null);
|
|
1862
|
-
const tourChange = (value) => {
|
|
1863
|
-
console.debug('tourChange', value, current.value);
|
|
1864
|
-
};
|
|
1865
|
-
// ======================================================================== 引导 end =======================================================================
|
|
1866
|
-
// ======================================================================== 标签 start =====================================================================
|
|
1867
|
-
const elTagRef = ref(null);
|
|
1868
|
-
const hsTagRef = ref(null);
|
|
1869
|
-
const elCheckTagRef = ref(null);
|
|
1870
|
-
const hsCheckTagRef = ref(null);
|
|
1871
|
-
const checkTagChecked = ref(false);
|
|
1872
|
-
const checkTagChange = (value) => {
|
|
1873
|
-
console.debug('checkTagChange', value, checkTagChecked.value);
|
|
1874
|
-
setTimeout(() => {
|
|
1875
|
-
console.debug('checkTagChange', value, checkTagChecked.value);
|
|
1876
|
-
}, 1000);
|
|
1877
|
-
};
|
|
1878
|
-
const tags = ref([
|
|
1879
|
-
{ name: 'Tag 1', type: '' },
|
|
1880
|
-
{ name: 'Tag 2', type: 'success' },
|
|
1881
|
-
{ name: 'Tag 3', type: 'info' },
|
|
1882
|
-
{ name: 'Tag 4', type: 'warning' },
|
|
1883
|
-
{ name: 'Tag 5', type: 'danger' },
|
|
1884
|
-
]);
|
|
1885
|
-
// ======================================================================== 标签 end =======================================================================
|
|
1886
|
-
// ======================================================================== 固钉 start =====================================================================
|
|
1887
|
-
const elAffixRef = ref(null);
|
|
1888
|
-
const elAffixRef2 = ref(null);
|
|
1889
|
-
const hsAffixRef = ref(null);
|
|
1890
|
-
const hsAffixRef2 = ref(null);
|
|
1891
|
-
// 滚动到头部
|
|
1892
|
-
const scrollToTop = () => {
|
|
1893
|
-
const elCardBody = document.querySelector('.el-card__body');
|
|
1894
|
-
elCardBody?.scrollTo({
|
|
1895
|
-
top: 0,
|
|
1896
|
-
behavior: 'smooth',
|
|
1897
|
-
});
|
|
1898
|
-
};
|
|
1899
|
-
// 滚动到底部
|
|
1900
|
-
const scrollToBottom = () => {
|
|
1901
|
-
const elCardBody = document.querySelector('.el-card__body');
|
|
1902
|
-
elCardBody?.scrollTo({
|
|
1903
|
-
top: elCardBody.scrollHeight,
|
|
1904
|
-
behavior: 'smooth',
|
|
1905
|
-
});
|
|
1906
|
-
};
|
|
1907
|
-
// ======================================================================== 固钉 end =======================================================================
|
|
1908
|
-
// ======================================================================== 标签页 start ===================================================================
|
|
1909
|
-
const tabsActiveName = ref('first');
|
|
1910
|
-
const tabsClick = (tab, event) => {
|
|
1911
|
-
console.debug('tabsClick', tab, event);
|
|
1912
|
-
};
|
|
1913
|
-
// ======================================================================== 标签页 end =====================================================================
|
|
1914
|
-
// ======================================================================== 步骤条 start ===================================================================
|
|
1915
|
-
const stepsActive = ref(0);
|
|
1916
|
-
const stepsNext = () => {
|
|
1917
|
-
stepsActive.value++;
|
|
1918
|
-
};
|
|
1919
|
-
// ======================================================================== 步骤条 end =====================================================================
|
|
1920
|
-
// ======================================================================== 提示 start =====================================================================
|
|
1921
|
-
const elAlertRef = ref(null);
|
|
1922
|
-
const hsAlertRef = ref(null);
|
|
1923
|
-
// ======================================================================== 提示 end =======================================================================
|
|
1924
|
-
// ======================================================================== 对话框 start ===================================================================
|
|
1925
|
-
const dialogVisible = ref(false);
|
|
1926
|
-
const elDialogRef = ref(null);
|
|
1927
|
-
const hsDialogRef = ref(null);
|
|
1928
|
-
|
|
1929
|
-
const handleClose = (done) => {
|
|
1930
|
-
console.debug('handleClose', done);
|
|
1931
|
-
done();
|
|
1932
|
-
};
|
|
1933
|
-
const dialogVisible2 = ref(false);
|
|
1934
|
-
// ======================================================================== 对话框 end =====================================================================
|
|
1935
|
-
// ======================================================================== 抽屉 start ===================================================================
|
|
1936
|
-
const drawer = ref(false);
|
|
1937
|
-
const drawer2 = ref(false);
|
|
1938
|
-
const direction = ref('rtl');
|
|
1939
|
-
const elDrawerRef = ref(null);
|
|
1940
|
-
const hsDrawerRef = ref(null);
|
|
1941
|
-
const cancelClick = () => {
|
|
1942
|
-
console.debug('cancelClick');
|
|
1943
|
-
};
|
|
1944
|
-
const confirmClick = () => {
|
|
1945
|
-
console.debug('confirmClick');
|
|
1946
|
-
};
|
|
1947
|
-
// ======================================================================== 抽屉 end =====================================================================
|
|
1948
|
-
// ======================================================================== 气泡确认框 start =====================================================================
|
|
1949
|
-
const elPopconfirmRef = ref(null);
|
|
1950
|
-
const hsPopconfirmRef = ref(null);
|
|
1951
|
-
// ======================================================================== 气泡确认框 end =======================================================================
|
|
1952
|
-
// ======================================================================== 气泡提示框 start =====================================================================
|
|
1953
|
-
const elPopoverRef = ref(null);
|
|
1954
|
-
const hsPopoverRef = ref(null);
|
|
1955
|
-
const visible = ref(false);
|
|
1956
|
-
// ======================================================================== 气泡提示框 end =======================================================================
|
|
1957
|
-
// ======================================================================== 文字提示 start =====================================================================
|
|
1958
|
-
const elTooltipRef = ref(null);
|
|
1959
|
-
const hsTooltipRef = ref(null);
|
|
1960
|
-
// ======================================================================== 文字提示 end =======================================================================
|
|
1961
|
-
// ======================================================================== 水印 start =====================================================================
|
|
1962
|
-
const elWatermarkRef = ref(null);
|
|
1963
|
-
const hsWatermarkRef = ref(null);
|
|
1964
|
-
const watermarkFont = reactive({
|
|
1965
|
-
color: 'rgba(0, 0, 0, .15)',
|
|
1966
|
-
});
|
|
1967
|
-
// ======================================================================== 水印 end =======================================================================
|
|
1968
|
-
// ======================================================================== 树形选择 start =====================================================================
|
|
1969
|
-
const hsTreeSelectRef = ref(null);
|
|
1970
|
-
const treeSelectValue = ref([]);
|
|
1971
|
-
const treeSelectData = [
|
|
1972
|
-
{
|
|
1973
|
-
value: '1',
|
|
1974
|
-
label: 'Level one 1',
|
|
1975
|
-
children: [
|
|
1976
|
-
{
|
|
1977
|
-
value: '1-1',
|
|
1978
|
-
label: 'Level two 1-1',
|
|
1979
|
-
children: [
|
|
1980
|
-
{
|
|
1981
|
-
value: '1-1-1',
|
|
1982
|
-
label: 'Level three 1-1-1',
|
|
1983
|
-
},
|
|
1984
|
-
],
|
|
1985
|
-
},
|
|
1986
|
-
],
|
|
1987
|
-
},
|
|
1988
|
-
{
|
|
1989
|
-
value: '2',
|
|
1990
|
-
label: 'Level one 2',
|
|
1991
|
-
children: [
|
|
1992
|
-
{
|
|
1993
|
-
value: '2-1',
|
|
1994
|
-
label: 'Level two 2-1',
|
|
1995
|
-
children: [
|
|
1996
|
-
{
|
|
1997
|
-
value: '2-1-1',
|
|
1998
|
-
label: 'Level three 2-1-1',
|
|
1999
|
-
},
|
|
2000
|
-
],
|
|
2001
|
-
},
|
|
2002
|
-
{
|
|
2003
|
-
value: '2-2',
|
|
2004
|
-
label: 'Level two 2-2',
|
|
2005
|
-
children: [
|
|
2006
|
-
{
|
|
2007
|
-
value: '2-2-1',
|
|
2008
|
-
label: 'Level three 2-2-1',
|
|
2009
|
-
},
|
|
2010
|
-
],
|
|
2011
|
-
},
|
|
2012
|
-
],
|
|
2013
|
-
},
|
|
2014
|
-
{
|
|
2015
|
-
value: '3',
|
|
2016
|
-
label: 'Level one 3',
|
|
2017
|
-
children: [
|
|
2018
|
-
{
|
|
2019
|
-
value: '3-1',
|
|
2020
|
-
label: 'Level two 3-1',
|
|
2021
|
-
children: [
|
|
2022
|
-
{
|
|
2023
|
-
value: '3-1-1',
|
|
2024
|
-
label: 'Level three 3-1-1',
|
|
2025
|
-
},
|
|
2026
|
-
],
|
|
2027
|
-
},
|
|
2028
|
-
{
|
|
2029
|
-
value: '3-2',
|
|
2030
|
-
label: 'Level two 3-2',
|
|
2031
|
-
children: [
|
|
2032
|
-
{
|
|
2033
|
-
value: '3-2-1',
|
|
2034
|
-
label: 'Level three 3-2-1',
|
|
2035
|
-
},
|
|
2036
|
-
],
|
|
2037
|
-
},
|
|
2038
|
-
],
|
|
2039
|
-
},
|
|
2040
|
-
];
|
|
2041
|
-
// ======================================================================== 树形选择 end =====================================================================
|
|
2042
|
-
const click = (...rest: any[]) => {
|
|
2043
|
-
console.debug('点击了按钮' + rest);
|
|
2044
|
-
// console.debug('radio', elRadioGroupRef.value, elRadioButtonRef.value);
|
|
2045
|
-
// console.debug('radio', hsRadioGroupRef.value, hsRadioButtonRef.value);
|
|
2046
|
-
// console.debug('switch', elSwitchRef.value, hsSwitchRef.value);
|
|
2047
|
-
// console.debug('checkbox', elCheckboxRef.value, hsCheckboxRef.value);
|
|
2048
|
-
// console.debug('input', inputRef.value, inputRef2.value);
|
|
2049
|
-
// console.debug('select', elSelectRef.value, hsSelectRef.value);
|
|
2050
|
-
// console.debug('tree', treeRef.value, treeRef2.value);
|
|
2051
|
-
// console.debug('inputNumber', elInputNumberRef.value, hsInputNumberRef.value);
|
|
2052
|
-
// console.debug('button', buttonRef.value, buttonRef2.value);
|
|
2053
|
-
// inputRef.value.focus(); // 聚焦
|
|
2054
|
-
// inputRef.value.blur(); // 失焦
|
|
2055
|
-
// console.debug('elRateRef', elRateRef.value!.resetCurrentValue, hsRateRef.value!.resetCurrentValue);
|
|
2056
|
-
// console.debug('elAutocompleteRef', elAutocompleteRef.value, hsAutocompleteRef.value.focus());
|
|
2057
|
-
// console.debug('slider', sliderRef.value, hsSliderRef.value);
|
|
2058
|
-
// console.debug('colorPicker', colorPickerRef.value, hsColorPickerRef.value);
|
|
2059
|
-
// console.debug('cascader', elCascaderRef.value, hsCascaderRef.value);
|
|
2060
|
-
// console.debug('cascaderPanel', elCascaderPanelRef.value, hsCascaderPanelRef.value);
|
|
2061
|
-
// console.debug('upload', elUploadRef.value, hsUploadRef.value);
|
|
2062
|
-
// fileList.value.push({
|
|
2063
|
-
// name: 'element-plus-logo.svg' + (fileList.value.length + 1),
|
|
2064
|
-
// url: 'https://element-plus.org/images/element-plus-logo.svg',
|
|
2065
|
-
// });
|
|
2066
|
-
// console.debug('transfer', elTransferRef.value, hsTransferRef.value);
|
|
2067
|
-
// console.debug('datePicker', elDatePickerRef.value, hsDatePickerRef.value);
|
|
2068
|
-
// console.debug('calendar', calendarValue.value, elCalendarRef.value, hsCalendarRef.value);
|
|
2069
|
-
// console.debug('collapse', activeNames.value, elCollapseRef.value, hsCollapseRef.value);
|
|
2070
|
-
// console.debug('collapseItem', elCollapseItemRef.value, hsCollapseItemRef.value);
|
|
2071
|
-
// console.debug('progress', elProgressRef.value, hsProgressRef.value);
|
|
2072
|
-
// console.debug('tour', elTourRef.value, hsTourRef.value);
|
|
2073
|
-
// console.debug('tag', elTagRef.value, hsTagRef.value);
|
|
2074
|
-
// console.debug('checkTag', elCheckTagRef.value, hsCheckTagRef.value);
|
|
2075
|
-
// console.debug('affix', elAffixRef.value, elAffixRef2.value, hsAffixRef.value, hsAffixRef2.value);
|
|
2076
|
-
// console.debug('alert', elAlertRef.value, hsAlertRef.value);
|
|
2077
|
-
// console.debug('dialog', elDialogRef.value, hsDialogRef.value);
|
|
2078
|
-
// console.debug('drawer', elDrawerRef.value, hsDrawerRef.value);
|
|
2079
|
-
// console.debug('popconfirm', elPopconfirmRef.value, hsPopconfirmRef.value);
|
|
2080
|
-
// console.debug('popover', elPopoverRef.value, hsPopoverRef.value);
|
|
2081
|
-
// console.debug('tooltip', elTooltipRef.value, hsTooltipRef.value);
|
|
2082
|
-
// console.debug('watermark', elWatermarkRef.value, hsWatermarkRef.value);
|
|
2083
|
-
console.debug('treeSelect', hsTreeSelectRef.value);
|
|
2084
|
-
};
|
|
2085
|
-
// const { message: $message, success } = useMessage();
|
|
2086
|
-
onMounted(() => {
|
|
2087
|
-
links.value = loadAll();
|
|
2088
|
-
setInterval(() => {
|
|
2089
|
-
percentage2.value = (percentage2.value % 100) + 10;
|
|
2090
|
-
}, 500);
|
|
2091
|
-
});
|
|
2092
|
-
const { proxy } = getCurrentInstance();
|
|
2093
|
-
|
|
2094
|
-
const showMessageFn = () => {
|
|
2095
|
-
const messageRef = ref(null);
|
|
2096
|
-
// proxy.$message({
|
|
2097
|
-
// message: '这是一条消息提示success',
|
|
2098
|
-
// type: 'success',
|
|
2099
|
-
// duration: 5000,
|
|
2100
|
-
// showClose: true,
|
|
2101
|
-
// center: true,
|
|
2102
|
-
// });
|
|
2103
|
-
messageRef.value = proxy.$message({
|
|
2104
|
-
message: '这是一条消息提示warning',
|
|
2105
|
-
type: 'warning',
|
|
2106
|
-
duration: 0,
|
|
2107
|
-
showClose: true,
|
|
2108
|
-
});
|
|
2109
|
-
// proxy.$message({
|
|
2110
|
-
// message: '这是一条消息提示info',
|
|
2111
|
-
// type: 'info',
|
|
2112
|
-
// });
|
|
2113
|
-
// proxy.$message({
|
|
2114
|
-
// message: '这是一条消息提示error',
|
|
2115
|
-
// type: 'error',
|
|
2116
|
-
// grouping: true,
|
|
2117
|
-
// });
|
|
2118
|
-
// proxy.$message({
|
|
2119
|
-
// dangerouslyUseHTMLString: true,
|
|
2120
|
-
// message: '<strong>This is <i>HTML</i> string</strong>',
|
|
2121
|
-
// })
|
|
2122
|
-
// console.debug('testMessage:', typeof useMessage(), typeof useMessage);
|
|
2123
|
-
// proxy.$message.success('这是一条消息提示success');
|
|
2124
|
-
// proxy.$message.warning('这是一条消息提示warning');
|
|
2125
|
-
// proxy.$message.info('这是一条消息提示info');
|
|
2126
|
-
// proxy.$message.error('这是一条消息提示error');
|
|
2127
|
-
// console.debug("instance:",proxy);
|
|
2128
|
-
// proxy.$message
|
|
2129
|
-
setTimeout(() => {
|
|
2130
|
-
console.debug('messageRef', messageRef.value);
|
|
2131
|
-
messageRef.value.close();
|
|
2132
|
-
}, 5000);
|
|
2133
|
-
};
|
|
2134
|
-
|
|
2135
|
-
const showNotificationFn = () => {
|
|
2136
|
-
const notificationRef = ref(null);
|
|
2137
|
-
// proxy.$notification({
|
|
2138
|
-
// title: '标题',
|
|
2139
|
-
// message: '这是一条消息提示success',
|
|
2140
|
-
// type: 'success',
|
|
2141
|
-
// duration: 5000,
|
|
2142
|
-
// showClose: true,
|
|
2143
|
-
// center: true,
|
|
2144
|
-
// });
|
|
2145
|
-
notificationRef.value = proxy.$notification({
|
|
2146
|
-
title: '标题',
|
|
2147
|
-
message: '这是一条消息提示warning',
|
|
2148
|
-
type: 'warning',
|
|
2149
|
-
duration: 0,
|
|
2150
|
-
showClose: true,
|
|
2151
|
-
});
|
|
2152
|
-
// proxy.$notification({
|
|
2153
|
-
// title: '标题',
|
|
2154
|
-
// message: '这是一条消息提示info',
|
|
2155
|
-
// type: 'info',
|
|
2156
|
-
// });
|
|
2157
|
-
// proxy.$notification({
|
|
2158
|
-
// title: '标题',
|
|
2159
|
-
// message: '这是一条消息提示error',
|
|
2160
|
-
// type: 'error',
|
|
2161
|
-
// grouping: true,
|
|
2162
|
-
// });
|
|
2163
|
-
// proxy.$notification({
|
|
2164
|
-
// dangerouslyUseHTMLString: true,
|
|
2165
|
-
// title: '标题',
|
|
2166
|
-
// message: '<strong>This is <i>HTML</i> string</strong>',
|
|
2167
|
-
// });
|
|
2168
|
-
// proxy.$notification.success({
|
|
2169
|
-
// title: 'Info',
|
|
2170
|
-
// message: 'This is a message without close button',
|
|
2171
|
-
// showClose: false,
|
|
2172
|
-
// })
|
|
2173
|
-
setTimeout(() => {
|
|
2174
|
-
console.debug('notificationRef', notificationRef.value);
|
|
2175
|
-
notificationRef.value.close();
|
|
2176
|
-
}, 5000);
|
|
2177
|
-
};
|
|
2178
|
-
const showMessageBoxFn = () => {
|
|
2179
|
-
// proxy.$MessageBox.alert('This is a message', 'Title', {
|
|
2180
|
-
// // if you want to disable its autofocus
|
|
2181
|
-
// // autofocus: false,
|
|
2182
|
-
// confirmButtonText: 'OK',
|
|
2183
|
-
// callback: (action: Action) => {
|
|
2184
|
-
// proxy.$message({
|
|
2185
|
-
// type: 'info',
|
|
2186
|
-
// message: `action: ${action}`,
|
|
2187
|
-
// })
|
|
2188
|
-
// },
|
|
2189
|
-
// })
|
|
2190
|
-
// proxy.$MessageBox.confirm(
|
|
2191
|
-
// 'proxy will permanently delete the file. Continue?',
|
|
2192
|
-
// 'Warning',
|
|
2193
|
-
// {
|
|
2194
|
-
// confirmButtonText: 'OK',
|
|
2195
|
-
// cancelButtonText: 'Cancel',
|
|
2196
|
-
// type: 'warning',
|
|
2197
|
-
// }
|
|
2198
|
-
// )
|
|
2199
|
-
// .then(() => {
|
|
2200
|
-
// proxy.$message({
|
|
2201
|
-
// type: 'success',
|
|
2202
|
-
// message: 'Delete completed',
|
|
2203
|
-
// })
|
|
2204
|
-
// })
|
|
2205
|
-
// .catch(() => {
|
|
2206
|
-
// proxy.$message({
|
|
2207
|
-
// type: 'info',
|
|
2208
|
-
// message: 'Delete canceled',
|
|
2209
|
-
// })
|
|
2210
|
-
// })
|
|
2211
|
-
// proxy.$MessageBox.prompt('Please input your e-mail', 'Tip', {
|
|
2212
|
-
// confirmButtonText: 'OK',
|
|
2213
|
-
// cancelButtonText: 'Cancel',
|
|
2214
|
-
// inputPattern:
|
|
2215
|
-
// /[\w!#$%&'*+/=?^_`{|}~-]+(?:\.[\w!#$%&'*+/=?^_`{|}~-]+)*@(?:[\w](?:[\w-]*[\w])?\.)+[\w](?:[\w-]*[\w])?/,
|
|
2216
|
-
// inputErrorMessage: 'Invalid Email',
|
|
2217
|
-
// })
|
|
2218
|
-
// .then(({ value }) => {
|
|
2219
|
-
// proxy.$message({
|
|
2220
|
-
// type: 'success',
|
|
2221
|
-
// message: `Your email is:${value}`,
|
|
2222
|
-
// })
|
|
2223
|
-
// })
|
|
2224
|
-
// .catch(() => {
|
|
2225
|
-
// proxy.$message({
|
|
2226
|
-
// type: 'info',
|
|
2227
|
-
// message: 'Input canceled',
|
|
2228
|
-
// })
|
|
2229
|
-
// })
|
|
2230
|
-
// proxy.$MessageBox({
|
|
2231
|
-
// title: 'Message',
|
|
2232
|
-
// message: h('p', null, [
|
|
2233
|
-
// h('span', null, 'Message can be '),
|
|
2234
|
-
// h('i', { style: 'color: teal' }, 'VNode'),
|
|
2235
|
-
// ]),
|
|
2236
|
-
// })
|
|
2237
|
-
// const checked = ref<boolean | string | number>(false)
|
|
2238
|
-
// proxy.$MessageBox({
|
|
2239
|
-
// title: 'Message',
|
|
2240
|
-
// // Should pass a function if VNode contains dynamic props
|
|
2241
|
-
// message: () =>
|
|
2242
|
-
// h(ElSwitch, {
|
|
2243
|
-
// modelValue: checked.value,
|
|
2244
|
-
// 'onUpdate:modelValue': (val: boolean | string | number) => {
|
|
2245
|
-
// checked.value = val
|
|
2246
|
-
// },
|
|
2247
|
-
// }),
|
|
2248
|
-
// })
|
|
2249
|
-
// proxy.$MessageBox({
|
|
2250
|
-
// title: 'Message',
|
|
2251
|
-
// message: h('p', null, [
|
|
2252
|
-
// h('span', null, 'Message can be '),
|
|
2253
|
-
// h('i', { style: 'color: teal' }, 'VNode'),
|
|
2254
|
-
// ]),
|
|
2255
|
-
// showCancelButton: true,
|
|
2256
|
-
// confirmButtonText: 'OK',
|
|
2257
|
-
// cancelButtonText: 'Cancel',
|
|
2258
|
-
// beforeClose: (action, instance, done) => {
|
|
2259
|
-
// if (action === 'confirm') {
|
|
2260
|
-
// instance.confirmButtonLoading = true
|
|
2261
|
-
// instance.confirmButtonText = 'Loading...'
|
|
2262
|
-
// setTimeout(() => {
|
|
2263
|
-
// done()
|
|
2264
|
-
// setTimeout(() => {
|
|
2265
|
-
// instance.confirmButtonLoading = false
|
|
2266
|
-
// }, 300)
|
|
2267
|
-
// }, 3000)
|
|
2268
|
-
// } else {
|
|
2269
|
-
// done()
|
|
2270
|
-
// }
|
|
2271
|
-
// },
|
|
2272
|
-
// }).then((action) => {
|
|
2273
|
-
// proxy.$message({
|
|
2274
|
-
// type: 'info',
|
|
2275
|
-
// message: `action: ${action}`,
|
|
2276
|
-
// })
|
|
2277
|
-
// })
|
|
2278
|
-
// proxy.$MessageBox.alert(
|
|
2279
|
-
// '<strong>proxy is <i>HTML</i> string</strong>',
|
|
2280
|
-
// 'HTML String',
|
|
2281
|
-
// {
|
|
2282
|
-
// dangerouslyUseHTMLString: true,
|
|
2283
|
-
// }
|
|
2284
|
-
// )
|
|
2285
|
-
// proxy.$MessageBox
|
|
2286
|
-
// .confirm('You have unsaved changes, save and proceed?', 'Confirm', {
|
|
2287
|
-
// distinguishCancelAndClose: true,
|
|
2288
|
-
// confirmButtonText: 'Save',
|
|
2289
|
-
// cancelButtonText: 'Discard Changes',
|
|
2290
|
-
// })
|
|
2291
|
-
// .then(() => {
|
|
2292
|
-
// proxy.$message({
|
|
2293
|
-
// type: 'info',
|
|
2294
|
-
// message: 'Changes saved. Proceeding to a new route.',
|
|
2295
|
-
// });
|
|
2296
|
-
// })
|
|
2297
|
-
// .catch((action: Action) => {
|
|
2298
|
-
// proxy.$message({
|
|
2299
|
-
// type: 'info',
|
|
2300
|
-
// message: action === 'cancel' ? 'Changes discarded. Proceeding to a new route.' : 'Stay in the current route',
|
|
2301
|
-
// });
|
|
2302
|
-
// });
|
|
2303
|
-
// proxy.$MessageBox.confirm(
|
|
2304
|
-
// 'proxy will permanently delete the file. Continue?',
|
|
2305
|
-
// 'Warning',
|
|
2306
|
-
// {
|
|
2307
|
-
// confirmButtonText: 'OK',
|
|
2308
|
-
// cancelButtonText: 'Cancel',
|
|
2309
|
-
// type: 'warning',
|
|
2310
|
-
// center: true,
|
|
2311
|
-
// }
|
|
2312
|
-
// )
|
|
2313
|
-
// .then(() => {
|
|
2314
|
-
// proxy.$message({
|
|
2315
|
-
// type: 'success',
|
|
2316
|
-
// message: 'Delete completed',
|
|
2317
|
-
// })
|
|
2318
|
-
// })
|
|
2319
|
-
// .catch(() => {
|
|
2320
|
-
// proxy.$message({
|
|
2321
|
-
// type: 'info',
|
|
2322
|
-
// message: 'Delete canceled',
|
|
2323
|
-
// })
|
|
2324
|
-
// })
|
|
2325
|
-
// proxy.$MessageBox.confirm(
|
|
2326
|
-
// 'It will permanently delete the file. Continue?',
|
|
2327
|
-
// 'Warning',
|
|
2328
|
-
// {
|
|
2329
|
-
// type: 'warning',
|
|
2330
|
-
// icon: markRaw(Delete),
|
|
2331
|
-
// }
|
|
2332
|
-
// )
|
|
2333
|
-
proxy.$MessageBox
|
|
2334
|
-
.confirm('proxy will permanently delete the file. Continue?', 'Warning', {
|
|
2335
|
-
confirmButtonText: 'OK',
|
|
2336
|
-
cancelButtonText: 'Cancel',
|
|
2337
|
-
type: 'warning',
|
|
2338
|
-
draggable: true,
|
|
2339
|
-
})
|
|
2340
|
-
.then(() => {
|
|
2341
|
-
proxy.$message({
|
|
2342
|
-
type: 'success',
|
|
2343
|
-
message: 'Delete completed',
|
|
2344
|
-
});
|
|
2345
|
-
})
|
|
2346
|
-
.catch(() => {
|
|
2347
|
-
proxy.$message({
|
|
2348
|
-
type: 'info',
|
|
2349
|
-
message: 'Delete canceled',
|
|
2350
|
-
});
|
|
2351
|
-
});
|
|
2352
|
-
};
|
|
2353
|
-
|
|
2354
|
-
const data2 = ref({});
|
|
2355
|
-
const inputVal = ref('');
|
|
2356
|
-
const selectData = ref({});
|
|
2357
|
-
const selectValue3 = ref('');
|
|
2358
|
-
const datePickerData = ref({});
|
|
2359
|
-
const datePickerValue = ref('');
|
|
2360
|
-
const buttonData = ref({});
|
|
2361
|
-
const autocompleteData = ref({});
|
|
2362
|
-
const autocompleteValue = ref('');
|
|
2363
|
-
const switchData = ref({});
|
|
2364
|
-
const uploadData = ref({});
|
|
2365
|
-
const checkboxData = ref({});
|
|
2366
|
-
const radioData = ref({});
|
|
2367
|
-
const inputNumberData = ref({});
|
|
2368
|
-
const inputNumberValue = ref(0);
|
|
2369
|
-
const cascaderData = ref({});
|
|
2370
|
-
const cascaderValue = ref([]);
|
|
2371
|
-
const cascaderPanelData = ref({});
|
|
2372
|
-
const cascaderPanelValue2 = ref([]);
|
|
2373
|
-
const treeSelectData2 = ref({});
|
|
2374
|
-
const testMessage = () => {
|
|
2375
|
-
showMessageFn();
|
|
2376
|
-
showNotificationFn();
|
|
2377
|
-
showMessageBoxFn();
|
|
2378
|
-
// console.log('data2', data2.value);
|
|
2379
|
-
// inputVal.value = data2.value.defaultValue;
|
|
2380
|
-
// setTimeout(() => {
|
|
2381
|
-
// inputVal.value = '123'
|
|
2382
|
-
// }, 3000);
|
|
2383
|
-
// setTimeout(() => {
|
|
2384
|
-
// console.log('inputVal', inputVal.value);
|
|
2385
|
-
// }, 5000);
|
|
2386
|
-
console.log('selectData', selectData.value);
|
|
2387
|
-
};
|
|
2388
|
-
const getVal = () => {
|
|
2389
|
-
// console.log('inputVal', inputVal.value);
|
|
2390
|
-
// console.log('selectData', selectData.value);
|
|
2391
|
-
// selectValue3.value = selectData.value.selectAttrs.defaultValue;
|
|
2392
|
-
datePickerValue.value = datePickerData.value.baseAttrs.defaultValue;
|
|
2393
|
-
};
|
|
2394
|
-
</script>
|
|
2395
|
-
|
|
2396
|
-
<style scoped lang="scss">
|
|
2397
|
-
.system-user-container {
|
|
2398
|
-
:deep(.el-card__body) {
|
|
2399
|
-
display: flex;
|
|
2400
|
-
flex-direction: column;
|
|
2401
|
-
flex: 1;
|
|
2402
|
-
overflow: auto;
|
|
2403
|
-
}
|
|
2404
|
-
}
|
|
2405
|
-
.el-carousel__item:nth-child(2n) {
|
|
2406
|
-
background-color: #99a9bf;
|
|
2407
|
-
}
|
|
2408
|
-
|
|
2409
|
-
.el-carousel__item:nth-child(2n + 1) {
|
|
2410
|
-
background-color: #d3dce6;
|
|
2411
|
-
}
|
|
2412
|
-
.tooltip-base-box .row {
|
|
2413
|
-
display: flex;
|
|
2414
|
-
align-items: center;
|
|
2415
|
-
justify-content: space-between;
|
|
2416
|
-
}
|
|
2417
|
-
.tooltip-base-box .center {
|
|
2418
|
-
justify-content: center;
|
|
2419
|
-
}
|
|
2420
|
-
.tooltip-base-box .box-item {
|
|
2421
|
-
width: 110px;
|
|
2422
|
-
margin-top: 10px;
|
|
2423
|
-
}
|
|
2424
|
-
</style>
|