@ljweb/layout-antdv-v4 0.0.0-stage → 0.1.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +75 -2
- package/dist/style.css +9161 -0
- package/esm/_virtual/_plugin-vue_export-helper.js +11 -0
- package/esm/_virtual/_plugin-vue_export-helper.js.map +1 -0
- package/esm/assets/style.css +9161 -0
- package/esm/components/apple-window/AppleWindow.js +358 -0
- package/esm/components/apple-window/AppleWindow.js.map +1 -0
- package/esm/components/apple-window/AppleWindowHolder.js +55 -0
- package/esm/components/apple-window/AppleWindowHolder.js.map +1 -0
- package/esm/components/apple-window/command.js +11 -0
- package/esm/components/apple-window/command.js.map +1 -0
- package/esm/components/apple-window/helpers.js +19 -0
- package/esm/components/apple-window/helpers.js.map +1 -0
- package/esm/components/apple-window/index.js +10 -0
- package/esm/components/apple-window/index.js.map +1 -0
- package/esm/components/apple-window/index.module.less.js +48 -0
- package/esm/components/apple-window/index.module.less.js.map +1 -0
- package/esm/components/apple-window/layer.js +67 -0
- package/esm/components/apple-window/layer.js.map +1 -0
- package/esm/components/apple-window/records.js +45 -0
- package/esm/components/apple-window/records.js.map +1 -0
- package/esm/components/apple-window/types.js +2 -0
- package/esm/components/apple-window/types.js.map +1 -0
- package/esm/components/async-table/AsyncTable.js +290 -0
- package/esm/components/async-table/AsyncTable.js.map +1 -0
- package/esm/components/async-table/helpers.js +71 -0
- package/esm/components/async-table/helpers.js.map +1 -0
- package/esm/components/async-table/index.js +6 -0
- package/esm/components/async-table/index.js.map +1 -0
- package/esm/components/async-table/style.js +2 -0
- package/esm/components/async-table/style.js.map +1 -0
- package/esm/components/async-table/types.js +2 -0
- package/esm/components/async-table/types.js.map +1 -0
- package/esm/components/avatar-dropdown/AvatarDropdown.js +163 -0
- package/esm/components/avatar-dropdown/AvatarDropdown.js.map +1 -0
- package/esm/components/avatar-dropdown/index.js +12 -0
- package/esm/components/avatar-dropdown/index.js.map +1 -0
- package/esm/components/avatar-dropdown/style.js +2 -0
- package/esm/components/avatar-dropdown/style.js.map +1 -0
- package/esm/components/breadcrumb/Breadcrumb.js +112 -0
- package/esm/components/breadcrumb/Breadcrumb.js.map +1 -0
- package/esm/components/breadcrumb/index.js +10 -0
- package/esm/components/breadcrumb/index.js.map +1 -0
- package/esm/components/breadcrumb/style.js +3 -0
- package/esm/components/breadcrumb/style.js.map +1 -0
- package/esm/components/color-input/ColorInput.js +111 -0
- package/esm/components/color-input/ColorInput.js.map +1 -0
- package/esm/components/color-input/helpers.js +18 -0
- package/esm/components/color-input/helpers.js.map +1 -0
- package/esm/components/color-input/index.js +6 -0
- package/esm/components/color-input/index.js.map +1 -0
- package/esm/components/color-input/style.js +2 -0
- package/esm/components/color-input/style.js.map +1 -0
- package/esm/components/config-provider/ConfigProvider.js +105 -0
- package/esm/components/config-provider/ConfigProvider.js.map +1 -0
- package/esm/components/config-provider/index.js +6 -0
- package/esm/components/config-provider/index.js.map +1 -0
- package/esm/components/ext-button/ExtButton.vue.js +57 -0
- package/esm/components/ext-button/ExtButton.vue.js.map +1 -0
- package/esm/components/ext-button/ExtButton2.vue.js +5 -0
- package/esm/components/ext-button/ExtButton2.vue.js.map +1 -0
- package/esm/components/ext-button/color-map.js +49 -0
- package/esm/components/ext-button/color-map.js.map +1 -0
- package/esm/components/ext-button/index.js +12 -0
- package/esm/components/ext-button/index.js.map +1 -0
- package/esm/components/ext-table/ColumnSetting.vue.js +8 -0
- package/esm/components/ext-table/ColumnSetting.vue.js.map +1 -0
- package/esm/components/ext-table/ColumnSetting2.vue.js +277 -0
- package/esm/components/ext-table/ColumnSetting2.vue.js.map +1 -0
- package/esm/components/ext-table/ExtTable.vue.js +8 -0
- package/esm/components/ext-table/ExtTable.vue.js.map +1 -0
- package/esm/components/ext-table/ExtTable2.vue.js +1781 -0
- package/esm/components/ext-table/ExtTable2.vue.js.map +1 -0
- package/esm/components/ext-table/Operations.vue.js +8 -0
- package/esm/components/ext-table/Operations.vue.js.map +1 -0
- package/esm/components/ext-table/Operations2.vue.js +447 -0
- package/esm/components/ext-table/Operations2.vue.js.map +1 -0
- package/esm/components/ext-table/Status.vue.js +51 -0
- package/esm/components/ext-table/Status.vue.js.map +1 -0
- package/esm/components/ext-table/Status2.vue.js +5 -0
- package/esm/components/ext-table/Status2.vue.js.map +1 -0
- package/esm/components/ext-table/helpers.js +108 -0
- package/esm/components/ext-table/helpers.js.map +1 -0
- package/esm/components/ext-table/index.js +16 -0
- package/esm/components/ext-table/index.js.map +1 -0
- package/esm/components/ext-table/storage.js +54 -0
- package/esm/components/ext-table/storage.js.map +1 -0
- package/esm/components/ext-table/style.js +2 -0
- package/esm/components/ext-table/style.js.map +1 -0
- package/esm/components/ext-table/types.js +2 -0
- package/esm/components/ext-table/types.js.map +1 -0
- package/esm/components/ext-table/useColumnSetting.js +88 -0
- package/esm/components/ext-table/useColumnSetting.js.map +1 -0
- package/esm/components/ext-upload/ExtUpload.vue.js +8 -0
- package/esm/components/ext-upload/ExtUpload.vue.js.map +1 -0
- package/esm/components/ext-upload/ExtUpload2.vue.js +173 -0
- package/esm/components/ext-upload/ExtUpload2.vue.js.map +1 -0
- package/esm/components/ext-upload/helpers.js +129 -0
- package/esm/components/ext-upload/helpers.js.map +1 -0
- package/esm/components/ext-upload/images/excel.png.js +5 -0
- package/esm/components/ext-upload/images/excel.png.js.map +1 -0
- package/esm/components/ext-upload/images/pdf.png.js +5 -0
- package/esm/components/ext-upload/images/pdf.png.js.map +1 -0
- package/esm/components/ext-upload/images/video.png.js +5 -0
- package/esm/components/ext-upload/images/video.png.js.map +1 -0
- package/esm/components/ext-upload/images/word.png.js +5 -0
- package/esm/components/ext-upload/images/word.png.js.map +1 -0
- package/esm/components/ext-upload/index.js +12 -0
- package/esm/components/ext-upload/index.js.map +1 -0
- package/esm/components/ext-upload/types.js +12 -0
- package/esm/components/ext-upload/types.js.map +1 -0
- package/esm/components/format-value/CustomerLevel.vue.js +48 -0
- package/esm/components/format-value/CustomerLevel.vue.js.map +1 -0
- package/esm/components/format-value/CustomerLevel2.vue.js +5 -0
- package/esm/components/format-value/CustomerLevel2.vue.js.map +1 -0
- package/esm/components/format-value/Date.vue.js +25 -0
- package/esm/components/format-value/Date.vue.js.map +1 -0
- package/esm/components/format-value/Date2.vue.js +5 -0
- package/esm/components/format-value/Date2.vue.js.map +1 -0
- package/esm/components/format-value/Gender.vue.js +48 -0
- package/esm/components/format-value/Gender.vue.js.map +1 -0
- package/esm/components/format-value/Gender2.vue.js +5 -0
- package/esm/components/format-value/Gender2.vue.js.map +1 -0
- package/esm/components/format-value/LongString.vue.js +8 -0
- package/esm/components/format-value/LongString.vue.js.map +1 -0
- package/esm/components/format-value/LongString2.vue.js +100 -0
- package/esm/components/format-value/LongString2.vue.js.map +1 -0
- package/esm/components/format-value/Period.vue.js +24 -0
- package/esm/components/format-value/Period.vue.js.map +1 -0
- package/esm/components/format-value/Period2.vue.js +5 -0
- package/esm/components/format-value/Period2.vue.js.map +1 -0
- package/esm/components/format-value/index.js +13 -0
- package/esm/components/format-value/index.js.map +1 -0
- package/esm/components/index.js +93 -0
- package/esm/components/index.js.map +1 -0
- package/esm/components/json-editor/JsonEditor.js +61 -0
- package/esm/components/json-editor/JsonEditor.js.map +1 -0
- package/esm/components/json-editor/index.js +6 -0
- package/esm/components/json-editor/index.js.map +1 -0
- package/esm/components/layout-admin/BreadcrumbContainer.js +125 -0
- package/esm/components/layout-admin/BreadcrumbContainer.js.map +1 -0
- package/esm/components/layout-admin/LayoutAdmin.js +675 -0
- package/esm/components/layout-admin/LayoutAdmin.js.map +1 -0
- package/esm/components/layout-admin/index.js +34 -0
- package/esm/components/layout-admin/index.js.map +1 -0
- package/esm/components/layout-admin/multi-tab.js +219 -0
- package/esm/components/layout-admin/multi-tab.js.map +1 -0
- package/esm/components/layout-admin/style.js +3 -0
- package/esm/components/layout-admin/style.js.map +1 -0
- package/esm/components/locale-dropdown/LocaleDropdown.js +109 -0
- package/esm/components/locale-dropdown/LocaleDropdown.js.map +1 -0
- package/esm/components/locale-dropdown/index.js +10 -0
- package/esm/components/locale-dropdown/index.js.map +1 -0
- package/esm/components/locale-dropdown/style.js +2 -0
- package/esm/components/locale-dropdown/style.js.map +1 -0
- package/esm/components/mixins/index.js +14 -0
- package/esm/components/mixins/index.js.map +1 -0
- package/esm/components/mixins/layout.js +178 -0
- package/esm/components/mixins/layout.js.map +1 -0
- package/esm/components/scrollbar-table/ScrollbarTable.vue.js +8 -0
- package/esm/components/scrollbar-table/ScrollbarTable.vue.js.map +1 -0
- package/esm/components/scrollbar-table/ScrollbarTable2.vue.js +250 -0
- package/esm/components/scrollbar-table/ScrollbarTable2.vue.js.map +1 -0
- package/esm/components/scrollbar-table/helpers.js +17 -0
- package/esm/components/scrollbar-table/helpers.js.map +1 -0
- package/esm/components/scrollbar-table/index.js +6 -0
- package/esm/components/scrollbar-table/index.js.map +1 -0
- package/esm/components/scrollbar-table/types.js +2 -0
- package/esm/components/scrollbar-table/types.js.map +1 -0
- package/esm/components/search-form/SearchForm.vue.js +137 -0
- package/esm/components/search-form/SearchForm.vue.js.map +1 -0
- package/esm/components/search-form/SearchForm2.vue.js +5 -0
- package/esm/components/search-form/SearchForm2.vue.js.map +1 -0
- package/esm/components/search-form/index.js +6 -0
- package/esm/components/search-form/index.js.map +1 -0
- package/esm/components/setting-drawer/SettingDrawer.js +105 -0
- package/esm/components/setting-drawer/SettingDrawer.js.map +1 -0
- package/esm/components/setting-drawer/index.js +6 -0
- package/esm/components/setting-drawer/index.js.map +1 -0
- package/esm/components/splitter-pane/SplitterPane.vue.js +8 -0
- package/esm/components/splitter-pane/SplitterPane.vue.js.map +1 -0
- package/esm/components/splitter-pane/SplitterPane2.vue.js +271 -0
- package/esm/components/splitter-pane/SplitterPane2.vue.js.map +1 -0
- package/esm/components/splitter-pane/helpers.js +38 -0
- package/esm/components/splitter-pane/helpers.js.map +1 -0
- package/esm/components/splitter-pane/index.js +5 -0
- package/esm/components/splitter-pane/index.js.map +1 -0
- package/esm/components/splitter-pane/types.js +2 -0
- package/esm/components/splitter-pane/types.js.map +1 -0
- package/esm/components/utils/index.js +12 -0
- package/esm/components/utils/index.js.map +1 -0
- package/esm/components/utils/menu.js +131 -0
- package/esm/components/utils/menu.js.map +1 -0
- package/esm/components/utils/util.js +11 -0
- package/esm/components/utils/util.js.map +1 -0
- package/esm/components/variable-input/VariableInput.vue.js +8 -0
- package/esm/components/variable-input/VariableInput.vue.js.map +1 -0
- package/esm/components/variable-input/VariableInput2.vue.js +461 -0
- package/esm/components/variable-input/VariableInput2.vue.js.map +1 -0
- package/esm/components/variable-input/helpers.js +103 -0
- package/esm/components/variable-input/helpers.js.map +1 -0
- package/esm/components/variable-input/index.js +6 -0
- package/esm/components/variable-input/index.js.map +1 -0
- package/esm/components/variable-input/types.js +2 -0
- package/esm/components/variable-input/types.js.map +1 -0
- package/esm/context/i18n.js +13 -0
- package/esm/context/i18n.js.map +1 -0
- package/esm/context/index.js +20 -0
- package/esm/context/index.js.map +1 -0
- package/esm/context/multi-tab-cache.js +22 -0
- package/esm/context/multi-tab-cache.js.map +1 -0
- package/esm/context/theme.js +31 -0
- package/esm/context/theme.js.map +1 -0
- package/esm/context/useEffect.js +26 -0
- package/esm/context/useEffect.js.map +1 -0
- package/esm/index.js +145 -0
- package/esm/index.js.map +1 -0
- package/esm/package.json +1 -0
- package/esm/shared/expose.js +10 -0
- package/esm/shared/expose.js.map +1 -0
- package/esm/shared/index.js +11 -0
- package/esm/shared/index.js.map +1 -0
- package/esm/shared/useConfigProvider.js +17 -0
- package/esm/shared/useConfigProvider.js.map +1 -0
- package/esm/style.js +2 -0
- package/esm/style.js.map +1 -0
- package/esm/styles/index.js +2 -0
- package/esm/styles/index.js.map +1 -0
- package/esm/styles/variables.less.js +2 -0
- package/esm/styles/variables.less.js.map +1 -0
- package/esm/types.js +30 -0
- package/esm/types.js.map +1 -0
- package/esm/utils/download.js +17 -0
- package/esm/utils/download.js.map +1 -0
- package/esm/utils/format.js +50 -0
- package/esm/utils/format.js.map +1 -0
- package/esm/utils/index.js +18 -0
- package/esm/utils/index.js.map +1 -0
- package/esm/utils/size.js +12 -0
- package/esm/utils/size.js.map +1 -0
- package/esm/utils/upload.js +11 -0
- package/esm/utils/upload.js.map +1 -0
- package/lib/_virtual/_plugin-vue_export-helper.js +11 -0
- package/lib/_virtual/_plugin-vue_export-helper.js.map +1 -0
- package/lib/assets/style.css +9161 -0
- package/lib/components/apple-window/AppleWindow.js +358 -0
- package/lib/components/apple-window/AppleWindow.js.map +1 -0
- package/lib/components/apple-window/AppleWindowHolder.js +55 -0
- package/lib/components/apple-window/AppleWindowHolder.js.map +1 -0
- package/lib/components/apple-window/command.js +11 -0
- package/lib/components/apple-window/command.js.map +1 -0
- package/lib/components/apple-window/helpers.js +19 -0
- package/lib/components/apple-window/helpers.js.map +1 -0
- package/lib/components/apple-window/index.js +10 -0
- package/lib/components/apple-window/index.js.map +1 -0
- package/lib/components/apple-window/index.module.less.js +48 -0
- package/lib/components/apple-window/index.module.less.js.map +1 -0
- package/lib/components/apple-window/layer.js +67 -0
- package/lib/components/apple-window/layer.js.map +1 -0
- package/lib/components/apple-window/records.js +45 -0
- package/lib/components/apple-window/records.js.map +1 -0
- package/lib/components/apple-window/types.js +2 -0
- package/lib/components/apple-window/types.js.map +1 -0
- package/lib/components/async-table/AsyncTable.js +290 -0
- package/lib/components/async-table/AsyncTable.js.map +1 -0
- package/lib/components/async-table/helpers.js +71 -0
- package/lib/components/async-table/helpers.js.map +1 -0
- package/lib/components/async-table/index.js +6 -0
- package/lib/components/async-table/index.js.map +1 -0
- package/lib/components/async-table/style.js +3 -0
- package/lib/components/async-table/style.js.map +1 -0
- package/lib/components/async-table/types.js +2 -0
- package/lib/components/async-table/types.js.map +1 -0
- package/lib/components/avatar-dropdown/AvatarDropdown.js +165 -0
- package/lib/components/avatar-dropdown/AvatarDropdown.js.map +1 -0
- package/lib/components/avatar-dropdown/index.js +11 -0
- package/lib/components/avatar-dropdown/index.js.map +1 -0
- package/lib/components/avatar-dropdown/style.js +3 -0
- package/lib/components/avatar-dropdown/style.js.map +1 -0
- package/lib/components/breadcrumb/Breadcrumb.js +112 -0
- package/lib/components/breadcrumb/Breadcrumb.js.map +1 -0
- package/lib/components/breadcrumb/index.js +10 -0
- package/lib/components/breadcrumb/index.js.map +1 -0
- package/lib/components/breadcrumb/style.js +4 -0
- package/lib/components/breadcrumb/style.js.map +1 -0
- package/lib/components/color-input/ColorInput.js +111 -0
- package/lib/components/color-input/ColorInput.js.map +1 -0
- package/lib/components/color-input/helpers.js +20 -0
- package/lib/components/color-input/helpers.js.map +1 -0
- package/lib/components/color-input/index.js +6 -0
- package/lib/components/color-input/index.js.map +1 -0
- package/lib/components/color-input/style.js +3 -0
- package/lib/components/color-input/style.js.map +1 -0
- package/lib/components/config-provider/ConfigProvider.js +105 -0
- package/lib/components/config-provider/ConfigProvider.js.map +1 -0
- package/lib/components/config-provider/index.js +6 -0
- package/lib/components/config-provider/index.js.map +1 -0
- package/lib/components/ext-button/ExtButton.vue.js +57 -0
- package/lib/components/ext-button/ExtButton.vue.js.map +1 -0
- package/lib/components/ext-button/ExtButton2.vue.js +5 -0
- package/lib/components/ext-button/ExtButton2.vue.js.map +1 -0
- package/lib/components/ext-button/color-map.js +49 -0
- package/lib/components/ext-button/color-map.js.map +1 -0
- package/lib/components/ext-button/index.js +12 -0
- package/lib/components/ext-button/index.js.map +1 -0
- package/lib/components/ext-table/ColumnSetting.vue.js +8 -0
- package/lib/components/ext-table/ColumnSetting.vue.js.map +1 -0
- package/lib/components/ext-table/ColumnSetting2.vue.js +279 -0
- package/lib/components/ext-table/ColumnSetting2.vue.js.map +1 -0
- package/lib/components/ext-table/ExtTable.vue.js +8 -0
- package/lib/components/ext-table/ExtTable.vue.js.map +1 -0
- package/lib/components/ext-table/ExtTable2.vue.js +1784 -0
- package/lib/components/ext-table/ExtTable2.vue.js.map +1 -0
- package/lib/components/ext-table/Operations.vue.js +8 -0
- package/lib/components/ext-table/Operations.vue.js.map +1 -0
- package/lib/components/ext-table/Operations2.vue.js +447 -0
- package/lib/components/ext-table/Operations2.vue.js.map +1 -0
- package/lib/components/ext-table/Status.vue.js +51 -0
- package/lib/components/ext-table/Status.vue.js.map +1 -0
- package/lib/components/ext-table/Status2.vue.js +5 -0
- package/lib/components/ext-table/Status2.vue.js.map +1 -0
- package/lib/components/ext-table/helpers.js +108 -0
- package/lib/components/ext-table/helpers.js.map +1 -0
- package/lib/components/ext-table/index.js +16 -0
- package/lib/components/ext-table/index.js.map +1 -0
- package/lib/components/ext-table/storage.js +54 -0
- package/lib/components/ext-table/storage.js.map +1 -0
- package/lib/components/ext-table/style.js +3 -0
- package/lib/components/ext-table/style.js.map +1 -0
- package/lib/components/ext-table/types.js +2 -0
- package/lib/components/ext-table/types.js.map +1 -0
- package/lib/components/ext-table/useColumnSetting.js +88 -0
- package/lib/components/ext-table/useColumnSetting.js.map +1 -0
- package/lib/components/ext-upload/ExtUpload.vue.js +8 -0
- package/lib/components/ext-upload/ExtUpload.vue.js.map +1 -0
- package/lib/components/ext-upload/ExtUpload2.vue.js +173 -0
- package/lib/components/ext-upload/ExtUpload2.vue.js.map +1 -0
- package/lib/components/ext-upload/helpers.js +129 -0
- package/lib/components/ext-upload/helpers.js.map +1 -0
- package/lib/components/ext-upload/images/excel.png.js +5 -0
- package/lib/components/ext-upload/images/excel.png.js.map +1 -0
- package/lib/components/ext-upload/images/pdf.png.js +5 -0
- package/lib/components/ext-upload/images/pdf.png.js.map +1 -0
- package/lib/components/ext-upload/images/video.png.js +5 -0
- package/lib/components/ext-upload/images/video.png.js.map +1 -0
- package/lib/components/ext-upload/images/word.png.js +5 -0
- package/lib/components/ext-upload/images/word.png.js.map +1 -0
- package/lib/components/ext-upload/index.js +12 -0
- package/lib/components/ext-upload/index.js.map +1 -0
- package/lib/components/ext-upload/types.js +12 -0
- package/lib/components/ext-upload/types.js.map +1 -0
- package/lib/components/format-value/CustomerLevel.vue.js +48 -0
- package/lib/components/format-value/CustomerLevel.vue.js.map +1 -0
- package/lib/components/format-value/CustomerLevel2.vue.js +5 -0
- package/lib/components/format-value/CustomerLevel2.vue.js.map +1 -0
- package/lib/components/format-value/Date.vue.js +27 -0
- package/lib/components/format-value/Date.vue.js.map +1 -0
- package/lib/components/format-value/Date2.vue.js +5 -0
- package/lib/components/format-value/Date2.vue.js.map +1 -0
- package/lib/components/format-value/Gender.vue.js +48 -0
- package/lib/components/format-value/Gender.vue.js.map +1 -0
- package/lib/components/format-value/Gender2.vue.js +5 -0
- package/lib/components/format-value/Gender2.vue.js.map +1 -0
- package/lib/components/format-value/LongString.vue.js +8 -0
- package/lib/components/format-value/LongString.vue.js.map +1 -0
- package/lib/components/format-value/LongString2.vue.js +100 -0
- package/lib/components/format-value/LongString2.vue.js.map +1 -0
- package/lib/components/format-value/Period.vue.js +26 -0
- package/lib/components/format-value/Period.vue.js.map +1 -0
- package/lib/components/format-value/Period2.vue.js +5 -0
- package/lib/components/format-value/Period2.vue.js.map +1 -0
- package/lib/components/format-value/index.js +13 -0
- package/lib/components/format-value/index.js.map +1 -0
- package/lib/components/index.js +93 -0
- package/lib/components/index.js.map +1 -0
- package/lib/components/json-editor/JsonEditor.js +63 -0
- package/lib/components/json-editor/JsonEditor.js.map +1 -0
- package/lib/components/json-editor/index.js +6 -0
- package/lib/components/json-editor/index.js.map +1 -0
- package/lib/components/layout-admin/BreadcrumbContainer.js +125 -0
- package/lib/components/layout-admin/BreadcrumbContainer.js.map +1 -0
- package/lib/components/layout-admin/LayoutAdmin.js +678 -0
- package/lib/components/layout-admin/LayoutAdmin.js.map +1 -0
- package/lib/components/layout-admin/index.js +34 -0
- package/lib/components/layout-admin/index.js.map +1 -0
- package/lib/components/layout-admin/multi-tab.js +219 -0
- package/lib/components/layout-admin/multi-tab.js.map +1 -0
- package/lib/components/layout-admin/style.js +4 -0
- package/lib/components/layout-admin/style.js.map +1 -0
- package/lib/components/locale-dropdown/LocaleDropdown.js +112 -0
- package/lib/components/locale-dropdown/LocaleDropdown.js.map +1 -0
- package/lib/components/locale-dropdown/index.js +10 -0
- package/lib/components/locale-dropdown/index.js.map +1 -0
- package/lib/components/locale-dropdown/style.js +3 -0
- package/lib/components/locale-dropdown/style.js.map +1 -0
- package/lib/components/mixins/index.js +14 -0
- package/lib/components/mixins/index.js.map +1 -0
- package/lib/components/mixins/layout.js +178 -0
- package/lib/components/mixins/layout.js.map +1 -0
- package/lib/components/scrollbar-table/ScrollbarTable.vue.js +8 -0
- package/lib/components/scrollbar-table/ScrollbarTable.vue.js.map +1 -0
- package/lib/components/scrollbar-table/ScrollbarTable2.vue.js +250 -0
- package/lib/components/scrollbar-table/ScrollbarTable2.vue.js.map +1 -0
- package/lib/components/scrollbar-table/helpers.js +17 -0
- package/lib/components/scrollbar-table/helpers.js.map +1 -0
- package/lib/components/scrollbar-table/index.js +6 -0
- package/lib/components/scrollbar-table/index.js.map +1 -0
- package/lib/components/scrollbar-table/types.js +2 -0
- package/lib/components/scrollbar-table/types.js.map +1 -0
- package/lib/components/search-form/SearchForm.vue.js +137 -0
- package/lib/components/search-form/SearchForm.vue.js.map +1 -0
- package/lib/components/search-form/SearchForm2.vue.js +5 -0
- package/lib/components/search-form/SearchForm2.vue.js.map +1 -0
- package/lib/components/search-form/index.js +6 -0
- package/lib/components/search-form/index.js.map +1 -0
- package/lib/components/setting-drawer/SettingDrawer.js +105 -0
- package/lib/components/setting-drawer/SettingDrawer.js.map +1 -0
- package/lib/components/setting-drawer/index.js +6 -0
- package/lib/components/setting-drawer/index.js.map +1 -0
- package/lib/components/splitter-pane/SplitterPane.vue.js +8 -0
- package/lib/components/splitter-pane/SplitterPane.vue.js.map +1 -0
- package/lib/components/splitter-pane/SplitterPane2.vue.js +271 -0
- package/lib/components/splitter-pane/SplitterPane2.vue.js.map +1 -0
- package/lib/components/splitter-pane/helpers.js +38 -0
- package/lib/components/splitter-pane/helpers.js.map +1 -0
- package/lib/components/splitter-pane/index.js +5 -0
- package/lib/components/splitter-pane/index.js.map +1 -0
- package/lib/components/splitter-pane/types.js +2 -0
- package/lib/components/splitter-pane/types.js.map +1 -0
- package/lib/components/utils/index.js +12 -0
- package/lib/components/utils/index.js.map +1 -0
- package/lib/components/utils/menu.js +131 -0
- package/lib/components/utils/menu.js.map +1 -0
- package/lib/components/utils/util.js +11 -0
- package/lib/components/utils/util.js.map +1 -0
- package/lib/components/variable-input/VariableInput.vue.js +8 -0
- package/lib/components/variable-input/VariableInput.vue.js.map +1 -0
- package/lib/components/variable-input/VariableInput2.vue.js +461 -0
- package/lib/components/variable-input/VariableInput2.vue.js.map +1 -0
- package/lib/components/variable-input/helpers.js +103 -0
- package/lib/components/variable-input/helpers.js.map +1 -0
- package/lib/components/variable-input/index.js +6 -0
- package/lib/components/variable-input/index.js.map +1 -0
- package/lib/components/variable-input/types.js +2 -0
- package/lib/components/variable-input/types.js.map +1 -0
- package/lib/context/i18n.js +13 -0
- package/lib/context/i18n.js.map +1 -0
- package/lib/context/index.js +20 -0
- package/lib/context/index.js.map +1 -0
- package/lib/context/multi-tab-cache.js +22 -0
- package/lib/context/multi-tab-cache.js.map +1 -0
- package/lib/context/theme.js +31 -0
- package/lib/context/theme.js.map +1 -0
- package/lib/context/useEffect.js +26 -0
- package/lib/context/useEffect.js.map +1 -0
- package/lib/index.js +145 -0
- package/lib/index.js.map +1 -0
- package/lib/shared/expose.js +10 -0
- package/lib/shared/expose.js.map +1 -0
- package/lib/shared/index.js +11 -0
- package/lib/shared/index.js.map +1 -0
- package/lib/shared/useConfigProvider.js +17 -0
- package/lib/shared/useConfigProvider.js.map +1 -0
- package/lib/style.js +3 -0
- package/lib/style.js.map +1 -0
- package/lib/styles/index.js +3 -0
- package/lib/styles/index.js.map +1 -0
- package/lib/styles/variables.less.js +2 -0
- package/lib/styles/variables.less.js.map +1 -0
- package/lib/types.js +30 -0
- package/lib/types.js.map +1 -0
- package/lib/utils/download.js +17 -0
- package/lib/utils/download.js.map +1 -0
- package/lib/utils/format.js +52 -0
- package/lib/utils/format.js.map +1 -0
- package/lib/utils/index.js +18 -0
- package/lib/utils/index.js.map +1 -0
- package/lib/utils/size.js +12 -0
- package/lib/utils/size.js.map +1 -0
- package/lib/utils/upload.js +11 -0
- package/lib/utils/upload.js.map +1 -0
- package/package.json +249 -4
- package/src/components/apple-window/index.module.less +167 -0
- package/src/components/avatar-dropdown/style.less +57 -0
- package/src/components/color-input/style.less +38 -0
- package/src/components/ext-button/style.less +144 -0
- package/src/components/ext-table/README.md +306 -0
- package/src/components/ext-table/style.less +51 -0
- package/src/components/ext-upload/README.md +29 -0
- package/src/components/layout-admin/style.less +537 -0
- package/src/components/locale-dropdown/style.less +29 -0
- package/src/styles/color/bezierEasing.less +110 -0
- package/src/styles/color/colorPalette.less +75 -0
- package/src/styles/color/tinyColor.less +1184 -0
- package/src/styles/component-reset.less +25 -0
- package/src/styles/core/1px.less +65 -0
- package/src/styles/core/colors.less +260 -0
- package/src/styles/core/globals.less +277 -0
- package/src/styles/core/index.less +4 -0
- package/src/styles/dark.less +12 -0
- package/src/styles/default.less +3 -0
- package/src/styles/index.less +14 -0
- package/src/styles/mixins/font-size.less +16 -0
- package/src/styles/mixins/index.less +8 -0
- package/src/styles/mixins/set-arrow.less +40 -0
- package/src/styles/mixins/set-color.less +243 -0
- package/src/styles/mixins/set-onepx.less +72 -0
- package/src/styles/mixins/text-overflow.less +17 -0
- package/src/styles/themes/dark.less +208 -0
- package/src/styles/themes/default.less +278 -0
- package/src/styles/themes/index.less +6 -0
- package/src/styles/variables.less +32 -0
- package/types/components/apple-window/AppleWindow.d.ts +105 -0
- package/types/components/apple-window/AppleWindowHolder.d.ts +14 -0
- package/types/components/apple-window/command.d.ts +7 -0
- package/types/components/apple-window/helpers.d.ts +4 -0
- package/types/components/apple-window/index.d.ts +6 -0
- package/types/components/apple-window/layer.d.ts +20 -0
- package/types/components/apple-window/records.d.ts +15 -0
- package/types/components/apple-window/types.d.ts +41 -0
- package/types/components/async-table/AsyncTable.d.ts +413 -0
- package/types/components/async-table/helpers.d.ts +18 -0
- package/types/components/async-table/index.d.ts +2 -0
- package/types/components/async-table/style.d.ts +1 -0
- package/types/components/async-table/types.d.ts +50 -0
- package/types/components/avatar-dropdown/AvatarDropdown.d.ts +205 -0
- package/types/components/avatar-dropdown/index.d.ts +4 -0
- package/types/components/avatar-dropdown/style.d.ts +1 -0
- package/types/components/breadcrumb/Breadcrumb.d.ts +60 -0
- package/types/components/breadcrumb/index.d.ts +4 -0
- package/types/components/breadcrumb/style.d.ts +2 -0
- package/types/components/color-input/ColorInput.d.ts +181 -0
- package/types/components/color-input/helpers.d.ts +3 -0
- package/types/components/color-input/index.d.ts +2 -0
- package/types/components/color-input/style.d.ts +1 -0
- package/types/components/config-provider/ConfigProvider.d.ts +287 -0
- package/types/components/config-provider/index.d.ts +4 -0
- package/types/components/ext-button/ExtButton.vue.d.ts +41 -0
- package/types/components/ext-button/color-map.d.ts +56 -0
- package/types/components/ext-button/index.d.ts +5 -0
- package/types/components/ext-table/ColumnSetting.vue.d.ts +34 -0
- package/types/components/ext-table/ExtTable.vue.d.ts +158 -0
- package/types/components/ext-table/Operations.vue.d.ts +52 -0
- package/types/components/ext-table/Status.vue.d.ts +19 -0
- package/types/components/ext-table/helpers.d.ts +30 -0
- package/types/components/ext-table/index.d.ts +8 -0
- package/types/components/ext-table/storage.d.ts +22 -0
- package/types/components/ext-table/style.d.ts +1 -0
- package/types/components/ext-table/types.d.ts +249 -0
- package/types/components/ext-table/useColumnSetting.d.ts +32 -0
- package/types/components/ext-upload/ExtUpload.vue.d.ts +90 -0
- package/types/components/ext-upload/helpers.d.ts +53 -0
- package/types/components/ext-upload/index.d.ts +5 -0
- package/types/components/ext-upload/types.d.ts +20 -0
- package/types/components/format-value/CustomerLevel.vue.d.ts +40 -0
- package/types/components/format-value/Date.vue.d.ts +44 -0
- package/types/components/format-value/Gender.vue.d.ts +40 -0
- package/types/components/format-value/LongString.vue.d.ts +69 -0
- package/types/components/format-value/Period.vue.d.ts +19 -0
- package/types/components/format-value/index.d.ts +5 -0
- package/types/components/index.d.ts +18 -0
- package/types/components/json-editor/JsonEditor.d.ts +29 -0
- package/types/components/json-editor/index.d.ts +3 -0
- package/types/components/layout-admin/BreadcrumbContainer.d.ts +55 -0
- package/types/components/layout-admin/LayoutAdmin.d.ts +177 -0
- package/types/components/layout-admin/index.d.ts +335 -0
- package/types/components/layout-admin/multi-tab.d.ts +73 -0
- package/types/components/layout-admin/style.d.ts +2 -0
- package/types/components/locale-dropdown/LocaleDropdown.d.ts +172 -0
- package/types/components/locale-dropdown/index.d.ts +3 -0
- package/types/components/locale-dropdown/style.d.ts +1 -0
- package/types/components/mixins/index.d.ts +2 -0
- package/types/components/mixins/layout.d.ts +56 -0
- package/types/components/scrollbar-table/helpers.d.ts +2 -0
- package/types/components/scrollbar-table/index.d.ts +4 -0
- package/types/components/scrollbar-table/types.d.ts +12 -0
- package/types/components/search-form/SearchForm.vue.d.ts +49 -0
- package/types/components/search-form/index.d.ts +3 -0
- package/types/components/setting-drawer/SettingDrawer.d.ts +49 -0
- package/types/components/setting-drawer/index.d.ts +3 -0
- package/types/components/splitter-pane/SplitterPane.vue.d.ts +76 -0
- package/types/components/splitter-pane/helpers.d.ts +6 -0
- package/types/components/splitter-pane/index.d.ts +2 -0
- package/types/components/splitter-pane/types.d.ts +3 -0
- package/types/components/utils/index.d.ts +2 -0
- package/types/components/utils/menu.d.ts +10 -0
- package/types/components/utils/util.d.ts +6 -0
- package/types/components/variable-input/VariableInput.vue.d.ts +74 -0
- package/types/components/variable-input/helpers.d.ts +14 -0
- package/types/components/variable-input/index.d.ts +4 -0
- package/types/components/variable-input/types.d.ts +18 -0
- package/types/context/i18n.d.ts +10 -0
- package/types/context/index.d.ts +4 -0
- package/types/context/multi-tab-cache.d.ts +40 -0
- package/types/context/theme.d.ts +41 -0
- package/types/context/useEffect.d.ts +3 -0
- package/types/index.d.ts +6 -0
- package/types/shared/expose.d.ts +2 -0
- package/types/shared/index.d.ts +3 -0
- package/types/shared/useConfigProvider.d.ts +10 -0
- package/types/style.d.ts +1 -0
- package/types/styles/index.d.ts +1 -0
- package/types/types.d.ts +219 -0
- package/types/utils/download.d.ts +1 -0
- package/types/utils/format.d.ts +14 -0
- package/types/utils/index.d.ts +4 -0
- package/types/utils/size.d.ts +4 -0
- package/types/utils/upload.d.ts +2 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { ColumnSettingItem } from './types';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
modelValue: import("vue").PropType<boolean>;
|
|
4
|
+
title: {
|
|
5
|
+
type: import("vue").PropType<string>;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
columns: {
|
|
9
|
+
type: import("vue").PropType<ColumnSettingItem[]>;
|
|
10
|
+
required: true;
|
|
11
|
+
default: () => never[];
|
|
12
|
+
};
|
|
13
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
|
+
confirm: (columns: ColumnSettingItem[]) => void;
|
|
15
|
+
reset: () => void;
|
|
16
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
|
+
modelValue: import("vue").PropType<boolean>;
|
|
18
|
+
title: {
|
|
19
|
+
type: import("vue").PropType<string>;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
columns: {
|
|
23
|
+
type: import("vue").PropType<ColumnSettingItem[]>;
|
|
24
|
+
required: true;
|
|
25
|
+
default: () => never[];
|
|
26
|
+
};
|
|
27
|
+
}>> & {
|
|
28
|
+
onReset?: (() => any) | undefined;
|
|
29
|
+
onConfirm?: ((columns: ColumnSettingItem[]) => any) | undefined;
|
|
30
|
+
}, {
|
|
31
|
+
title: string;
|
|
32
|
+
columns: ColumnSettingItem[];
|
|
33
|
+
}, {}>;
|
|
34
|
+
export default _default;
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import type { ExtTableProps, ExtTableColumnType, OperationItem } from './types';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ExtTableProps<any>>, {
|
|
3
|
+
defaultPageSize: number;
|
|
4
|
+
emptyValue: string;
|
|
5
|
+
toolbar: undefined;
|
|
6
|
+
tableId: undefined;
|
|
7
|
+
showPagination: boolean;
|
|
8
|
+
paginationPosition: string;
|
|
9
|
+
dataSource: undefined;
|
|
10
|
+
columns: () => ExtTableColumnType<any>[];
|
|
11
|
+
prefixCls: undefined;
|
|
12
|
+
rowKey: string;
|
|
13
|
+
rowSort: undefined;
|
|
14
|
+
resizable: boolean;
|
|
15
|
+
autoInit: boolean;
|
|
16
|
+
pageURI: boolean;
|
|
17
|
+
sortRemote: boolean;
|
|
18
|
+
bordered: boolean;
|
|
19
|
+
scrollTable: boolean;
|
|
20
|
+
striped: boolean;
|
|
21
|
+
showTotal: (total: number) => string;
|
|
22
|
+
pageSizeOptions: () => string[];
|
|
23
|
+
showSizeChanger: boolean;
|
|
24
|
+
batchOperations: undefined;
|
|
25
|
+
rowSelection: undefined;
|
|
26
|
+
}>, {
|
|
27
|
+
query: (isResetPage?: boolean) => Promise<void>;
|
|
28
|
+
reset: () => void;
|
|
29
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
30
|
+
switch: (...args: any[]) => void;
|
|
31
|
+
operation: (...args: any[]) => void;
|
|
32
|
+
change: (...args: any[]) => void;
|
|
33
|
+
create: (...args: any[]) => void;
|
|
34
|
+
refresh: (...args: any[]) => void;
|
|
35
|
+
export: (...args: any[]) => void;
|
|
36
|
+
import: (...args: any[]) => void;
|
|
37
|
+
query: (...args: any[]) => void;
|
|
38
|
+
columnFilter: (...args: any[]) => void;
|
|
39
|
+
columnFilterReset: (...args: any[]) => void;
|
|
40
|
+
"batch-operation": (...args: any[]) => void;
|
|
41
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ExtTableProps<any>>, {
|
|
42
|
+
defaultPageSize: number;
|
|
43
|
+
emptyValue: string;
|
|
44
|
+
toolbar: undefined;
|
|
45
|
+
tableId: undefined;
|
|
46
|
+
showPagination: boolean;
|
|
47
|
+
paginationPosition: string;
|
|
48
|
+
dataSource: undefined;
|
|
49
|
+
columns: () => ExtTableColumnType<any>[];
|
|
50
|
+
prefixCls: undefined;
|
|
51
|
+
rowKey: string;
|
|
52
|
+
rowSort: undefined;
|
|
53
|
+
resizable: boolean;
|
|
54
|
+
autoInit: boolean;
|
|
55
|
+
pageURI: boolean;
|
|
56
|
+
sortRemote: boolean;
|
|
57
|
+
bordered: boolean;
|
|
58
|
+
scrollTable: boolean;
|
|
59
|
+
striped: boolean;
|
|
60
|
+
showTotal: (total: number) => string;
|
|
61
|
+
pageSizeOptions: () => string[];
|
|
62
|
+
showSizeChanger: boolean;
|
|
63
|
+
batchOperations: undefined;
|
|
64
|
+
rowSelection: undefined;
|
|
65
|
+
}>>> & {
|
|
66
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
67
|
+
onSwitch?: ((...args: any[]) => any) | undefined;
|
|
68
|
+
onOperation?: ((...args: any[]) => any) | undefined;
|
|
69
|
+
onCreate?: ((...args: any[]) => any) | undefined;
|
|
70
|
+
onRefresh?: ((...args: any[]) => any) | undefined;
|
|
71
|
+
onExport?: ((...args: any[]) => any) | undefined;
|
|
72
|
+
onImport?: ((...args: any[]) => any) | undefined;
|
|
73
|
+
onQuery?: ((...args: any[]) => any) | undefined;
|
|
74
|
+
onColumnFilter?: ((...args: any[]) => any) | undefined;
|
|
75
|
+
onColumnFilterReset?: ((...args: any[]) => any) | undefined;
|
|
76
|
+
"onBatch-operation"?: ((...args: any[]) => any) | undefined;
|
|
77
|
+
}, {
|
|
78
|
+
toolbar: import("./types").ExtTableToolbarConfig;
|
|
79
|
+
resizable: boolean;
|
|
80
|
+
columns: ExtTableColumnType<any>[];
|
|
81
|
+
bordered: boolean;
|
|
82
|
+
emptyValue: string;
|
|
83
|
+
prefixCls: string;
|
|
84
|
+
defaultPageSize: number;
|
|
85
|
+
showSizeChanger: boolean;
|
|
86
|
+
pageSizeOptions: (string | number)[];
|
|
87
|
+
showTotal: (total: number, range: [number, number]) => any;
|
|
88
|
+
dataSource: any[];
|
|
89
|
+
tableId: string;
|
|
90
|
+
showPagination: boolean;
|
|
91
|
+
paginationPosition: "center" | "left" | "right";
|
|
92
|
+
batchOperations: OperationItem<import("./types").BatchOperationContext<any>>[];
|
|
93
|
+
rowSelection: import("ant-design-vue/es/table/interface").TableRowSelection<any>;
|
|
94
|
+
rowKey: string | import("ant-design-vue/es/vc-table/interface").GetRowKey<any>;
|
|
95
|
+
rowSort: (params: {
|
|
96
|
+
oldIndex: number;
|
|
97
|
+
newIndex: number;
|
|
98
|
+
changes: any[];
|
|
99
|
+
dataSource: any[];
|
|
100
|
+
}) => void | Promise<void>;
|
|
101
|
+
autoInit: boolean;
|
|
102
|
+
pageURI: boolean;
|
|
103
|
+
sortRemote: boolean;
|
|
104
|
+
scrollTable: boolean;
|
|
105
|
+
striped: boolean;
|
|
106
|
+
}, {}>, Partial<Record<any, (_: {
|
|
107
|
+
record: any;
|
|
108
|
+
index: any;
|
|
109
|
+
column: any;
|
|
110
|
+
}) => any>> & {
|
|
111
|
+
"toolbar-left"?(_: {}): any;
|
|
112
|
+
"toolbar-right"?(_: {}): any;
|
|
113
|
+
expandedRowRender?(_: {
|
|
114
|
+
record: any;
|
|
115
|
+
index: any;
|
|
116
|
+
indent: any;
|
|
117
|
+
expanded: any;
|
|
118
|
+
}): any;
|
|
119
|
+
expandIcon?(_: any): any;
|
|
120
|
+
headerCell?(_: {
|
|
121
|
+
column: any;
|
|
122
|
+
title: any;
|
|
123
|
+
}): any;
|
|
124
|
+
"batch-operators"?(_: {
|
|
125
|
+
selectedRowKeys: any[];
|
|
126
|
+
selectedRows: any[];
|
|
127
|
+
clear: () => void;
|
|
128
|
+
}): any;
|
|
129
|
+
"context-menu"?(_: {
|
|
130
|
+
record: any;
|
|
131
|
+
}): any;
|
|
132
|
+
"quick-menu"?(_: {
|
|
133
|
+
record: any;
|
|
134
|
+
}): any;
|
|
135
|
+
}>;
|
|
136
|
+
export default _default;
|
|
137
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
138
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
139
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
140
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
141
|
+
} : {
|
|
142
|
+
type: import('vue').PropType<T[K]>;
|
|
143
|
+
required: true;
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
type __VLS_WithDefaults<P, D> = {
|
|
147
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
148
|
+
default: D[K];
|
|
149
|
+
}> : P[K];
|
|
150
|
+
};
|
|
151
|
+
type __VLS_Prettify<T> = {
|
|
152
|
+
[K in keyof T]: T[K];
|
|
153
|
+
} & {};
|
|
154
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
155
|
+
new (): {
|
|
156
|
+
$slots: S;
|
|
157
|
+
};
|
|
158
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { OperationItem } from './types';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
buttons?: OperationItem<any>[] | undefined;
|
|
4
|
+
context?: any;
|
|
5
|
+
index?: number | undefined;
|
|
6
|
+
maxButtonCount?: number | null | undefined;
|
|
7
|
+
placement?: "bottom" | "top" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | undefined;
|
|
8
|
+
}>, {
|
|
9
|
+
buttons: () => never[];
|
|
10
|
+
placement: string;
|
|
11
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
click: (...args: any[]) => void;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
14
|
+
buttons?: OperationItem<any>[] | undefined;
|
|
15
|
+
context?: any;
|
|
16
|
+
index?: number | undefined;
|
|
17
|
+
maxButtonCount?: number | null | undefined;
|
|
18
|
+
placement?: "bottom" | "top" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | undefined;
|
|
19
|
+
}>, {
|
|
20
|
+
buttons: () => never[];
|
|
21
|
+
placement: string;
|
|
22
|
+
}>>> & {
|
|
23
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
24
|
+
}, {
|
|
25
|
+
placement: "bottom" | "top" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
|
|
26
|
+
buttons: OperationItem<any>[];
|
|
27
|
+
}, {}>, {
|
|
28
|
+
default?(_: {}): any;
|
|
29
|
+
}>;
|
|
30
|
+
export default _default;
|
|
31
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
32
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
33
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
34
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
35
|
+
} : {
|
|
36
|
+
type: import('vue').PropType<T[K]>;
|
|
37
|
+
required: true;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
type __VLS_WithDefaults<P, D> = {
|
|
41
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
42
|
+
default: D[K];
|
|
43
|
+
}> : P[K];
|
|
44
|
+
};
|
|
45
|
+
type __VLS_Prettify<T> = {
|
|
46
|
+
[K in keyof T]: T[K];
|
|
47
|
+
} & {};
|
|
48
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
49
|
+
new (): {
|
|
50
|
+
$slots: S;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
color: string;
|
|
3
|
+
type: 'text' | 'tag';
|
|
4
|
+
text: string;
|
|
5
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
6
|
+
color: string;
|
|
7
|
+
type: 'text' | 'tag';
|
|
8
|
+
text: string;
|
|
9
|
+
}>>>, {}, {}>;
|
|
10
|
+
export default _default;
|
|
11
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
12
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
13
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
14
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
15
|
+
} : {
|
|
16
|
+
type: import('vue').PropType<T[K]>;
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { TablePaginationConfig } from 'ant-design-vue';
|
|
2
|
+
import type { ExtTableColumnType, ExtTableQueryParams } from './types';
|
|
3
|
+
export declare const TABLE_PAGE_SIZE_OPTIONS: string[];
|
|
4
|
+
export declare const TABLE_SHOW_SIZE_CHANGER = true;
|
|
5
|
+
export declare const TABLE_SHOW_TOTAL: (total: number) => string;
|
|
6
|
+
export declare const NESTED_EXT_TABLE_KEY: unique symbol;
|
|
7
|
+
export declare function withDefaultPagination(pagination?: TablePaginationConfig): TablePaginationConfig;
|
|
8
|
+
export declare function defineExtTableColumn<RecordType extends object = any>(columns: ExtTableColumnType<RecordType>[]): ExtTableColumnType<RecordType>[];
|
|
9
|
+
export declare function defineExtTableQuery<T extends object = any>(query: (params: ExtTableQueryParams<T>) => void): (params: ExtTableQueryParams<T>) => void;
|
|
10
|
+
export declare function getCellText(target: EventTarget | null): string;
|
|
11
|
+
export declare function getSelectedTextInCell(target: EventTarget | null, selection: Selection | null): string;
|
|
12
|
+
export declare function getCopyColumnTitle(column: ExtTableColumnType): string;
|
|
13
|
+
export declare function getCopyableRowColumns<RecordType extends object>(columns: ExtTableColumnType<RecordType>[], record: RecordType): ExtTableColumnType<RecordType>[];
|
|
14
|
+
export declare function normalizeCopyText(value: unknown, emptyValue?: string): string;
|
|
15
|
+
/**
|
|
16
|
+
* 根据 orderColumns 对列进行部分排序
|
|
17
|
+
*
|
|
18
|
+
* 排序规则(判断优先级从高到低):
|
|
19
|
+
* 1. 固定列(col.fixed 为真):无论是否在 orderColumns 中,严格保持原位置不动
|
|
20
|
+
* 2. 在 orderColumns 中的非固定列:按 orderColumns 顺序,依次填入遇到的空位
|
|
21
|
+
* 3. 新增的非固定列(不在 orderColumns 中且非固定):追加到"可排序列段"末尾,
|
|
22
|
+
* 即所有固定列保持原位的前提下,排在最后一个非固定列空位之后
|
|
23
|
+
*
|
|
24
|
+
* 最终布局:[固定头] + [可排序(含新增)] + [固定尾]
|
|
25
|
+
*
|
|
26
|
+
* @param columns - 原始列数组
|
|
27
|
+
* @param orderColumns - 列 dataIndex 的期望顺序,如 ['a', 'b', 'c']
|
|
28
|
+
* @returns 排序后的列数组
|
|
29
|
+
*/
|
|
30
|
+
export declare function orderColumnsByDataIndex<T extends ExtTableColumnType>(columns: T[], orderColumns: string[]): T[];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import ExtTable from './ExtTable.vue';
|
|
2
|
+
import Operations from './Operations.vue';
|
|
3
|
+
import ColumnSetting from './ColumnSetting.vue';
|
|
4
|
+
export default ExtTable;
|
|
5
|
+
export { ExtTable, Operations, ColumnSetting };
|
|
6
|
+
export { defineExtTableColumn, defineExtTableQuery, withDefaultPagination } from './helpers';
|
|
7
|
+
export * from './types';
|
|
8
|
+
export * from './useColumnSetting';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface TableColumnSettings {
|
|
2
|
+
hiddenedColumns: string[];
|
|
3
|
+
columnOrder?: string[];
|
|
4
|
+
columnWidths?: Record<string, number>;
|
|
5
|
+
updatedAt: number;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* 生成存储 key
|
|
9
|
+
*/
|
|
10
|
+
export declare function getTableColumnStorageKey(tableId: string): string;
|
|
11
|
+
/**
|
|
12
|
+
* 立即保存表格列设置(用于关键操作)
|
|
13
|
+
*/
|
|
14
|
+
export declare function saveTableColumnSettings(key: string, hiddenedColumns: string[], columnOrder?: string[], columnWidths?: Record<string, number>): void;
|
|
15
|
+
/**
|
|
16
|
+
* 读取完整的列设置(包含隐藏列和排序信息)
|
|
17
|
+
*/
|
|
18
|
+
export declare function loadTableColumnSettings(key: string): TableColumnSettings | null;
|
|
19
|
+
/**
|
|
20
|
+
* 清除指定表格的列设置
|
|
21
|
+
*/
|
|
22
|
+
export declare function clearTableColumnSettings(key: string): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './style.less';
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
import type { TableColumnType } from 'ant-design-vue';
|
|
2
|
+
import type { GetRowKey, TableRowSelection } from 'ant-design-vue/es/table/interface';
|
|
3
|
+
import type { HTMLAttributes } from 'vue';
|
|
4
|
+
import type { ValueDisplayMapping } from '../../utils/format';
|
|
5
|
+
export interface ExtTableToolbarConfig {
|
|
6
|
+
create?: boolean;
|
|
7
|
+
export?: boolean;
|
|
8
|
+
import?: boolean;
|
|
9
|
+
refresh?: boolean;
|
|
10
|
+
columnSetting?: boolean;
|
|
11
|
+
fullscreen?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface ExtTableProps<T extends object = any> {
|
|
14
|
+
/** 各业务展示值映射,可覆盖默认的 desktop 编码。 */
|
|
15
|
+
formatMappings?: {
|
|
16
|
+
gender?: ValueDisplayMapping;
|
|
17
|
+
customerLevel?: ValueDisplayMapping;
|
|
18
|
+
fileType?: Record<string, string>;
|
|
19
|
+
};
|
|
20
|
+
/** customized class prefix */
|
|
21
|
+
prefixCls?: string;
|
|
22
|
+
size?: 'small' | 'middle' | 'large';
|
|
23
|
+
dataSource?: T[];
|
|
24
|
+
toolbar?: ExtTableToolbarConfig;
|
|
25
|
+
fixedColumns?: string[];
|
|
26
|
+
requiredColumns?: string[];
|
|
27
|
+
tableId?: string;
|
|
28
|
+
showPagination?: boolean;
|
|
29
|
+
paginationPosition?: 'left' | 'right' | 'center';
|
|
30
|
+
defaultPageSize?: number;
|
|
31
|
+
pageSizeOptions?: (string | number)[];
|
|
32
|
+
showSizeChanger?: boolean;
|
|
33
|
+
showTotal?: (total: number, range: [number, number]) => any;
|
|
34
|
+
columns?: ExtTableColumnType<T>[];
|
|
35
|
+
emptyValue?: string;
|
|
36
|
+
batchOperations?: OperationItem<BatchOperationContext<T>>[];
|
|
37
|
+
rowSelection?: TableRowSelection<T>;
|
|
38
|
+
rowKey?: string | GetRowKey<T>;
|
|
39
|
+
rowSort?: (params: {
|
|
40
|
+
oldIndex: number;
|
|
41
|
+
newIndex: number;
|
|
42
|
+
changes: T[];
|
|
43
|
+
dataSource: T[];
|
|
44
|
+
}) => Promise<void> | void;
|
|
45
|
+
resizable?: boolean;
|
|
46
|
+
autoInit?: boolean;
|
|
47
|
+
pageURI?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* 列头排序是否走服务端(触发 query 并携带 sorter)。
|
|
50
|
+
* false 时由表格在当前 dataSource 上本地排序,不请求接口。
|
|
51
|
+
*/
|
|
52
|
+
sortRemote?: boolean;
|
|
53
|
+
bordered?: boolean;
|
|
54
|
+
scrollTable?: boolean;
|
|
55
|
+
striped?: boolean;
|
|
56
|
+
}
|
|
57
|
+
/** Operations 组件接收的操作项(已注入行数据,不再依赖 row prop) */
|
|
58
|
+
export interface OperationItem<ContextType = any> {
|
|
59
|
+
key?: string | number;
|
|
60
|
+
label: string | ((context: ContextType, index?: number) => string);
|
|
61
|
+
disabled?: boolean | ((context: ContextType, index?: number) => boolean);
|
|
62
|
+
color?: string | ((context: ContextType, index?: number) => string);
|
|
63
|
+
visible?: boolean | ((context: ContextType, index?: number) => boolean);
|
|
64
|
+
onClick?: (context: ContextType, index?: number) => void;
|
|
65
|
+
buttonProps?: Record<string, any>;
|
|
66
|
+
confirmProps?: Record<string, any>;
|
|
67
|
+
tooltipProps?: Record<string, any>;
|
|
68
|
+
}
|
|
69
|
+
export interface BatchOperationContext<T extends object = any> {
|
|
70
|
+
selectedRowKeys: string[];
|
|
71
|
+
selectedRows: T[];
|
|
72
|
+
}
|
|
73
|
+
type GetValueFn = <T>(v: T) => T;
|
|
74
|
+
type BooleanFn = (v?: any) => boolean;
|
|
75
|
+
type StatusItem = {
|
|
76
|
+
id: number | string;
|
|
77
|
+
name: string;
|
|
78
|
+
color?: string;
|
|
79
|
+
};
|
|
80
|
+
type FormatFileType = {
|
|
81
|
+
type: 'fileType';
|
|
82
|
+
};
|
|
83
|
+
type FormatLongString<RecordType = any> = {
|
|
84
|
+
type: 'long-string';
|
|
85
|
+
options?: {
|
|
86
|
+
width?: string;
|
|
87
|
+
lines?: number;
|
|
88
|
+
expandOnClick?: boolean;
|
|
89
|
+
html?: boolean;
|
|
90
|
+
htmlClasses?: HTMLAttributes['class'];
|
|
91
|
+
htmlStyles?: HTMLAttributes['style'];
|
|
92
|
+
render?: (record: RecordType, isExpanded: boolean) => unknown;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
type FormatField = {
|
|
96
|
+
type: 'field';
|
|
97
|
+
options?: {
|
|
98
|
+
default?: string;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
type FormatIndex = {
|
|
102
|
+
type: 'index';
|
|
103
|
+
};
|
|
104
|
+
type FormatPrice = {
|
|
105
|
+
type: 'price';
|
|
106
|
+
options?: {
|
|
107
|
+
getValue?: GetValueFn;
|
|
108
|
+
format?: string;
|
|
109
|
+
padZero?: boolean;
|
|
110
|
+
currency?: string;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
type FormatDate = {
|
|
114
|
+
type: 'date';
|
|
115
|
+
options?: {
|
|
116
|
+
format?: string;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
type FormatCopy = {
|
|
120
|
+
type: 'copy';
|
|
121
|
+
};
|
|
122
|
+
type FormatBool = {
|
|
123
|
+
type: 'bool';
|
|
124
|
+
options?: {
|
|
125
|
+
trueText?: string;
|
|
126
|
+
falseText?: string;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
type FormatSwitch = {
|
|
130
|
+
type: 'switch';
|
|
131
|
+
options?: {
|
|
132
|
+
openValue?: number | boolean;
|
|
133
|
+
closeValue?: number | boolean;
|
|
134
|
+
disabled?: BooleanFn;
|
|
135
|
+
hidden?: BooleanFn;
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
type FormatImage = {
|
|
139
|
+
type: 'image';
|
|
140
|
+
options?: {
|
|
141
|
+
getValue?: GetValueFn;
|
|
142
|
+
width?: number;
|
|
143
|
+
height?: number;
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
type FormatMask = {
|
|
147
|
+
type: 'mask';
|
|
148
|
+
options?: {
|
|
149
|
+
type?: 'mobile' | 'idCard' | 'userName';
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
type FormatProgress = {
|
|
153
|
+
type: 'progress';
|
|
154
|
+
options?: {
|
|
155
|
+
getValue?: GetValueFn;
|
|
156
|
+
size?: number;
|
|
157
|
+
type?: 'circle' | 'line';
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
type FormatArrayString = {
|
|
161
|
+
type: 'array-string';
|
|
162
|
+
options?: {
|
|
163
|
+
getValue?: (v: any) => any;
|
|
164
|
+
separator?: string;
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
type FormatColorTag = {
|
|
168
|
+
type: 'color-tag';
|
|
169
|
+
options?: {
|
|
170
|
+
status?: StatusItem[];
|
|
171
|
+
default?: string;
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
type FormatColorText = {
|
|
175
|
+
type: 'color-text';
|
|
176
|
+
options?: {
|
|
177
|
+
status?: StatusItem[];
|
|
178
|
+
default?: string;
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
type FormatOperation<RecordType extends object = any> = {
|
|
182
|
+
type: 'operation';
|
|
183
|
+
options?: {
|
|
184
|
+
buttons?: OperationItem<RecordType>[];
|
|
185
|
+
maxButtonCount?: number;
|
|
186
|
+
hidden?: BooleanFn;
|
|
187
|
+
};
|
|
188
|
+
};
|
|
189
|
+
type FormatGender = {
|
|
190
|
+
type: 'gender';
|
|
191
|
+
options?: {
|
|
192
|
+
type: 'text' | 'tag';
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
type FormatPeriod = {
|
|
196
|
+
type: 'period';
|
|
197
|
+
options: {
|
|
198
|
+
start: string;
|
|
199
|
+
end: string;
|
|
200
|
+
format?: string;
|
|
201
|
+
};
|
|
202
|
+
};
|
|
203
|
+
type FormatCustomerLevel = {
|
|
204
|
+
type: 'customerLevel';
|
|
205
|
+
options: {
|
|
206
|
+
type?: 'text' | 'tag';
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
export interface ExtTableFilterConfig {
|
|
210
|
+
type: 'input' | 'date' | 'date-range' | 'select';
|
|
211
|
+
[prop: string]: any;
|
|
212
|
+
}
|
|
213
|
+
export interface ExtTableColumnType<RecordType extends object = any> extends TableColumnType<RecordType> {
|
|
214
|
+
dataTitle?: string;
|
|
215
|
+
children?: ExtTableColumnType<RecordType>[];
|
|
216
|
+
copyText?: (record: RecordType, index: number) => unknown;
|
|
217
|
+
format?: {
|
|
218
|
+
type: 'sort-handle';
|
|
219
|
+
} | FormatField | FormatIndex | FormatPrice | FormatDate | FormatCopy | FormatBool | FormatSwitch | FormatImage | FormatMask | FormatProgress | FormatArrayString | FormatColorTag | FormatColorText | FormatOperation<RecordType> | FormatGender | FormatPeriod | FormatFileType | FormatLongString<RecordType> | FormatCustomerLevel;
|
|
220
|
+
hidden?: boolean;
|
|
221
|
+
required?: boolean;
|
|
222
|
+
filter?: ExtTableFilterConfig | ExtTableFilterConfig['type'] | boolean;
|
|
223
|
+
}
|
|
224
|
+
/** 表格列排序(与 ant-design-vue Table onChange 的 sorter 对齐,供服务端排序) */
|
|
225
|
+
export interface ExtTableSorterState {
|
|
226
|
+
field: string;
|
|
227
|
+
order: 'ascend' | 'descend';
|
|
228
|
+
}
|
|
229
|
+
export interface ExtTableQueryParams<T extends object = any> {
|
|
230
|
+
page: {
|
|
231
|
+
currentPage: number;
|
|
232
|
+
pageSize: number;
|
|
233
|
+
};
|
|
234
|
+
/** 当前列排序状态;未排序时为 undefined */
|
|
235
|
+
sorter?: ExtTableSorterState;
|
|
236
|
+
success(data: {
|
|
237
|
+
list: T[];
|
|
238
|
+
count: number;
|
|
239
|
+
}): void;
|
|
240
|
+
fail(err?: any): void;
|
|
241
|
+
}
|
|
242
|
+
export interface ColumnSettingItem {
|
|
243
|
+
dataIndex: string;
|
|
244
|
+
title: string;
|
|
245
|
+
visible: boolean;
|
|
246
|
+
fixed?: boolean;
|
|
247
|
+
required?: boolean;
|
|
248
|
+
}
|
|
249
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { ColumnSettingItem } from './types';
|
|
2
|
+
export interface ColumnSettingOption {
|
|
3
|
+
key: string;
|
|
4
|
+
title: string;
|
|
5
|
+
}
|
|
6
|
+
export interface ColumnSettingPersistence {
|
|
7
|
+
get(): {
|
|
8
|
+
hiddenedColumns: string[];
|
|
9
|
+
columnOrder: string[];
|
|
10
|
+
columnWidths?: Record<string, number>;
|
|
11
|
+
} | null | undefined;
|
|
12
|
+
set(data: {
|
|
13
|
+
hiddenedColumns: string[];
|
|
14
|
+
columnOrder: string[];
|
|
15
|
+
columnWidths?: Record<string, number>;
|
|
16
|
+
}): void;
|
|
17
|
+
clear(): void;
|
|
18
|
+
}
|
|
19
|
+
export declare function useColumnSetting(options?: {
|
|
20
|
+
cache?: string | ColumnSettingPersistence | null;
|
|
21
|
+
defaultHiddenKeys?: () => string[];
|
|
22
|
+
defaultOrderKeys?: () => string[];
|
|
23
|
+
defaultColumnWidths?: () => Record<string, number>;
|
|
24
|
+
}): {
|
|
25
|
+
hiddenKeys: import("vue").Ref<string[]>;
|
|
26
|
+
orderKeys: import("vue").Ref<string[]>;
|
|
27
|
+
columnWidths: import("vue").Ref<Record<string, number>>;
|
|
28
|
+
load: (cache?: string | ColumnSettingPersistence | null) => void;
|
|
29
|
+
save: (items: ColumnSettingItem[]) => void;
|
|
30
|
+
reset: () => void;
|
|
31
|
+
setColumnWidth: (key: string, width: number) => void;
|
|
32
|
+
};
|