@phelan/design 0.0.1 → 0.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/_virtual/_plugin-vue_export-helper.js +10 -0
- package/_virtual/_plugin-vue_export-helper.js.map +1 -0
- package/action-menu/index.js +6 -0
- package/action-menu/index.js.map +1 -0
- package/action-menu/src/action-menu.vue.js +205 -0
- package/action-menu/src/action-menu.vue.js.map +1 -0
- package/action-menu/src/action-menu.vue2.js +5 -0
- package/action-menu/src/action-menu.vue2.js.map +1 -0
- package/arrow-steps/index.js +8 -0
- package/arrow-steps/index.js.map +1 -0
- package/arrow-steps/src/arrow-step.vue.js +58 -0
- package/arrow-steps/src/arrow-step.vue.js.map +1 -0
- package/arrow-steps/src/arrow-step.vue2.js +5 -0
- package/arrow-steps/src/arrow-step.vue2.js.map +1 -0
- package/arrow-steps/src/arrow-steps.js +11 -0
- package/arrow-steps/src/arrow-steps.js.map +1 -0
- package/arrow-steps/src/arrow-steps.vue.js +38 -0
- package/arrow-steps/src/arrow-steps.vue.js.map +1 -0
- package/arrow-steps/src/arrow-steps.vue2.js +5 -0
- package/arrow-steps/src/arrow-steps.vue2.js.map +1 -0
- package/badge/index.js +6 -0
- package/badge/index.js.map +1 -0
- package/badge/src/badge.vue.js +27 -0
- package/badge/src/badge.vue.js.map +1 -0
- package/badge/src/badge.vue2.js +5 -0
- package/badge/src/badge.vue2.js.map +1 -0
- package/batch-copy/index.js +6 -0
- package/batch-copy/index.js.map +1 -0
- package/batch-copy/src/batch-copy.vue.js +165 -0
- package/batch-copy/src/batch-copy.vue.js.map +1 -0
- package/batch-copy/src/batch-copy.vue2.js +5 -0
- package/batch-copy/src/batch-copy.vue2.js.map +1 -0
- package/batch-editor/index.js +6 -0
- package/batch-editor/index.js.map +1 -0
- package/batch-editor/src/batch-editor.vue.js +112 -0
- package/batch-editor/src/batch-editor.vue.js.map +1 -0
- package/batch-editor/src/batch-editor.vue2.js +5 -0
- package/batch-editor/src/batch-editor.vue2.js.map +1 -0
- package/border/index.js +6 -0
- package/border/index.js.map +1 -0
- package/border/src/border.js +10 -0
- package/border/src/border.js.map +1 -0
- package/border/src/border.vue.js +19 -0
- package/border/src/border.vue.js.map +1 -0
- package/border/src/border.vue2.js +5 -0
- package/border/src/border.vue2.js.map +1 -0
- package/breadcrumb/index.js +8 -0
- package/breadcrumb/index.js.map +1 -0
- package/breadcrumb/src/breadcrumb-item.js +10 -0
- package/breadcrumb/src/breadcrumb-item.js.map +1 -0
- package/breadcrumb/src/breadcrumb-item.vue.js +23 -0
- package/breadcrumb/src/breadcrumb-item.vue.js.map +1 -0
- package/breadcrumb/src/breadcrumb-item.vue2.js +5 -0
- package/breadcrumb/src/breadcrumb-item.vue2.js.map +1 -0
- package/breadcrumb/src/breadcrumb.js +10 -0
- package/breadcrumb/src/breadcrumb.js.map +1 -0
- package/breadcrumb/src/breadcrumb.vue.js +23 -0
- package/breadcrumb/src/breadcrumb.vue.js.map +1 -0
- package/breadcrumb/src/breadcrumb.vue2.js +5 -0
- package/breadcrumb/src/breadcrumb.vue2.js.map +1 -0
- package/button/index.js +8 -0
- package/button/index.js.map +1 -0
- package/button/src/button.js +21 -0
- package/button/src/button.js.map +1 -0
- package/button/src/button.vue.js +95 -0
- package/button/src/button.vue.js.map +1 -0
- package/button/src/button.vue2.js +5 -0
- package/button/src/button.vue2.js.map +1 -0
- package/calendar/index.js +6 -0
- package/calendar/index.js.map +1 -0
- package/calendar/src/calendar.vue.js +522 -0
- package/calendar/src/calendar.vue.js.map +1 -0
- package/calendar/src/calendar.vue2.js +5 -0
- package/calendar/src/calendar.vue2.js.map +1 -0
- package/card/index.js +8 -0
- package/card/index.js.map +1 -0
- package/card/src/card.js +32 -0
- package/card/src/card.js.map +1 -0
- package/card/src/card.vue.js +88 -0
- package/card/src/card.vue.js.map +1 -0
- package/card/src/card.vue2.js +5 -0
- package/card/src/card.vue2.js.map +1 -0
- package/card/src/title.js +10 -0
- package/card/src/title.js.map +1 -0
- package/card/src/title.vue.js +22 -0
- package/card/src/title.vue.js.map +1 -0
- package/card/src/title.vue2.js +5 -0
- package/card/src/title.vue2.js.map +1 -0
- package/carousel/index.js +6 -0
- package/carousel/index.js.map +1 -0
- package/carousel/src/carousel.js +10 -0
- package/carousel/src/carousel.js.map +1 -0
- package/carousel/src/carousel.vue.js +19 -0
- package/carousel/src/carousel.vue.js.map +1 -0
- package/carousel/src/carousel.vue2.js +5 -0
- package/carousel/src/carousel.vue2.js.map +1 -0
- package/cascader/index.js +8 -0
- package/cascader/index.js.map +1 -0
- package/cascader/src/cascader.js +9 -0
- package/cascader/src/cascader.js.map +1 -0
- package/cascader/src/cascader.vue.js +42 -0
- package/cascader/src/cascader.vue.js.map +1 -0
- package/cascader/src/cascader.vue2.js +5 -0
- package/cascader/src/cascader.vue2.js.map +1 -0
- package/checkbox/index.js +11 -0
- package/checkbox/index.js.map +1 -0
- package/checkbox/src/checkbox.js +9 -0
- package/checkbox/src/checkbox.js.map +1 -0
- package/checkbox/src/checkbox.vue.js +40 -0
- package/checkbox/src/checkbox.vue.js.map +1 -0
- package/checkbox/src/checkbox.vue2.js +5 -0
- package/checkbox/src/checkbox.vue2.js.map +1 -0
- package/collapse/index.js +6 -0
- package/collapse/index.js.map +1 -0
- package/collapse/src/collapse.js +10 -0
- package/collapse/src/collapse.js.map +1 -0
- package/collapse/src/collapse.vue.js +19 -0
- package/collapse/src/collapse.vue.js.map +1 -0
- package/collapse/src/collapse.vue2.js +5 -0
- package/collapse/src/collapse.vue2.js.map +1 -0
- package/column-table/index.js +10 -0
- package/column-table/index.js.map +1 -0
- package/column-table/src/column-table-row.js +30 -0
- package/column-table/src/column-table-row.js.map +1 -0
- package/column-table/src/column-table-row.vue.js +18 -0
- package/column-table/src/column-table-row.vue.js.map +1 -0
- package/column-table/src/column-table-row.vue2.js +5 -0
- package/column-table/src/column-table-row.vue2.js.map +1 -0
- package/column-table/src/column-table.js +68 -0
- package/column-table/src/column-table.js.map +1 -0
- package/column-table/src/column-table.vue.js +98 -0
- package/column-table/src/column-table.vue.js.map +1 -0
- package/column-table/src/column-table.vue2.js +5 -0
- package/column-table/src/column-table.vue2.js.map +1 -0
- package/column-table/src/tokens.js +5 -0
- package/column-table/src/tokens.js.map +1 -0
- package/components.js +248 -0
- package/components.js.map +1 -0
- package/create.js +22 -0
- package/create.js.map +1 -0
- package/date-picker/index.js +8 -0
- package/date-picker/index.js.map +1 -0
- package/date-picker/src/date-picker.js +9 -0
- package/date-picker/src/date-picker.js.map +1 -0
- package/date-picker/src/date-picker.vue.js +35 -0
- package/date-picker/src/date-picker.vue.js.map +1 -0
- package/date-picker/src/date-picker.vue2.js +5 -0
- package/date-picker/src/date-picker.vue2.js.map +1 -0
- package/demo/index.js +6 -0
- package/demo/index.js.map +1 -0
- package/demo/src/demo.js +10 -0
- package/demo/src/demo.js.map +1 -0
- package/demo/src/demo.vue.js +19 -0
- package/demo/src/demo.vue.js.map +1 -0
- package/demo/src/demo.vue2.js +5 -0
- package/demo/src/demo.vue2.js.map +1 -0
- package/description/index.js +8 -0
- package/description/index.js.map +1 -0
- package/description/src/description-item.js +14 -0
- package/description/src/description-item.js.map +1 -0
- package/description/src/description-item.vue.js +97 -0
- package/description/src/description-item.vue.js.map +1 -0
- package/description/src/description-item.vue2.js +5 -0
- package/description/src/description-item.vue2.js.map +1 -0
- package/description/src/description.js +22 -0
- package/description/src/description.js.map +1 -0
- package/description/src/description.vue.js +27 -0
- package/description/src/description.vue.js.map +1 -0
- package/description/src/description.vue2.js +5 -0
- package/description/src/description.vue2.js.map +1 -0
- package/dialog/index.js +9 -0
- package/dialog/index.js.map +1 -0
- package/dialog/src/dialog.js +77 -0
- package/dialog/src/dialog.js.map +1 -0
- package/dialog/src/dialog.vue.js +103 -0
- package/dialog/src/dialog.vue.js.map +1 -0
- package/dialog/src/dialog.vue2.js +5 -0
- package/dialog/src/dialog.vue2.js.map +1 -0
- package/dialog/src/msg-dialog.js +51 -0
- package/dialog/src/msg-dialog.js.map +1 -0
- package/drawer/index.js +6 -0
- package/drawer/index.js.map +1 -0
- package/drawer/src/drawer.js +10 -0
- package/drawer/src/drawer.js.map +1 -0
- package/drawer/src/drawer.vue.js +22 -0
- package/drawer/src/drawer.vue.js.map +1 -0
- package/drawer/src/drawer.vue2.js +5 -0
- package/drawer/src/drawer.vue2.js.map +1 -0
- package/editor/index.js +6 -0
- package/editor/index.js.map +1 -0
- package/editor/src/editor.vue.js +87 -0
- package/editor/src/editor.vue.js.map +1 -0
- package/editor/src/editor.vue2.js +5 -0
- package/editor/src/editor.vue2.js.map +1 -0
- package/empty/index.js +6 -0
- package/empty/index.js.map +1 -0
- package/empty/src/empty.js +5 -0
- package/empty/src/empty.js.map +1 -0
- package/empty/src/empty.vue.js +37 -0
- package/empty/src/empty.vue.js.map +1 -0
- package/empty/src/empty.vue2.js +5 -0
- package/empty/src/empty.vue2.js.map +1 -0
- package/empty/src/img-empty.vue.js +19 -0
- package/empty/src/img-empty.vue.js.map +1 -0
- package/file-task-dialog/index.js +6 -0
- package/file-task-dialog/index.js.map +1 -0
- package/file-task-dialog/src/file-task-dialog.vue.js +287 -0
- package/file-task-dialog/src/file-task-dialog.vue.js.map +1 -0
- package/file-task-dialog/src/file-task-dialog.vue2.js +5 -0
- package/file-task-dialog/src/file-task-dialog.vue2.js.map +1 -0
- package/form/index.js +7 -0
- package/form/index.js.map +1 -0
- package/icon/index.js +6 -0
- package/icon/index.js.map +1 -0
- package/icon/src/icon.js +32 -0
- package/icon/src/icon.js.map +1 -0
- package/icon/src/icon.vue.js +41 -0
- package/icon/src/icon.vue.js.map +1 -0
- package/icon/src/icon.vue2.js +5 -0
- package/icon/src/icon.vue2.js.map +1 -0
- package/icons/components/arrow-down.vue.js +20 -0
- package/icons/components/arrow-down.vue2.js +4 -0
- package/icons/components/arrow-left.vue.js +20 -0
- package/icons/components/arrow-left.vue2.js +4 -0
- package/icons/components/arrow-right.vue.js +20 -0
- package/icons/components/arrow-right.vue2.js +4 -0
- package/icons/components/arrow-up.vue.js +20 -0
- package/icons/components/arrow-up.vue2.js +4 -0
- package/icons/components/assignment.vue.js +26 -0
- package/icons/components/assignment.vue2.js +4 -0
- package/icons/components/circle-check.vue.js +26 -0
- package/icons/components/circle-check.vue2.js +4 -0
- package/icons/components/circle-close.vue.js +26 -0
- package/icons/components/circle-close.vue2.js +4 -0
- package/icons/components/close.vue.js +26 -0
- package/icons/components/close.vue2.js +4 -0
- package/icons/components/copy.vue.js +20 -0
- package/icons/components/copy.vue2.js +4 -0
- package/icons/components/delete.vue.js +22 -0
- package/icons/components/delete.vue2.js +4 -0
- package/icons/components/double-arrow-left.vue.js +26 -0
- package/icons/components/double-arrow-left.vue2.js +4 -0
- package/icons/components/double-arrow-right.vue.js +26 -0
- package/icons/components/double-arrow-right.vue2.js +4 -0
- package/icons/components/download.vue.js +24 -0
- package/icons/components/download.vue2.js +4 -0
- package/icons/components/drag.vue.js +20 -0
- package/icons/components/drag.vue2.js +4 -0
- package/icons/components/edit.vue.js +22 -0
- package/icons/components/edit.vue2.js +4 -0
- package/icons/components/error.vue.js +22 -0
- package/icons/components/error.vue2.js +4 -0
- package/icons/components/export.vue.js +24 -0
- package/icons/components/export.vue2.js +4 -0
- package/icons/components/file.vue.js +24 -0
- package/icons/components/file.vue2.js +4 -0
- package/icons/components/help.vue.js +20 -0
- package/icons/components/help.vue2.js +4 -0
- package/icons/components/import.vue.js +26 -0
- package/icons/components/import.vue2.js +4 -0
- package/icons/components/info.vue.js +20 -0
- package/icons/components/info.vue2.js +4 -0
- package/icons/components/list-process.vue.js +17 -0
- package/icons/components/list-process.vue2.js +4 -0
- package/icons/components/log.vue.js +20 -0
- package/icons/components/log.vue2.js +4 -0
- package/icons/components/minus.vue.js +20 -0
- package/icons/components/minus.vue2.js +4 -0
- package/icons/components/money-bubble.vue.js +24 -0
- package/icons/components/money-bubble.vue2.js +4 -0
- package/icons/components/operate-filter.vue.js +38 -0
- package/icons/components/operate-filter.vue2.js +4 -0
- package/icons/components/plane.vue.js +33 -0
- package/icons/components/plane.vue2.js +4 -0
- package/icons/components/plus.vue.js +24 -0
- package/icons/components/plus.vue2.js +4 -0
- package/icons/components/printer.vue.js +20 -0
- package/icons/components/printer.vue2.js +4 -0
- package/icons/components/question.vue.js +22 -0
- package/icons/components/question.vue2.js +4 -0
- package/icons/components/reset.vue.js +28 -0
- package/icons/components/reset.vue2.js +4 -0
- package/icons/components/right.vue.js +24 -0
- package/icons/components/right.vue2.js +4 -0
- package/icons/components/search.vue.js +22 -0
- package/icons/components/search.vue2.js +4 -0
- package/icons/components/select.vue.js +20 -0
- package/icons/components/select.vue2.js +4 -0
- package/icons/components/semi-select.vue.js +20 -0
- package/icons/components/semi-select.vue2.js +4 -0
- package/icons/components/setting.vue.js +28 -0
- package/icons/components/setting.vue2.js +4 -0
- package/icons/components/stamp.vue.js +38 -0
- package/icons/components/stamp.vue2.js +4 -0
- package/icons/components/success.vue.js +20 -0
- package/icons/components/success.vue2.js +4 -0
- package/icons/components/thumbtack.vue.js +20 -0
- package/icons/components/thumbtack.vue2.js +4 -0
- package/icons/components/thumbtackFilled.vue.js +19 -0
- package/icons/components/thumbtackFilled.vue2.js +4 -0
- package/icons/components/tree-triangle.vue.js +20 -0
- package/icons/components/tree-triangle.vue2.js +4 -0
- package/icons/components/upload-filled.vue.js +20 -0
- package/icons/components/upload-filled.vue2.js +4 -0
- package/icons/components/upload.vue.js +24 -0
- package/icons/components/upload.vue2.js +4 -0
- package/icons/components/view.vue.js +22 -0
- package/icons/components/view.vue2.js +4 -0
- package/icons/components/warning.vue.js +20 -0
- package/icons/components/warning.vue2.js +4 -0
- package/icons/components/zoom-in.vue.js +30 -0
- package/icons/components/zoom-in.vue2.js +4 -0
- package/icons/components/zoom-out.vue.js +30 -0
- package/icons/components/zoom-out.vue2.js +4 -0
- package/icons/index.js +96 -0
- package/image/index.js +6 -0
- package/image/index.js.map +1 -0
- package/image/src/image.js +7 -0
- package/image/src/image.js.map +1 -0
- package/image/src/image.vue.js +45 -0
- package/image/src/image.vue.js.map +1 -0
- package/image/src/image.vue2.js +5 -0
- package/image/src/image.vue2.js.map +1 -0
- package/import-dialog/index.js +6 -0
- package/import-dialog/index.js.map +1 -0
- package/import-dialog/src/import-dialog.vue.js +180 -0
- package/import-dialog/src/import-dialog.vue.js.map +1 -0
- package/import-dialog/src/import-dialog.vue2.js +5 -0
- package/import-dialog/src/import-dialog.vue2.js.map +1 -0
- package/independent-nav/index.js +6 -0
- package/independent-nav/index.js.map +1 -0
- package/independent-nav/src/independent-nav.js +9 -0
- package/independent-nav/src/independent-nav.js.map +1 -0
- package/independent-nav/src/independent-nav.vue.js +67 -0
- package/independent-nav/src/independent-nav.vue.js.map +1 -0
- package/independent-nav/src/independent-nav.vue2.js +5 -0
- package/independent-nav/src/independent-nav.vue2.js.map +1 -0
- package/index.js +253 -0
- package/index.js.map +1 -0
- package/input/index.js +8 -0
- package/input/index.js.map +1 -0
- package/input/src/input.js +18 -0
- package/input/src/input.js.map +1 -0
- package/input/src/input.vue.js +61 -0
- package/input/src/input.vue.js.map +1 -0
- package/input/src/input.vue2.js +5 -0
- package/input/src/input.vue2.js.map +1 -0
- package/input-number/index.js +8 -0
- package/input-number/index.js.map +1 -0
- package/input-number/src/input-number.js +9 -0
- package/input-number/src/input-number.js.map +1 -0
- package/input-number/src/input-number.vue.js +42 -0
- package/input-number/src/input-number.vue.js.map +1 -0
- package/input-number/src/input-number.vue2.js +5 -0
- package/input-number/src/input-number.vue2.js.map +1 -0
- package/layout/index.js +8 -0
- package/layout/index.js.map +1 -0
- package/layout/src/col.vue.js +34 -0
- package/layout/src/col.vue.js.map +1 -0
- package/layout/src/col.vue2.js +5 -0
- package/layout/src/col.vue2.js.map +1 -0
- package/layout/src/layout.js +10 -0
- package/layout/src/layout.js.map +1 -0
- package/layout/src/row.vue.js +34 -0
- package/layout/src/row.vue.js.map +1 -0
- package/layout/src/row.vue2.js +5 -0
- package/layout/src/row.vue2.js.map +1 -0
- package/link/index.js +6 -0
- package/link/index.js.map +1 -0
- package/link/src/link.vue.js +56 -0
- package/link/src/link.vue.js.map +1 -0
- package/link/src/link.vue2.js +5 -0
- package/link/src/link.vue2.js.map +1 -0
- package/locale/index.d.ts +2 -0
- package/locale/index.js +6 -0
- package/locale/lang/en.d.ts +306 -0
- package/locale/lang/en.js +119 -0
- package/locale/lang/zh-cn.d.ts +306 -0
- package/locale/lang/zh-cn.js +119 -0
- package/mention/index.js +6 -0
- package/mention/index.js.map +1 -0
- package/mention/src/mention.js +10 -0
- package/mention/src/mention.js.map +1 -0
- package/mention/src/mention.vue.js +19 -0
- package/mention/src/mention.vue.js.map +1 -0
- package/mention/src/mention.vue2.js +5 -0
- package/mention/src/mention.vue2.js.map +1 -0
- package/message/src/message.js +102 -0
- package/message/src/message.js.map +1 -0
- package/nav/index.js +6 -0
- package/nav/index.js.map +1 -0
- package/nav/src/nav.js +27 -0
- package/nav/src/nav.js.map +1 -0
- package/nav/src/nav.vue.js +95 -0
- package/nav/src/nav.vue.js.map +1 -0
- package/nav/src/nav.vue2.js +5 -0
- package/nav/src/nav.vue2.js.map +1 -0
- package/node_modules/.pnpm/@vue_shared@3.5.30/node_modules/@vue/shared/dist/shared.esm-bundler.js +12 -0
- package/node_modules/.pnpm/@vue_shared@3.5.30/node_modules/@vue/shared/dist/shared.esm-bundler.js.map +1 -0
- package/node_modules/.pnpm/element-plus@2.13.5_typescr_6d2a9a328fd9bbf7f67481f83822ca57/node_modules/element-plus/es/hooks/use-ordered-children/index.js +36 -0
- package/node_modules/.pnpm/element-plus@2.13.5_typescr_6d2a9a328fd9bbf7f67481f83822ca57/node_modules/element-plus/es/hooks/use-ordered-children/index.js.map +1 -0
- package/node_modules/.pnpm/element-plus@2.13.5_typescr_6d2a9a328fd9bbf7f67481f83822ca57/node_modules/element-plus/es/utils/vue/icon.js +10 -0
- package/node_modules/.pnpm/element-plus@2.13.5_typescr_6d2a9a328fd9bbf7f67481f83822ca57/node_modules/element-plus/es/utils/vue/icon.js.map +1 -0
- package/node_modules/.pnpm/element-plus@2.13.5_typescr_6d2a9a328fd9bbf7f67481f83822ca57/node_modules/element-plus/es/utils/vue/props/runtime.js +6 -0
- package/node_modules/.pnpm/element-plus@2.13.5_typescr_6d2a9a328fd9bbf7f67481f83822ca57/node_modules/element-plus/es/utils/vue/props/runtime.js.map +1 -0
- package/node_modules/.pnpm/element-plus@2.13.5_typescr_6d2a9a328fd9bbf7f67481f83822ca57/node_modules/element-plus/es/utils/vue/vnode.js +13 -0
- package/node_modules/.pnpm/element-plus@2.13.5_typescr_6d2a9a328fd9bbf7f67481f83822ca57/node_modules/element-plus/es/utils/vue/vnode.js.map +1 -0
- package/package.json +25 -43
- package/packages/icons/components/arrow-left.vue.js +21 -0
- package/packages/icons/components/arrow-left.vue.js.map +1 -0
- package/packages/icons/components/arrow-left.vue2.js +5 -0
- package/packages/icons/components/arrow-left.vue2.js.map +1 -0
- package/packages/icons/components/arrow-right.vue.js +21 -0
- package/packages/icons/components/arrow-right.vue.js.map +1 -0
- package/packages/icons/components/arrow-right.vue2.js +5 -0
- package/packages/icons/components/arrow-right.vue2.js.map +1 -0
- package/packages/icons/components/error.vue.js +23 -0
- package/packages/icons/components/error.vue.js.map +1 -0
- package/packages/icons/components/error.vue2.js +5 -0
- package/packages/icons/components/error.vue2.js.map +1 -0
- package/packages/icons/components/info.vue.js +21 -0
- package/packages/icons/components/info.vue.js.map +1 -0
- package/packages/icons/components/info.vue2.js +5 -0
- package/packages/icons/components/info.vue2.js.map +1 -0
- package/packages/icons/components/success.vue.js +21 -0
- package/packages/icons/components/success.vue.js.map +1 -0
- package/packages/icons/components/success.vue2.js +5 -0
- package/packages/icons/components/success.vue2.js.map +1 -0
- package/packages/icons/components/warning.vue.js +21 -0
- package/packages/icons/components/warning.vue.js.map +1 -0
- package/packages/icons/components/warning.vue2.js +5 -0
- package/packages/icons/components/warning.vue2.js.map +1 -0
- package/pagination/index.js +7 -0
- package/pagination/index.js.map +1 -0
- package/pagination/src/pagination.js +51 -0
- package/pagination/src/pagination.js.map +1 -0
- package/pagination/src/pagination.vue.js +30 -0
- package/pagination/src/pagination.vue.js.map +1 -0
- package/pagination/src/pagination.vue2.js +5 -0
- package/pagination/src/pagination.vue2.js.map +1 -0
- package/popover/index.js +6 -0
- package/popover/index.js.map +1 -0
- package/popover/src/popover.js +13 -0
- package/popover/src/popover.js.map +1 -0
- package/popover/src/popover.vue.js +46 -0
- package/popover/src/popover.vue.js.map +1 -0
- package/popover/src/popover.vue2.js +5 -0
- package/popover/src/popover.vue2.js.map +1 -0
- package/preset.js +11 -0
- package/preset.js.map +1 -0
- package/progress/index.js +6 -0
- package/progress/index.js.map +1 -0
- package/progress/src/progress.js +10 -0
- package/progress/src/progress.js.map +1 -0
- package/progress/src/progress.vue.js +19 -0
- package/progress/src/progress.vue.js.map +1 -0
- package/progress/src/progress.vue2.js +5 -0
- package/progress/src/progress.vue2.js.map +1 -0
- package/radio/index.js +11 -0
- package/radio/index.js.map +1 -0
- package/radio/src/radio.js +9 -0
- package/radio/src/radio.js.map +1 -0
- package/radio/src/radio.vue.js +34 -0
- package/radio/src/radio.vue.js.map +1 -0
- package/radio/src/radio.vue2.js +5 -0
- package/radio/src/radio.vue2.js.map +1 -0
- package/result/index.js +6 -0
- package/result/index.js.map +1 -0
- package/result/src/result.js +10 -0
- package/result/src/result.js.map +1 -0
- package/result/src/result.vue.js +19 -0
- package/result/src/result.vue.js.map +1 -0
- package/result/src/result.vue2.js +5 -0
- package/result/src/result.vue2.js.map +1 -0
- package/scrollbar/index.js +6 -0
- package/scrollbar/index.js.map +1 -0
- package/scrollbar/src/scrollbar.js +7 -0
- package/scrollbar/src/scrollbar.js.map +1 -0
- package/scrollbar/src/scrollbar.vue.js +61 -0
- package/scrollbar/src/scrollbar.vue.js.map +1 -0
- package/scrollbar/src/scrollbar.vue2.js +5 -0
- package/scrollbar/src/scrollbar.vue2.js.map +1 -0
- package/search-panel/index.js +6 -0
- package/search-panel/index.js.map +1 -0
- package/search-panel/src/search-panel.js +16 -0
- package/search-panel/src/search-panel.js.map +1 -0
- package/search-panel/src/search-panel.vue.js +212 -0
- package/search-panel/src/search-panel.vue.js.map +1 -0
- package/search-panel/src/search-panel.vue2.js +5 -0
- package/search-panel/src/search-panel.vue2.js.map +1 -0
- package/select/index.js +11 -0
- package/select/index.js.map +1 -0
- package/select/src/select.js +9 -0
- package/select/src/select.js.map +1 -0
- package/select/src/select.vue.js +40 -0
- package/select/src/select.vue.js.map +1 -0
- package/select/src/select.vue2.js +5 -0
- package/select/src/select.vue2.js.map +1 -0
- package/select-transfer/index.js +8 -0
- package/select-transfer/index.js.map +1 -0
- package/select-transfer/src/select-transfer-item.vue.js +136 -0
- package/select-transfer/src/select-transfer-item.vue.js.map +1 -0
- package/select-transfer/src/select-transfer-item.vue2.js +5 -0
- package/select-transfer/src/select-transfer-item.vue2.js.map +1 -0
- package/select-transfer/src/select-transfer.vue.js +98 -0
- package/select-transfer/src/select-transfer.vue.js.map +1 -0
- package/select-transfer/src/select-transfer.vue2.js +5 -0
- package/select-transfer/src/select-transfer.vue2.js.map +1 -0
- package/select-transfer-dialog/index.js +6 -0
- package/select-transfer-dialog/index.js.map +1 -0
- package/select-transfer-dialog/src/select-transfer-dialog.vue.js +87 -0
- package/select-transfer-dialog/src/select-transfer-dialog.vue.js.map +1 -0
- package/select-transfer-dialog/src/select-transfer-dialog.vue2.js +5 -0
- package/select-transfer-dialog/src/select-transfer-dialog.vue2.js.map +1 -0
- package/slider/index.js +6 -0
- package/slider/index.js.map +1 -0
- package/slider/src/slider.js +10 -0
- package/slider/src/slider.js.map +1 -0
- package/slider/src/slider.vue.js +19 -0
- package/slider/src/slider.vue.js.map +1 -0
- package/slider/src/slider.vue2.js +5 -0
- package/slider/src/slider.vue2.js.map +1 -0
- package/space/index.js +6 -0
- package/space/index.js.map +1 -0
- package/space/src/space.js +7 -0
- package/space/src/space.js.map +1 -0
- package/space/src/space.vue.js +34 -0
- package/space/src/space.vue.js.map +1 -0
- package/space/src/space.vue2.js +5 -0
- package/space/src/space.vue2.js.map +1 -0
- package/steps/index.js +8 -0
- package/steps/index.js.map +1 -0
- package/steps/src/step.js +17 -0
- package/steps/src/step.js.map +1 -0
- package/steps/src/step.vue.js +18 -0
- package/steps/src/step.vue.js.map +1 -0
- package/steps/src/step.vue2.js +5 -0
- package/steps/src/step.vue2.js.map +1 -0
- package/steps/src/steps.js +22 -0
- package/steps/src/steps.js.map +1 -0
- package/steps/src/steps.vue.js +89 -0
- package/steps/src/steps.vue.js.map +1 -0
- package/steps/src/steps.vue2.js +5 -0
- package/steps/src/steps.vue2.js.map +1 -0
- package/steps/src/tokens.js +5 -0
- package/steps/src/tokens.js.map +1 -0
- package/styles/css/index.css +1 -0
- package/switch/index.js +8 -0
- package/switch/index.js.map +1 -0
- package/switch/src/switch.js +9 -0
- package/switch/src/switch.js.map +1 -0
- package/switch/src/switch.vue.js +36 -0
- package/switch/src/switch.vue.js.map +1 -0
- package/switch/src/switch.vue2.js +5 -0
- package/switch/src/switch.vue2.js.map +1 -0
- package/table/index.js +11 -0
- package/table/index.js.map +1 -0
- package/table/src/table.js +33 -0
- package/table/src/table.js.map +1 -0
- package/table/src/table.vue.js +97 -0
- package/table/src/table.vue.js.map +1 -0
- package/table/src/table.vue2.js +5 -0
- package/table/src/table.vue2.js.map +1 -0
- package/table-grid/index.js +6 -0
- package/table-grid/index.js.map +1 -0
- package/table-grid/src/render-cell.vue.js +29 -0
- package/table-grid/src/render-cell.vue.js.map +1 -0
- package/table-grid/src/render-cell.vue2.js +5 -0
- package/table-grid/src/render-cell.vue2.js.map +1 -0
- package/table-grid/src/table-grid.js +82 -0
- package/table-grid/src/table-grid.js.map +1 -0
- package/table-grid/src/table-grid.vue.js +260 -0
- package/table-grid/src/table-grid.vue.js.map +1 -0
- package/table-grid/src/table-grid.vue2.js +5 -0
- package/table-grid/src/table-grid.vue2.js.map +1 -0
- package/table-head-editor/index.js +6 -0
- package/table-head-editor/index.js.map +1 -0
- package/table-head-editor/src/table-head-editor.js +40 -0
- package/table-head-editor/src/table-head-editor.js.map +1 -0
- package/table-head-editor/src/table-head-editor.vue.js +419 -0
- package/table-head-editor/src/table-head-editor.vue.js.map +1 -0
- package/table-head-editor/src/table-head-editor.vue2.js +5 -0
- package/table-head-editor/src/table-head-editor.vue2.js.map +1 -0
- package/table-head-editor/src/utils.js +70 -0
- package/table-head-editor/src/utils.js.map +1 -0
- package/tabs/index.js +8 -0
- package/tabs/index.js.map +1 -0
- package/tabs/src/tabs.vue.js +28 -0
- package/tabs/src/tabs.vue.js.map +1 -0
- package/tabs/src/tabs.vue2.js +5 -0
- package/tabs/src/tabs.vue2.js.map +1 -0
- package/tag/index.js +6 -0
- package/tag/index.js.map +1 -0
- package/tag/src/tag.js +46 -0
- package/tag/src/tag.js.map +1 -0
- package/tag/src/tag.vue.js +76 -0
- package/tag/src/tag.vue.js.map +1 -0
- package/tag/src/tag.vue2.js +5 -0
- package/tag/src/tag.vue2.js.map +1 -0
- package/text/index.js +6 -0
- package/text/index.js.map +1 -0
- package/text/src/text.js +10 -0
- package/text/src/text.js.map +1 -0
- package/text/src/text.vue.js +19 -0
- package/text/src/text.vue.js.map +1 -0
- package/text/src/text.vue2.js +5 -0
- package/text/src/text.vue2.js.map +1 -0
- package/time-picker/index.js +8 -0
- package/time-picker/index.js.map +1 -0
- package/time-picker/src/time-picker.js +9 -0
- package/time-picker/src/time-picker.js.map +1 -0
- package/time-picker/src/time-picker.vue.js +35 -0
- package/time-picker/src/time-picker.vue.js.map +1 -0
- package/time-picker/src/time-picker.vue2.js +5 -0
- package/time-picker/src/time-picker.vue2.js.map +1 -0
- package/time-select/index.js +8 -0
- package/time-select/index.js.map +1 -0
- package/time-select/src/time-select.js +9 -0
- package/time-select/src/time-select.js.map +1 -0
- package/time-select/src/time-select.vue.js +35 -0
- package/time-select/src/time-select.vue.js.map +1 -0
- package/time-select/src/time-select.vue2.js +5 -0
- package/time-select/src/time-select.vue2.js.map +1 -0
- package/tooltip/index.js +6 -0
- package/tooltip/index.js.map +1 -0
- package/tooltip/src/tooltip.js +5 -0
- package/tooltip/src/tooltip.js.map +1 -0
- package/tooltip/src/tooltip.vue.js +53 -0
- package/tooltip/src/tooltip.vue.js.map +1 -0
- package/tooltip/src/tooltip.vue2.js +5 -0
- package/tooltip/src/tooltip.vue2.js.map +1 -0
- package/tour/index.js +6 -0
- package/tour/index.js.map +1 -0
- package/tour/src/tour.js +10 -0
- package/tour/src/tour.js.map +1 -0
- package/tour/src/tour.vue.js +19 -0
- package/tour/src/tour.vue.js.map +1 -0
- package/tour/src/tour.vue2.js +5 -0
- package/tour/src/tour.vue2.js.map +1 -0
- package/tree/index.js +6 -0
- package/tree/index.js.map +1 -0
- package/tree/src/tree.js +7 -0
- package/tree/src/tree.js.map +1 -0
- package/tree/src/tree.vue.js +107 -0
- package/tree/src/tree.vue.js.map +1 -0
- package/tree/src/tree.vue2.js +5 -0
- package/tree/src/tree.vue2.js.map +1 -0
- package/tree-select/index.js +6 -0
- package/tree-select/index.js.map +1 -0
- package/tree-select/src/tree-select.vue.js +124 -0
- package/tree-select/src/tree-select.vue.js.map +1 -0
- package/tree-select/src/tree-select.vue2.js +5 -0
- package/tree-select/src/tree-select.vue2.js.map +1 -0
- package/.changeset/README.md +0 -8
- package/.changeset/config.json +0 -11
- package/.specstory/history/2025-11-28_08-55Z-/345/210/235/345/247/213/345/214/226/345/211/215/347/253/257/347/273/204/344/273/266/345/272/223/351/241/271/347/233/256.md +0 -4742
- package/.specstory/history/2025-12-01_01-58Z-/345/210/235/345/247/213/345/214/226/345/211/215/347/253/257/347/273/204/344/273/266/345/272/223/351/241/271/347/233/256.md +0 -14912
- package/.specstory/history/2025-12-22_01-38Z-scss-/345/217/230/351/207/217/345/274/225/345/205/245/351/227/256/351/242/230.md +0 -67163
- package/.specstory/history/2026-01-08_03-51Z-pnpm-lines-88-95.md +0 -304
- package/README.en.md +0 -36
- package/README.md +0 -37
- package/SETUP_GUIDE.md +0 -2530
- package/docs/.vitepress/config.ts +0 -298
- package/docs/.vitepress/theme/index.ts +0 -30
- package/docs/.vitepress/theme/style.css +0 -150
- package/docs/CHANGELOG.md +0 -7
- package/docs/DEPLOY.md +0 -183
- package/docs/api-examples.md +0 -49
- package/docs/components/Changelog.vue +0 -176
- package/docs/components/ComponentOverview.vue +0 -613
- package/docs/components/ComponentSearch.vue +0 -39
- package/docs/components/basic/action-menu.md +0 -63
- package/docs/components/basic/arrow-steps.md +0 -55
- package/docs/components/basic/badge.md +0 -22
- package/docs/components/basic/batch-copy.md +0 -44
- package/docs/components/basic/batch-editor.md +0 -52
- package/docs/components/basic/border.md +0 -22
- package/docs/components/basic/breadcrumb.md +0 -38
- package/docs/components/basic/button.md +0 -109
- package/docs/components/basic/calendar.md +0 -111
- package/docs/components/basic/card.md +0 -59
- package/docs/components/basic/carousel.md +0 -22
- package/docs/components/basic/cascader.md +0 -162
- package/docs/components/basic/checkbox.md +0 -171
- package/docs/components/basic/collapse.md +0 -22
- package/docs/components/basic/column-table.md +0 -123
- package/docs/components/basic/date-picker.md +0 -92
- package/docs/components/basic/date-time-picker.md +0 -110
- package/docs/components/basic/demo.md +0 -29
- package/docs/components/basic/description.md +0 -56
- package/docs/components/basic/dialog.md +0 -142
- package/docs/components/basic/drawer.md +0 -159
- package/docs/components/basic/editor.md +0 -76
- package/docs/components/basic/empty.md +0 -59
- package/docs/components/basic/file-task-dialog.md +0 -41
- package/docs/components/basic/form.md +0 -112
- package/docs/components/basic/icon.md +0 -53
- package/docs/components/basic/image.md +0 -110
- package/docs/components/basic/import-dialog.md +0 -54
- package/docs/components/basic/independent-nav.md +0 -45
- package/docs/components/basic/input-number.md +0 -61
- package/docs/components/basic/input.md +0 -98
- package/docs/components/basic/layout.md +0 -141
- package/docs/components/basic/link.md +0 -65
- package/docs/components/basic/mention.md +0 -22
- package/docs/components/basic/message.md +0 -167
- package/docs/components/basic/nav.md +0 -29
- package/docs/components/basic/pagination.md +0 -93
- package/docs/components/basic/popover.md +0 -116
- package/docs/components/basic/progress.md +0 -22
- package/docs/components/basic/radio.md +0 -152
- package/docs/components/basic/result.md +0 -22
- package/docs/components/basic/scrollbar.md +0 -105
- package/docs/components/basic/search-panel.md +0 -53
- package/docs/components/basic/select.md +0 -256
- package/docs/components/basic/slider.md +0 -22
- package/docs/components/basic/space.md +0 -140
- package/docs/components/basic/steps.md +0 -60
- package/docs/components/basic/switch.md +0 -115
- package/docs/components/basic/table-grid.md +0 -116
- package/docs/components/basic/table-head-editor.md +0 -135
- package/docs/components/basic/table.md +0 -433
- package/docs/components/basic/tabs.md +0 -62
- package/docs/components/basic/tag.md +0 -75
- package/docs/components/basic/text.md +0 -22
- package/docs/components/basic/time-picker.md +0 -77
- package/docs/components/basic/time-select.md +0 -65
- package/docs/components/basic/tooltip.md +0 -112
- package/docs/components/basic/tour.md +0 -22
- package/docs/components/basic/tree-select.md +0 -132
- package/docs/components/basic/tree.md +0 -163
- package/docs/components/button.md +0 -113
- package/docs/components/calendar.md +0 -111
- package/docs/components/design/color.md +0 -137
- package/docs/components/index.md +0 -3
- package/docs/components/link.md +0 -65
- package/docs/components/search-panel.md +0 -53
- package/docs/components/table-grid.md +0 -120
- package/docs/components/table.md +0 -433
- package/docs/examples/action-menu/basic.vue +0 -70
- package/docs/examples/action-menu/default.vue +0 -88
- package/docs/examples/action-menu/index.vue +0 -76
- package/docs/examples/arrow-steps/index.vue +0 -15
- package/docs/examples/badge/index.vue +0 -3
- package/docs/examples/batch-copy/index.vue +0 -30
- package/docs/examples/batch-copy/validator.vue +0 -73
- package/docs/examples/batch-editor/basic.vue +0 -120
- package/docs/examples/batch-editor/customization.vue +0 -167
- package/docs/examples/border/index.vue +0 -3
- package/docs/examples/breadcrumb/index.vue +0 -33
- package/docs/examples/button/demo1.vue +0 -119
- package/docs/examples/button/demo2.vue +0 -18
- package/docs/examples/button/demo3.vue +0 -32
- package/docs/examples/button/demo4.vue +0 -41
- package/docs/examples/button/demo5.vue +0 -46
- package/docs/examples/button/demo6.vue +0 -35
- package/docs/examples/calendar/calendar01.vue +0 -46
- package/docs/examples/calendar/calendar02.vue +0 -16
- package/docs/examples/calendar/calendar03.vue +0 -6
- package/docs/examples/calendar/calendar04.vue +0 -54
- package/docs/examples/calendar/calendar05.vue +0 -36
- package/docs/examples/calendar/calendar06.vue +0 -53
- package/docs/examples/card/basic-card.vue +0 -7
- package/docs/examples/card/card-title.vue +0 -6
- package/docs/examples/card/collapsible-card.vue +0 -26
- package/docs/examples/card/title-card.vue +0 -32
- package/docs/examples/carousel/index.vue +0 -3
- package/docs/examples/cascader/clearable.vue +0 -52
- package/docs/examples/cascader/collapse-tags.vue +0 -84
- package/docs/examples/cascader/disabled-select.vue +0 -52
- package/docs/examples/cascader/disabled.vue +0 -54
- package/docs/examples/cascader/filterable.vue +0 -82
- package/docs/examples/cascader/index.vue +0 -173
- package/docs/examples/cascader/multiple.vue +0 -74
- package/docs/examples/cascader/show-all-levels.vue +0 -63
- package/docs/examples/cascader/sizes.vue +0 -71
- package/docs/examples/checkbox/basic.vue +0 -47
- package/docs/examples/checkbox/button-style.vue +0 -73
- package/docs/examples/checkbox/disabled.vue +0 -20
- package/docs/examples/checkbox/grouping.vue +0 -32
- package/docs/examples/checkbox/intermediate.vue +0 -43
- package/docs/examples/checkbox/limitation.vue +0 -23
- package/docs/examples/checkbox/with-border.vue +0 -74
- package/docs/examples/collapse/index.vue +0 -3
- package/docs/examples/column-table/basic.vue +0 -47
- package/docs/examples/column-table/column-title.vue +0 -48
- package/docs/examples/column-table/custom.vue +0 -125
- package/docs/examples/column-table/index.vue +0 -209
- package/docs/examples/column-table/nested.vue +0 -123
- package/docs/examples/column-table/no-header.vue +0 -50
- package/docs/examples/date-picker/default.vue +0 -106
- package/docs/examples/date-picker/index.vue +0 -98
- package/docs/examples/date-picker/otherUnits.vue +0 -118
- package/docs/examples/date-picker/periodTime.vue +0 -108
- package/docs/examples/date-time-picker/default.vue +0 -83
- package/docs/examples/date-time-picker/format.vue +0 -90
- package/docs/examples/date-time-picker/index.vue +0 -110
- package/docs/examples/date-time-picker/range.vue +0 -111
- package/docs/examples/date-time-picker/time-format.vue +0 -78
- package/docs/examples/demo/demo1.vue +0 -3
- package/docs/examples/demo/demo2.vue +0 -3
- package/docs/examples/description/custom-description.vue +0 -30
- package/docs/examples/description/index.vue +0 -13
- package/docs/examples/description/labelJustify.vue +0 -58
- package/docs/examples/description/merge-description.vue +0 -15
- package/docs/examples/design/color-palette.vue +0 -225
- package/docs/examples/dialog/align-center.vue +0 -34
- package/docs/examples/dialog/basic.vue +0 -31
- package/docs/examples/dialog/centered-content.vue +0 -34
- package/docs/examples/dialog/customization-content.vue +0 -129
- package/docs/examples/dialog/customization-header.vue +0 -60
- package/docs/examples/dialog/msg-dialog.vue +0 -63
- package/docs/examples/dialog/nested-dialog.vue +0 -43
- package/docs/examples/dialog/title-icon.vue +0 -32
- package/docs/examples/drawer/custom-content.vue +0 -182
- package/docs/examples/drawer/custom-header.vue +0 -30
- package/docs/examples/drawer/index.vue +0 -101
- package/docs/examples/drawer/modal.vue +0 -40
- package/docs/examples/drawer/nested.vue +0 -44
- package/docs/examples/drawer/no-title.vue +0 -22
- package/docs/examples/drawer/resizable.vue +0 -28
- package/docs/examples/editor/basic.vue +0 -53
- package/docs/examples/editor/customization-desc.vue +0 -56
- package/docs/examples/editor/more-demo.vue +0 -54
- package/docs/examples/editor/more-form.vue +0 -56
- package/docs/examples/editor/number-desc.vue +0 -55
- package/docs/examples/empty/basic.vue +0 -4
- package/docs/examples/empty/bottom-content.vue +0 -5
- package/docs/examples/empty/custom-image.vue +0 -6
- package/docs/examples/empty/image-size.vue +0 -6
- package/docs/examples/file-task-dialog/index.vue +0 -52
- package/docs/examples/form/accessibility.vue +0 -48
- package/docs/examples/form/alignment.vue +0 -68
- package/docs/examples/form/basic-form.vue +0 -120
- package/docs/examples/form/custom-validation.vue +0 -121
- package/docs/examples/form/form-items.vue +0 -111
- package/docs/examples/form/inline-form.vue +0 -70
- package/docs/examples/form/number-validate.vue +0 -60
- package/docs/examples/form/size-control.vue +0 -140
- package/docs/examples/form/validation.vue +0 -265
- package/docs/examples/icon/icon.vue +0 -52
- package/docs/examples/icon/index.vue +0 -7
- package/docs/examples/image/error.vue +0 -69
- package/docs/examples/image/index.vue +0 -47
- package/docs/examples/image/lazy.vue +0 -39
- package/docs/examples/image/placeholder.vue +0 -69
- package/docs/examples/image/preview.vue +0 -37
- package/docs/examples/import-dialog/multiple.vue +0 -35
- package/docs/examples/import-dialog/single.vue +0 -37
- package/docs/examples/independent-nav/icon-slot.vue +0 -7
- package/docs/examples/independent-nav/index.vue +0 -12
- package/docs/examples/input/icon.vue +0 -26
- package/docs/examples/input/index.vue +0 -9
- package/docs/examples/input-number/index.vue +0 -19
- package/docs/examples/layout/gutter.vue +0 -51
- package/docs/examples/layout/index.vue +0 -97
- package/docs/examples/layout/justify.vue +0 -122
- package/docs/examples/layout/mixed.vue +0 -70
- package/docs/examples/layout/offset.vue +0 -70
- package/docs/examples/layout/responsive.vue +0 -69
- package/docs/examples/link/index01.vue +0 -20
- package/docs/examples/link/index02.vue +0 -41
- package/docs/examples/link/index03.vue +0 -43
- package/docs/examples/link/index04.vue +0 -131
- package/docs/examples/mention/index.vue +0 -3
- package/docs/examples/message/closeable.vue +0 -92
- package/docs/examples/message/grouping.vue +0 -22
- package/docs/examples/message/html.vue +0 -21
- package/docs/examples/message/index.vue +0 -34
- package/docs/examples/message/placement.vue +0 -96
- package/docs/examples/message/plain.vue +0 -80
- package/docs/examples/message/types.vue +0 -66
- package/docs/examples/nav/index.vue +0 -20
- package/docs/examples/pagination/background-color.vue +0 -17
- package/docs/examples/pagination/basic.vue +0 -43
- package/docs/examples/pagination/disabled.vue +0 -17
- package/docs/examples/pagination/more.vue +0 -43
- package/docs/examples/pagination/number-of-pagers.vue +0 -17
- package/docs/examples/pagination/small.vue +0 -17
- package/docs/examples/popover/basic.vue +0 -81
- package/docs/examples/popover/index.vue +0 -144
- package/docs/examples/popover/nested.vue +0 -36
- package/docs/examples/popover/rich-content.vue +0 -100
- package/docs/examples/popover/virtual-trigger.vue +0 -32
- package/docs/examples/progress/index.vue +0 -3
- package/docs/examples/radio/basic-usage.vue +0 -44
- package/docs/examples/radio/button-fill-textcolor.vue +0 -82
- package/docs/examples/radio/button-style.vue +0 -77
- package/docs/examples/radio/disabled.vue +0 -21
- package/docs/examples/radio/radio-button-group.vue +0 -13
- package/docs/examples/radio/with-borders.vue +0 -77
- package/docs/examples/result/index.vue +0 -3
- package/docs/examples/scrollbar/horizontal.vue +0 -39
- package/docs/examples/scrollbar/index.vue +0 -31
- package/docs/examples/scrollbar/infinite.vue +0 -43
- package/docs/examples/scrollbar/manual.vue +0 -68
- package/docs/examples/scrollbar/max-height.vue +0 -44
- package/docs/examples/search-panel/index.vue +0 -108
- package/docs/examples/search-panel/nowrap.vue +0 -115
- package/docs/examples/select/allow-create.vue +0 -36
- package/docs/examples/select/clearable.vue +0 -29
- package/docs/examples/select/collapse-tags.vue +0 -54
- package/docs/examples/select/custom-template.vue +0 -40
- package/docs/examples/select/disabled-option.vue +0 -29
- package/docs/examples/select/disabled-select.vue +0 -29
- package/docs/examples/select/empty.vue +0 -21
- package/docs/examples/select/filterable.vue +0 -37
- package/docs/examples/select/grouping.vue +0 -40
- package/docs/examples/select/header-footer.vue +0 -38
- package/docs/examples/select/index.vue +0 -28
- package/docs/examples/select/loading.vue +0 -41
- package/docs/examples/select/multiple-limit.vue +0 -36
- package/docs/examples/select/multiple.vue +0 -37
- package/docs/examples/select/remote-search.vue +0 -56
- package/docs/examples/select/sizes.vue +0 -62
- package/docs/examples/select/value-key.vue +0 -33
- package/docs/examples/slider/index.vue +0 -3
- package/docs/examples/space/alignment.vue +0 -47
- package/docs/examples/space/custom-size.vue +0 -58
- package/docs/examples/space/fill-ratio.vue +0 -77
- package/docs/examples/space/fill.vue +0 -57
- package/docs/examples/space/index.vue +0 -52
- package/docs/examples/space/size.vue +0 -70
- package/docs/examples/space/spacer.vue +0 -35
- package/docs/examples/space/vertical.vue +0 -52
- package/docs/examples/space/wrap.vue +0 -16
- package/docs/examples/steps/index.vue +0 -50
- package/docs/examples/steps/navigation.vue +0 -37
- package/docs/examples/switch/disabled.vue +0 -19
- package/docs/examples/switch/icon.vue +0 -21
- package/docs/examples/switch/index.vue +0 -17
- package/docs/examples/switch/loading.vue +0 -19
- package/docs/examples/switch/size.vue +0 -29
- package/docs/examples/switch/text.vue +0 -37
- package/docs/examples/switch/validate-value.vue +0 -16
- package/docs/examples/table/basic.vue +0 -60
- package/docs/examples/table/check-strictly.vue +0 -98
- package/docs/examples/table/custom-column.vue +0 -98
- package/docs/examples/table/custom-header.vue +0 -87
- package/docs/examples/table/custom-index.vue +0 -71
- package/docs/examples/table/expandable-row.vue +0 -285
- package/docs/examples/table/filter.vue +0 -116
- package/docs/examples/table/fixed-column-and-group-header.vue +0 -101
- package/docs/examples/table/fixed-column-and-header.vue +0 -101
- package/docs/examples/table/fixed-column.vue +0 -107
- package/docs/examples/table/fixed-header-with-fluid-header.vue +0 -114
- package/docs/examples/table/fixed-header.vue +0 -64
- package/docs/examples/table/grouping-header.vue +0 -103
- package/docs/examples/table/multi-select.vue +0 -116
- package/docs/examples/table/rowspan-and-colspan.vue +0 -147
- package/docs/examples/table/show-overflow-tooltip.vue +0 -64
- package/docs/examples/table/single-select.vue +0 -78
- package/docs/examples/table/sort.vue +0 -63
- package/docs/examples/table/striped.vue +0 -49
- package/docs/examples/table/summary.vue +0 -150
- package/docs/examples/table/table-layout.vue +0 -56
- package/docs/examples/table/tooltip-formatter.vue +0 -93
- package/docs/examples/table/tree-and-lazy.vue +0 -149
- package/docs/examples/table/with-border.vue +0 -49
- package/docs/examples/table/with-status.vue +0 -73
- package/docs/examples/table-grid/basic.vue +0 -51
- package/docs/examples/table-grid/complete.vue +0 -258
- package/docs/examples/table-head-editor/grouping-header.vue +0 -409
- package/docs/examples/table-head-editor/index.vue +0 -246
- package/docs/examples/tabs/default.vue +0 -47
- package/docs/examples/tabs/index.vue +0 -46
- package/docs/examples/tag/basic.vue +0 -20
- package/docs/examples/tag/closable.vue +0 -31
- package/docs/examples/tag/dot.vue +0 -21
- package/docs/examples/tag/effect.vue +0 -35
- package/docs/examples/tag/icon.vue +0 -21
- package/docs/examples/text/index.vue +0 -3
- package/docs/examples/time-picker/disabled.vue +0 -53
- package/docs/examples/time-picker/index.vue +0 -49
- package/docs/examples/time-picker/range.vue +0 -36
- package/docs/examples/time-select/disabled.vue +0 -30
- package/docs/examples/time-select/index.vue +0 -29
- package/docs/examples/tooltip/disabled.vue +0 -20
- package/docs/examples/tooltip/index.vue +0 -63
- package/docs/examples/tooltip/more-content.vue +0 -19
- package/docs/examples/tooltip/theme.vue +0 -32
- package/docs/examples/tooltip/virtual-trigger.vue +0 -31
- package/docs/examples/tour/index.vue +0 -3
- package/docs/examples/tree/basic.vue +0 -86
- package/docs/examples/tree/checkable.vue +0 -65
- package/docs/examples/tree/custom-node.vue +0 -123
- package/docs/examples/tree/default-expanded.vue +0 -73
- package/docs/examples/tree/draggable.vue +0 -123
- package/docs/examples/tree/filter.vue +0 -96
- package/docs/examples/tree/index.vue +0 -86
- package/docs/examples/tree-select/basic.vue +0 -96
- package/docs/examples/tree-select/check-strictly.vue +0 -109
- package/docs/examples/tree-select/custom-content.vue +0 -110
- package/docs/examples/tree-select/disabled.vue +0 -89
- package/docs/examples/tree-select/filterable.vue +0 -112
- package/docs/examples/tree-select/index.vue +0 -87
- package/docs/examples/tree-select/lazy.vue +0 -43
- package/docs/examples/tree-select/multiple.vue +0 -111
- package/docs/examples/tree-select/node-key.vue +0 -35
- package/docs/guide/changelog.md +0 -6
- package/docs/guide/import-on-demand.md +0 -49
- package/docs/guide/index.md +0 -55
- package/docs/guide/introduction.md +0 -21
- package/docs/guide/quickstart.md +0 -35
- package/docs/guide/start.md +0 -113
- package/docs/index.md +0 -27
- package/docs/markdown-examples.md +0 -85
- package/docs/package.json +0 -26
- package/docs/postcss.config.mjs +0 -9
- package/docs/toolkit/domain.md +0 -55
- package/docs/toolkit/env.md +0 -73
- package/docs/toolkit/examples/domain-aim.vue +0 -35
- package/docs/toolkit/examples/domain-supplier.vue +0 -34
- package/docs/toolkit/examples/env-basic.vue +0 -28
- package/docs/toolkit/examples/env-constants.vue +0 -39
- package/docs/toolkit/examples/env-node-constants.vue +0 -38
- package/docs/toolkit/examples/env-node.vue +0 -34
- package/docs/toolkit/examples/monitor-init.vue +0 -53
- package/docs/toolkit/examples/monitor-vue-error.vue +0 -31
- package/docs/toolkit/examples/request-baseurl.vue +0 -66
- package/docs/toolkit/examples/request-basic.vue +0 -48
- package/docs/toolkit/examples/request-cache.vue +0 -137
- package/docs/toolkit/examples/wujie-logout.vue +0 -42
- package/docs/toolkit/examples/wujie-token.vue +0 -63
- package/docs/toolkit/monitor.md +0 -69
- package/docs/toolkit/request.md +0 -127
- package/docs/toolkit/start.md +0 -110
- package/docs/toolkit/wujie.md +0 -34
- package/docs/tsconfig.json +0 -29
- package/packages/components/CHANGELOG.md +0 -81
- package/packages/components/README.md +0 -83
- package/packages/components/package.json +0 -36
- package/packages/components/src/action-menu/index.ts +0 -5
- package/packages/components/src/action-menu/src/action-menu.ts +0 -34
- package/packages/components/src/action-menu/src/action-menu.vue +0 -364
- package/packages/components/src/arrow-steps/index.ts +0 -11
- package/packages/components/src/arrow-steps/src/arrow-step.ts +0 -8
- package/packages/components/src/arrow-steps/src/arrow-step.vue +0 -90
- package/packages/components/src/arrow-steps/src/arrow-steps.ts +0 -16
- package/packages/components/src/arrow-steps/src/arrow-steps.vue +0 -42
- package/packages/components/src/badge/index.ts +0 -5
- package/packages/components/src/badge/src/badge.ts +0 -8
- package/packages/components/src/badge/src/badge.vue +0 -20
- package/packages/components/src/batch-copy/index.ts +0 -5
- package/packages/components/src/batch-copy/src/batch-copy.ts +0 -39
- package/packages/components/src/batch-copy/src/batch-copy.vue +0 -214
- package/packages/components/src/batch-editor/index.ts +0 -5
- package/packages/components/src/batch-editor/src/batch-editor.ts +0 -21
- package/packages/components/src/batch-editor/src/batch-editor.vue +0 -73
- package/packages/components/src/border/index.ts +0 -5
- package/packages/components/src/border/src/border.ts +0 -8
- package/packages/components/src/border/src/border.vue +0 -20
- package/packages/components/src/breadcrumb/index.ts +0 -8
- package/packages/components/src/breadcrumb/src/breadcrumb-item.ts +0 -8
- package/packages/components/src/breadcrumb/src/breadcrumb-item.vue +0 -20
- package/packages/components/src/breadcrumb/src/breadcrumb.ts +0 -8
- package/packages/components/src/breadcrumb/src/breadcrumb.vue +0 -20
- package/packages/components/src/button/index.ts +0 -5
- package/packages/components/src/button/src/button.ts +0 -12
- package/packages/components/src/button/src/button.vue +0 -132
- package/packages/components/src/calendar/index.ts +0 -5
- package/packages/components/src/calendar/src/calendar.ts +0 -36
- package/packages/components/src/calendar/src/calendar.vue +0 -962
- package/packages/components/src/card/index.ts +0 -8
- package/packages/components/src/card/src/card.ts +0 -29
- package/packages/components/src/card/src/card.vue +0 -106
- package/packages/components/src/card/src/title.ts +0 -8
- package/packages/components/src/card/src/title.vue +0 -14
- package/packages/components/src/carousel/index.ts +0 -5
- package/packages/components/src/carousel/src/carousel.ts +0 -8
- package/packages/components/src/carousel/src/carousel.vue +0 -20
- package/packages/components/src/cascader/index.ts +0 -5
- package/packages/components/src/cascader/src/cascader.ts +0 -3
- package/packages/components/src/cascader/src/cascader.vue +0 -62
- package/packages/components/src/checkbox/index.ts +0 -11
- package/packages/components/src/checkbox/src/checkbox.vue +0 -19
- package/packages/components/src/collapse/index.ts +0 -5
- package/packages/components/src/collapse/src/collapse.ts +0 -8
- package/packages/components/src/collapse/src/collapse.vue +0 -20
- package/packages/components/src/column-table/index.ts +0 -7
- package/packages/components/src/column-table/src/column-table-row.ts +0 -30
- package/packages/components/src/column-table/src/column-table-row.vue +0 -17
- package/packages/components/src/column-table/src/column-table.ts +0 -60
- package/packages/components/src/column-table/src/column-table.vue +0 -141
- package/packages/components/src/column-table/src/tokens.ts +0 -6
- package/packages/components/src/date-picker/index.ts +0 -5
- package/packages/components/src/date-picker/src/date-picker.ts +0 -3
- package/packages/components/src/date-picker/src/date-picker.vue +0 -14
- package/packages/components/src/demo/index.ts +0 -5
- package/packages/components/src/demo/src/demo.ts +0 -8
- package/packages/components/src/demo/src/demo.vue +0 -20
- package/packages/components/src/description/index.ts +0 -8
- package/packages/components/src/description/src/description-item.ts +0 -12
- package/packages/components/src/description/src/description-item.vue +0 -103
- package/packages/components/src/description/src/description.ts +0 -20
- package/packages/components/src/description/src/description.vue +0 -28
- package/packages/components/src/dialog/index.ts +0 -6
- package/packages/components/src/dialog/src/dialog.ts +0 -62
- package/packages/components/src/dialog/src/dialog.vue +0 -121
- package/packages/components/src/dialog/src/msg-dialog.ts +0 -84
- package/packages/components/src/dialog/src/types.ts +0 -8
- package/packages/components/src/drawer/index.ts +0 -5
- package/packages/components/src/drawer/src/drawer.ts +0 -8
- package/packages/components/src/drawer/src/drawer.vue +0 -24
- package/packages/components/src/editor/index.ts +0 -5
- package/packages/components/src/editor/src/editor.ts +0 -13
- package/packages/components/src/editor/src/editor.vue +0 -70
- package/packages/components/src/empty/index.ts +0 -5
- package/packages/components/src/empty/src/empty.ts +0 -3
- package/packages/components/src/empty/src/empty.vue +0 -37
- package/packages/components/src/empty/src/img-empty.vue +0 -39
- package/packages/components/src/file-task-dialog/index.ts +0 -5
- package/packages/components/src/file-task-dialog/src/file-task-dialog.ts +0 -32
- package/packages/components/src/file-task-dialog/src/file-task-dialog.vue +0 -228
- package/packages/components/src/form/index.ts +0 -3
- package/packages/components/src/icon/index.ts +0 -5
- package/packages/components/src/icon/src/icon.ts +0 -10
- package/packages/components/src/icon/src/icon.vue +0 -29
- package/packages/components/src/image/index.ts +0 -5
- package/packages/components/src/image/src/image.ts +0 -8
- package/packages/components/src/image/src/image.vue +0 -57
- package/packages/components/src/import-dialog/index.ts +0 -5
- package/packages/components/src/import-dialog/src/import-dialog.ts +0 -11
- package/packages/components/src/import-dialog/src/import-dialog.vue +0 -207
- package/packages/components/src/independent-nav/index.ts +0 -5
- package/packages/components/src/independent-nav/src/independent-nav.ts +0 -7
- package/packages/components/src/independent-nav/src/independent-nav.vue +0 -61
- package/packages/components/src/index.ts +0 -235
- package/packages/components/src/input/index.ts +0 -5
- package/packages/components/src/input/src/input.ts +0 -3
- package/packages/components/src/input/src/input.vue +0 -53
- package/packages/components/src/input-number/index.ts +0 -5
- package/packages/components/src/input-number/src/input-number.ts +0 -3
- package/packages/components/src/input-number/src/input-number.vue +0 -25
- package/packages/components/src/layout/index.ts +0 -7
- package/packages/components/src/layout/src/col.vue +0 -43
- package/packages/components/src/layout/src/layout.ts +0 -13
- package/packages/components/src/layout/src/row.vue +0 -43
- package/packages/components/src/link/index.ts +0 -5
- package/packages/components/src/link/src/link.ts +0 -13
- package/packages/components/src/link/src/link.vue +0 -74
- package/packages/components/src/mention/index.ts +0 -5
- package/packages/components/src/mention/src/mention.ts +0 -8
- package/packages/components/src/mention/src/mention.vue +0 -20
- package/packages/components/src/message/index.ts +0 -1
- package/packages/components/src/message/src/message.ts +0 -161
- package/packages/components/src/nav/index.ts +0 -7
- package/packages/components/src/nav/src/nav.ts +0 -19
- package/packages/components/src/nav/src/nav.vue +0 -66
- package/packages/components/src/nav/src/types.ts +0 -11
- package/packages/components/src/pagination/index.ts +0 -5
- package/packages/components/src/pagination/src/pagination.ts +0 -60
- package/packages/components/src/pagination/src/pagination.vue +0 -38
- package/packages/components/src/popover/index.ts +0 -5
- package/packages/components/src/popover/src/popover.ts +0 -14
- package/packages/components/src/popover/src/popover.vue +0 -60
- package/packages/components/src/progress/index.ts +0 -5
- package/packages/components/src/progress/src/progress.ts +0 -8
- package/packages/components/src/progress/src/progress.vue +0 -20
- package/packages/components/src/radio/index.ts +0 -11
- package/packages/components/src/radio/src/radio.vue +0 -13
- package/packages/components/src/result/index.ts +0 -5
- package/packages/components/src/result/src/result.ts +0 -8
- package/packages/components/src/result/src/result.vue +0 -20
- package/packages/components/src/scrollbar/index.ts +0 -5
- package/packages/components/src/scrollbar/src/scrollbar.ts +0 -8
- package/packages/components/src/scrollbar/src/scrollbar.vue +0 -54
- package/packages/components/src/search-panel/index.ts +0 -5
- package/packages/components/src/search-panel/src/search-panel.ts +0 -8
- package/packages/components/src/search-panel/src/search-panel.vue +0 -251
- package/packages/components/src/select/index.ts +0 -9
- package/packages/components/src/select/src/select.ts +0 -3
- package/packages/components/src/select/src/select.vue +0 -43
- package/packages/components/src/slider/index.ts +0 -5
- package/packages/components/src/slider/src/slider.ts +0 -8
- package/packages/components/src/slider/src/slider.vue +0 -20
- package/packages/components/src/space/index.ts +0 -5
- package/packages/components/src/space/src/space.ts +0 -8
- package/packages/components/src/space/src/space.vue +0 -43
- package/packages/components/src/steps/index.ts +0 -8
- package/packages/components/src/steps/src/step.ts +0 -15
- package/packages/components/src/steps/src/step.vue +0 -18
- package/packages/components/src/steps/src/steps.ts +0 -20
- package/packages/components/src/steps/src/steps.vue +0 -95
- package/packages/components/src/steps/src/tokens.ts +0 -6
- package/packages/components/src/switch/index.ts +0 -5
- package/packages/components/src/switch/src/switch.ts +0 -8
- package/packages/components/src/switch/src/switch.vue +0 -51
- package/packages/components/src/table/index.ts +0 -7
- package/packages/components/src/table/src/table.ts +0 -34
- package/packages/components/src/table/src/table.vue +0 -47
- package/packages/components/src/table-grid/index.ts +0 -7
- package/packages/components/src/table-grid/src/render-cell.vue +0 -44
- package/packages/components/src/table-grid/src/table-grid.ts +0 -159
- package/packages/components/src/table-grid/src/table-grid.vue +0 -334
- package/packages/components/src/table-head-editor/index.ts +0 -5
- package/packages/components/src/table-head-editor/src/table-head-editor.ts +0 -59
- package/packages/components/src/table-head-editor/src/table-head-editor.vue +0 -780
- package/packages/components/src/table-head-editor/src/utils.ts +0 -192
- package/packages/components/src/tabs/index.ts +0 -7
- package/packages/components/src/tabs/src/tabs.ts +0 -8
- package/packages/components/src/tabs/src/tabs.vue +0 -23
- package/packages/components/src/tag/index.ts +0 -5
- package/packages/components/src/tag/src/tag.ts +0 -47
- package/packages/components/src/tag/src/tag.vue +0 -60
- package/packages/components/src/tag/src/types.ts +0 -8
- package/packages/components/src/text/index.ts +0 -5
- package/packages/components/src/text/src/text.ts +0 -8
- package/packages/components/src/text/src/text.vue +0 -20
- package/packages/components/src/time-picker/index.ts +0 -5
- package/packages/components/src/time-picker/src/time-picker.ts +0 -3
- package/packages/components/src/time-picker/src/time-picker.vue +0 -14
- package/packages/components/src/time-select/index.ts +0 -5
- package/packages/components/src/time-select/src/time-select.ts +0 -5
- package/packages/components/src/time-select/src/time-select.vue +0 -14
- package/packages/components/src/tooltip/index.ts +0 -5
- package/packages/components/src/tooltip/src/tooltip.ts +0 -6
- package/packages/components/src/tooltip/src/tooltip.vue +0 -71
- package/packages/components/src/tour/index.ts +0 -5
- package/packages/components/src/tour/src/tour.ts +0 -8
- package/packages/components/src/tour/src/tour.vue +0 -20
- package/packages/components/src/tree/index.ts +0 -5
- package/packages/components/src/tree/src/tree.ts +0 -8
- package/packages/components/src/tree/src/tree.vue +0 -77
- package/packages/components/src/tree-select/index.ts +0 -3
- package/packages/components/src/tree-select/src/tree-select.vue +0 -96
- package/packages/components/tsconfig.json +0 -19
- package/packages/components/vite.config.ts +0 -32
- package/packages/icons/CHANGELOG.md +0 -45
- package/packages/icons/README.md +0 -86
- package/packages/icons/package.json +0 -30
- package/packages/icons/src/components/arrow-down.vue +0 -12
- package/packages/icons/src/components/arrow-left.vue +0 -12
- package/packages/icons/src/components/arrow-right.vue +0 -12
- package/packages/icons/src/components/arrow-up.vue +0 -12
- package/packages/icons/src/components/circle-check.vue +0 -15
- package/packages/icons/src/components/circle-close.vue +0 -15
- package/packages/icons/src/components/close.vue +0 -13
- package/packages/icons/src/components/copy.vue +0 -12
- package/packages/icons/src/components/delete.vue +0 -12
- package/packages/icons/src/components/download.vue +0 -15
- package/packages/icons/src/components/edit.vue +0 -12
- package/packages/icons/src/components/error.vue +0 -12
- package/packages/icons/src/components/export.vue +0 -17
- package/packages/icons/src/components/file.vue +0 -21
- package/packages/icons/src/components/import.vue +0 -19
- package/packages/icons/src/components/index.ts +0 -37
- package/packages/icons/src/components/info.vue +0 -13
- package/packages/icons/src/components/list-process.vue +0 -37
- package/packages/icons/src/components/log.vue +0 -17
- package/packages/icons/src/components/minus.vue +0 -13
- package/packages/icons/src/components/money-bubble.vue +0 -21
- package/packages/icons/src/components/plane.vue +0 -30
- package/packages/icons/src/components/plus.vue +0 -17
- package/packages/icons/src/components/printer.vue +0 -17
- package/packages/icons/src/components/reset.vue +0 -21
- package/packages/icons/src/components/right.vue +0 -21
- package/packages/icons/src/components/search.vue +0 -15
- package/packages/icons/src/components/select.vue +0 -17
- package/packages/icons/src/components/semi-select.vue +0 -17
- package/packages/icons/src/components/setting.vue +0 -25
- package/packages/icons/src/components/stamp.vue +0 -35
- package/packages/icons/src/components/success.vue +0 -13
- package/packages/icons/src/components/tree-triangle.vue +0 -17
- package/packages/icons/src/components/upload.vue +0 -21
- package/packages/icons/src/components/view.vue +0 -15
- package/packages/icons/src/components/warning.vue +0 -13
- package/packages/icons/src/components/zoom-in.vue +0 -27
- package/packages/icons/src/components/zoom-out.vue +0 -27
- package/packages/icons/src/index.ts +0 -9
- package/packages/icons/tsconfig.json +0 -10
- package/packages/icons/vite.config.ts +0 -33
- package/packages/styles/CHANGELOG.md +0 -99
- package/packages/styles/README.md +0 -107
- package/packages/styles/package.json +0 -23
- package/packages/styles/src/action-menu.scss +0 -103
- package/packages/styles/src/arrow-step.scss +0 -138
- package/packages/styles/src/arrow-steps.scss +0 -8
- package/packages/styles/src/batch-copy.scss +0 -40
- package/packages/styles/src/batch-editor.scss +0 -36
- package/packages/styles/src/breadcrumb.scss +0 -29
- package/packages/styles/src/button.scss +0 -127
- package/packages/styles/src/calendar.scss +0 -327
- package/packages/styles/src/card.scss +0 -85
- package/packages/styles/src/cascader.scss +0 -59
- package/packages/styles/src/checkbox.scss +0 -46
- package/packages/styles/src/column-table.scss +0 -13
- package/packages/styles/src/date-picker.scss +0 -547
- package/packages/styles/src/description.scss +0 -38
- package/packages/styles/src/dialog.scss +0 -120
- package/packages/styles/src/drawer.scss +0 -22
- package/packages/styles/src/editor.scss +0 -13
- package/packages/styles/src/empty.scss +0 -12
- package/packages/styles/src/file-task-dialog.scss +0 -13
- package/packages/styles/src/image.scss +0 -6
- package/packages/styles/src/import-dialog.scss +0 -122
- package/packages/styles/src/independent-nav.scss +0 -37
- package/packages/styles/src/index.scss +0 -46
- package/packages/styles/src/input-number.scss +0 -34
- package/packages/styles/src/input.scss +0 -28
- package/packages/styles/src/link.scss +0 -70
- package/packages/styles/src/message.scss +0 -12
- package/packages/styles/src/mixins.scss +0 -60
- package/packages/styles/src/nav.scss +0 -12
- package/packages/styles/src/overrides.scss +0 -25
- package/packages/styles/src/pagination.scss +0 -161
- package/packages/styles/src/popover.scss +0 -4
- package/packages/styles/src/radio.scss +0 -54
- package/packages/styles/src/search-panel.scss +0 -51
- package/packages/styles/src/select.scss +0 -44
- package/packages/styles/src/steps.scss +0 -336
- package/packages/styles/src/switch.scss +0 -35
- package/packages/styles/src/table-grid.scss +0 -37
- package/packages/styles/src/table-head-editor.scss +0 -112
- package/packages/styles/src/table.scss +0 -33
- package/packages/styles/src/tabs.scss +0 -45
- package/packages/styles/src/tag.scss +0 -29
- package/packages/styles/src/theme.scss +0 -101
- package/packages/styles/src/time-picker.scss +0 -225
- package/packages/styles/src/time-select.scss +0 -141
- package/packages/styles/src/tooltip.scss +0 -21
- package/packages/styles/src/tree-select.scss +0 -52
- package/packages/styles/src/tree.scss +0 -8
- package/packages/styles/src/utilities.scss +0 -81
- package/packages/styles/src/variables.scss +0 -56
- package/packages/styles/vite.config.ts +0 -28
- package/pnpm-workspace.yaml +0 -3
- package/tsconfig.json +0 -46
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar.vue.js","sources":["../../../calendar/src/calendar.vue"],"sourcesContent":["<template>\r\n <el-calendar\r\n ref=\"calendarRef\"\r\n class=\"ad-calendar\"\r\n v-model=\"innerValue\"\r\n v-bind=\"calendarAttrs\"\r\n :range=\"props.range\"\r\n @update:model-value=\"handleUpdateModelValue\"\r\n >\r\n <!-- 甘特图模式:使用自定义的 date-cell slot -->\r\n <template\r\n v-if=\"isGanttMode\"\r\n #date-cell=\"{ data: { day, type } }\"\r\n >\r\n <div class=\"gantt-calendar-cell\">\r\n <!-- 日期 start -->\r\n <div\r\n class=\"gantt-calendar-cell-day\"\r\n :class=\"dataClass(type)\"\r\n v-text=\"dayLabel(day)\"\r\n ></div>\r\n <!-- 日期 end -->\r\n\r\n <!-- 甘特图任务 start -->\r\n <div class=\"gantt-calendar-cell-tasks\">\r\n <el-popover\r\n v-for=\"task in ganttTasks(day)\"\r\n trigger=\"click\"\r\n :key=\"task.id\"\r\n :placement=\"popoverPlacement\"\r\n :teleported=\"false\"\r\n @show=\"handlePopoverShow($event, task)\"\r\n @hide=\"handlePopoverHide($event, task)\"\r\n :hide-after=\"0\"\r\n :disabled=\"task.type == 'empty'\"\r\n :popper-style=\"{\r\n padding: 0,\r\n 'border-radius': '6px',\r\n overflow: 'hidden',\r\n width: '220px',\r\n }\"\r\n >\r\n <!-- reference start -->\r\n <template #reference>\r\n <!-- 如果用户提供了 task-item 插槽,则使用自定义插槽 -->\r\n <slot\r\n v-if=\"slots['task-item']\"\r\n name=\"task-item\"\r\n :day=\"day\"\r\n :task=\"task\"\r\n :taskClass=\"taskClass(task)\"\r\n :taskLabel=\"taskLabel(task)\"\r\n :shouldShowTaskName=\"shouldShowTaskName(task)\"\r\n :taskStyle=\"{\r\n width: isExtraTask(task)\r\n ? '100%'\r\n : `calc(100% * ${(task as GanttTask).weekDuration ?? 1})`,\r\n }\"\r\n ></slot>\r\n <!-- 否则使用默认样式 -->\r\n <template v-else>\r\n <!-- +N 数据处理 -->\r\n <div\r\n class=\"gantt-calendar-cell-task is-extra\"\r\n @click.stop=\"handleReferenceClick($event)\"\r\n v-if=\"isExtraTask(task)\"\r\n >\r\n <div\r\n class=\"gantt-calendar-cell-task-name\"\r\n v-text=\"taskLabel(task)\"\r\n ></div>\r\n </div>\r\n\r\n <!-- 单日任务的处理 -->\r\n <div\r\n class=\"gantt-calendar-cell-task is-single\"\r\n @click.stop=\"handleReferenceClick($event)\"\r\n :class=\"{ 'task-ended': task.isEnded, 'task-clicked': task.isClicked }\"\r\n :style=\"{\r\n backgroundColor: task?.bgColor ?? '',\r\n color: task?.brandColor ?? '',\r\n }\"\r\n v-else-if=\"(task as GanttTask).taskNodeFlag === 'single'\"\r\n >\r\n <div\r\n class=\"gantt-calendar-cell-task-name\"\r\n v-text=\"taskLabel(task)\"\r\n ></div>\r\n </div>\r\n\r\n <!-- 跨天任务的head的处理 -->\r\n <div\r\n class=\"gantt-calendar-cell-task is-head\"\r\n @click.stop=\"handleReferenceClick($event)\"\r\n v-else-if=\"(task as GanttTask).taskNodeFlag === 'head'\"\r\n :class=\"{\r\n 'task-ended': task.isEnded,\r\n 'task-clicked': task.isClicked,\r\n 'is-week-head': task.weekSegmentIndex === 1,\r\n }\"\r\n :style=\"{\r\n width: `calc(100% * ${(task as GanttTask).weekDuration ?? 1} + ${(task as GanttTask).weekDuration ?? 1}px - ${task.weekSegmentIndex === 1 ? 6 : 0}px)`,\r\n backgroundColor: task?.bgColor ?? '',\r\n color: task?.brandColor ?? '',\r\n }\"\r\n >\r\n <div\r\n v-if=\"shouldShowTaskName(task)\"\r\n class=\"gantt-calendar-cell-task-name\"\r\n v-text=\"taskLabel(task)\"\r\n ></div>\r\n </div>\r\n\r\n <!-- 跨周任务任其他节点的处理 -->\r\n <div\r\n class=\"gantt-calendar-cell-task\"\r\n @click.stop=\"handleReferenceClick($event)\"\r\n v-else-if=\"\r\n (task as GanttTask).taskNodeFlag === 'middle' ||\r\n (task as GanttTask).taskNodeFlag === 'end'\r\n \"\r\n :class=\"[...taskClass(task), task.isEnded ? 'task-ended' : '']\"\r\n >\r\n <div\r\n class=\"gantt-calendar-cell-task-name\"\r\n v-text=\"task.taskNodeFlag\"\r\n ></div>\r\n </div>\r\n <!-- 占位任务的处理 -->\r\n <div\r\n class=\"gantt-calendar-cell-task is-empty\"\r\n @click.stop=\"handleReferenceClick($event)\"\r\n v-else-if=\"task.type === 'empty'\"\r\n >\r\n <div class=\"gantt-calendar-cell-task-name\"></div>\r\n </div>\r\n <div\r\n class=\"gantt-calendar-cell-task\"\r\n @click.stop=\"handleReferenceClick($event)\"\r\n v-else\r\n :class=\"{ 'task-ended': task.isEnded }\"\r\n >\r\n <div\r\n class=\"gantt-calendar-cell-task-name\"\r\n v-text=\"task.name\"\r\n ></div>\r\n </div>\r\n </template>\r\n </template>\r\n <!-- reference end -->\r\n\r\n <!-- 浮层 start -->\r\n <template #default>\r\n <!-- 如果用户提供了 task-popover 插槽,则使用自定义插槽 -->\r\n <slot\r\n v-if=\"slots['task-popover']\"\r\n name=\"task-popover\"\r\n :day=\"day\"\r\n :task=\"task\"\r\n :isExtraTask=\"isExtraTask(task)\"\r\n :hoverTasks=\"hoverTasks(day, task)\"\r\n ></slot>\r\n <!-- 否则使用默认样式 -->\r\n <div\r\n v-else\r\n class=\"gantt-calendar-cell-task-popover\"\r\n >\r\n <div\r\n class=\"gantt-calendar-cell-task-popover-header\"\r\n :style=\"{ backgroundColor: task?.brandColor ?? '' }\"\r\n ></div>\r\n <div\r\n class=\"gantt-calendar-cell-task-popover-title\"\r\n v-text=\"dayjs(day).format('YYYY/MM/DD')\"\r\n ></div>\r\n <div\r\n v-if=\"isExtraTask(task)\"\r\n class=\"gantt-calendar-cell-task-popover-body\"\r\n >\r\n <div\r\n class=\"gantt-calendar-cell-task-popover-body-group\"\r\n :style=\"{ color: item?.brandColor ?? '' }\"\r\n v-for=\"item in hoverTasks(day, task)\"\r\n :key=\"task.id\"\r\n >\r\n <div\r\n class=\"gantt-calendar-cell-task-popover-body-group-title\"\r\n v-text=\"dayjs(item.startTime).format('HH:mm')\"\r\n ></div>\r\n <div\r\n class=\"gantt-calendar-cell-task-popover-body-group-content\"\r\n v-text=\"item.name\"\r\n ></div>\r\n </div>\r\n </div>\r\n <div\r\n v-else\r\n class=\"gantt-calendar-cell-task-popover-content\"\r\n v-text=\"task.name\"\r\n ></div>\r\n </div>\r\n </template>\r\n <!-- 浮层 end -->\r\n </el-popover>\r\n </div>\r\n <!-- 甘特图任务 end -->\r\n </div>\r\n </template>\r\n\r\n <!-- 默认模式:透传用户自定义的 date-cell slot -->\r\n <template\r\n v-else-if=\"slots['date-cell']\"\r\n #date-cell=\"props\"\r\n >\r\n <slot\r\n name=\"date-cell\"\r\n v-bind=\"props\"\r\n ></slot>\r\n </template>\r\n\r\n <!-- 透传所有其他 Element Plus Calendar 的插槽(如 header 等) -->\r\n <template\r\n v-for=\"name in calendarSlots\"\r\n :key=\"name\"\r\n #[name]=\"slotProps\"\r\n >\r\n <slot\r\n :name=\"name\"\r\n v-bind=\"slotProps || {}\"\r\n ></slot>\r\n </template>\r\n </el-calendar>\r\n</template>\r\n\r\n<script lang=\"ts\" setup>\r\nimport {\r\n computed,\r\n onBeforeUnmount,\r\n onMounted,\r\n nextTick,\r\n ref,\r\n useAttrs,\r\n useSlots,\r\n watch,\r\n} from 'vue';\r\nimport type { MaybeDate, GanttTask, CalendarProps, TaskNodeFlag } from './calendar';\r\nimport type { CalendarDateType } from 'element-plus';\r\nimport { dayjs } from 'element-plus';\r\nimport type { Placement } from '@popperjs/core';\r\n\r\nconst popoverPlacement = ref<Placement>('bottom-start');\r\nconst props = defineProps<CalendarProps>();\r\n\r\n// 定义所有可能的事件,透传 Element Plus Calendar 的所有事件\r\nconst emit = defineEmits<{\r\n (e: 'update:modelValue', value: MaybeDate): void;\r\n // 透传 Element Plus Calendar 的其他事件\r\n [key: string]: (...args: any[]) => void;\r\n}>();\r\n\r\nconst attrs = useAttrs();\r\nconst slots = useSlots();\r\n\r\n// 计算需要透传给 el-calendar 的插槽(排除组件内部使用的插槽)\r\nconst calendarSlots = computed(() => {\r\n const excludedSlots = ['date-cell', 'task-item', 'task-popover'];\r\n const slotNames: string[] = [];\r\n Object.keys(slots).forEach((name) => {\r\n if (!excludedSlots.includes(name)) {\r\n slotNames.push(name);\r\n }\r\n });\r\n return slotNames;\r\n});\r\n\r\n// 过滤掉组件自己的 props,只保留需要透传给 el-calendar 的属性\r\nconst calendarAttrs = computed(() => {\r\n const excludedKeys = ['tasks', 'range'];\r\n const filtered: Record<string, any> = {};\r\n\r\n Object.keys(attrs).forEach((key) => {\r\n // 排除组件自己的 props\r\n if (!excludedKeys.includes(key)) {\r\n filtered[key] = attrs[key];\r\n }\r\n });\r\n\r\n return filtered;\r\n});\r\n\r\n// 处理 modelValue 更新事件\r\nconst handleUpdateModelValue = (value: MaybeDate) => {\r\n innerValue.value = value ?? dayjs().toDate();\r\n emit('update:modelValue', value);\r\n};\r\n\r\n// 默认选中日期,初始取父层 modelValue 或当前时间\r\nconst innerValue = ref<MaybeDate>(props.modelValue ?? dayjs().toDate());\r\nconst calendarRef = ref<any>(null);\r\n\r\nconst TASK_HEIGHT = 20;\r\nconst TASK_GAP = 8;\r\nconst maxDisplay = ref(3);\r\nconst isGanttMode = computed(() => Array.isArray(props.tasks) && props.tasks.length > 0);\r\n\r\nlet resizeObserver: ResizeObserver | null = null;\r\n\r\nconst calcMaxDisplay = () => {\r\n const root = calendarRef.value?.$el as HTMLElement;\r\n const cell = root.querySelector('.el-calendar-day') as HTMLElement;\r\n const availableHeight = cell.clientHeight - 36;\r\n if (!availableHeight || availableHeight <= 0) return;\r\n const rowHeight = TASK_HEIGHT + TASK_GAP;\r\n const display = Math.max(1, Math.floor((availableHeight + TASK_GAP) / rowHeight));\r\n maxDisplay.value = display;\r\n};\r\n\r\nconst handleReferenceClick = (event: MouseEvent) => {\r\n const target = event.currentTarget as HTMLElement | null;\r\n if (target) {\r\n const rect = target.getBoundingClientRect();\r\n const rightSpace = window.innerWidth - rect.left;\r\n\r\n const POPOVER_WIDTH = 220;\r\n const SAFE_PADDING = 24;\r\n\r\n popoverPlacement.value =\r\n rightSpace < POPOVER_WIDTH + SAFE_PADDING ? 'bottom-end' : 'bottom-start';\r\n }\r\n // 不在这里改 isClicked,只算位置\r\n};\r\n\r\nconst handlePopoverShow = (_event: Event, task: GanttTask) => {\r\n // 将所有与当前 task.id 相同的任务标记为已点击\r\n Object.values(normalizedTasks.value).forEach((dayTasks) => {\r\n dayTasks?.forEach((item) => {\r\n if (item.id === task.id) {\r\n item.isClicked = true;\r\n }\r\n });\r\n });\r\n};\r\n\r\nconst handlePopoverHide = (_event: Event, task: GanttTask) => {\r\n // 将所有与当前 task.id 相同的任务还原为未点击\r\n Object.values(normalizedTasks.value).forEach((dayTasks) => {\r\n dayTasks?.forEach((item) => {\r\n if (item.id === task.id) {\r\n item.isClicked = false;\r\n }\r\n });\r\n });\r\n};\r\n// 获取某日需要展示的任务列表(使用 ref,便于后续在任务对象上做响应式修改)\r\nconst normalizedTasks = ref<Record<string, GanttTask[]>>({});\r\n\r\n// 监听父层传入的 v-model,同步到内部\r\nwatch(\r\n () => props.modelValue,\r\n (v: MaybeDate | undefined) => {\r\n if (v !== innerValue.value) innerValue.value = v ?? dayjs().toDate();\r\n },\r\n);\r\n\r\n// 内部变动回推父层 v-model\r\nwatch(innerValue, (v: MaybeDate) => emit('update:modelValue', v));\r\n\r\nconst tryInitGantt = (maxRetry = 10, interval = 300) => {\r\n let count = 0;\r\n const check = () => {\r\n const root = calendarRef.value?.$el as HTMLElement | null;\r\n if (!root) {\r\n if (++count < maxRetry) {\r\n setTimeout(check, interval);\r\n }\r\n return;\r\n }\r\n const cell = root.querySelector('.el-calendar-day') as HTMLElement;\r\n if (!cell) {\r\n if (++count < maxRetry) {\r\n setTimeout(check, interval);\r\n }\r\n return;\r\n }\r\n\r\n calcMaxDisplay();\r\n if (typeof ResizeObserver !== 'undefined') {\r\n resizeObserver = new ResizeObserver(() => calcMaxDisplay());\r\n resizeObserver.observe(root);\r\n }\r\n window.addEventListener('resize', calcMaxDisplay);\r\n };\r\n check();\r\n};\r\n\r\nonMounted(() => {\r\n nextTick(() => {\r\n tryInitGantt();\r\n });\r\n});\r\n\r\nonBeforeUnmount(() => {\r\n if (resizeObserver) {\r\n resizeObserver.disconnect();\r\n resizeObserver = null;\r\n }\r\n window.removeEventListener('resize', calcMaxDisplay);\r\n});\r\n\r\n// 将 yyyy-MM-dd 提取日数字展示\r\nconst dayLabel = (day: string) => {\r\n const d = dayjs(day);\r\n return d.isValid() ? String(d.date()) : day;\r\n};\r\n\r\n// 补齐数组,确保 laneIndex 从 0 开始且中间空车道也能占位(用于跨天对齐)\r\nconst fillArrayFromZero = (arr: GanttTask[]): GanttTask[] => {\r\n if (arr.length === 0) return arr;\r\n\r\n const laneIndexes = arr.map(\r\n (item: GanttTask) => (item as GanttTask & { laneIndex?: number }).laneIndex ?? 0,\r\n );\r\n const maxIndex = Math.max(0, ...laneIndexes);\r\n\r\n const createEmpty = (laneIndex: number): GanttTask =>\r\n ({\r\n id: `__empty_lane_${laneIndex}`,\r\n name: 'empty',\r\n startTime: '',\r\n endTime: '',\r\n type: 'empty',\r\n taskNodeFlag: null,\r\n disabled: true,\r\n laneIndex,\r\n }) as unknown as GanttTask;\r\n\r\n // 按 laneIndex 生成固定槽位,确保中间空车道也会被占位\r\n const laneSlots: GanttTask[] = Array.from({ length: maxIndex + 1 }, (_, i) => createEmpty(i));\r\n arr.forEach((task) => {\r\n const idx = (task as GanttTask & { laneIndex?: number }).laneIndex ?? 0;\r\n if (idx >= 0 && idx < laneSlots.length) {\r\n laneSlots[idx] = task;\r\n } else {\r\n // 极端兜底:laneIndex 异常时直接追加,避免丢任务\r\n laneSlots.push(task);\r\n }\r\n });\r\n\r\n return laneSlots;\r\n};\r\n\r\n// 处理甘特图展示的任务\r\nconst ganttTasks = (day: string): GanttTask[] => {\r\n if (\r\n day &&\r\n Object.prototype.hasOwnProperty.call(normalizedTasks.value, day) &&\r\n normalizedTasks.value[day]\r\n ) {\r\n const curDayTasks = normalizedTasks.value[day] || [];\r\n const filledTasks = fillArrayFromZero(curDayTasks);\r\n const rowCount = filledTasks.length;\r\n if (rowCount > maxDisplay.value) {\r\n const hiddenRealCount = filledTasks\r\n .slice(maxDisplay.value - 1)\r\n .filter((t) => (t as GanttTask).type !== 'empty').length;\r\n\r\n const extraTask: GanttTask = {\r\n id: `extra-${day}`,\r\n name: 'extra',\r\n startTime: '--',\r\n endTime: '--',\r\n isExtra: true,\r\n type: 'extra',\r\n extraCount: hiddenRealCount,\r\n };\r\n return [...filledTasks.slice(0, maxDisplay.value - 1), extraTask] as GanttTask[];\r\n } else {\r\n return filledTasks as GanttTask[];\r\n }\r\n } else {\r\n return [];\r\n }\r\n};\r\n\r\n// 处理鼠标悬浮展示的任务\r\nconst hoverTasks = (day: string, task: GanttTask): GanttTask[] => {\r\n if (isExtraTask(task)) {\r\n if (\r\n day &&\r\n Object.prototype.hasOwnProperty.call(normalizedTasks.value, day) &&\r\n normalizedTasks.value[day]\r\n ) {\r\n return normalizedTasks.value[day];\r\n } else {\r\n return [];\r\n }\r\n } else {\r\n return [task];\r\n }\r\n};\r\n\r\n// 类型守卫:识别额外占位任务\r\nconst isExtraTask = (task: GanttTask): boolean => task.isExtra === true;\r\n\r\n// 任务展示文本,额外任务显示 +N\r\nconst taskLabel = (task: GanttTask) => {\r\n if (isExtraTask(task)) {\r\n return `+${task.extraCount}`;\r\n } else {\r\n if (task.startTime) {\r\n const d = dayjs(task.startTime);\r\n if (d.isValid()) {\r\n return `${d.format('HH:mm:ss')} ${task.name}`;\r\n }\r\n }\r\n return task.name;\r\n }\r\n};\r\n\r\n// 判断是否应该显示任务名称\r\n// head 和 single 显示,middle 和 end 不显示\r\nconst shouldShowTaskName = (task: GanttTask) => {\r\n if (isExtraTask(task)) return true; // 额外任务始终显示\r\n const { taskNodeFlag } = task as GanttTask;\r\n return taskNodeFlag === 'head' || taskNodeFlag === 'single';\r\n};\r\n\r\n// 日期 class\r\nconst dataClass = (type: 'prev-month' | 'next-month' | 'current-month') => {\r\n const classes = [];\r\n if (type === 'prev-month') classes.push('is-prev-month');\r\n if (type === 'next-month') classes.push('is-next-month');\r\n if (type === 'current-month') classes.push('is-current-month');\r\n return classes.join(' ');\r\n};\r\n\r\n// 任务 class,包含类型与区间位置\r\nconst taskClass = (task: GanttTask) => {\r\n const { taskNodeFlag } = task as GanttTask;\r\n const posClass = [];\r\n if (taskNodeFlag === 'head') {\r\n posClass.push('is-head');\r\n } else if (taskNodeFlag === 'middle') {\r\n posClass.push('is-middle');\r\n } else if (taskNodeFlag === 'end') {\r\n posClass.push('is-end');\r\n } else if (taskNodeFlag === 'single') {\r\n posClass.push('is-single');\r\n }\r\n return posClass.filter(Boolean);\r\n};\r\n\r\n// 获取月份的周数据\r\n// @param month - 月份,可以是 Date、dayjs 对象或字符串(如 '2024-12' 或 '2024-12-01')\r\n// @param startOfWeek - 每周开始的天数,0=周日,1=周一,2=周二...,默认1(周一)\r\n// @returns 返回对象,格式如 {week1: ['11-30', '12-01', '12-02', ...], week2: [...]},每周数组长度为7\r\nconst getMonthWeekData = (\r\n month: string | Date | ReturnType<typeof dayjs>,\r\n startOfWeek: number = 1,\r\n): Record<string, string[]> => {\r\n const monthStart = dayjs(month).startOf('month');\r\n const monthEnd = dayjs(month).endOf('month');\r\n\r\n if (!monthStart.isValid()) {\r\n return {};\r\n }\r\n\r\n const result: Record<string, string[]> = {};\r\n\r\n // dayjs中0=周日, 1=周一, ..., 6=周六\r\n const dayjsStartOfWeek = startOfWeek === 0 ? 0 : startOfWeek;\r\n\r\n // 计算月份第一天的周起始日期(可能是上个月的日期)\r\n const firstDayOfWeek = monthStart.day();\r\n let daysToFirstWeekStart = 0;\r\n\r\n if (firstDayOfWeek >= dayjsStartOfWeek) {\r\n daysToFirstWeekStart = firstDayOfWeek - dayjsStartOfWeek;\r\n } else {\r\n daysToFirstWeekStart = 7 - (dayjsStartOfWeek - firstDayOfWeek);\r\n }\r\n const firstWeekStart = monthStart.clone().subtract(daysToFirstWeekStart, 'day');\r\n\r\n // 计算月份最后一天的周结束日期(可能是下个月的日期)\r\n const lastDayOfWeek = monthEnd.day();\r\n\r\n // 计算周结束日(周起始日的前一天)\r\n // 如果 startOfWeek = 1(周一),周结束日是 0(周日)\r\n // 如果 startOfWeek = 0(周日),周结束日是 6(周六)\r\n const weekEndDay = (dayjsStartOfWeek + 6) % 7;\r\n\r\n let daysToLastWeekEnd = 0;\r\n if (lastDayOfWeek <= weekEndDay) {\r\n daysToLastWeekEnd = weekEndDay - lastDayOfWeek;\r\n } else {\r\n daysToLastWeekEnd = 7 - (lastDayOfWeek - weekEndDay);\r\n }\r\n const lastWeekEnd = monthEnd.clone().add(daysToLastWeekEnd, 'day');\r\n\r\n // 按周遍历,确保每周都有7天\r\n let weekStart = firstWeekStart.clone();\r\n let weekIndex = 1;\r\n\r\n while (weekStart.isBefore(lastWeekEnd, 'day') || weekStart.isSame(lastWeekEnd, 'day')) {\r\n const weekKey = `week${weekIndex}`;\r\n result[weekKey] = [];\r\n\r\n // 每周添加7天\r\n for (let i = 0; i < 7; i++) {\r\n const currentDate = weekStart.clone().add(i, 'day');\r\n result[weekKey].push(currentDate.format('MM-DD'));\r\n }\r\n\r\n // 移动到下一周\r\n weekStart = weekStart.add(7, 'day');\r\n weekIndex++;\r\n }\r\n\r\n return result;\r\n};\r\n\r\n// 将平铺任务数组转为按日期的map,便于直接使用\r\nconst toDateMap = (tasks: GanttTask[]): Record<string, GanttTask[]> => {\r\n // 使用当前选中的日期或当前日期来获取月份数据\r\n const currentDate = innerValue.value ? dayjs(innerValue.value) : dayjs();\r\n const monthWeekData = getMonthWeekData(currentDate.format('YYYY-MM'), props.firstDayOfWeek ?? 0);\r\n // 按开始时间排序任务\r\n const sortedTasksByStartTime = [...tasks].sort((a, b) => {\r\n if (!a.startTime || !b.startTime) return 0;\r\n const startA = dayjs(a.startTime);\r\n const startB = dayjs(b.startTime);\r\n if (!startA.isValid() || !startB.isValid()) return 0;\r\n return startA.valueOf() - startB.valueOf();\r\n });\r\n\r\n // 将任务拆分到周维度,并标注交集\r\n const weekTaskMap: Record<\r\n string,\r\n Array<\r\n GanttTask & {\r\n weekStart?: string; // 交集开始时间(包含时分秒)\r\n weekEnd?: string; // 交集结束时间(包含时分秒)\r\n weekDuration?: number; // 周期长度(天数)\r\n weekDailyDates?: string[]; // 每天的日期数组\r\n }\r\n >\r\n > = {};\r\n\r\n // 获取当前月份信息,用于解析周日期\r\n const currentMonth = dayjs(currentDate.format('YYYY-MM'));\r\n const currentYear = currentMonth.year();\r\n\r\n // 辅助函数:将 'MM-DD' 格式转换为完整的日期\r\n // 注意:monthWeekData 只存 MM-DD,需要结合当前月份判断是上个月、当月还是下个月\r\n const parseWeekDate = (dateStr: string): ReturnType<typeof dayjs> => {\r\n const parts = dateStr.split('-');\r\n if (parts.length !== 2) {\r\n return dayjs().startOf('day');\r\n }\r\n const month = Number(parts[0]);\r\n const day = Number(parts[1]);\r\n\r\n if (isNaN(month) || isNaN(day)) {\r\n return dayjs().startOf('day');\r\n }\r\n\r\n // 当前月索引(0-11)\r\n const curMonthIndex = currentMonth.month(); // 0-11\r\n const targetMonthIndex = month - 1; // 0-11\r\n const diff = (targetMonthIndex - curMonthIndex + 12) % 12;\r\n\r\n // diff 含义:\r\n // 0 -> 当月\r\n // 1 -> 下一个月\r\n // 11 -> 上一个月\r\n if (diff === 11) {\r\n // 上一个月(可能跨年,例如:当前是 1 月,上一月是上一年的 12 月)\r\n const prevMonth = currentMonth.subtract(1, 'month');\r\n return dayjs(\r\n `${prevMonth.year()}-${String(month).padStart(2, '0')}-${String(day).padStart(2, '0')}`,\r\n );\r\n } else if (diff === 1) {\r\n // 下一个月(可能跨年,例如:当前是 12 月,下一个月是下一年的 1 月)\r\n const nextMonth = currentMonth.add(1, 'month');\r\n return dayjs(\r\n `${nextMonth.year()}-${String(month).padStart(2, '0')}-${String(day).padStart(2, '0')}`,\r\n );\r\n } else {\r\n // 当月\r\n return dayjs(\r\n `${currentYear}-${String(month).padStart(2, '0')}-${String(day).padStart(2, '0')}`,\r\n );\r\n }\r\n };\r\n\r\n // 遍历每一周\r\n Object.keys(monthWeekData).forEach((weekKey) => {\r\n const weekDays = monthWeekData[weekKey];\r\n if (!weekDays || weekDays.length === 0) return;\r\n\r\n // 获取该周的第一天和最后一天\r\n const firstDayStr = weekDays?.[0];\r\n const lastDayStr = weekDays?.[weekDays.length - 1];\r\n\r\n if (!firstDayStr || !lastDayStr) return;\r\n\r\n const weekStart = parseWeekDate(firstDayStr).startOf('day');\r\n const weekEnd = parseWeekDate(lastDayStr).endOf('day');\r\n\r\n if (!weekStart.isValid() || !weekEnd.isValid()) return;\r\n\r\n // 遍历所有任务,检查是否与该周有交集\r\n sortedTasksByStartTime.forEach((task) => {\r\n if (!task.startTime || !task.endTime) return;\r\n\r\n const taskStart = dayjs(task.startTime).startOf('day');\r\n const taskEnd = dayjs(task.endTime).endOf('day');\r\n\r\n if (!taskStart.isValid() || !taskEnd.isValid()) return;\r\n\r\n // 检查任务周期是否与该周有交集\r\n // 有交集的条件:taskStart <= weekEnd && taskEnd >= weekStart\r\n const isBeforeOrSame = taskStart.isBefore(weekEnd, 'day') || taskStart.isSame(weekEnd, 'day');\r\n const isAfterOrSame = taskEnd.isAfter(weekStart, 'day') || taskEnd.isSame(weekStart, 'day');\r\n if (isBeforeOrSame && isAfterOrSame) {\r\n // 计算交集部分(日期级别)\r\n const intersectionStartDate = taskStart.isAfter(weekStart) ? taskStart : weekStart;\r\n const intersectionEndDate = taskEnd.isBefore(weekEnd) ? taskEnd : weekEnd;\r\n\r\n // 获取任务的时分秒信息\r\n const taskStartDateTime = dayjs(task.startTime);\r\n const taskEndDateTime = dayjs(task.endTime);\r\n\r\n // 构建交集的开始时间(使用任务的时分秒,如果交集开始日期是任务开始日期)\r\n // 否则使用当天的 00:00:00\r\n let intersectionStartDateTime: ReturnType<typeof dayjs>;\r\n if (intersectionStartDate.isSame(taskStart, 'day')) {\r\n // 交集开始日期就是任务开始日期,使用任务的时分秒\r\n intersectionStartDateTime = taskStartDateTime;\r\n } else {\r\n // 交集开始日期是周的开始日期,使用当天的 00:00:00\r\n intersectionStartDateTime = intersectionStartDate.startOf('day');\r\n }\r\n\r\n // 构建交集的结束时间(使用任务的时分秒,如果交集结束日期是任务结束日期)\r\n // 否则使用当天的 23:59:59\r\n let intersectionEndDateTime: ReturnType<typeof dayjs>;\r\n if (intersectionEndDate.isSame(taskEnd, 'day')) {\r\n // 交集结束日期就是任务结束日期,使用任务的时分秒\r\n intersectionEndDateTime = taskEndDateTime;\r\n } else {\r\n // 交集结束日期是周的结束日期,使用当天的 23:59:59\r\n intersectionEndDateTime = intersectionEndDate.endOf('day');\r\n }\r\n\r\n // 计算周期长度(包含首尾的天数)\r\n const duration = intersectionEndDate.diff(intersectionStartDate, 'day') + 1;\r\n\r\n // 生成每天的日期数组\r\n const dailyDates: string[] = [];\r\n let iterDate = intersectionStartDate.startOf('day');\r\n while (\r\n iterDate.isBefore(intersectionEndDate, 'day') ||\r\n iterDate.isSame(intersectionEndDate, 'day')\r\n ) {\r\n dailyDates.push(iterDate.format('YYYY-MM-DD'));\r\n iterDate = iterDate.add(1, 'day');\r\n }\r\n\r\n // 初始化该周的任务数组\r\n if (!weekTaskMap[weekKey]) {\r\n weekTaskMap[weekKey] = [];\r\n }\r\n\r\n // 添加任务,并标注交集信息\r\n weekTaskMap[weekKey].push({\r\n ...task,\r\n weekStart: intersectionStartDateTime.format('YYYY-MM-DD HH:mm:ss'),\r\n weekEnd: intersectionEndDateTime.format('YYYY-MM-DD HH:mm:ss'),\r\n weekDuration: duration,\r\n weekDailyDates: dailyDates,\r\n });\r\n }\r\n });\r\n });\r\n\r\n // 对每周的数据进行排序:先按 weekStart 排序,如果相同则按 weekDuration 排序\r\n Object.keys(weekTaskMap).forEach((weekKey) => {\r\n const weekTasks = weekTaskMap[weekKey];\r\n if (!weekTasks) return;\r\n weekTasks.sort((a, b) => {\r\n // 先按 weekStart 排序\r\n const weekStartA = (a as GanttTask & { weekStart?: string }).weekStart;\r\n const weekStartB = (b as GanttTask & { weekStart?: string }).weekStart;\r\n if (weekStartA && weekStartB) {\r\n const startA = dayjs(weekStartA);\r\n const startB = dayjs(weekStartB);\r\n if (startA.isValid() && startB.isValid()) {\r\n const diff = startA.valueOf() - startB.valueOf();\r\n if (diff !== 0) {\r\n return diff;\r\n }\r\n }\r\n }\r\n\r\n // 如果 weekStart 相同或不存在,按 weekDuration 排序\r\n const durationA = (a as GanttTask & { weekDuration?: number }).weekDuration ?? 0;\r\n const durationB = (b as GanttTask & { weekDuration?: number }).weekDuration ?? 0;\r\n return durationA - durationB;\r\n });\r\n });\r\n\r\n // 为每周的任务分配车道索引\r\n Object.keys(weekTaskMap).forEach((weekKey) => {\r\n const weekTasks = weekTaskMap[weekKey];\r\n if (!weekTasks) return;\r\n const laneMap = new Map<string | number, number>();\r\n // 维护每个车道的最后结束时间\r\n const laneEndTimes: number[] = [];\r\n\r\n // 遍历已排序的任务,分配车道\r\n weekTasks.forEach((task) => {\r\n const taskWithWeek = task as GanttTask & { weekStart?: string; weekEnd?: string };\r\n if (!taskWithWeek.weekStart || !taskWithWeek.weekEnd) return;\r\n\r\n const start = dayjs(taskWithWeek.weekStart);\r\n const end = dayjs(taskWithWeek.weekEnd);\r\n if (!start.isValid() || !end.isValid()) return;\r\n\r\n // 车道分配按“天”粒度,保证同一天内的任务不会复用同一车道(用于日历堆叠展示)\r\n const startTime = start.startOf('day').valueOf();\r\n const endTime = end.endOf('day').valueOf();\r\n\r\n // 找到第一个可用的车道(车道的结束时间 <= 任务开始时间)\r\n let assignedLane = -1;\r\n for (let i = 0; i < laneEndTimes.length; i++) {\r\n const laneEndTime = laneEndTimes[i];\r\n if (laneEndTime !== undefined && laneEndTime <= startTime) {\r\n assignedLane = i;\r\n break;\r\n }\r\n }\r\n\r\n // 如果没有可用车道,创建新车道\r\n if (assignedLane === -1) {\r\n assignedLane = laneEndTimes.length;\r\n laneEndTimes.push(endTime);\r\n } else {\r\n // 更新车道的结束时间\r\n laneEndTimes[assignedLane] = endTime;\r\n }\r\n\r\n laneMap.set(task.id, assignedLane);\r\n });\r\n\r\n // 将车道索引添加到任务中\r\n weekTasks.forEach((task) => {\r\n const laneIndex = laneMap.get(task.id);\r\n if (laneIndex !== undefined) {\r\n task.laneIndex = laneIndex;\r\n }\r\n });\r\n });\r\n\r\n // 为跨周任务打上「第几周」的片段标记(weekSegmentIndex)\r\n const weekKeysSorted = Object.keys(weekTaskMap).sort((a, b) => {\r\n const numA = Number(a.replace('week', '')) || 0;\r\n const numB = Number(b.replace('week', '')) || 0;\r\n return numA - numB;\r\n });\r\n const segmentIndexMap = new Map<string | number, number>();\r\n weekKeysSorted.forEach((weekKey) => {\r\n const weekTasks = weekTaskMap[weekKey];\r\n if (!weekTasks) return;\r\n weekTasks.forEach((task) => {\r\n const prev = segmentIndexMap.get(task.id) ?? 0;\r\n const next = prev + 1;\r\n segmentIndexMap.set(task.id, next);\r\n (task as GanttTask & { weekSegmentIndex?: number }).weekSegmentIndex = next;\r\n });\r\n });\r\n\r\n const dayTaskMap: Record<string, GanttTask[]> = {};\r\n\r\n // 将 weekTaskMap 拆分成按天为维度的数据\r\n Object.keys(weekTaskMap).forEach((weekKey) => {\r\n const weekTasks = weekTaskMap[weekKey];\r\n if (!weekTasks) return;\r\n\r\n weekTasks.forEach((task) => {\r\n // 如果没有 weekDailyDates,跳过\r\n if (!task.weekDailyDates || task.weekDailyDates.length === 0) return;\r\n\r\n const dailyDates = task.weekDailyDates;\r\n const duration = task.weekDuration ?? 1;\r\n\r\n // 遍历该任务的每一天\r\n dailyDates.forEach((dateStr, index) => {\r\n // 判断任务在该天的位置标识\r\n let taskNodeFlag: TaskNodeFlag;\r\n if (duration === 1) {\r\n // 单天任务\r\n taskNodeFlag = 'single';\r\n } else if (index === 0) {\r\n // 第一天:开始\r\n taskNodeFlag = 'head';\r\n } else if (index === dailyDates.length - 1) {\r\n // 最后一天:结束\r\n taskNodeFlag = 'end';\r\n } else {\r\n // 中间天\r\n taskNodeFlag = 'middle';\r\n }\r\n\r\n // 将日期格式转换为 YYYY-MM-DD\r\n // weekDailyDates 中已经是 YYYY-MM-DD 格式,直接使用\r\n const fullDateStr = dateStr;\r\n\r\n // 初始化该日期的任务数组\r\n if (!dayTaskMap[fullDateStr]) {\r\n dayTaskMap[fullDateStr] = [];\r\n }\r\n\r\n // 判断任务是否已结束(比较任务结束日期和当前日期)\r\n const taskEndDate = dayjs(task.endTime).startOf('day');\r\n const today = dayjs().startOf('day');\r\n const isEnded = taskEndDate.isValid() && today.isValid() && taskEndDate.isBefore(today);\r\n\r\n // 添加任务到该日期,包含位置标识、车道索引、结束状态以及跨周标记\r\n dayTaskMap[fullDateStr].push({\r\n ...task,\r\n taskNodeFlag,\r\n laneIndex: task.laneIndex ?? 0,\r\n isEnded,\r\n weekSegmentIndex: (task as GanttTask & { weekSegmentIndex?: number }).weekSegmentIndex,\r\n });\r\n });\r\n });\r\n });\r\n\r\n // 对每个日期的任务按车道索引排序,确保跨天对齐\r\n Object.keys(dayTaskMap).forEach((day) => {\r\n const dayTasks = dayTaskMap[day];\r\n if (!dayTasks) return;\r\n dayTasks.sort((a, b) => {\r\n const laneA = a.laneIndex ?? 0;\r\n const laneB = b.laneIndex ?? 0;\r\n if (laneA !== laneB) {\r\n return laneA - laneB;\r\n }\r\n // 同一车道内,按周期长短排序(周期长的优先)\r\n const durationA = a.weekDuration ?? 0;\r\n const durationB = b.weekDuration ?? 0;\r\n if (durationB !== durationA) {\r\n return durationB - durationA;\r\n }\r\n // 周期相同时按开始时间排序\r\n const weekStartA = (a as GanttTask & { weekStart?: string }).weekStart;\r\n const weekStartB = (b as GanttTask & { weekStart?: string }).weekStart;\r\n if (weekStartA && weekStartB) {\r\n const startA = dayjs(weekStartA);\r\n const startB = dayjs(weekStartB);\r\n if (startA.isValid() && startB.isValid()) {\r\n return startA.valueOf() - startB.valueOf();\r\n }\r\n }\r\n return 0;\r\n });\r\n });\r\n return dayTaskMap;\r\n};\r\n\r\n// 根据当前选中日期和任务列表,更新按日期分组的甘特任务映射\r\nconst updateNormalizedTasks = () => {\r\n const { tasks } = props;\r\n if (tasks && Array.isArray(tasks) && tasks.length > 0) {\r\n normalizedTasks.value = toDateMap(tasks as GanttTask[]);\r\n } else {\r\n normalizedTasks.value = {};\r\n }\r\n};\r\n\r\nwatch(\r\n () => props.tasks,\r\n () => {\r\n // 任务列表变化时,重新生成按日期分组的甘特任务映射\r\n updateNormalizedTasks();\r\n },\r\n { immediate: true, deep: true },\r\n);\r\n\r\nwatch(\r\n () => innerValue.value,\r\n () => {\r\n // 当前选中日期(月份)变化时,同步更新甘特任务映射\r\n updateNormalizedTasks();\r\n },\r\n);\r\n\r\nwatch(\r\n () => props.firstDayOfWeek,\r\n (firstDayOfWeek) => {\r\n if (firstDayOfWeek !== undefined) {\r\n (dayjs as any).en.weekStart = firstDayOfWeek;\r\n }\r\n },\r\n { immediate: true, deep: true },\r\n);\r\n\r\nconst selectByType = (type: CalendarDateType) => {\r\n calendarRef.value?.selectDate(type);\r\n return innerValue.value;\r\n};\r\n\r\n// 对外暴露\r\ndefineExpose({\r\n selectByType,\r\n});\r\n</script>\r\n"],"names":["TASK_HEIGHT","TASK_GAP","popoverPlacement","ref","props","__props","emit","__emit","attrs","useAttrs","slots","useSlots","calendarSlots","computed","excludedSlots","slotNames","name","calendarAttrs","excludedKeys","filtered","key","handleUpdateModelValue","value","innerValue","dayjs","calendarRef","maxDisplay","isGanttMode","resizeObserver","calcMaxDisplay","availableHeight","_a","rowHeight","display","handleReferenceClick","event","target","rect","rightSpace","POPOVER_WIDTH","SAFE_PADDING","handlePopoverShow","_event","task","normalizedTasks","dayTasks","item","handlePopoverHide","watch","v","tryInitGantt","maxRetry","interval","count","check","root","onMounted","nextTick","onBeforeUnmount","dayLabel","day","d","fillArrayFromZero","arr","laneIndexes","maxIndex","createEmpty","laneIndex","laneSlots","_","i","idx","ganttTasks","curDayTasks","filledTasks","hiddenRealCount","extraTask","hoverTasks","isExtraTask","taskLabel","shouldShowTaskName","taskNodeFlag","dataClass","type","classes","taskClass","posClass","getMonthWeekData","month","startOfWeek","monthStart","monthEnd","result","dayjsStartOfWeek","firstDayOfWeek","daysToFirstWeekStart","firstWeekStart","lastDayOfWeek","weekEndDay","daysToLastWeekEnd","lastWeekEnd","weekStart","weekIndex","weekKey","currentDate","toDateMap","tasks","monthWeekData","sortedTasksByStartTime","a","b","startA","startB","weekTaskMap","currentMonth","currentYear","parseWeekDate","dateStr","parts","curMonthIndex","diff","prevMonth","nextMonth","weekDays","firstDayStr","lastDayStr","weekEnd","taskStart","taskEnd","isBeforeOrSame","isAfterOrSame","intersectionStartDate","intersectionEndDate","taskStartDateTime","taskEndDateTime","intersectionStartDateTime","intersectionEndDateTime","duration","dailyDates","iterDate","weekTasks","weekStartA","weekStartB","durationA","durationB","laneMap","laneEndTimes","taskWithWeek","start","end","startTime","endTime","assignedLane","laneEndTime","weekKeysSorted","numA","numB","segmentIndexMap","next","dayTaskMap","index","fullDateStr","taskEndDate","today","isEnded","laneA","laneB","updateNormalizedTasks","__expose","_openBlock","_createBlock","_component_el_calendar","_mergeProps","$event","_createElementVNode","_hoisted_1","_normalizeClass","_toDisplayString","_hoisted_3","_createElementBlock","_Fragment","_renderList","_component_el_popover","_unref","_renderSlot","_ctx","_cache","_withModifiers","_normalizeStyle","_hoisted_9","_hoisted_11","_withCtx","slotProps","_normalizeProps","_guardReactiveProps"],"mappings":";;;;;;;;qEA4SMA,KAAc,IACdC,KAAW;;;;;;;;;;AAnDjB,UAAMC,KAAmBC,EAAe,cAAc,GAChDC,IAAQC,IAGRC,KAAOC,IAMPC,KAAQC,GAAA,GACRC,IAAQC,GAAA,GAGRC,KAAgBC,EAAS,MAAM;AACnC,YAAMC,IAAgB,CAAC,aAAa,aAAa,cAAc,GACzDC,IAAsB,CAAA;AAC5B,oBAAO,KAAKL,CAAK,EAAE,QAAQ,CAACM,MAAS;AACnC,QAAKF,EAAc,SAASE,CAAI,KAC9BD,EAAU,KAAKC,C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;;;;;;YAalB4I,EAAA7K,CAAA,EAAK,WAAA;gBACf;AAAA,UAED,IAAAqL,EAAA,CAFY3L,MAAK;AAAA,YAEjBoL,EAGQC,6BADErL,CAAK,CAAA,CAAA;AAAA,UAAA;;;QAMAiL,EAAAzK,GAAA,QAARI;;UAIP,IAAA+K,EAAA,CAFSC,MAAS;AAAA,YAElBR,EAGQC,EAAA,QAFCzK,GAAIiL,GAAAC,GACHF,KAAS,CAAA,CAAA,CAAA,CAAA;AAAA,UAAA;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar.vue2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/card/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../card/index.ts"],"sourcesContent":["import Card from './src/card.vue';\r\nimport Title from './src/title.vue';\r\n\r\nexport const AdCard = Card;\r\nexport const AdTitle = Title;\r\n\r\nexport * from './src/card';\r\nexport * from './src/title';\r\n"],"names":["AdCard","Card","AdTitle","Title"],"mappings":";;AAGO,MAAMA,IAASC,GACTC,IAAUC;"}
|
package/card/src/card.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
const e = {
|
|
2
|
+
// 大小
|
|
3
|
+
size: {
|
|
4
|
+
type: String,
|
|
5
|
+
default: "default"
|
|
6
|
+
// small(padding:20px 24px)和default(padding:24px),默认default
|
|
7
|
+
},
|
|
8
|
+
// 副标题样式
|
|
9
|
+
sub: {
|
|
10
|
+
type: Boolean,
|
|
11
|
+
default: !1
|
|
12
|
+
},
|
|
13
|
+
// 面板标题
|
|
14
|
+
title: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: ""
|
|
17
|
+
},
|
|
18
|
+
// 是否可折叠
|
|
19
|
+
collapsible: {
|
|
20
|
+
type: Boolean,
|
|
21
|
+
default: !1
|
|
22
|
+
},
|
|
23
|
+
// 默认是否展开
|
|
24
|
+
defaultExpanded: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
default: !0
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
export {
|
|
30
|
+
e as cardProps
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=card.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card.js","sources":["../../../card/src/card.ts"],"sourcesContent":["export const cardProps = {\r\n // 大小\r\n size: {\r\n type: String,\r\n default: 'default', // small(padding:20px 24px)和default(padding:24px),默认default\r\n },\r\n // 副标题样式\r\n sub: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n // 面板标题\r\n title: {\r\n type: String,\r\n default: '',\r\n },\r\n // 是否可折叠\r\n collapsible: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n // 默认是否展开\r\n defaultExpanded: {\r\n type: Boolean,\r\n default: true,\r\n },\r\n};\r\n\r\nexport type CardProps = typeof cardProps;\r\n"],"names":["cardProps"],"mappings":"AAAO,MAAMA,IAAY;AAAA;AAAA,EAEvB,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA;AAAA,EAAA;AAAA;AAAA,EAGX,KAAK;AAAA,IACH,MAAM;AAAA,IACN,SAAS;AAAA,EAAA;AAAA;AAAA,EAGX,OAAO;AAAA,IACL,MAAM;AAAA,IACN,SAAS;AAAA,EAAA;AAAA;AAAA,EAGX,aAAa;AAAA,IACX,MAAM;AAAA,IACN,SAAS;AAAA,EAAA;AAAA;AAAA,EAGX,iBAAiB;AAAA,IACf,MAAM;AAAA,IACN,SAAS;AAAA,EAAA;AAEb;"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { defineComponent as z, ref as r, watch as C, nextTick as c, onMounted as H, onUnmounted as _, resolveComponent as E, openBlock as d, createElementBlock as u, normalizeClass as h, createElementVNode as n, renderSlot as v, createCommentVNode as x, createTextVNode as g, toDisplayString as $, withModifiers as N, createVNode as R, normalizeStyle as V } from "vue";
|
|
2
|
+
import { cardProps as S } from "./card.js";
|
|
3
|
+
import { useLocale as T } from "element-plus";
|
|
4
|
+
const A = { class: "ad-panel-title flex" }, B = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "ad-panel-prologue"
|
|
7
|
+
}, P = /* @__PURE__ */ z({
|
|
8
|
+
__name: "card",
|
|
9
|
+
props: S,
|
|
10
|
+
setup(b) {
|
|
11
|
+
const { t: k } = T(), p = (e) => k(`ad.searchPanel.${e}`), f = b, l = r(f.defaultExpanded), a = r(), o = r("1000px"), t = r(null), m = () => {
|
|
12
|
+
l.value = !l.value;
|
|
13
|
+
}, w = () => {
|
|
14
|
+
var e;
|
|
15
|
+
l.value && (o.value = `${(e = a.value) == null ? void 0 : e.scrollHeight}px`);
|
|
16
|
+
}, y = () => {
|
|
17
|
+
f.collapsible && m();
|
|
18
|
+
};
|
|
19
|
+
return C(l, (e) => {
|
|
20
|
+
var i;
|
|
21
|
+
e ? c(() => {
|
|
22
|
+
var s;
|
|
23
|
+
o.value = `${(s = a.value) == null ? void 0 : s.scrollHeight}px`;
|
|
24
|
+
}) : (o.value = `${(i = a.value) == null ? void 0 : i.scrollHeight}px`, c(() => {
|
|
25
|
+
o.value = "0px";
|
|
26
|
+
}));
|
|
27
|
+
}), H(() => {
|
|
28
|
+
c(() => {
|
|
29
|
+
var e;
|
|
30
|
+
l.value && (o.value = `${(e = a.value) == null ? void 0 : e.scrollHeight}px`), t.value = new ResizeObserver(w), t.value.observe(a.value);
|
|
31
|
+
});
|
|
32
|
+
}), _(() => {
|
|
33
|
+
t.value && a.value && t.value.unobserve(a.value);
|
|
34
|
+
}), (e, i) => {
|
|
35
|
+
const s = E("ad-icon");
|
|
36
|
+
return d(), u("div", {
|
|
37
|
+
class: h(`ad-card-panel ad-card-panel-${e.size}`)
|
|
38
|
+
}, [
|
|
39
|
+
n("div", {
|
|
40
|
+
class: "ad-panel-header flex justify-between",
|
|
41
|
+
onClick: y
|
|
42
|
+
}, [
|
|
43
|
+
n("div", null, [
|
|
44
|
+
v(e.$slots, "title", {}, () => [
|
|
45
|
+
n("div", A, [
|
|
46
|
+
e.sub ? (d(), u("div", B)) : x("", !0),
|
|
47
|
+
g(" " + $(e.title), 1)
|
|
48
|
+
])
|
|
49
|
+
])
|
|
50
|
+
]),
|
|
51
|
+
n("div", null, [
|
|
52
|
+
v(e.$slots, "extra", {}, () => [
|
|
53
|
+
e.collapsible ? (d(), u("div", {
|
|
54
|
+
key: 0,
|
|
55
|
+
class: "ad-panel-extra flex",
|
|
56
|
+
onClick: N(m, ["stop"])
|
|
57
|
+
}, [
|
|
58
|
+
g($(l.value ? p("收起") : p("展开")) + " ", 1),
|
|
59
|
+
R(s, {
|
|
60
|
+
class: "ad-panel-extra-icon",
|
|
61
|
+
icon: l.value ? "ArrowUp" : "ArrowDown",
|
|
62
|
+
size: "14",
|
|
63
|
+
color: "#71777E"
|
|
64
|
+
}, null, 8, ["icon"])
|
|
65
|
+
])) : x("", !0)
|
|
66
|
+
])
|
|
67
|
+
])
|
|
68
|
+
]),
|
|
69
|
+
n("div", {
|
|
70
|
+
class: h(`${e.collapsible ? "ad-panel-content " : ""} overflow-hidden`),
|
|
71
|
+
style: V({ maxHeight: l.value ? o.value : "0px" })
|
|
72
|
+
}, [
|
|
73
|
+
n("div", {
|
|
74
|
+
ref_key: "contentRef",
|
|
75
|
+
ref: a,
|
|
76
|
+
class: "overflow-hidden"
|
|
77
|
+
}, [
|
|
78
|
+
v(e.$slots, "default")
|
|
79
|
+
], 512)
|
|
80
|
+
], 6)
|
|
81
|
+
], 2);
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
export {
|
|
86
|
+
P as default
|
|
87
|
+
};
|
|
88
|
+
//# sourceMappingURL=card.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card.vue.js","sources":["../../../card/src/card.vue"],"sourcesContent":["<template>\r\n <div :class=\"`ad-card-panel ad-card-panel-${size}`\">\r\n <div\r\n class=\"ad-panel-header flex justify-between\"\r\n @click=\"handleHeaderClick\"\r\n >\r\n <div>\r\n <slot name=\"title\">\r\n <div class=\"ad-panel-title flex\">\r\n <div\r\n v-if=\"sub\"\r\n class=\"ad-panel-prologue\"\r\n ></div>\r\n {{ title }}\r\n </div>\r\n </slot>\r\n </div>\r\n\r\n <div>\r\n <slot name=\"extra\">\r\n <div\r\n v-if=\"collapsible\"\r\n class=\"ad-panel-extra flex\"\r\n @click.stop=\"toggleExpand\"\r\n >\r\n {{ expanded ? t('收起') : t('展开') }}\r\n <ad-icon\r\n class=\"ad-panel-extra-icon\"\r\n :icon=\"expanded ? 'ArrowUp' : 'ArrowDown'\"\r\n size=\"14\"\r\n color=\"#71777E\"\r\n />\r\n </div>\r\n </slot>\r\n </div>\r\n </div>\r\n <div\r\n :class=\"`${collapsible ? 'ad-panel-content ' : ''} overflow-hidden`\"\r\n :style=\"{ maxHeight: expanded ? contentHeight : '0px' }\"\r\n >\r\n <div\r\n ref=\"contentRef\"\r\n class=\"overflow-hidden\"\r\n >\r\n <slot></slot>\r\n </div>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script lang=\"ts\" setup>\r\nimport { ref, watch, onMounted, nextTick, onUnmounted } from 'vue';\r\nimport { cardProps } from './card';\r\nimport { useLocale } from 'element-plus';\r\nconst { t: oriT } = useLocale();\r\nconst t = (key: string) => oriT(`ad.searchPanel.${key}`);\r\n\r\nconst props = defineProps(cardProps);\r\n\r\nconst expanded = ref(props.defaultExpanded);\r\nconst contentRef = ref();\r\nconst contentHeight = ref('1000px'); // 设置默认最高高度,省略初始动画\r\n\r\nconst resizeObserver = ref<ResizeObserver | null>(null);\r\n\r\nconst toggleExpand = () => {\r\n expanded.value = !expanded.value;\r\n};\r\n\r\nconst handleResize = () => {\r\n if (expanded.value) contentHeight.value = `${contentRef.value?.scrollHeight}px`;\r\n};\r\n\r\nconst handleHeaderClick = () => {\r\n if (props.collapsible) {\r\n toggleExpand();\r\n }\r\n};\r\n\r\nwatch(expanded, (newVal) => {\r\n if (newVal) {\r\n nextTick(() => {\r\n contentHeight.value = `${contentRef.value?.scrollHeight}px`;\r\n });\r\n } else {\r\n contentHeight.value = `${contentRef.value?.scrollHeight}px`;\r\n nextTick(() => {\r\n contentHeight.value = '0px';\r\n });\r\n }\r\n});\r\n\r\nonMounted(() => {\r\n nextTick(() => {\r\n if (expanded.value) contentHeight.value = `${contentRef.value?.scrollHeight}px`;\r\n resizeObserver.value = new ResizeObserver(handleResize);\r\n resizeObserver.value.observe(contentRef.value);\r\n });\r\n});\r\n\r\nonUnmounted(() => {\r\n if (resizeObserver.value && contentRef.value) {\r\n resizeObserver.value.unobserve(contentRef.value);\r\n }\r\n});\r\n</script>\r\n"],"names":["oriT","useLocale","t","key","props","__props","expanded","ref","contentRef","contentHeight","resizeObserver","toggleExpand","handleResize","_a","handleHeaderClick","watch","newVal","nextTick","onMounted","onUnmounted","_createElementBlock","size","_createElementVNode","_renderSlot","_ctx","_hoisted_1","sub","_openBlock","_hoisted_2","_createTextVNode","title","collapsible","_toDisplayString","_createVNode","_component_ad_icon","_normalizeStyle"],"mappings":";;;;;;;;;;AAsDA,UAAM,EAAE,GAAGA,EAAA,IAASC,EAAA,GACdC,IAAI,CAACC,MAAgBH,EAAK,kBAAkBG,CAAG,EAAE,GAEjDC,IAAQC,GAERC,IAAWC,EAAIH,EAAM,eAAe,GACpCI,IAAaD,EAAA,GACbE,IAAgBF,EAAI,QAAQ,GAE5BG,IAAiBH,EAA2B,IAAI,GAEhDI,IAAe,MAAM;AACzB,MAAAL,EAAS,QAAQ,CAACA,EAAS;AAAA,IAC7B,GAEMM,IAAe,MAAM;;AACzB,MAAIN,EAAS,UAAOG,EAAc,QAAQ,IAAGI,IAAAL,EAAW,UAAX,gBAAAK,EAAkB,YAAY;AAAA,IAC7E,GAEMC,IAAoB,MAAM;AAC9B,MAAIV,EAAM,eACRO,EAAA;AAAA,IAEJ;AAEA,WAAAI,EAAMT,GAAU,CAACU,MAAW;;AAC1B,MAAIA,IACFC,EA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+B,EAKEC,GAAA;AAAA,kBAJA,OAAM;AAAA,kBACL,MAAM5B,EAAA,QAAQ,YAAA;AAAA,kBACf,MAAK;AAAA,kBACL,OAAM;AAAA,gBAAA;;;;;QAMhBgB,EAUM,OAAA;AAAA,UATH,YAAUS,EAAAA,cAAW,sBAAA,EAAA,kBAAA;AAAA,UACrB,OAAKI,EAAA,EAAA,WAAe7B,EAAA,QAAWG,EAAA,QAAa,MAAA,CAAA;AAAA,QAAA;UAE7Ca,EAKM,OAAA;AAAA,qBAJA;AAAA,YAAJ,KAAId;AAAA,YACJ,OAAM;AAAA,UAAA;YAENe,EAAaC,EAAA,QAAA,SAAA;AAAA,UAAA;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card.vue2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"title.js","sources":["../../../card/src/title.ts"],"sourcesContent":["export const titleProps = {\r\n sub: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n};\r\n\r\nexport type titleProps = typeof titleProps;\r\n"],"names":["titleProps"],"mappings":"AAAO,MAAMA,IAAa;AAAA,EACxB,KAAK;AAAA,IACH,MAAM;AAAA,IACN,SAAS;AAAA,EAAA;AAEb;"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { defineComponent as n, openBlock as e, createElementBlock as t, createCommentVNode as c, createElementVNode as d, renderSlot as r } from "vue";
|
|
2
|
+
import { titleProps as a } from "./title.js";
|
|
3
|
+
const i = { class: "ad-title-module" }, m = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "ad-title-module-block"
|
|
6
|
+
}, p = { class: "ad-title-module-content" }, h = /* @__PURE__ */ n({
|
|
7
|
+
__name: "title",
|
|
8
|
+
props: a,
|
|
9
|
+
setup(o) {
|
|
10
|
+
const s = o;
|
|
11
|
+
return (l, _) => (e(), t("div", i, [
|
|
12
|
+
s.sub ? (e(), t("div", m)) : c("", !0),
|
|
13
|
+
d("div", p, [
|
|
14
|
+
r(l.$slots, "default")
|
|
15
|
+
])
|
|
16
|
+
]));
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
export {
|
|
20
|
+
h as default
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=title.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"title.vue.js","sources":["../../../card/src/title.vue"],"sourcesContent":["<template>\r\n <div class=\"ad-title-module\">\r\n <div\r\n v-if=\"props.sub\"\r\n class=\"ad-title-module-block\"\r\n ></div>\r\n <div class=\"ad-title-module-content\"><slot></slot></div>\r\n </div>\r\n</template>\r\n\r\n<script lang=\"ts\" setup>\r\nimport { titleProps } from './title';\r\nconst props = defineProps(titleProps);\r\n</script>\r\n"],"names":["props","__props","_openBlock","_createElementBlock","_hoisted_1","_hoisted_2","_createElementVNode","_hoisted_3","_renderSlot","_ctx"],"mappings":";;;;;;;;;AAYA,UAAMA,IAAQC;sBAXZC,EAAA,GAAAC,EAMM,OANNC,GAMM;AAAA,MAJIJ,EAAM,OADdE,EAAA,GAAAC,EAGO,OAHPE,CAGO;MACPC,EAAwD,OAAxDC,GAAwD;AAAA,QAAnBC,EAAaC,EAAA,QAAA,SAAA;AAAA,MAAA;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"title.vue2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../carousel/index.ts"],"sourcesContent":["import Carousel from './src/carousel.vue';\r\n\r\nexport const AdCarousel = Carousel;\r\n\r\nexport * from './src/carousel';\r\n"],"names":["AdCarousel","Carousel"],"mappings":";AAEO,MAAMA,IAAaC;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"carousel.js","sources":["../../../carousel/src/carousel.ts"],"sourcesContent":["export const carouselProps = {\r\n /**\r\n * @description 名字\r\n */\r\n name: String,\r\n};\r\n\r\nexport type CarouselProps = typeof carouselProps;\r\n"],"names":["carouselProps"],"mappings":"AAAO,MAAMA,IAAgB;AAAA;AAAA;AAAA;AAAA,EAI3B,MAAM;AACR;"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { defineComponent as r, ref as s, onMounted as c, openBlock as i, createElementBlock as a, toDisplayString as o } from "vue";
|
|
2
|
+
import { carouselProps as l } from "./carousel.js";
|
|
3
|
+
const _ = /* @__PURE__ */ r({
|
|
4
|
+
__name: "carousel",
|
|
5
|
+
props: l,
|
|
6
|
+
setup(p) {
|
|
7
|
+
const e = s(100);
|
|
8
|
+
function n() {
|
|
9
|
+
e.value++;
|
|
10
|
+
}
|
|
11
|
+
return c(() => {
|
|
12
|
+
console.log(`The initial count is ${e.value}.`);
|
|
13
|
+
}), (t, u) => (i(), a("button", { onClick: n }, o(t.name) + "'s happiness index is " + o(e.value), 1));
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
export {
|
|
17
|
+
_ as default
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=carousel.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"carousel.vue.js","sources":["../../../carousel/src/carousel.vue"],"sourcesContent":["<template>\r\n <button @click=\"increment\">{{ name }}'s happiness index is {{ count }}</button>\r\n</template>\r\n\r\n<script lang=\"ts\" setup>\r\nimport { onMounted, ref } from 'vue';\r\nimport { carouselProps } from './carousel';\r\n\r\ndefineProps(carouselProps);\r\n\r\nconst count = ref(100);\r\n\r\nfunction increment() {\r\n count.value++;\r\n}\r\n\r\nonMounted(() => {\r\n console.log(`The initial count is ${count.value}.`);\r\n});\r\n</script>\r\n"],"names":["count","ref","increment","onMounted","_createElementBlock","name","_toDisplayString"],"mappings":";;;;;;AAUA,UAAMA,IAAQC,EAAI,GAAG;AAErB,aAASC,IAAY;AACnB,MAAAF,EAAM;AAAA,IACR;AAEA,WAAAG,EAAU,MAAM;AACd,cAAQ,IAAI,wBAAwBH,EAAM,KAAK,GAAG;AAAA,IACpD,CAAC,mBAjBCI,EAA+E,UAAA,EAAtE,SAAOF,OAAcG,EAAAA,IAAI,IAAG,2BAAsBC,EAAGN,EAAA,KAAK,GAAA,CAAA;AAAA;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"carousel.vue2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../cascader/index.ts"],"sourcesContent":["import Cascader from './src/cascader.vue';\r\n\r\nexport const AdCascader = Cascader;\r\n\r\nexport * from './src/cascader';\r\n"],"names":["AdCascader","Cascader"],"mappings":";;AAEO,MAAMA,IAAaC;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cascader.js","sources":["../../../cascader/src/cascader.ts"],"sourcesContent":["import { ElCascader } from 'element-plus';\r\nimport { CascaderProps as ElCascaderProps } from 'element-plus/es/components/cascader-panel/src/node';\r\nimport { ExtractPropTypes } from 'vue';\r\n\r\nexport const cascaderProps = {\r\n // 继承所有 el-cascader 的 props\r\n ...(ElCascader.props || {}),\r\n};\r\n\r\nexport type CascaderProps = ExtractPropTypes<typeof cascaderProps> & ElCascaderProps;\r\n"],"names":["cascaderProps","ElCascader"],"mappings":";AAIO,MAAMA,IAAgB;AAAA;AAAA,EAE3B,GAAIC,EAAW,SAAS,CAAA;AAC1B;"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { defineComponent as d, useAttrs as f, computed as o, openBlock as C, createBlock as m, unref as _, mergeProps as P, createSlots as y, renderList as A, withCtx as g, renderSlot as v, normalizeProps as $, guardReactiveProps as h } from "vue";
|
|
2
|
+
import { ElCascader as k } from "element-plus";
|
|
3
|
+
import { cascaderProps as w } from "./cascader.js";
|
|
4
|
+
const j = /* @__PURE__ */ d({
|
|
5
|
+
__name: "cascader",
|
|
6
|
+
props: w,
|
|
7
|
+
setup(c) {
|
|
8
|
+
const p = c, e = f(), l = o(() => {
|
|
9
|
+
const r = ["ad-cascader"], s = e.class;
|
|
10
|
+
if (s) {
|
|
11
|
+
if (typeof s == "string")
|
|
12
|
+
return [...r, s];
|
|
13
|
+
if (Array.isArray(s))
|
|
14
|
+
return [...r, ...s];
|
|
15
|
+
if (typeof s == "object")
|
|
16
|
+
return [...r, s];
|
|
17
|
+
}
|
|
18
|
+
return r;
|
|
19
|
+
}), u = o(() => {
|
|
20
|
+
const r = "ad-cascader-dropdown", s = p.popperClass || e.popperClass;
|
|
21
|
+
return s && typeof s == "string" ? `${s} ${r}` : r;
|
|
22
|
+
}), i = o(() => {
|
|
23
|
+
const { class: r, popperClass: s, ...n } = e, { popperClass: t, ...a } = p;
|
|
24
|
+
return { ...a, ...n };
|
|
25
|
+
});
|
|
26
|
+
return (r, s) => (C(), m(_(k), P({
|
|
27
|
+
class: l.value,
|
|
28
|
+
"popper-class": u.value
|
|
29
|
+
}, i.value), y({ _: 2 }, [
|
|
30
|
+
A(r.$slots, (n, t) => ({
|
|
31
|
+
name: t,
|
|
32
|
+
fn: g((a) => [
|
|
33
|
+
v(r.$slots, t, $(h(a)))
|
|
34
|
+
])
|
|
35
|
+
}))
|
|
36
|
+
]), 1040, ["class", "popper-class"]));
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
export {
|
|
40
|
+
j as default
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=cascader.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cascader.vue.js","sources":["../../../cascader/src/cascader.vue"],"sourcesContent":["<template>\r\n <el-cascader\r\n :class=\"cascaderClass\"\r\n :popper-class=\"popperClass\"\r\n v-bind=\"cascaderAttrs\"\r\n >\r\n <template\r\n v-for=\"(_, slotName) in $slots\"\r\n #[slotName]=\"slotProps\"\r\n >\r\n <slot\r\n :name=\"slotName\"\r\n v-bind=\"slotProps\"\r\n />\r\n </template>\r\n </el-cascader>\r\n</template>\r\n\r\n<script lang=\"ts\" setup>\r\nimport { computed, useAttrs } from 'vue';\r\nimport { ElCascader } from 'element-plus';\r\nimport { cascaderProps } from './cascader';\r\n\r\nconst props = defineProps(cascaderProps);\r\nconst attrs = useAttrs();\r\n\r\n// 合并内部 class 和用户传入的 class(从 attrs 中获取)\r\nconst cascaderClass = computed(() => {\r\n const internalClass = ['ad-cascader'];\r\n const userClass = attrs.class;\r\n\r\n if (userClass) {\r\n if (typeof userClass === 'string') {\r\n return [...internalClass, userClass];\r\n }\r\n if (Array.isArray(userClass)) {\r\n return [...internalClass, ...userClass];\r\n }\r\n if (typeof userClass === 'object') {\r\n return [...internalClass, userClass];\r\n }\r\n }\r\n\r\n return internalClass;\r\n});\r\n\r\n// 合并 popper-class\r\nconst popperClass = computed(() => {\r\n const internalClass = 'ad-cascader-dropdown';\r\n const userPopperClass = props.popperClass || (attrs.popperClass as string | undefined);\r\n\r\n if (userPopperClass && typeof userPopperClass === 'string') {\r\n return `${userPopperClass} ${internalClass}`;\r\n }\r\n\r\n return internalClass;\r\n});\r\n\r\n// 合并 props 和 attrs(排除 class 和 popperClass)\r\nconst cascaderAttrs = computed(() => {\r\n const { class: _, popperClass: __, ...restAttrs } = attrs;\r\n const { popperClass: ___, ...restProps } = props;\r\n return { ...restProps, ...restAttrs };\r\n});\r\n</script>\r\n"],"names":["props","__props","attrs","useAttrs","cascaderClass","computed","internalClass","userClass","popperClass","userPopperClass","cascaderAttrs","_","__","restAttrs","___","restProps","_openBlock","_createBlock","_unref","_mergeProps","_createSlots","$slots","slotName","_withCtx","slotProps","_renderSlot","_ctx","_normalizeProps","_guardReactiveProps"],"mappings":";;;;;;;AAuBA,UAAMA,IAAQC,GACRC,IAAQC,EAAA,GAGRC,IAAgBC,EAAS,MAAM;AACnC,YAAMC,IAAgB,CAAC,aAAa,GAC9BC,IAAYL,EAAM;AAExB,UAAIK,GAAW;AACb,YAAI,OAAOA,KAAc;AACvB,iBAAO,CAAC,GAAGD,GAAeC,CAAS;AAErC,YAAI,MAAM,QAAQA,CAAS;AACzB,iBAAO,CAAC,GAAGD,GAAe,GAAGC,CAAS;AAExC,YAAI,OAAOA,KAAc;AACvB,iBAAO,CAAC,GAAGD,GAAeC,CAAS;AAAA,MAEvC;AAEA,aAAOD;AAAA,IACT,CAAC,GAGKE,IAAcH,EAAS,MAAM;AACjC,YAAMC,IAAgB,wBAChBG,IAAkBT,EAAM,eAAgBE,EAAM;AAEpD,aAAIO,KAAmB,OAAOA,KAAoB,WACzC,GAAGA,CAAe,IAAIH,CAAa,KAGrCA;AAAA,IACT,CAAC,GAGKI,IAAgBL,EAAS,MAAM;AACnC,YAAM,EAAE,OAAOM,GAAG,aAAaC,GAAI,GAAGC,MAAcX,GAC9C,EAAE,aAAaY,GAAK,GAAGC,MAAcf;AAC3C,aAAO,EAAE,GAAGe,GAAW,GAAGF,EAAA;AAAA,IAC5B,CAAC;sBA9DCG,KAAAC,EAccC,MAddC,EAcc;AAAA,MAbX,OAAOf,EAAA;AAAA,MACP,gBAAcI,EAAA;AAAA,IAAA,GACPE,EAAA,KAAa,GAAAU,EAAA,EAAA,GAAA,KAAA;AAAA,QAGKC,EAAAA,QAAM,CAAtBV,GAAGW;cACVA;AAAA,QAED,IAAAC,EAAA,CAFaC,MAAS;AAAA,UAEtBC,EAGEC,EAAA,QAFOJ,GAAQK,EAAAC,EACPJ,CAAS,CAAA,CAAA;AAAA,QAAA;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cascader.vue2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ElCheckboxButton as o, ElCheckboxGroup as c } from "element-plus";
|
|
2
|
+
import t from "./src/checkbox.vue.js";
|
|
3
|
+
import { checkboxProps as m } from "./src/checkbox.js";
|
|
4
|
+
const x = t, p = c, b = o;
|
|
5
|
+
export {
|
|
6
|
+
x as AdCheckbox,
|
|
7
|
+
b as AdCheckboxButton,
|
|
8
|
+
p as AdCheckboxGroup,
|
|
9
|
+
m as checkboxProps
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../checkbox/index.ts"],"sourcesContent":["import {\r\n // ElCheckbox as Checkbox,\r\n ElCheckboxGroup as CheckboxGroup,\r\n ElCheckboxButton as CheckboxButton,\r\n} from 'element-plus';\r\n\r\nimport Checkbox from './src/checkbox.vue';\r\n\r\nexport const AdCheckbox = Checkbox;\r\nexport const AdCheckboxGroup = CheckboxGroup;\r\nexport const AdCheckboxButton = CheckboxButton;\r\n\r\nexport * from './src/checkbox';\r\n"],"names":["AdCheckbox","Checkbox","AdCheckboxGroup","CheckboxGroup","AdCheckboxButton","CheckboxButton"],"mappings":";;;AAQO,MAAMA,IAAaC,GACbC,IAAkBC,GAClBC,IAAmBC;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkbox.js","sources":["../../../checkbox/src/checkbox.ts"],"sourcesContent":["import { ElCheckbox } from 'element-plus';\r\nimport { CheckboxProps as ElCheckboxProps } from 'element-plus';\r\nimport { ExtractPropTypes } from 'vue';\r\n\r\nexport const checkboxProps = {\r\n // 继承所有 el-checkbox 的 props\r\n ...(ElCheckbox.props || {}),\r\n};\r\n\r\nexport type CheckboxProps = ExtractPropTypes<typeof checkboxProps> & ElCheckboxProps;\r\n"],"names":["checkboxProps","ElCheckbox"],"mappings":";AAIO,MAAMA,IAAgB;AAAA;AAAA,EAE3B,GAAIC,EAAW,SAAS,CAAA;AAC1B;"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { defineComponent as m, useAttrs as k, computed as c, openBlock as a, createBlock as n, unref as l, mergeProps as u, withCtx as d, renderSlot as h } from "vue";
|
|
2
|
+
import { ElCheckbox as f } from "element-plus";
|
|
3
|
+
import { checkboxProps as b } from "./checkbox.js";
|
|
4
|
+
const _ = /* @__PURE__ */ m({
|
|
5
|
+
__name: "checkbox",
|
|
6
|
+
props: b,
|
|
7
|
+
setup(p) {
|
|
8
|
+
const i = p, t = k(), r = c(() => {
|
|
9
|
+
const s = ["ad-checkbox"], e = t.class;
|
|
10
|
+
if (e) {
|
|
11
|
+
if (typeof e == "string")
|
|
12
|
+
return [...s, e];
|
|
13
|
+
if (Array.isArray(e))
|
|
14
|
+
return [...s, ...e];
|
|
15
|
+
if (typeof e == "object")
|
|
16
|
+
return [...s, e];
|
|
17
|
+
}
|
|
18
|
+
return s;
|
|
19
|
+
}), o = c(() => {
|
|
20
|
+
const { class: s, ...e } = t;
|
|
21
|
+
return { ...i, ...e };
|
|
22
|
+
});
|
|
23
|
+
return (s, e) => s.$slots.default ? (a(), n(l(f), u({
|
|
24
|
+
key: 0,
|
|
25
|
+
class: r.value
|
|
26
|
+
}, o.value), {
|
|
27
|
+
default: d(() => [
|
|
28
|
+
h(s.$slots, "default")
|
|
29
|
+
]),
|
|
30
|
+
_: 3
|
|
31
|
+
}, 16, ["class"])) : (a(), n(l(f), u({
|
|
32
|
+
key: 1,
|
|
33
|
+
class: r.value
|
|
34
|
+
}, o.value), null, 16, ["class"]));
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
export {
|
|
38
|
+
_ as default
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=checkbox.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkbox.vue.js","sources":["../../../checkbox/src/checkbox.vue"],"sourcesContent":["<template>\r\n <el-checkbox\r\n v-if=\"$slots.default\"\r\n :class=\"checkboxClass\"\r\n v-bind=\"checkboxAttrs\"\r\n >\r\n <slot />\r\n </el-checkbox>\r\n <el-checkbox\r\n v-else\r\n :class=\"checkboxClass\"\r\n v-bind=\"checkboxAttrs\"\r\n />\r\n</template>\r\n\r\n<script lang=\"ts\" setup>\r\nimport { ElCheckbox } from 'element-plus';\r\nimport { computed, useAttrs } from 'vue';\r\nimport { checkboxProps } from './checkbox';\r\n\r\nconst props = defineProps(checkboxProps);\r\nconst attrs = useAttrs();\r\n\r\n// 合并内部 class 和用户传入的 class(从 attrs 中获取)\r\nconst checkboxClass = computed(() => {\r\n const internalClass = ['ad-checkbox'];\r\n const userClass = attrs.class;\r\n\r\n if (userClass) {\r\n if (typeof userClass === 'string') {\r\n return [...internalClass, userClass];\r\n }\r\n if (Array.isArray(userClass)) {\r\n return [...internalClass, ...userClass];\r\n }\r\n if (typeof userClass === 'object') {\r\n return [...internalClass, userClass];\r\n }\r\n }\r\n\r\n return internalClass;\r\n});\r\n\r\n// 合并 props 和 attrs(排除 class)\r\nconst checkboxAttrs = computed(() => {\r\n const { class: _, ...restAttrs } = attrs;\r\n return { ...props, ...restAttrs };\r\n});\r\n</script>\r\n"],"names":["props","__props","attrs","useAttrs","checkboxClass","computed","internalClass","userClass","checkboxAttrs","_","restAttrs","$slots","_openBlock","_createBlock","_unref","_mergeProps","_renderSlot","_ctx"],"mappings":";;;;;;;AAoBA,UAAMA,IAAQC,GACRC,IAAQC,EAAA,GAGRC,IAAgBC,EAAS,MAAM;AACnC,YAAMC,IAAgB,CAAC,aAAa,GAC9BC,IAAYL,EAAM;AAExB,UAAIK,GAAW;AACb,YAAI,OAAOA,KAAc;AACvB,iBAAO,CAAC,GAAGD,GAAeC,CAAS;AAErC,YAAI,MAAM,QAAQA,CAAS;AACzB,iBAAO,CAAC,GAAGD,GAAe,GAAGC,CAAS;AAExC,YAAI,OAAOA,KAAc;AACvB,iBAAO,CAAC,GAAGD,GAAeC,CAAS;AAAA,MAEvC;AAEA,aAAOD;AAAA,IACT,CAAC,GAGKE,IAAgBH,EAAS,MAAM;AACnC,YAAM,EAAE,OAAOI,GAAG,GAAGC,MAAcR;AACnC,aAAO,EAAE,GAAGF,GAAO,GAAGU,EAAA;AAAA,IACxB,CAAC;qBA7CSC,EAAAA,OAAO,WADfC,EAAA,GAAAC,EAMcC,MANdC,EAMc;AAAA;MAJX,OAAOX,EAAA;AAAA,IAAA,GACAI,EAAA,KAAa,GAAA;AAAA,iBAErB,MAAQ;AAAA,QAARQ,EAAQC,EAAA,QAAA,SAAA;AAAA,MAAA;;0BAEVL,KAAAC,EAIEC,MAJFC,EAIE;AAAA;MAFC,OAAOX,EAAA;AAAA,IAAA,GACAI,EAAA,KAAa,GAAA,MAAA,IAAA,CAAA,OAAA,CAAA;AAAA;;"}
|