@tongfun/ui 0.0.1-alpha.2 → 0.0.1-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +116 -0
- package/dist/index.js +139842 -0
- package/dist/lowcode-agent/icons.d.ts +11 -0
- package/dist/lowcode-agent/icons.js +134 -0
- package/{packages/ui/lowcode-agent/index.ts → dist/lowcode-agent/index.d.ts} +1 -2
- package/dist/lowcode-agent/index.js +37008 -0
- package/dist/style.css +1 -0
- package/package.json +91 -85
- package/.claude/settings.local.json +0 -7
- package/.hermes/plans/datapicker-object-mode.md +0 -57
- package/.hermes/plans/design-spec-fusion-5175-v2.md +0 -146
- package/.hermes/plans/design-spec-fusion-5175.md +0 -88
- package/.hermes/plans/file-upload-chip-redesign.md +0 -66
- package/.hermes/plans/form-image-upload-modelvalue-fix.md +0 -38
- package/.hermes/plans/form-layout-responsive-span-plan.md +0 -137
- package/.hermes/plans/global-audit-report.md +0 -728
- package/.hermes/plans/global-audit-report.v1.md +0 -604
- package/.hermes/plans/global-audit-report.v3.md +0 -777
- package/.hermes/plans/image-file-erp-redesign.md +0 -173
- package/.hermes/plans/location-picker-baidu-modal.md +0 -173
- package/.hermes/plans/new-document-3b-color-componentization-plan.md +0 -155
- package/.hermes/plans/new-document-form-layout-rebuild-plan.md +0 -150
- package/.hermes/plans/new-document-fullwidth-3col-plan.md +0 -177
- package/.hermes/plans/picker-quick-options-range-mode.md +0 -143
- package/.hermes/plans/region-picker-mock-contract.md +0 -202
- package/.hermes/plans/zero-div-component-contracts.md +0 -466
- package/components.json +0 -19
- package/docs/DEVELOPMENT.md +0 -315
- package/docs/PRD.md +0 -170
- package/docs/ai-api-layering.md +0 -141
- package/docs/anchor-component-plan.md +0 -165
- package/docs/components-analysis.md +0 -2911
- package/docs/demo-scan-report.md +0 -142
- package/docs/editable-table-research.md +0 -8
- package/docs/form-panorama-plan.md +0 -141
- package/docs/lowcode-agent-component-registry.sample.json +0 -36364
- package/docs/tf-form-table-modification-plan.md +0 -503
- package/docs/token-compliance-audit-report.md +0 -542
- package/env.d.ts +0 -5
- package/eslint.config.js +0 -66
- package/packages/ui/__tests__/package-exports.test.ts +0 -23
- package/packages/ui/components/affix/README.md +0 -78
- package/packages/ui/components/affix/__tests__/affix.test.ts +0 -204
- package/packages/ui/components/affix/index.ts +0 -13
- package/packages/ui/components/affix/src/affix.vue +0 -216
- package/packages/ui/components/affix/src/types.ts +0 -47
- package/packages/ui/components/affix/styles/affix.css +0 -17
- package/packages/ui/components/ai-overlay/README.md +0 -180
- package/packages/ui/components/ai-overlay/__tests__/ai-action-menu.test.ts +0 -133
- package/packages/ui/components/ai-overlay/__tests__/ai-overlay.test.ts +0 -117
- package/packages/ui/components/ai-overlay/index.ts +0 -32
- package/packages/ui/components/ai-overlay/src/ai-action-menu-types.ts +0 -22
- package/packages/ui/components/ai-overlay/src/ai-action-menu.vue +0 -200
- package/packages/ui/components/ai-overlay/src/ai-overlay.vue +0 -329
- package/packages/ui/components/ai-overlay/src/types.ts +0 -84
- package/packages/ui/components/ai-overlay/styles/ai-overlay.css +0 -306
- package/packages/ui/components/ai-state-flow/README.md +0 -111
- package/packages/ui/components/ai-state-flow/__tests__/ai-state-flow.test.ts +0 -69
- package/packages/ui/components/ai-state-flow/ai-state-flow.ts +0 -16
- package/packages/ui/components/ai-state-flow/ai-state-flow.vue +0 -67
- package/packages/ui/components/ai-state-flow/index.ts +0 -24
- package/packages/ui/components/ai-state-flow/styles/ai-state-flow.css +0 -144
- package/packages/ui/components/alert/README.md +0 -83
- package/packages/ui/components/alert/__tests__/alert.test.ts +0 -155
- package/packages/ui/components/alert/index.ts +0 -13
- package/packages/ui/components/alert/src/alert.ts +0 -90
- package/packages/ui/components/alert/src/alert.vue +0 -87
- package/packages/ui/components/alert/styles/alert.css +0 -158
- package/packages/ui/components/anchor/README.md +0 -50
- package/packages/ui/components/anchor/__tests__/anchor.test.ts +0 -284
- package/packages/ui/components/anchor/index.ts +0 -13
- package/packages/ui/components/anchor/src/anchor.vue +0 -94
- package/packages/ui/components/anchor/src/types.ts +0 -55
- package/packages/ui/components/anchor/src/use-anchor.ts +0 -253
- package/packages/ui/components/anchor/styles/anchor.css +0 -90
- package/packages/ui/components/avatar/README.md +0 -118
- package/packages/ui/components/avatar/__tests__/avatar.test.ts +0 -83
- package/packages/ui/components/avatar/index.ts +0 -12
- package/packages/ui/components/avatar/src/avatar.ts +0 -62
- package/packages/ui/components/avatar/src/avatar.vue +0 -106
- package/packages/ui/components/back-top/README.md +0 -63
- package/packages/ui/components/back-top/__tests__/back-top.test.ts +0 -215
- package/packages/ui/components/back-top/index.ts +0 -13
- package/packages/ui/components/back-top/src/back-top.ts +0 -51
- package/packages/ui/components/back-top/src/back-top.vue +0 -104
- package/packages/ui/components/back-top/styles/back-top.css +0 -24
- package/packages/ui/components/badge/README.md +0 -71
- package/packages/ui/components/badge/__tests__/badge.test.ts +0 -142
- package/packages/ui/components/badge/index.ts +0 -13
- package/packages/ui/components/badge/src/badge.ts +0 -64
- package/packages/ui/components/badge/src/badge.vue +0 -76
- package/packages/ui/components/badge/styles/badge.css +0 -45
- package/packages/ui/components/batch-action-button/README.md +0 -68
- package/packages/ui/components/batch-action-button/__tests__/batch-action-button.test.ts +0 -30
- package/packages/ui/components/batch-action-button/index.ts +0 -11
- package/packages/ui/components/batch-action-button/src/batch-action-button.vue +0 -59
- package/packages/ui/components/batch-action-button/src/types.ts +0 -9
- package/packages/ui/components/breadcrumb/README.md +0 -115
- package/packages/ui/components/breadcrumb/__tests__/breadcrumb.test.ts +0 -168
- package/packages/ui/components/breadcrumb/index.ts +0 -13
- package/packages/ui/components/breadcrumb/src/breadcrumb.ts +0 -60
- package/packages/ui/components/breadcrumb/src/breadcrumb.vue +0 -86
- package/packages/ui/components/business/document/action-header/index.ts +0 -14
- package/packages/ui/components/business/document/action-header/src/context.ts +0 -10
- package/packages/ui/components/business/document/action-header/src/document-action-header.vue +0 -296
- package/packages/ui/components/business/document/action-header/src/types.ts +0 -100
- package/packages/ui/components/business/document/ai-toolbar/index.ts +0 -12
- package/packages/ui/components/business/document/ai-toolbar/src/document-ai-toolbar.vue +0 -72
- package/packages/ui/components/business/document/form-page/index.ts +0 -16
- package/packages/ui/components/business/document/form-page/src/composables/use-document-ai-toolbar.ts +0 -37
- package/packages/ui/components/business/document/form-page/src/composables/use-document-layout-mode.ts +0 -24
- package/packages/ui/components/business/document/form-page/src/composables/use-document-recognition.ts +0 -55
- package/packages/ui/components/business/document/form-page/src/composables/use-document-save.ts +0 -243
- package/packages/ui/components/business/document/form-page/src/composables/use-document-sections.ts +0 -234
- package/packages/ui/components/business/document/form-page/src/context.ts +0 -15
- package/packages/ui/components/business/document/form-page/src/document-form-page.vue +0 -251
- package/packages/ui/components/business/document/form-page/src/document-section-card.vue +0 -187
- package/packages/ui/components/business/document/form-page/src/types.ts +0 -245
- package/packages/ui/components/business/document/form-page/styles/document-form-page.css +0 -40
- package/packages/ui/components/business/enum-select/index.ts +0 -18
- package/packages/ui/components/business/enum-select/src/enum-select.vue +0 -171
- package/packages/ui/components/business/enum-select/src/types.ts +0 -33
- package/packages/ui/components/button/README.md +0 -155
- package/packages/ui/components/button/__tests__/button.test.ts +0 -261
- package/packages/ui/components/button/index.ts +0 -14
- package/packages/ui/components/button/src/button.ts +0 -168
- package/packages/ui/components/button/src/button.vue +0 -341
- package/packages/ui/components/button/styles/button.css +0 -149
- package/packages/ui/components/carousel/README.md +0 -48
- package/packages/ui/components/carousel/__tests__/carousel.test.ts +0 -82
- package/packages/ui/components/carousel/index.ts +0 -11
- package/packages/ui/components/carousel/src/carousel.ts +0 -38
- package/packages/ui/components/carousel/src/carousel.vue +0 -101
- package/packages/ui/components/carousel/styles/carousel.css +0 -40
- package/packages/ui/components/chart/README.md +0 -120
- package/packages/ui/components/chart/__tests__/chart.test.ts +0 -86
- package/packages/ui/components/chart/__tests__/simple-charts.test.ts +0 -130
- package/packages/ui/components/chart/index.ts +0 -22
- package/packages/ui/components/chart/src/bar-chart.vue +0 -83
- package/packages/ui/components/chart/src/chart.ts +0 -135
- package/packages/ui/components/chart/src/chart.vue +0 -147
- package/packages/ui/components/chart/src/donut-chart.vue +0 -96
- package/packages/ui/components/chart/src/line-chart.vue +0 -101
- package/packages/ui/components/chart/src/metric-grid.vue +0 -55
- package/packages/ui/components/chart/src/types.ts +0 -91
- package/packages/ui/components/chart/src/utils.ts +0 -68
- package/packages/ui/components/chart/styles/bar-chart.css +0 -134
- package/packages/ui/components/chart/styles/chart.css +0 -48
- package/packages/ui/components/chart/styles/donut-chart.css +0 -114
- package/packages/ui/components/chart/styles/line-chart.css +0 -61
- package/packages/ui/components/chart/styles/metric-grid.css +0 -115
- package/packages/ui/components/code-block/README.md +0 -56
- package/packages/ui/components/code-block/__tests__/code-block.test.ts +0 -166
- package/packages/ui/components/code-block/index.ts +0 -13
- package/packages/ui/components/code-block/src/code-block.vue +0 -216
- package/packages/ui/components/code-block/src/types.ts +0 -31
- package/packages/ui/components/code-block/styles/code-block.css +0 -192
- package/packages/ui/components/data-grid/CellRendererActions.vue +0 -77
- package/packages/ui/components/data-grid/CellRendererButton.vue +0 -51
- package/packages/ui/components/data-grid/CellRendererCsCheckbox.vue +0 -16
- package/packages/ui/components/data-grid/CellRendererCsInput.vue +0 -29
- package/packages/ui/components/data-grid/CellRendererCsSelect.vue +0 -19
- package/packages/ui/components/data-grid/CellRendererInput.vue +0 -120
- package/packages/ui/components/data-grid/CellRendererText.vue +0 -94
- package/packages/ui/components/data-grid/ColumnSettings.vue +0 -40
- package/packages/ui/components/data-grid/ColumnSettingsDialog.vue +0 -367
- package/packages/ui/components/data-grid/DataGrid.vue +0 -850
- package/packages/ui/components/data-grid/DataGridFilter.vue +0 -242
- package/packages/ui/components/data-grid/column-settings-api.ts +0 -62
- package/packages/ui/components/data-grid/index.ts +0 -29
- package/packages/ui/components/data-grid/props.ts +0 -246
- package/packages/ui/components/data-grid/variants.ts +0 -26
- package/packages/ui/components/divider/README.md +0 -84
- package/packages/ui/components/divider/__tests__/divider.test.ts +0 -105
- package/packages/ui/components/divider/index.ts +0 -13
- package/packages/ui/components/divider/src/divider.ts +0 -50
- package/packages/ui/components/divider/src/divider.vue +0 -76
- package/packages/ui/components/divider/styles/divider.css +0 -65
- package/packages/ui/components/drawer/README.md +0 -90
- package/packages/ui/components/drawer/__tests__/drawer.test.ts +0 -218
- package/packages/ui/components/drawer/index.ts +0 -13
- package/packages/ui/components/drawer/src/drawer.ts +0 -88
- package/packages/ui/components/drawer/src/drawer.vue +0 -157
- package/packages/ui/components/drawer/styles/drawer.css +0 -164
- package/packages/ui/components/dropdown/README.md +0 -51
- package/packages/ui/components/dropdown/__tests__/dropdown.test.ts +0 -143
- package/packages/ui/components/dropdown/index.ts +0 -11
- package/packages/ui/components/dropdown/src/dropdown.ts +0 -47
- package/packages/ui/components/dropdown/src/dropdown.vue +0 -75
- package/packages/ui/components/dropdown/styles/dropdown.css +0 -16
- package/packages/ui/components/dropdown-button/README.md +0 -78
- package/packages/ui/components/dropdown-button/__tests__/dropdown-button.test.ts +0 -75
- package/packages/ui/components/dropdown-button/index.ts +0 -11
- package/packages/ui/components/dropdown-button/src/dropdown-button-menu-items.vue +0 -79
- package/packages/ui/components/dropdown-button/src/dropdown-button.vue +0 -152
- package/packages/ui/components/dropdown-button/src/types.ts +0 -98
- package/packages/ui/components/dropdown-button/styles/dropdown-button.css +0 -171
- package/packages/ui/components/empty/README.md +0 -48
- package/packages/ui/components/empty/__tests__/empty.test.ts +0 -37
- package/packages/ui/components/empty/index.ts +0 -13
- package/packages/ui/components/empty/src/empty.vue +0 -73
- package/packages/ui/components/empty/src/types.ts +0 -32
- package/packages/ui/components/empty/styles/empty.css +0 -69
- package/packages/ui/components/error/README.md +0 -44
- package/packages/ui/components/error/__tests__/error.test.ts +0 -34
- package/packages/ui/components/error/index.ts +0 -13
- package/packages/ui/components/error/src/error.vue +0 -65
- package/packages/ui/components/error/src/types.ts +0 -28
- package/packages/ui/components/error/styles/error.css +0 -69
- package/packages/ui/components/filter-button/README.md +0 -68
- package/packages/ui/components/filter-button/__tests__/filter-button.test.ts +0 -30
- package/packages/ui/components/filter-button/index.ts +0 -11
- package/packages/ui/components/filter-button/src/filter-button.vue +0 -59
- package/packages/ui/components/filter-button/src/types.ts +0 -9
- package/packages/ui/components/form/README.md +0 -750
- package/packages/ui/components/form/__tests__/form-ai-registry-integration.test.ts +0 -214
- package/packages/ui/components/form/__tests__/form-field.test.ts +0 -377
- package/packages/ui/components/form/__tests__/form-item-ai-actions.test.ts +0 -299
- package/packages/ui/components/form/__tests__/form-item.test.ts +0 -110
- package/packages/ui/components/form/__tests__/form-wrapper-reject-forward.test.ts +0 -269
- package/packages/ui/components/form/__tests__/form.test.ts +0 -148
- package/packages/ui/components/form/base/cascader/README.md +0 -75
- package/packages/ui/components/form/base/cascader/__tests__/ai-capability.test.ts +0 -507
- package/packages/ui/components/form/base/cascader/__tests__/cascader.test.ts +0 -203
- package/packages/ui/components/form/base/cascader/index.ts +0 -14
- package/packages/ui/components/form/base/cascader/src/cascader.vue +0 -505
- package/packages/ui/components/form/base/cascader/src/types.ts +0 -168
- package/packages/ui/components/form/base/cascader/styles/cascader.css +0 -186
- package/packages/ui/components/form/base/checkbox/README.md +0 -110
- package/packages/ui/components/form/base/checkbox/__tests__/ai-capability.test.ts +0 -465
- package/packages/ui/components/form/base/checkbox/__tests__/checkbox.test.ts +0 -98
- package/packages/ui/components/form/base/checkbox/__tests__/group-integration.test.ts +0 -192
- package/packages/ui/components/form/base/checkbox/index.ts +0 -18
- package/packages/ui/components/form/base/checkbox/src/checkbox-group.vue +0 -311
- package/packages/ui/components/form/base/checkbox/src/checkbox.ts +0 -210
- package/packages/ui/components/form/base/checkbox/src/checkbox.vue +0 -368
- package/packages/ui/components/form/base/checkbox/styles/checkbox.css +0 -24
- package/packages/ui/components/form/base/data-picker/README.md +0 -192
- package/packages/ui/components/form/base/data-picker/__tests__/ai-capability.test.ts +0 -566
- package/packages/ui/components/form/base/data-picker/__tests__/data-picker.test.ts +0 -628
- package/packages/ui/components/form/base/data-picker/index.ts +0 -23
- package/packages/ui/components/form/base/data-picker/src/data-picker.ts +0 -192
- package/packages/ui/components/form/base/data-picker/src/data-picker.vue +0 -1267
- package/packages/ui/components/form/base/data-picker/styles/data-picker.css +0 -174
- package/packages/ui/components/form/base/date-picker/README.md +0 -94
- package/packages/ui/components/form/base/date-picker/__tests__/ai-capability.test.ts +0 -462
- package/packages/ui/components/form/base/date-picker/__tests__/date-picker.test.ts +0 -115
- package/packages/ui/components/form/base/date-picker/index.ts +0 -13
- package/packages/ui/components/form/base/date-picker/src/date-picker.ts +0 -212
- package/packages/ui/components/form/base/date-picker/src/date-picker.vue +0 -871
- package/packages/ui/components/form/base/date-picker/styles/date-picker.css +0 -210
- package/packages/ui/components/form/base/datetime-picker/README.md +0 -197
- package/packages/ui/components/form/base/datetime-picker/__tests__/ai-capability.test.ts +0 -368
- package/packages/ui/components/form/base/datetime-picker/__tests__/datetime-picker.test.ts +0 -445
- package/packages/ui/components/form/base/datetime-picker/index.ts +0 -13
- package/packages/ui/components/form/base/datetime-picker/src/datetime-picker.ts +0 -149
- package/packages/ui/components/form/base/datetime-picker/src/datetime-picker.vue +0 -1158
- package/packages/ui/components/form/base/datetime-picker/styles/datetime-picker.css +0 -570
- package/packages/ui/components/form/base/file-upload/README.md +0 -73
- package/packages/ui/components/form/base/file-upload/__tests__/ai-capability.test.ts +0 -223
- package/packages/ui/components/form/base/file-upload/__tests__/file-upload.spec.ts +0 -199
- package/packages/ui/components/form/base/file-upload/index.ts +0 -11
- package/packages/ui/components/form/base/file-upload/src/file-upload.ts +0 -95
- package/packages/ui/components/form/base/file-upload/src/file-upload.vue +0 -451
- package/packages/ui/components/form/base/file-upload/styles/file-upload.css +0 -57
- package/packages/ui/components/form/base/image-upload/README.md +0 -70
- package/packages/ui/components/form/base/image-upload/__tests__/ai-capability.test.ts +0 -149
- package/packages/ui/components/form/base/image-upload/__tests__/image-upload.spec.ts +0 -282
- package/packages/ui/components/form/base/image-upload/index.ts +0 -11
- package/packages/ui/components/form/base/image-upload/src/image-upload.ts +0 -76
- package/packages/ui/components/form/base/image-upload/src/image-upload.vue +0 -657
- package/packages/ui/components/form/base/index.ts +0 -24
- package/packages/ui/components/form/base/input/README.md +0 -63
- package/packages/ui/components/form/base/input/__tests__/ai-capability.test.ts +0 -143
- package/packages/ui/components/form/base/input/__tests__/input.test.ts +0 -195
- package/packages/ui/components/form/base/input/index.ts +0 -37
- package/packages/ui/components/form/base/input/src/input.ts +0 -104
- package/packages/ui/components/form/base/input/src/input.vue +0 -384
- package/packages/ui/components/form/base/input/styles/input.css +0 -198
- package/packages/ui/components/form/base/location-picker/README.md +0 -92
- package/packages/ui/components/form/base/location-picker/__tests__/ai-capability.test.ts +0 -147
- package/packages/ui/components/form/base/location-picker/__tests__/location-picker.test.ts +0 -161
- package/packages/ui/components/form/base/location-picker/index.ts +0 -13
- package/packages/ui/components/form/base/location-picker/src/location-picker.ts +0 -99
- package/packages/ui/components/form/base/location-picker/src/location-picker.vue +0 -558
- package/packages/ui/components/form/base/radio/README.md +0 -95
- package/packages/ui/components/form/base/radio/__tests__/ai-capability.test.ts +0 -578
- package/packages/ui/components/form/base/radio/__tests__/group-integration.test.ts +0 -191
- package/packages/ui/components/form/base/radio/__tests__/radio.test.ts +0 -64
- package/packages/ui/components/form/base/radio/index.ts +0 -18
- package/packages/ui/components/form/base/radio/src/radio-group.vue +0 -270
- package/packages/ui/components/form/base/radio/src/radio.ts +0 -154
- package/packages/ui/components/form/base/radio/src/radio.vue +0 -141
- package/packages/ui/components/form/base/radio/styles/radio.css +0 -12
- package/packages/ui/components/form/base/region-picker/README.md +0 -166
- package/packages/ui/components/form/base/region-picker/__tests__/ai-capability.test.ts +0 -147
- package/packages/ui/components/form/base/region-picker/__tests__/region-picker.spec.ts +0 -556
- package/packages/ui/components/form/base/region-picker/index.ts +0 -19
- package/packages/ui/components/form/base/region-picker/src/region-picker.ts +0 -333
- package/packages/ui/components/form/base/region-picker/src/region-picker.vue +0 -552
- package/packages/ui/components/form/base/select/README.md +0 -66
- package/packages/ui/components/form/base/select/__tests__/ai-capability.test.ts +0 -463
- package/packages/ui/components/form/base/select/__tests__/select.test.ts +0 -167
- package/packages/ui/components/form/base/select/index.ts +0 -15
- package/packages/ui/components/form/base/select/src/select.ts +0 -173
- package/packages/ui/components/form/base/select/src/select.vue +0 -534
- package/packages/ui/components/form/base/select/styles/select.css +0 -206
- package/packages/ui/components/form/base/signature/README.md +0 -96
- package/packages/ui/components/form/base/signature/__tests__/ai-capability.test.ts +0 -147
- package/packages/ui/components/form/base/signature/__tests__/signature.spec.ts +0 -156
- package/packages/ui/components/form/base/signature/index.ts +0 -14
- package/packages/ui/components/form/base/signature/src/signature.ts +0 -100
- package/packages/ui/components/form/base/signature/src/signature.vue +0 -871
- package/packages/ui/components/form/base/switch/README.md +0 -102
- package/packages/ui/components/form/base/switch/__tests__/ai-capability.test.ts +0 -545
- package/packages/ui/components/form/base/switch/__tests__/switch.test.ts +0 -105
- package/packages/ui/components/form/base/switch/index.ts +0 -12
- package/packages/ui/components/form/base/switch/src/switch.ts +0 -133
- package/packages/ui/components/form/base/switch/src/switch.vue +0 -385
- package/packages/ui/components/form/base/switch/styles/switch.css +0 -35
- package/packages/ui/components/form/base/text-area/README.md +0 -89
- package/packages/ui/components/form/base/text-area/__tests__/ai-capability.test.ts +0 -176
- package/packages/ui/components/form/base/text-area/__tests__/text-area.test.ts +0 -152
- package/packages/ui/components/form/base/text-area/index.ts +0 -37
- package/packages/ui/components/form/base/text-area/src/text-area.ts +0 -137
- package/packages/ui/components/form/base/text-area/src/text-area.vue +0 -405
- package/packages/ui/components/form/base/text-area/styles/text-area.css +0 -137
- package/packages/ui/components/form/base/time-picker/README.md +0 -75
- package/packages/ui/components/form/base/time-picker/__tests__/ai-capability.test.ts +0 -135
- package/packages/ui/components/form/base/time-picker/__tests__/time-picker.test.ts +0 -258
- package/packages/ui/components/form/base/time-picker/index.ts +0 -13
- package/packages/ui/components/form/base/time-picker/src/time-picker.ts +0 -141
- package/packages/ui/components/form/base/time-picker/src/time-picker.vue +0 -844
- package/packages/ui/components/form/base/time-picker/styles/time-picker.css +0 -124
- package/packages/ui/components/form/base/upload/README.md +0 -126
- package/packages/ui/components/form/base/upload/__tests__/ai-capability.test.ts +0 -145
- package/packages/ui/components/form/base/upload/__tests__/upload.spec.ts +0 -288
- package/packages/ui/components/form/base/upload/index.ts +0 -11
- package/packages/ui/components/form/base/upload/src/upload.ts +0 -171
- package/packages/ui/components/form/base/upload/src/upload.vue +0 -890
- package/packages/ui/components/form/base/upload/styles/upload.css +0 -116
- package/packages/ui/components/form/index.ts +0 -138
- package/packages/ui/components/form/items/form-array/README.md +0 -61
- package/packages/ui/components/form/items/form-array/__tests__/form-array.test.ts +0 -122
- package/packages/ui/components/form/items/form-array/index.ts +0 -2
- package/packages/ui/components/form/items/form-array/src/form-array.vue +0 -80
- package/packages/ui/components/form/items/form-array/src/types.ts +0 -27
- package/packages/ui/components/form/items/form-array/styles/form-array.css +0 -99
- package/packages/ui/components/form/items/form-cascader/README.md +0 -132
- package/packages/ui/components/form/items/form-cascader/__tests__/form-cascader.test.ts +0 -99
- package/packages/ui/components/form/items/form-cascader/index.ts +0 -1
- package/packages/ui/components/form/items/form-cascader/src/form-cascader.ts +0 -7
- package/packages/ui/components/form/items/form-cascader/src/form-cascader.vue +0 -15
- package/packages/ui/components/form/items/form-checkbox/README.md +0 -121
- package/packages/ui/components/form/items/form-checkbox/__tests__/form-checkbox.test.ts +0 -93
- package/packages/ui/components/form/items/form-checkbox/index.ts +0 -1
- package/packages/ui/components/form/items/form-checkbox/src/form-checkbox.ts +0 -7
- package/packages/ui/components/form/items/form-checkbox/src/form-checkbox.vue +0 -15
- package/packages/ui/components/form/items/form-data-picker/README.md +0 -111
- package/packages/ui/components/form/items/form-data-picker/__tests__/form-data-picker.test.ts +0 -98
- package/packages/ui/components/form/items/form-data-picker/index.ts +0 -1
- package/packages/ui/components/form/items/form-data-picker/src/form-data-picker.ts +0 -7
- package/packages/ui/components/form/items/form-data-picker/src/form-data-picker.vue +0 -17
- package/packages/ui/components/form/items/form-date-picker/README.md +0 -119
- package/packages/ui/components/form/items/form-date-picker/__tests__/form-date-picker.test.ts +0 -104
- package/packages/ui/components/form/items/form-date-picker/index.ts +0 -1
- package/packages/ui/components/form/items/form-date-picker/src/form-date-picker.ts +0 -7
- package/packages/ui/components/form/items/form-date-picker/src/form-date-picker.vue +0 -17
- package/packages/ui/components/form/items/form-datetime-picker/README.md +0 -112
- package/packages/ui/components/form/items/form-datetime-picker/__tests__/form-datetime-picker.test.ts +0 -105
- package/packages/ui/components/form/items/form-datetime-picker/index.ts +0 -1
- package/packages/ui/components/form/items/form-datetime-picker/src/form-datetime-picker.ts +0 -7
- package/packages/ui/components/form/items/form-datetime-picker/src/form-datetime-picker.vue +0 -17
- package/packages/ui/components/form/items/form-dynamic/README.md +0 -105
- package/packages/ui/components/form/items/form-dynamic/__tests__/form-dynamic.test.ts +0 -172
- package/packages/ui/components/form/items/form-dynamic/index.ts +0 -2
- package/packages/ui/components/form/items/form-dynamic/src/form-dynamic.vue +0 -222
- package/packages/ui/components/form/items/form-dynamic/src/types.ts +0 -63
- package/packages/ui/components/form/items/form-file-upload/README.md +0 -92
- package/packages/ui/components/form/items/form-file-upload/__tests__/form-file-upload.test.ts +0 -99
- package/packages/ui/components/form/items/form-file-upload/index.ts +0 -1
- package/packages/ui/components/form/items/form-file-upload/src/form-file-upload.ts +0 -7
- package/packages/ui/components/form/items/form-file-upload/src/form-file-upload.vue +0 -15
- package/packages/ui/components/form/items/form-group/README.md +0 -57
- package/packages/ui/components/form/items/form-group/__tests__/form-group.test.ts +0 -108
- package/packages/ui/components/form/items/form-group/index.ts +0 -2
- package/packages/ui/components/form/items/form-group/src/form-group.vue +0 -85
- package/packages/ui/components/form/items/form-group/src/types.ts +0 -37
- package/packages/ui/components/form/items/form-group/styles/form-group.css +0 -92
- package/packages/ui/components/form/items/form-image-upload/README.md +0 -92
- package/packages/ui/components/form/items/form-image-upload/__tests__/form-image-upload.test.ts +0 -109
- package/packages/ui/components/form/items/form-image-upload/index.ts +0 -1
- package/packages/ui/components/form/items/form-image-upload/src/form-image-upload.ts +0 -7
- package/packages/ui/components/form/items/form-image-upload/src/form-image-upload.vue +0 -37
- package/packages/ui/components/form/items/form-input/README.md +0 -110
- package/packages/ui/components/form/items/form-input/__tests__/form-input.test.ts +0 -87
- package/packages/ui/components/form/items/form-input/index.ts +0 -1
- package/packages/ui/components/form/items/form-input/src/form-input.ts +0 -7
- package/packages/ui/components/form/items/form-input/src/form-input.vue +0 -15
- package/packages/ui/components/form/items/form-location-picker/README.md +0 -119
- package/packages/ui/components/form/items/form-location-picker/__tests__/form-location-picker.test.ts +0 -98
- package/packages/ui/components/form/items/form-location-picker/index.ts +0 -1
- package/packages/ui/components/form/items/form-location-picker/src/form-location-picker.ts +0 -7
- package/packages/ui/components/form/items/form-location-picker/src/form-location-picker.vue +0 -15
- package/packages/ui/components/form/items/form-radio/README.md +0 -125
- package/packages/ui/components/form/items/form-radio/__tests__/form-radio.test.ts +0 -104
- package/packages/ui/components/form/items/form-radio/index.ts +0 -1
- package/packages/ui/components/form/items/form-radio/src/form-radio.ts +0 -7
- package/packages/ui/components/form/items/form-radio/src/form-radio.vue +0 -15
- package/packages/ui/components/form/items/form-region-picker/README.md +0 -111
- package/packages/ui/components/form/items/form-region-picker/__tests__/form-region-picker.test.ts +0 -95
- package/packages/ui/components/form/items/form-region-picker/index.ts +0 -1
- package/packages/ui/components/form/items/form-region-picker/src/form-region-picker.ts +0 -7
- package/packages/ui/components/form/items/form-region-picker/src/form-region-picker.vue +0 -15
- package/packages/ui/components/form/items/form-select/README.md +0 -117
- package/packages/ui/components/form/items/form-select/__tests__/form-select.test.ts +0 -80
- package/packages/ui/components/form/items/form-select/index.ts +0 -1
- package/packages/ui/components/form/items/form-select/src/form-select.ts +0 -7
- package/packages/ui/components/form/items/form-select/src/form-select.vue +0 -15
- package/packages/ui/components/form/items/form-signature/README.md +0 -89
- package/packages/ui/components/form/items/form-signature/__tests__/form-signature.test.ts +0 -109
- package/packages/ui/components/form/items/form-signature/index.ts +0 -1
- package/packages/ui/components/form/items/form-signature/src/form-signature.ts +0 -7
- package/packages/ui/components/form/items/form-signature/src/form-signature.vue +0 -15
- package/packages/ui/components/form/items/form-slider/README.md +0 -125
- package/packages/ui/components/form/items/form-slider/__tests__/form-slider.test.ts +0 -95
- package/packages/ui/components/form/items/form-slider/index.ts +0 -1
- package/packages/ui/components/form/items/form-slider/src/form-slider.ts +0 -7
- package/packages/ui/components/form/items/form-slider/src/form-slider.vue +0 -15
- package/packages/ui/components/form/items/form-subform/README.md +0 -71
- package/packages/ui/components/form/items/form-subform/__tests__/form-subform.test.ts +0 -116
- package/packages/ui/components/form/items/form-subform/index.ts +0 -2
- package/packages/ui/components/form/items/form-subform/src/form-subform.vue +0 -92
- package/packages/ui/components/form/items/form-subform/src/types.ts +0 -32
- package/packages/ui/components/form/items/form-subform/styles/form-subform.css +0 -127
- package/packages/ui/components/form/items/form-switch/README.md +0 -118
- package/packages/ui/components/form/items/form-switch/__tests__/form-switch.test.ts +0 -88
- package/packages/ui/components/form/items/form-switch/index.ts +0 -1
- package/packages/ui/components/form/items/form-switch/src/form-switch.ts +0 -7
- package/packages/ui/components/form/items/form-switch/src/form-switch.vue +0 -15
- package/packages/ui/components/form/items/form-table/OPTIMIZATION_REPORT.md +0 -205
- package/packages/ui/components/form/items/form-table/README.md +0 -144
- package/packages/ui/components/form/items/form-table/__tests__/form-table.test.ts +0 -373
- package/packages/ui/components/form/items/form-table/index.ts +0 -3
- package/packages/ui/components/form/items/form-table/src/column-filter-popover.vue +0 -149
- package/packages/ui/components/form/items/form-table/src/form-table.vue +0 -1315
- package/packages/ui/components/form/items/form-table/src/types.ts +0 -165
- package/packages/ui/components/form/items/form-table/styles/column-filter-popover.css +0 -138
- package/packages/ui/components/form/items/form-table/styles/form-table.css +0 -393
- package/packages/ui/components/form/items/form-textarea/README.md +0 -123
- package/packages/ui/components/form/items/form-textarea/__tests__/form-textarea.test.ts +0 -93
- package/packages/ui/components/form/items/form-textarea/index.ts +0 -1
- package/packages/ui/components/form/items/form-textarea/src/form-textarea.ts +0 -7
- package/packages/ui/components/form/items/form-textarea/src/form-textarea.vue +0 -15
- package/packages/ui/components/form/items/form-time-picker/README.md +0 -117
- package/packages/ui/components/form/items/form-time-picker/__tests__/form-time-picker.test.ts +0 -105
- package/packages/ui/components/form/items/form-time-picker/index.ts +0 -1
- package/packages/ui/components/form/items/form-time-picker/src/form-time-picker.ts +0 -7
- package/packages/ui/components/form/items/form-time-picker/src/form-time-picker.vue +0 -17
- package/packages/ui/components/form/items/form-upload/README.md +0 -92
- package/packages/ui/components/form/items/form-upload/__tests__/form-upload.test.ts +0 -137
- package/packages/ui/components/form/items/form-upload/index.ts +0 -1
- package/packages/ui/components/form/items/form-upload/src/form-upload.ts +0 -7
- package/packages/ui/components/form/items/form-upload/src/form-upload.vue +0 -15
- package/packages/ui/components/form/shared/types.ts +0 -82
- package/packages/ui/components/form/src/form-field.ts +0 -96
- package/packages/ui/components/form/src/form-field.vue +0 -404
- package/packages/ui/components/form/src/form-item.vue +0 -646
- package/packages/ui/components/form/src/form.ts +0 -11
- package/packages/ui/components/form/src/form.vue +0 -156
- package/packages/ui/components/form/src/types.ts +0 -337
- package/packages/ui/components/form/src/use-form-field.ts +0 -190
- package/packages/ui/components/form/styles/form-ai-actions.css +0 -41
- package/packages/ui/components/form/styles/form-field.css +0 -123
- package/packages/ui/components/form/styles/form-item-ai-status.css +0 -212
- package/packages/ui/components/form/styles/form-item.css +0 -218
- package/packages/ui/components/form/styles/form.css +0 -132
- package/packages/ui/components/form-ai-status/README.md +0 -86
- package/packages/ui/components/form-ai-status/__tests__/form-ai-status.test.ts +0 -183
- package/packages/ui/components/form-ai-status/index.ts +0 -12
- package/packages/ui/components/form-ai-status/src/form-ai-status.vue +0 -254
- package/packages/ui/components/form-ai-status/src/types.ts +0 -36
- package/packages/ui/components/form-ai-status/styles/form-ai-status.css +0 -238
- package/packages/ui/components/form-ai-toolbar/README.md +0 -100
- package/packages/ui/components/form-ai-toolbar/__tests__/form-ai-toolbar.test.ts +0 -344
- package/packages/ui/components/form-ai-toolbar/index.ts +0 -13
- package/packages/ui/components/form-ai-toolbar/src/form-ai-toolbar.vue +0 -598
- package/packages/ui/components/form-ai-toolbar/src/types.ts +0 -130
- package/packages/ui/components/form-ai-toolbar/styles/form-ai-toolbar.css +0 -281
- package/packages/ui/components/icon/README.md +0 -137
- package/packages/ui/components/icon/__tests__/icon.test.ts +0 -125
- package/packages/ui/components/icon/index.ts +0 -13
- package/packages/ui/components/icon/src/icon.ts +0 -67
- package/packages/ui/components/icon/src/icon.vue +0 -69
- package/packages/ui/components/icon/styles/icon.css +0 -41
- package/packages/ui/components/image-preview/README.md +0 -90
- package/packages/ui/components/image-preview/__tests__/image-preview.test.ts +0 -183
- package/packages/ui/components/image-preview/index.ts +0 -13
- package/packages/ui/components/image-preview/src/image-preview.vue +0 -71
- package/packages/ui/components/image-preview/src/index.ts +0 -11
- package/packages/ui/components/image-preview/src/preview-layer.vue +0 -90
- package/packages/ui/components/image-preview/src/types.ts +0 -63
- package/packages/ui/components/image-preview/styles/image-preview.css +0 -39
- package/packages/ui/components/layout/app-bar/README.md +0 -59
- package/packages/ui/components/layout/app-bar/__tests__/app-bar.test.ts +0 -124
- package/packages/ui/components/layout/app-bar/index.ts +0 -13
- package/packages/ui/components/layout/app-bar/src/app-bar.vue +0 -106
- package/packages/ui/components/layout/app-bar/src/types.ts +0 -43
- package/packages/ui/components/layout/app-bar/styles/app-bar.css +0 -175
- package/packages/ui/components/layout/card/README.md +0 -90
- package/packages/ui/components/layout/card/__tests__/card.test.ts +0 -321
- package/packages/ui/components/layout/card/index.ts +0 -13
- package/packages/ui/components/layout/card/src/card.vue +0 -210
- package/packages/ui/components/layout/card/src/types.ts +0 -79
- package/packages/ui/components/layout/card/styles/card.css +0 -334
- package/packages/ui/components/layout/container/README.md +0 -29
- package/packages/ui/components/layout/container/__tests__/container.test.ts +0 -74
- package/packages/ui/components/layout/container/index.ts +0 -13
- package/packages/ui/components/layout/container/src/container.vue +0 -35
- package/packages/ui/components/layout/container/src/types.ts +0 -15
- package/packages/ui/components/layout/container/styles/container.css +0 -50
- package/packages/ui/components/layout/detail-layout/README.md +0 -30
- package/packages/ui/components/layout/detail-layout/__tests__/detail-layout.test.ts +0 -75
- package/packages/ui/components/layout/detail-layout/index.ts +0 -13
- package/packages/ui/components/layout/detail-layout/src/detail-layout.vue +0 -53
- package/packages/ui/components/layout/detail-layout/src/types.ts +0 -22
- package/packages/ui/components/layout/detail-layout/styles/detail-layout.css +0 -71
- package/packages/ui/components/layout/form-layout/README.md +0 -59
- package/packages/ui/components/layout/form-layout/__tests__/form-layout.test.ts +0 -140
- package/packages/ui/components/layout/form-layout/index.ts +0 -13
- package/packages/ui/components/layout/form-layout/src/form-layout.vue +0 -93
- package/packages/ui/components/layout/form-layout/src/types.ts +0 -64
- package/packages/ui/components/layout/form-layout/styles/form-layout.css +0 -98
- package/packages/ui/components/layout/grid/README.md +0 -41
- package/packages/ui/components/layout/grid/__tests__/grid.test.ts +0 -77
- package/packages/ui/components/layout/grid/index.ts +0 -13
- package/packages/ui/components/layout/grid/src/grid.vue +0 -79
- package/packages/ui/components/layout/grid/src/types.ts +0 -44
- package/packages/ui/components/layout/grid/styles/grid.css +0 -46
- package/packages/ui/components/layout/hero/README.md +0 -59
- package/packages/ui/components/layout/hero/__tests__/hero.test.ts +0 -112
- package/packages/ui/components/layout/hero/index.ts +0 -13
- package/packages/ui/components/layout/hero/src/hero.vue +0 -143
- package/packages/ui/components/layout/hero/src/types.ts +0 -44
- package/packages/ui/components/layout/hero/styles/hero.css +0 -129
- package/packages/ui/components/layout/inline/README.md +0 -30
- package/packages/ui/components/layout/inline/__tests__/inline.test.ts +0 -154
- package/packages/ui/components/layout/inline/index.ts +0 -13
- package/packages/ui/components/layout/inline/src/inline.vue +0 -99
- package/packages/ui/components/layout/inline/src/types.ts +0 -23
- package/packages/ui/components/layout/inline/styles/inline.css +0 -150
- package/packages/ui/components/layout/master-detail/README.md +0 -36
- package/packages/ui/components/layout/master-detail/__tests__/master-detail.test.ts +0 -104
- package/packages/ui/components/layout/master-detail/index.ts +0 -13
- package/packages/ui/components/layout/master-detail/src/master-detail.vue +0 -72
- package/packages/ui/components/layout/master-detail/src/types.ts +0 -28
- package/packages/ui/components/layout/master-detail/styles/master-detail.css +0 -82
- package/packages/ui/components/layout/page/README.md +0 -35
- package/packages/ui/components/layout/page/__tests__/page.test.ts +0 -136
- package/packages/ui/components/layout/page/index.ts +0 -13
- package/packages/ui/components/layout/page/src/page.vue +0 -85
- package/packages/ui/components/layout/page/src/types.ts +0 -39
- package/packages/ui/components/layout/page/styles/page.css +0 -177
- package/packages/ui/components/layout/page-header/README.md +0 -39
- package/packages/ui/components/layout/page-header/__tests__/page-header.test.ts +0 -198
- package/packages/ui/components/layout/page-header/index.ts +0 -13
- package/packages/ui/components/layout/page-header/src/page-header.vue +0 -133
- package/packages/ui/components/layout/page-header/src/types.ts +0 -56
- package/packages/ui/components/layout/page-header/styles/page-header.css +0 -155
- package/packages/ui/components/layout/section/README.md +0 -40
- package/packages/ui/components/layout/section/__tests__/section.test.ts +0 -121
- package/packages/ui/components/layout/section/index.ts +0 -13
- package/packages/ui/components/layout/section/src/section.vue +0 -79
- package/packages/ui/components/layout/section/src/types.ts +0 -28
- package/packages/ui/components/layout/section/styles/section.css +0 -103
- package/packages/ui/components/layout/sidebar-layout/README.md +0 -60
- package/packages/ui/components/layout/sidebar-layout/__tests__/sidebar-layout.test.ts +0 -220
- package/packages/ui/components/layout/sidebar-layout/index.ts +0 -13
- package/packages/ui/components/layout/sidebar-layout/src/sidebar-layout.vue +0 -113
- package/packages/ui/components/layout/sidebar-layout/src/types.ts +0 -54
- package/packages/ui/components/layout/sidebar-layout/styles/sidebar-layout.css +0 -211
- package/packages/ui/components/layout/split/README.md +0 -40
- package/packages/ui/components/layout/split/__tests__/split.test.ts +0 -99
- package/packages/ui/components/layout/split/index.ts +0 -13
- package/packages/ui/components/layout/split/src/split.vue +0 -65
- package/packages/ui/components/layout/split/src/types.ts +0 -49
- package/packages/ui/components/layout/split/styles/split.css +0 -40
- package/packages/ui/components/layout/stack/README.md +0 -29
- package/packages/ui/components/layout/stack/__tests__/stack.test.ts +0 -66
- package/packages/ui/components/layout/stack/index.ts +0 -13
- package/packages/ui/components/layout/stack/src/stack.vue +0 -31
- package/packages/ui/components/layout/stack/src/types.ts +0 -14
- package/packages/ui/components/layout/stack/styles/stack.css +0 -61
- package/packages/ui/components/layout/state-container/README.md +0 -45
- package/packages/ui/components/layout/state-container/__tests__/state-container.test.ts +0 -123
- package/packages/ui/components/layout/state-container/index.ts +0 -13
- package/packages/ui/components/layout/state-container/src/state-container.vue +0 -72
- package/packages/ui/components/layout/state-container/src/types.ts +0 -46
- package/packages/ui/components/layout/state-container/styles/state-container.css +0 -71
- package/packages/ui/components/layout/toolbar/README.md +0 -34
- package/packages/ui/components/layout/toolbar/__tests__/toolbar.test.ts +0 -90
- package/packages/ui/components/layout/toolbar/index.ts +0 -13
- package/packages/ui/components/layout/toolbar/src/toolbar.vue +0 -50
- package/packages/ui/components/layout/toolbar/src/types.ts +0 -19
- package/packages/ui/components/layout/toolbar/styles/toolbar.css +0 -80
- package/packages/ui/components/loading/README.md +0 -39
- package/packages/ui/components/loading/__tests__/loading.test.ts +0 -37
- package/packages/ui/components/loading/index.ts +0 -13
- package/packages/ui/components/loading/src/loading.vue +0 -59
- package/packages/ui/components/loading/src/types.ts +0 -27
- package/packages/ui/components/loading/styles/loading.css +0 -59
- package/packages/ui/components/menu/README.md +0 -51
- package/packages/ui/components/menu/__tests__/menu.test.ts +0 -80
- package/packages/ui/components/menu/index.ts +0 -11
- package/packages/ui/components/menu/src/menu.ts +0 -49
- package/packages/ui/components/menu/src/menu.vue +0 -103
- package/packages/ui/components/menu/styles/menu.css +0 -19
- package/packages/ui/components/message/README.md +0 -69
- package/packages/ui/components/message/__tests__/message.test.ts +0 -98
- package/packages/ui/components/message/index.ts +0 -13
- package/packages/ui/components/message/src/message.ts +0 -87
- package/packages/ui/components/message/src/message.vue +0 -88
- package/packages/ui/components/message/styles/message.css +0 -70
- package/packages/ui/components/metric/README.md +0 -63
- package/packages/ui/components/metric/__tests__/metric.test.ts +0 -166
- package/packages/ui/components/metric/index.ts +0 -13
- package/packages/ui/components/metric/src/metric.vue +0 -107
- package/packages/ui/components/metric/src/types.ts +0 -50
- package/packages/ui/components/metric/styles/metric.css +0 -233
- package/packages/ui/components/modal/README.md +0 -91
- package/packages/ui/components/modal/__tests__/modal.test.ts +0 -145
- package/packages/ui/components/modal/index.ts +0 -13
- package/packages/ui/components/modal/src/modal.ts +0 -153
- package/packages/ui/components/modal/src/modal.vue +0 -234
- package/packages/ui/components/modal/styles/modal.css +0 -104
- package/packages/ui/components/more-action-button/README.md +0 -68
- package/packages/ui/components/more-action-button/__tests__/more-action-button.test.ts +0 -30
- package/packages/ui/components/more-action-button/index.ts +0 -11
- package/packages/ui/components/more-action-button/src/more-action-button.vue +0 -59
- package/packages/ui/components/more-action-button/src/types.ts +0 -9
- package/packages/ui/components/navigation/side-nav/README.md +0 -59
- package/packages/ui/components/navigation/side-nav/__tests__/side-nav.test.ts +0 -105
- package/packages/ui/components/navigation/side-nav/index.ts +0 -13
- package/packages/ui/components/navigation/side-nav/src/side-nav.vue +0 -147
- package/packages/ui/components/navigation/side-nav/src/types.ts +0 -50
- package/packages/ui/components/navigation/side-nav/styles/side-nav.css +0 -171
- package/packages/ui/components/notification/README.md +0 -82
- package/packages/ui/components/notification/__tests__/notification.test.ts +0 -150
- package/packages/ui/components/notification/index.ts +0 -30
- package/packages/ui/components/notification/src/notification.vue +0 -114
- package/packages/ui/components/notification/src/types.ts +0 -67
- package/packages/ui/components/notification/src/use-notification.ts +0 -136
- package/packages/ui/components/notification/styles/notification.css +0 -4
- package/packages/ui/components/pagination/README.md +0 -82
- package/packages/ui/components/pagination/__tests__/pagination.test.ts +0 -210
- package/packages/ui/components/pagination/index.ts +0 -13
- package/packages/ui/components/pagination/src/pagination.ts +0 -86
- package/packages/ui/components/pagination/src/pagination.vue +0 -270
- package/packages/ui/components/pagination/styles/pagination.css +0 -143
- package/packages/ui/components/progress/README.md +0 -132
- package/packages/ui/components/progress/__tests__/progress.test.ts +0 -81
- package/packages/ui/components/progress/index.ts +0 -12
- package/packages/ui/components/progress/src/progress.ts +0 -80
- package/packages/ui/components/progress/src/progress.vue +0 -202
- package/packages/ui/components/skeleton/README.md +0 -71
- package/packages/ui/components/skeleton/__tests__/skeleton.test.ts +0 -138
- package/packages/ui/components/skeleton/index.ts +0 -13
- package/packages/ui/components/skeleton/src/skeleton.ts +0 -46
- package/packages/ui/components/skeleton/src/skeleton.vue +0 -67
- package/packages/ui/components/skeleton/styles/skeleton.css +0 -75
- package/packages/ui/components/slider/README.md +0 -87
- package/packages/ui/components/slider/__tests__/ai-capability.test.ts +0 -469
- package/packages/ui/components/slider/__tests__/slider.test.ts +0 -235
- package/packages/ui/components/slider/index.ts +0 -26
- package/packages/ui/components/slider/src/slider.ts +0 -192
- package/packages/ui/components/slider/src/slider.vue +0 -504
- package/packages/ui/components/slider/src/use-slider.ts +0 -399
- package/packages/ui/components/slider/styles/slider.css +0 -344
- package/packages/ui/components/split-button/README.md +0 -71
- package/packages/ui/components/split-button/__tests__/split-button.test.ts +0 -32
- package/packages/ui/components/split-button/index.ts +0 -11
- package/packages/ui/components/split-button/src/split-button.vue +0 -69
- package/packages/ui/components/split-button/src/types.ts +0 -34
- package/packages/ui/components/split-button/styles/split-button.css +0 -15
- package/packages/ui/components/status-dot/README.md +0 -42
- package/packages/ui/components/status-dot/__tests__/status-dot.test.ts +0 -53
- package/packages/ui/components/status-dot/index.ts +0 -13
- package/packages/ui/components/status-dot/src/status-dot.vue +0 -39
- package/packages/ui/components/status-dot/src/types.ts +0 -23
- package/packages/ui/components/status-dot/styles/status-dot.css +0 -65
- package/packages/ui/components/steps/README.md +0 -101
- package/packages/ui/components/steps/__tests__/steps.test.ts +0 -261
- package/packages/ui/components/steps/index.ts +0 -15
- package/packages/ui/components/steps/src/step.vue +0 -99
- package/packages/ui/components/steps/src/steps.ts +0 -93
- package/packages/ui/components/steps/src/steps.vue +0 -143
- package/packages/ui/components/steps/styles/step.css +0 -116
- package/packages/ui/components/steps/styles/steps.css +0 -200
- package/packages/ui/components/table/README.md +0 -81
- package/packages/ui/components/table/__tests__/table.test.ts +0 -162
- package/packages/ui/components/table/index.ts +0 -13
- package/packages/ui/components/table/src/table.ts +0 -195
- package/packages/ui/components/table/src/table.vue +0 -453
- package/packages/ui/components/table/styles/table.css +0 -88
- package/packages/ui/components/tabs/README.md +0 -88
- package/packages/ui/components/tabs/__tests__/tabs.test.ts +0 -161
- package/packages/ui/components/tabs/index.ts +0 -19
- package/packages/ui/components/tabs/src/tab-pane.ts +0 -18
- package/packages/ui/components/tabs/src/tab-pane.vue +0 -11
- package/packages/ui/components/tabs/src/tabs-content.vue +0 -58
- package/packages/ui/components/tabs/src/tabs-list.vue +0 -36
- package/packages/ui/components/tabs/src/tabs-trigger.vue +0 -70
- package/packages/ui/components/tabs/src/tabs.ts +0 -94
- package/packages/ui/components/tabs/src/tabs.vue +0 -101
- package/packages/ui/components/tabs/src/types.ts +0 -126
- package/packages/ui/components/tabs/styles/tabs.css +0 -239
- package/packages/ui/components/tag/README.md +0 -67
- package/packages/ui/components/tag/__tests__/tag.test.ts +0 -222
- package/packages/ui/components/tag/index.ts +0 -13
- package/packages/ui/components/tag/src/tag.ts +0 -87
- package/packages/ui/components/tag/src/tag.vue +0 -163
- package/packages/ui/components/tag/styles/tag.css +0 -47
- package/packages/ui/components/timeline/README.md +0 -80
- package/packages/ui/components/timeline/__tests__/timeline.test.ts +0 -78
- package/packages/ui/components/timeline/index.ts +0 -15
- package/packages/ui/components/timeline/src/timeline-item.vue +0 -38
- package/packages/ui/components/timeline/src/timeline.ts +0 -76
- package/packages/ui/components/timeline/src/timeline.vue +0 -30
- package/packages/ui/components/timeline/styles/timeline-item.css +0 -49
- package/packages/ui/components/timeline/styles/timeline.css +0 -43
- package/packages/ui/components/tooltip/README.md +0 -134
- package/packages/ui/components/tooltip/__tests__/tooltip.test.ts +0 -125
- package/packages/ui/components/tooltip/index.ts +0 -12
- package/packages/ui/components/tooltip/src/tooltip.ts +0 -66
- package/packages/ui/components/tooltip/src/tooltip.vue +0 -189
- package/packages/ui/components/tree/README.md +0 -54
- package/packages/ui/components/tree/__tests__/tree.test.ts +0 -80
- package/packages/ui/components/tree/index.ts +0 -11
- package/packages/ui/components/tree/src/tree.ts +0 -51
- package/packages/ui/components/tree/src/tree.vue +0 -242
- package/packages/ui/components/tree/styles/tree.css +0 -31
- package/packages/ui/components/typography/README.md +0 -120
- package/packages/ui/components/typography/__tests__/typography.test.ts +0 -164
- package/packages/ui/components/typography/index.ts +0 -13
- package/packages/ui/components/typography/src/typography.ts +0 -95
- package/packages/ui/components/typography/src/typography.vue +0 -94
- package/packages/ui/components/typography/styles/typography.css +0 -47
- package/packages/ui/components/upload/README.md +0 -103
- package/packages/ui/components/upload/__tests__/upload.test.ts +0 -181
- package/packages/ui/components/upload/index.ts +0 -11
- package/packages/ui/components/upload/src/upload.ts +0 -92
- package/packages/ui/components/upload/src/upload.vue +0 -382
- package/packages/ui/components/upload/styles/upload.css +0 -283
- package/packages/ui/components/watermark/README.md +0 -94
- package/packages/ui/components/watermark/__tests__/watermark.test.ts +0 -252
- package/packages/ui/components/watermark/index.ts +0 -13
- package/packages/ui/components/watermark/src/index.ts +0 -13
- package/packages/ui/components/watermark/src/types.ts +0 -86
- package/packages/ui/components/watermark/src/use-watermark.ts +0 -132
- package/packages/ui/components/watermark/src/watermark.vue +0 -181
- package/packages/ui/components/watermark/styles/watermark.css +0 -27
- package/packages/ui/index.ts +0 -338
- package/packages/ui/lib/utils.ts +0 -6
- package/packages/ui/lowcode-agent/icons.ts +0 -148
- package/packages/ui/lowcode-agent/registry.json +0 -37004
- package/packages/ui/src/composables/__tests__/use-floating-popup.test.ts +0 -275
- package/packages/ui/src/composables/__tests__/use-form-ai-actions.test.ts +0 -101
- package/packages/ui/src/composables/__tests__/use-form-ai-registry.test.ts +0 -92
- package/packages/ui/src/composables/__tests__/use-form-ai.test.ts +0 -116
- package/packages/ui/src/composables/index.ts +0 -10
- package/packages/ui/src/composables/use-ai-state-machine.ts +0 -142
- package/packages/ui/src/composables/use-floating-popup.ts +0 -237
- package/packages/ui/src/composables/use-form-ai-registry.ts +0 -198
- package/packages/ui/src/composables/use-form-ai.ts +0 -280
- package/packages/ui/src/composables/useLightbox.ts +0 -51
- package/packages/ui/src/request/document.ts +0 -53
- package/packages/ui/src/request/enum.ts +0 -18
- package/packages/ui/src/request/index.ts +0 -4
- package/packages/ui/src/request/request.ts +0 -200
- package/packages/ui/src/request/types.ts +0 -27
- package/packages/ui/src/types/form-ai-registry.ts +0 -70
- package/packages/ui/src/types/form-ai.ts +0 -84
- package/packages/ui/src/utils/date-format.ts +0 -60
- package/packages/ui/styles/design-tokens.css +0 -383
- package/packages/ui/styles/tailwind.css +0 -76
- package/packages/ui/styles/tokens.css +0 -7
- package/playground/index.html +0 -12
- package/playground/postcss.config.cjs +0 -5
- package/playground/src/App.vue +0 -3
- package/playground/src/__tests__/__debug-input.test.ts +0 -29
- package/playground/src/__tests__/button-ai-confirm.test.ts +0 -41
- package/playground/src/__tests__/home-render.test.ts +0 -87
- package/playground/src/__tests__/icon-library.test.ts +0 -107
- package/playground/src/__tests__/input-ai-confirm.test.ts +0 -113
- package/playground/src/__tests__/textarea-ai-button.test.ts +0 -87
- package/playground/src/__tests__/textarea-wordlimit.test.ts +0 -66
- package/playground/src/chart-theme.ts +0 -22
- package/playground/src/components/AiStateFlow.vue +0 -59
- package/playground/src/components/ComponentShowcase.vue +0 -180
- package/playground/src/composables/useAiStateMachine.ts +0 -111
- package/playground/src/data/component-api.ts +0 -187
- package/playground/src/data/component-meta.ts +0 -84
- package/playground/src/layouts/DefaultLayout.vue +0 -318
- package/playground/src/main.ts +0 -18
- package/playground/src/router/index.ts +0 -101
- package/playground/src/views/AffixDemo.vue +0 -133
- package/playground/src/views/AiStateFlowDemo.vue +0 -170
- package/playground/src/views/AlertDemo.vue +0 -554
- package/playground/src/views/AnchorDemo.vue +0 -150
- package/playground/src/views/AppBarDemo.vue +0 -722
- package/playground/src/views/AvatarDemo.vue +0 -266
- package/playground/src/views/BackTopDemo.vue +0 -71
- package/playground/src/views/BadgeDemo.vue +0 -109
- package/playground/src/views/BatchActionButtonDemo.vue +0 -65
- package/playground/src/views/BreadcrumbDemo.vue +0 -248
- package/playground/src/views/ButtonDemo.vue +0 -344
- package/playground/src/views/CardDemo.vue +0 -254
- package/playground/src/views/CarouselDemo.vue +0 -158
- package/playground/src/views/CascaderDemo.vue +0 -425
- package/playground/src/views/ChartDemo.vue +0 -232
- package/playground/src/views/CheckboxDemo.vue +0 -339
- package/playground/src/views/DataGridDemo.vue +0 -518
- package/playground/src/views/DataPickerDemo.vue +0 -240
- package/playground/src/views/DatePickerDemo.vue +0 -292
- package/playground/src/views/DateTimePickerDemo.vue +0 -208
- package/playground/src/views/DesignSpecDemo.vue +0 -1647
- package/playground/src/views/DividerDemo.vue +0 -77
- package/playground/src/views/DocumentActionHeaderDemo.vue +0 -113
- package/playground/src/views/DocumentFormPageDemo.vue +0 -200
- package/playground/src/views/DrawerDemo.vue +0 -166
- package/playground/src/views/DropdownButtonDemo.vue +0 -74
- package/playground/src/views/DropdownDemo.vue +0 -306
- package/playground/src/views/EmptyDemo.vue +0 -104
- package/playground/src/views/ErrorDemo.vue +0 -111
- package/playground/src/views/FileUploadDemo.vue +0 -241
- package/playground/src/views/FilterButtonDemo.vue +0 -65
- package/playground/src/views/FormFieldAiDemo.vue +0 -364
- package/playground/src/views/FormFieldBasicDemo.vue +0 -174
- package/playground/src/views/FormFieldBusinessDemo.vue +0 -245
- package/playground/src/views/FormFieldDemo.vue +0 -178
- package/playground/src/views/FormFieldLayoutDemo.vue +0 -183
- package/playground/src/views/FormFieldValidationDemo.vue +0 -163
- package/playground/src/views/FormItemAiDemo.vue +0 -371
- package/playground/src/views/FormSelectDemo.vue +0 -519
- package/playground/src/views/FormUploadDemo.vue +0 -536
- package/playground/src/views/HeroDemo.vue +0 -836
- package/playground/src/views/Home.vue +0 -213
- package/playground/src/views/IconDemo.vue +0 -186
- package/playground/src/views/IconLibraryView.vue +0 -370
- package/playground/src/views/IconRenderTest.vue +0 -86
- package/playground/src/views/ImagePreviewDemo.vue +0 -368
- package/playground/src/views/ImageUploadDemo.vue +0 -199
- package/playground/src/views/InputDemo.vue +0 -348
- package/playground/src/views/LayoutDemo.vue +0 -946
- package/playground/src/views/LoadingDemo.vue +0 -95
- package/playground/src/views/LocationPickerDemo.vue +0 -218
- package/playground/src/views/MenuDemo.vue +0 -283
- package/playground/src/views/MessageDemo.vue +0 -201
- package/playground/src/views/MetricDemo.vue +0 -535
- package/playground/src/views/ModalDemo.vue +0 -291
- package/playground/src/views/MoreActionButtonDemo.vue +0 -65
- package/playground/src/views/NewDocumentDemo.vue +0 -973
- package/playground/src/views/NotificationDemo.vue +0 -255
- package/playground/src/views/PaginationDemo.vue +0 -292
- package/playground/src/views/ProgressDemo.vue +0 -356
- package/playground/src/views/RadioDemo.vue +0 -414
- package/playground/src/views/RegionPickerDemo.vue +0 -249
- package/playground/src/views/ScalingRulesDemo.vue +0 -333
- package/playground/src/views/SelectDemo.vue +0 -453
- package/playground/src/views/SideNavDemo.vue +0 -769
- package/playground/src/views/SignatureDemo.vue +0 -205
- package/playground/src/views/SkeletonDemo.vue +0 -109
- package/playground/src/views/SliderDemo.vue +0 -312
- package/playground/src/views/SplitButtonDemo.vue +0 -65
- package/playground/src/views/StatusDotDemo.vue +0 -131
- package/playground/src/views/StepsDemo.vue +0 -587
- package/playground/src/views/SwitchDemo.vue +0 -442
- package/playground/src/views/TableDemo.vue +0 -438
- package/playground/src/views/TabsDemo.vue +0 -246
- package/playground/src/views/TagDemo.vue +0 -113
- package/playground/src/views/TextAreaDemo.vue +0 -317
- package/playground/src/views/TimePickerDemo.vue +0 -291
- package/playground/src/views/TimelineDemo.vue +0 -133
- package/playground/src/views/TooltipDemo.vue +0 -102
- package/playground/src/views/TreeDemo.vue +0 -521
- package/playground/src/views/TypographyDemo.vue +0 -175
- package/playground/src/views/UploadDemo.vue +0 -331
- package/playground/src/views/WatermarkDemo.vue +0 -112
- package/playground/src/views/_mocks/new-document.mock.ts +0 -506
- package/playground/src/views/data/form-field-events-table.ts +0 -243
- package/playground/src/views/data/form-field-options.ts +0 -77
- package/playground/src/views/data/form-field-props-table.ts +0 -227
- package/playground/src/views/data/form-field-snippets.ts +0 -149
- package/playground/src/views/data/slider-snippets.ts +0 -100
- package/playground/src/views/inner/FormFieldEventsDoc.vue +0 -147
- package/playground/src/views/inner/FormFieldPropsDoc.vue +0 -138
- package/playground/vite.config.ts +0 -25
- package/pnpm-workspace.yaml +0 -3
- package/postcss.config.cjs +0 -5
- package/scripts/check-design-token-compliance.mjs +0 -223
- package/scripts/generate-package-dts.mjs +0 -105
- package/tsconfig.json +0 -35
- package/tsconfig.node.json +0 -13
- package/vite.config.ts +0 -68
- /package/{packages/ui/lowcode-agent/types.ts → dist/lowcode-agent/types.d.ts} +0 -0
|
@@ -1,836 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
/**
|
|
3
|
-
* HeroDemo — TfHero 全 prop / 全 slot 变体演示
|
|
4
|
-
* --------------------------------------------------
|
|
5
|
-
* 10 个区块:
|
|
6
|
-
* 1. 6 种渐变色彩(ai / brand / success / warning / info / neutral)
|
|
7
|
-
* 2. 3 种尺寸(sm / md / lg)
|
|
8
|
-
* 3. 对齐方式(start / center)
|
|
9
|
-
* 4. 边框模式(bordered true / false)
|
|
10
|
-
* 5. 圆角半径(md / lg / xl / 2xl)
|
|
11
|
-
* 6. 阴影层级(none / sm / md / lg)
|
|
12
|
-
* 7. 最小用法(仅 title + description)
|
|
13
|
-
* 8. 完整插槽(#eyebrow / #actions / #footer)
|
|
14
|
-
* 9. 自定义内容(#default slot)
|
|
15
|
-
* 10. 业务场景(100% 复刻 NewDocumentDemo AI Hero)
|
|
16
|
-
*
|
|
17
|
-
* 约束:0 个 div 标签,0 个 Tailwind 颜色 utility,仅使用 Tf* 组件 + Tailwind 间距 utility。
|
|
18
|
-
*/
|
|
19
|
-
import { ref } from 'vue'
|
|
20
|
-
import {
|
|
21
|
-
Sparkles,
|
|
22
|
-
Rocket,
|
|
23
|
-
Zap,
|
|
24
|
-
Star,
|
|
25
|
-
CheckCircle,
|
|
26
|
-
AlertTriangle,
|
|
27
|
-
Info,
|
|
28
|
-
ArrowRight,
|
|
29
|
-
Play,
|
|
30
|
-
Settings,
|
|
31
|
-
Search,
|
|
32
|
-
ChevronRight,
|
|
33
|
-
Wrench,
|
|
34
|
-
BookOpen,
|
|
35
|
-
Heart,
|
|
36
|
-
Shield,
|
|
37
|
-
BarChart3,
|
|
38
|
-
Users,
|
|
39
|
-
FileText,
|
|
40
|
-
TrendingUp
|
|
41
|
-
} from 'lucide-vue-next'
|
|
42
|
-
import {
|
|
43
|
-
TfPage,
|
|
44
|
-
TfStack,
|
|
45
|
-
TfInline,
|
|
46
|
-
TfGrid,
|
|
47
|
-
TfCard,
|
|
48
|
-
TfHero,
|
|
49
|
-
TfAlert,
|
|
50
|
-
TfTag,
|
|
51
|
-
TfButton,
|
|
52
|
-
TfTypography,
|
|
53
|
-
TfMetric
|
|
54
|
-
} from '../../../packages/ui'
|
|
55
|
-
|
|
56
|
-
// ---- 静态数据 ----
|
|
57
|
-
const gradients = ['ai', 'brand', 'success', 'warning', 'info', 'neutral'] as const
|
|
58
|
-
const sizes = ['sm', 'md', 'lg'] as const
|
|
59
|
-
const aligns = ['start', 'center'] as const
|
|
60
|
-
const radii = ['md', 'lg', 'xl', '2xl'] as const
|
|
61
|
-
const shadowList = ['none', 'sm', 'md', 'lg'] as const
|
|
62
|
-
|
|
63
|
-
const gradientMeta: Record<string, { label: string; desc: string; icon: any }> = {
|
|
64
|
-
ai: { label: 'ai', desc: 'AI 智能场景渐变', icon: Sparkles },
|
|
65
|
-
brand: { label: 'brand', desc: '品牌主色渐变', icon: Shield },
|
|
66
|
-
success: { label: 'success', desc: '成功/完成场景渐变', icon: CheckCircle },
|
|
67
|
-
warning: { label: 'warning', desc: '警告/提醒场景渐变', icon: AlertTriangle },
|
|
68
|
-
info: { label: 'info', desc: '信息/帮助场景渐变', icon: Info },
|
|
69
|
-
neutral: { label: 'neutral', desc: '中性/默认场景渐变', icon: BookOpen }
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
const sizeMeta: Record<string, string> = {
|
|
73
|
-
sm: '紧凑型 Hero,适合侧边栏或卡片内嵌引导',
|
|
74
|
-
md: '标准型 Hero,适合表单页顶部(默认)',
|
|
75
|
-
lg: '大型 Hero,适合首页或着陆页'
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
const radiusMeta: Record<string, string> = {
|
|
79
|
-
md: '温和圆角 · 6px',
|
|
80
|
-
lg: '常规圆角 · 8px',
|
|
81
|
-
xl: '大圆角 · 12px',
|
|
82
|
-
'2xl': '最大圆角 · 16px'
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
const shadowMeta: Record<string, string> = {
|
|
86
|
-
none: '无投影 · 扁平风格',
|
|
87
|
-
sm: '轻微投影 · 微妙层次',
|
|
88
|
-
md: '中等投影 · 标准卡片感',
|
|
89
|
-
lg: '大投影 · 强层次感'
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
// section 10 业务场景 footer metric
|
|
93
|
-
const bizMetrics = [
|
|
94
|
-
{ label: '已录入卡片', value: '1,286', theme: 'ai' as const },
|
|
95
|
-
{ label: '今日新增', value: '47', theme: 'success' as const },
|
|
96
|
-
{ label: '待审核', value: '12', theme: 'warning' as const },
|
|
97
|
-
{ label: '准确率', value: '98.5%', theme: 'info' as const }
|
|
98
|
-
]
|
|
99
|
-
|
|
100
|
-
const warningCards = [
|
|
101
|
-
{ title: '合同到期提醒', desc: '3 份合同将在 7 天内到期,请及时处理续签。', tone: 'warning' as const },
|
|
102
|
-
{ title: '审核超时预警', desc: '2 条审核已超过 48 小时未处理。', tone: 'warning' as const },
|
|
103
|
-
{ title: '数据同步异常', desc: '昨日报表数据同步延迟,请检查数据源连接。', tone: 'warning' as const }
|
|
104
|
-
]
|
|
105
|
-
|
|
106
|
-
// ---- API 提示文本 ----
|
|
107
|
-
const apiGradientDesc = 'gradient 决定 Hero 的渐变色彩主题:ai 紫蓝渐变、brand 品牌蓝、success 绿色、warning 橙黄、info 青色、neutral 灰色。每项均支持 icon + eyebrow + title + description。'
|
|
108
|
-
const apiSizeDesc = 'size="sm" 紧凑型(padding/字号缩小);"md" 标准型(默认);"lg" 大型(大 padding+大字号)。icon 与文字间距同步缩放。'
|
|
109
|
-
const apiAlignDesc = 'align="start" 左对齐(默认),适合叙事型首页;align="center" 居中,适合 CTA 引导型 Hero。'
|
|
110
|
-
const apiBorderedDesc = 'bordered=true 显示 1px 边框分隔;bordered=false 无缝融入背景,常用于无边框页面。'
|
|
111
|
-
const apiRadiusDesc = 'radius 控制 Hero 外层圆角:md(6px) / lg(8px) / xl(12px) / 2xl(16px)。配合 bordered 使用效果更佳。'
|
|
112
|
-
const apiShadowDesc = 'shadow 四档:none(扁平) / sm(微妙) / md(标准卡片) / lg(强层次)。与 radius 组合可产生丰富视觉变化。'
|
|
113
|
-
const apiMinimalDesc = '最小用法:仅传 icon + title + description,无需 eyebrow / actions / footer 即可完成基础 Hero 展示。'
|
|
114
|
-
const apiSlotsDesc = '4 个 slot:#eyebrow 眉标(通常放 TfTag)、#actions 操作区(按钮组)、#footer 底部区(Metric 等)、#default 覆盖主内容区域。'
|
|
115
|
-
const apiCustomDesc = '#default slot 可用于完全自定义 Hero 主区域内容,如嵌入 TfAlert、TfCard 等复杂布局。'
|
|
116
|
-
const apiBizDesc = '100% 复刻 NewDocumentDemo AI Hero 场景:gradient="ai" + icon=Sparkles + eyebrow="AI 智能录入卡片" + 3 按钮 actions + footer 4 card metric + 风险提示 warning TfCard ×3。'
|
|
117
|
-
const heroCode1 = `<TfHero
|
|
118
|
-
gradient="ai"
|
|
119
|
-
:icon="Sparkles"
|
|
120
|
-
title="渐变: ai"
|
|
121
|
-
description="AI 智能场景渐变"
|
|
122
|
-
size="sm"
|
|
123
|
-
radius="lg"
|
|
124
|
-
bordered
|
|
125
|
-
/>`
|
|
126
|
-
const heroCode2 = `<TfHero
|
|
127
|
-
size="lg"
|
|
128
|
-
gradient="ai"
|
|
129
|
-
:icon="Sparkles"
|
|
130
|
-
title="智能录入体验"
|
|
131
|
-
description="AI 驱动的内容识别与自动填充。"
|
|
132
|
-
radius="lg"
|
|
133
|
-
bordered
|
|
134
|
-
>
|
|
135
|
-
<template #actions>
|
|
136
|
-
<TfButton type="primary" size="sm">立即体验</TfButton>
|
|
137
|
-
<TfButton type="default" size="sm">了解更多</TfButton>
|
|
138
|
-
</template>
|
|
139
|
-
</TfHero>`
|
|
140
|
-
const heroCode3 = `<TfHero
|
|
141
|
-
align="center"
|
|
142
|
-
gradient="success"
|
|
143
|
-
:icon="CheckCircle"
|
|
144
|
-
title="任务全部完成!"
|
|
145
|
-
description="所有待办事项已处理完毕。"
|
|
146
|
-
size="md"
|
|
147
|
-
radius="lg"
|
|
148
|
-
bordered
|
|
149
|
-
>
|
|
150
|
-
<template #actions>
|
|
151
|
-
<TfButton type="primary" size="sm">查看报告</TfButton>
|
|
152
|
-
</template>
|
|
153
|
-
</TfHero>`
|
|
154
|
-
const heroCode4 = `<TfHero
|
|
155
|
-
:bordered="false"
|
|
156
|
-
gradient="info"
|
|
157
|
-
:icon="Info"
|
|
158
|
-
title="新功能发布"
|
|
159
|
-
description="v3.2 版本上线:智能搜索、批量操作。"
|
|
160
|
-
size="md"
|
|
161
|
-
radius="lg"
|
|
162
|
-
>
|
|
163
|
-
<template #actions>
|
|
164
|
-
<TfButton type="primary" size="sm">了解新功能</TfButton>
|
|
165
|
-
</template>
|
|
166
|
-
</TfHero>`
|
|
167
|
-
const heroCode5 = `<TfHero
|
|
168
|
-
radius="2xl"
|
|
169
|
-
gradient="ai"
|
|
170
|
-
:icon="Sparkles"
|
|
171
|
-
title="大圆角 Hero"
|
|
172
|
-
description="最大圆角 16px"
|
|
173
|
-
size="sm"
|
|
174
|
-
bordered
|
|
175
|
-
/>`
|
|
176
|
-
const heroCode6 = `<TfHero
|
|
177
|
-
shadow="lg"
|
|
178
|
-
gradient="brand"
|
|
179
|
-
:icon="Rocket"
|
|
180
|
-
title="强层次 Hero"
|
|
181
|
-
description="大投影强层次感"
|
|
182
|
-
size="sm"
|
|
183
|
-
radius="lg"
|
|
184
|
-
bordered
|
|
185
|
-
/>`
|
|
186
|
-
const heroCode7 = `<TfHero
|
|
187
|
-
gradient="ai"
|
|
188
|
-
:icon="Sparkles"
|
|
189
|
-
title="欢迎使用 Enterprise UI Kit"
|
|
190
|
-
description="一套面向企业级应用的 Vue 3 组件库。"
|
|
191
|
-
size="md"
|
|
192
|
-
radius="lg"
|
|
193
|
-
bordered
|
|
194
|
-
/>`
|
|
195
|
-
const heroCode8 = `<TfHero
|
|
196
|
-
gradient="ai"
|
|
197
|
-
:icon="Sparkles"
|
|
198
|
-
title="AI 智能文档处理平台"
|
|
199
|
-
description="上传文档即可自动提取关键信息。"
|
|
200
|
-
size="lg"
|
|
201
|
-
radius="xl"
|
|
202
|
-
shadow="md"
|
|
203
|
-
bordered
|
|
204
|
-
>
|
|
205
|
-
<template #eyebrow>
|
|
206
|
-
<TfTag type="ai" variant="solid" size="sm" round>NEW · AI-Powered</TfTag>
|
|
207
|
-
</template>
|
|
208
|
-
<template #actions>
|
|
209
|
-
<TfButton type="primary" size="md">开始使用</TfButton>
|
|
210
|
-
<TfButton type="default" size="md">查看文档</TfButton>
|
|
211
|
-
</template>
|
|
212
|
-
<template #footer>
|
|
213
|
-
<TfMetric variant="card" label="处理速度" value="3.2s" theme="ai" accent />
|
|
214
|
-
</template>
|
|
215
|
-
</TfHero>`
|
|
216
|
-
const heroCode9 = `<TfHero
|
|
217
|
-
gradient="warning"
|
|
218
|
-
:icon="AlertTriangle"
|
|
219
|
-
size="md"
|
|
220
|
-
radius="lg"
|
|
221
|
-
bordered
|
|
222
|
-
>
|
|
223
|
-
<template #default>
|
|
224
|
-
<TfAlert
|
|
225
|
-
variant="tinted-block"
|
|
226
|
-
type="warning"
|
|
227
|
-
title="⚠️ 安全警告"
|
|
228
|
-
description="检测到 3 项安全风险。"
|
|
229
|
-
/>
|
|
230
|
-
</template>
|
|
231
|
-
<template #actions>
|
|
232
|
-
<TfButton type="primary" size="sm">立即处理</TfButton>
|
|
233
|
-
</template>
|
|
234
|
-
</TfHero>`
|
|
235
|
-
const heroCode10 = `<TfHero
|
|
236
|
-
gradient="ai"
|
|
237
|
-
:icon="Sparkles"
|
|
238
|
-
title="AI 智能录入卡片"
|
|
239
|
-
description="拍照或上传单据图片,AI 自动识别字段并填入表单。"
|
|
240
|
-
size="lg"
|
|
241
|
-
radius="xl"
|
|
242
|
-
shadow="md"
|
|
243
|
-
bordered
|
|
244
|
-
>
|
|
245
|
-
<template #eyebrow>
|
|
246
|
-
<TfTag type="ai" variant="solid" size="sm" round>AI 智能录入卡片</TfTag>
|
|
247
|
-
</template>
|
|
248
|
-
<template #actions>
|
|
249
|
-
<TfButton type="primary" size="md">智能录入</TfButton>
|
|
250
|
-
<TfButton type="default" size="md">手动填写</TfButton>
|
|
251
|
-
</template>
|
|
252
|
-
<template #footer>
|
|
253
|
-
<TfMetric variant="card" label="已录入卡片" value="1,286" theme="ai" accent />
|
|
254
|
-
</template>
|
|
255
|
-
</TfHero>`
|
|
256
|
-
</script>
|
|
257
|
-
|
|
258
|
-
<template>
|
|
259
|
-
<TfPage padding="lg" background="neutral">
|
|
260
|
-
<TfStack gap="md">
|
|
261
|
-
|
|
262
|
-
<!-- 页面标题 -->
|
|
263
|
-
<TfCard padding="lg" radius="lg" shadow="sm">
|
|
264
|
-
<TfStack gap="xs">
|
|
265
|
-
<TfTypography variant="h3">TfHero 渐变英雄区</TfTypography>
|
|
266
|
-
<TfTypography variant="caption">
|
|
267
|
-
企业级 Hero 组件,支持 6 种渐变色彩、3 种尺寸、2 种对齐、4 档圆角、4 档阴影,
|
|
268
|
-
配合 eyebrow / actions / footer / default 插槽实现灵活内容编排。零原生标签零 Tailwind 颜色 utility。
|
|
269
|
-
</TfTypography>
|
|
270
|
-
<TfInline gap="xs" wrap>
|
|
271
|
-
<TfTag type="primary" variant="light" size="sm" round>10 demo 区块</TfTag>
|
|
272
|
-
<TfTag type="ai" variant="light" size="sm" round>全 prop 变体</TfTag>
|
|
273
|
-
<TfTag type="success" variant="light" size="sm" round>全 slot 覆盖</TfTag>
|
|
274
|
-
<TfTag type="warning" variant="light" size="sm" round>业务场景复刻</TfTag>
|
|
275
|
-
</TfInline>
|
|
276
|
-
</TfStack>
|
|
277
|
-
</TfCard>
|
|
278
|
-
|
|
279
|
-
<!-- ============================================================ -->
|
|
280
|
-
<!-- Section 1: 6 种渐变色彩 -->
|
|
281
|
-
<!-- ============================================================ -->
|
|
282
|
-
<TfCard padding="lg" radius="lg" shadow="sm">
|
|
283
|
-
<template #title>
|
|
284
|
-
<TfTypography variant="h3">1. 6 种渐变色彩(ai / brand / success / warning / info / neutral)</TfTypography>
|
|
285
|
-
</template>
|
|
286
|
-
<template #description>
|
|
287
|
-
<TfTypography variant="caption">
|
|
288
|
-
gradient 决定 Hero 的渐变主色调,每种渐变都有对应的品牌语义和使用场景。
|
|
289
|
-
</TfTypography>
|
|
290
|
-
</template>
|
|
291
|
-
|
|
292
|
-
<TfStack gap="sm">
|
|
293
|
-
<TfGrid :cols="{ base: 2, md: 3 }" gap="sm">
|
|
294
|
-
<TfHero
|
|
295
|
-
v-for="g in gradients"
|
|
296
|
-
:key="g"
|
|
297
|
-
:gradient="g"
|
|
298
|
-
:icon="gradientMeta[g].icon"
|
|
299
|
-
:title="`渐变: ${g}`"
|
|
300
|
-
:description="gradientMeta[g].desc"
|
|
301
|
-
size="sm"
|
|
302
|
-
radius="lg"
|
|
303
|
-
shadow="none"
|
|
304
|
-
bordered
|
|
305
|
-
/>
|
|
306
|
-
</TfGrid>
|
|
307
|
-
|
|
308
|
-
<TfAlert
|
|
309
|
-
variant="tinted-block"
|
|
310
|
-
type="info"
|
|
311
|
-
title="API 要点"
|
|
312
|
-
:description="apiGradientDesc"
|
|
313
|
-
/>
|
|
314
|
-
|
|
315
|
-
<TfCodeBlock :code="heroCode1" language="vue" collapsible />
|
|
316
|
-
</TfStack>
|
|
317
|
-
</TfCard>
|
|
318
|
-
|
|
319
|
-
<!-- ============================================================ -->
|
|
320
|
-
<!-- Section 2: 3 种尺寸 -->
|
|
321
|
-
<!-- ============================================================ -->
|
|
322
|
-
<TfCard padding="lg" radius="lg" shadow="sm">
|
|
323
|
-
<template #title>
|
|
324
|
-
<TfTypography variant="h3">2. 3 种尺寸(sm / md / lg)</TfTypography>
|
|
325
|
-
</template>
|
|
326
|
-
<template #description>
|
|
327
|
-
<TfTypography variant="caption">
|
|
328
|
-
size 控制整体 padding、字号和 icon 尺寸,适配不同使用场景。
|
|
329
|
-
</TfTypography>
|
|
330
|
-
</template>
|
|
331
|
-
|
|
332
|
-
<TfStack gap="sm">
|
|
333
|
-
<TfStack v-for="s in sizes" :key="s" gap="xs">
|
|
334
|
-
<TfInline gap="xs" align="center">
|
|
335
|
-
<TfTag type="primary" variant="light" size="sm" round>size={{ s }}</TfTag>
|
|
336
|
-
<TfTypography variant="caption">{{ sizeMeta[s] }}</TfTypography>
|
|
337
|
-
</TfInline>
|
|
338
|
-
<TfHero
|
|
339
|
-
:size="s"
|
|
340
|
-
gradient="ai"
|
|
341
|
-
:icon="Sparkles"
|
|
342
|
-
:title="`size=${s} — 智能录入体验`"
|
|
343
|
-
description="AI 驱动的内容识别与自动填充,让表单填写速度提升 80%。"
|
|
344
|
-
radius="lg"
|
|
345
|
-
bordered
|
|
346
|
-
>
|
|
347
|
-
<template #actions>
|
|
348
|
-
<TfButton type="primary" size="sm">
|
|
349
|
-
<Play class="h-3.5 w-3.5" />立即体验
|
|
350
|
-
</TfButton>
|
|
351
|
-
<TfButton type="default" size="sm">了解更多</TfButton>
|
|
352
|
-
</template>
|
|
353
|
-
</TfHero>
|
|
354
|
-
</TfStack>
|
|
355
|
-
|
|
356
|
-
<TfAlert
|
|
357
|
-
variant="tinted-block"
|
|
358
|
-
type="info"
|
|
359
|
-
title="API 要点"
|
|
360
|
-
:description="apiSizeDesc"
|
|
361
|
-
/>
|
|
362
|
-
|
|
363
|
-
<TfCodeBlock :code="heroCode2" language="vue" collapsible />
|
|
364
|
-
</TfStack>
|
|
365
|
-
</TfCard>
|
|
366
|
-
|
|
367
|
-
<!-- ============================================================ -->
|
|
368
|
-
<!-- Section 3: 对齐方式 -->
|
|
369
|
-
<!-- ============================================================ -->
|
|
370
|
-
<TfCard padding="lg" radius="lg" shadow="sm">
|
|
371
|
-
<template #title>
|
|
372
|
-
<TfTypography variant="h3">3. 对齐方式(start / center)</TfTypography>
|
|
373
|
-
</template>
|
|
374
|
-
<template #description>
|
|
375
|
-
<TfTypography variant="caption">
|
|
376
|
-
align 控制内容水平对齐:start 左对齐适合叙事型页面,center 居中适合 CTA 引导。
|
|
377
|
-
</TfTypography>
|
|
378
|
-
</template>
|
|
379
|
-
|
|
380
|
-
<TfStack gap="sm">
|
|
381
|
-
<TfGrid :cols="{ base: 1, md: 2 }" gap="sm">
|
|
382
|
-
<TfStack gap="xs">
|
|
383
|
-
<TfTag type="primary" variant="light" size="sm" round>align=start(默认)</TfTag>
|
|
384
|
-
<TfHero
|
|
385
|
-
align="start"
|
|
386
|
-
gradient="brand"
|
|
387
|
-
:icon="Shield"
|
|
388
|
-
title="企业安全中心"
|
|
389
|
-
description="统一管理组织安全策略、访问控制与审计日志。"
|
|
390
|
-
size="md"
|
|
391
|
-
radius="lg"
|
|
392
|
-
bordered
|
|
393
|
-
>
|
|
394
|
-
<template #actions>
|
|
395
|
-
<TfButton type="primary" size="sm"><Shield class="h-3.5 w-3.5" />进入控制台</TfButton>
|
|
396
|
-
</template>
|
|
397
|
-
</TfHero>
|
|
398
|
-
</TfStack>
|
|
399
|
-
|
|
400
|
-
<TfStack gap="xs">
|
|
401
|
-
<TfTag type="ai" variant="light" size="sm" round>align=center</TfTag>
|
|
402
|
-
<TfHero
|
|
403
|
-
align="center"
|
|
404
|
-
gradient="success"
|
|
405
|
-
:icon="CheckCircle"
|
|
406
|
-
title="任务全部完成!"
|
|
407
|
-
description="所有待办事项已处理完毕,今日效率评分 95 分。"
|
|
408
|
-
size="md"
|
|
409
|
-
radius="lg"
|
|
410
|
-
bordered
|
|
411
|
-
>
|
|
412
|
-
<template #actions>
|
|
413
|
-
<TfButton type="primary" size="sm"><TrendingUp class="h-3.5 w-3.5" />查看报告</TfButton>
|
|
414
|
-
</template>
|
|
415
|
-
</TfHero>
|
|
416
|
-
</TfStack>
|
|
417
|
-
</TfGrid>
|
|
418
|
-
|
|
419
|
-
<TfAlert
|
|
420
|
-
variant="tinted-block"
|
|
421
|
-
type="info"
|
|
422
|
-
title="API 要点"
|
|
423
|
-
:description="apiAlignDesc"
|
|
424
|
-
/>
|
|
425
|
-
|
|
426
|
-
<TfCodeBlock :code="heroCode3" language="vue" collapsible />
|
|
427
|
-
</TfStack>
|
|
428
|
-
</TfCard>
|
|
429
|
-
|
|
430
|
-
<!-- ============================================================ -->
|
|
431
|
-
<!-- Section 4: 边框模式 -->
|
|
432
|
-
<!-- ============================================================ -->
|
|
433
|
-
<TfCard padding="lg" radius="lg" shadow="sm">
|
|
434
|
-
<template #title>
|
|
435
|
-
<TfTypography variant="h3">4. 边框模式(bordered true / false)</TfTypography>
|
|
436
|
-
</template>
|
|
437
|
-
<template #description>
|
|
438
|
-
<TfTypography variant="caption">
|
|
439
|
-
bordered 控制 Hero 外层 1px 边框。false 时无缝融入背景,true 时清晰分隔。
|
|
440
|
-
</TfTypography>
|
|
441
|
-
</template>
|
|
442
|
-
|
|
443
|
-
<TfStack gap="sm">
|
|
444
|
-
<TfGrid :cols="{ base: 1, md: 2 }" gap="sm">
|
|
445
|
-
<TfStack gap="xs">
|
|
446
|
-
<TfTag type="primary" variant="light" size="sm" round>bordered=true</TfTag>
|
|
447
|
-
<TfHero
|
|
448
|
-
:bordered="true"
|
|
449
|
-
gradient="warning"
|
|
450
|
-
:icon="AlertTriangle"
|
|
451
|
-
title="待处理预警"
|
|
452
|
-
description="您有 5 条未读预警通知,请及时处理以避免业务风险。"
|
|
453
|
-
size="md"
|
|
454
|
-
radius="lg"
|
|
455
|
-
>
|
|
456
|
-
<template #actions>
|
|
457
|
-
<TfButton type="primary" size="sm"><ArrowRight class="h-3.5 w-3.5" />查看预警</TfButton>
|
|
458
|
-
</template>
|
|
459
|
-
</TfHero>
|
|
460
|
-
</TfStack>
|
|
461
|
-
|
|
462
|
-
<TfStack gap="xs">
|
|
463
|
-
<TfTag type="default" variant="light" size="sm" round>bordered=false</TfTag>
|
|
464
|
-
<TfHero
|
|
465
|
-
:bordered="false"
|
|
466
|
-
gradient="info"
|
|
467
|
-
:icon="Info"
|
|
468
|
-
title="新功能发布"
|
|
469
|
-
description="v3.2 版本上线:智能搜索、批量操作、自定义工作流。"
|
|
470
|
-
size="md"
|
|
471
|
-
radius="lg"
|
|
472
|
-
>
|
|
473
|
-
<template #actions>
|
|
474
|
-
<TfButton type="primary" size="sm"><Sparkles class="h-3.5 w-3.5" />了解新功能</TfButton>
|
|
475
|
-
</template>
|
|
476
|
-
</TfHero>
|
|
477
|
-
</TfStack>
|
|
478
|
-
</TfGrid>
|
|
479
|
-
|
|
480
|
-
<TfAlert
|
|
481
|
-
variant="tinted-block"
|
|
482
|
-
type="info"
|
|
483
|
-
title="API 要点"
|
|
484
|
-
:description="apiBorderedDesc"
|
|
485
|
-
/>
|
|
486
|
-
|
|
487
|
-
<TfCodeBlock :code="heroCode4" language="vue" collapsible />
|
|
488
|
-
</TfStack>
|
|
489
|
-
</TfCard>
|
|
490
|
-
|
|
491
|
-
<!-- ============================================================ -->
|
|
492
|
-
<!-- Section 5: 圆角半径 -->
|
|
493
|
-
<!-- ============================================================ -->
|
|
494
|
-
<TfCard padding="lg" radius="lg" shadow="sm">
|
|
495
|
-
<template #title>
|
|
496
|
-
<TfTypography variant="h3">5. 圆角半径(md / lg / xl / 2xl)</TfTypography>
|
|
497
|
-
</template>
|
|
498
|
-
<template #description>
|
|
499
|
-
<TfTypography variant="caption">
|
|
500
|
-
radius 控制 Hero 外层圆角,配合 bordered 产生不同的视觉风格。
|
|
501
|
-
</TfTypography>
|
|
502
|
-
</template>
|
|
503
|
-
|
|
504
|
-
<TfStack gap="sm">
|
|
505
|
-
<TfGrid :cols="{ base: 2 }" gap="sm">
|
|
506
|
-
<TfStack v-for="r in radii" :key="r" gap="xs">
|
|
507
|
-
<TfTag type="primary" variant="light" size="sm" round>radius={{ r }} · {{ radiusMeta[r] }}</TfTag>
|
|
508
|
-
<TfHero
|
|
509
|
-
:radius="r"
|
|
510
|
-
gradient="ai"
|
|
511
|
-
:icon="Sparkles"
|
|
512
|
-
:title="`radius=${r}`"
|
|
513
|
-
:description="radiusMeta[r]"
|
|
514
|
-
size="sm"
|
|
515
|
-
bordered
|
|
516
|
-
shadow="none"
|
|
517
|
-
/>
|
|
518
|
-
</TfStack>
|
|
519
|
-
</TfGrid>
|
|
520
|
-
|
|
521
|
-
<TfAlert
|
|
522
|
-
variant="tinted-block"
|
|
523
|
-
type="info"
|
|
524
|
-
title="API 要点"
|
|
525
|
-
:description="apiRadiusDesc"
|
|
526
|
-
/>
|
|
527
|
-
|
|
528
|
-
<TfCodeBlock :code="heroCode5" language="vue" collapsible />
|
|
529
|
-
</TfStack>
|
|
530
|
-
</TfCard>
|
|
531
|
-
|
|
532
|
-
<!-- ============================================================ -->
|
|
533
|
-
<!-- Section 6: 阴影层级 -->
|
|
534
|
-
<!-- ============================================================ -->
|
|
535
|
-
<TfCard padding="lg" radius="lg" shadow="sm">
|
|
536
|
-
<template #title>
|
|
537
|
-
<TfTypography variant="h3">6. 阴影层级(none / sm / md / lg)</TfTypography>
|
|
538
|
-
</template>
|
|
539
|
-
<template #description>
|
|
540
|
-
<TfTypography variant="caption">
|
|
541
|
-
shadow 四档控制层次感:从扁平风格到强悬浮感。
|
|
542
|
-
</TfTypography>
|
|
543
|
-
</template>
|
|
544
|
-
|
|
545
|
-
<TfStack gap="sm">
|
|
546
|
-
<TfGrid :cols="{ base: 2, md: 4 }" gap="sm">
|
|
547
|
-
<TfStack v-for="sh in shadowList" :key="sh" gap="xs">
|
|
548
|
-
<TfTag type="primary" variant="light" size="sm" round>shadow={{ sh }}</TfTag>
|
|
549
|
-
<TfHero
|
|
550
|
-
:shadow="sh"
|
|
551
|
-
gradient="brand"
|
|
552
|
-
:icon="Rocket"
|
|
553
|
-
:title="`shadow=${sh}`"
|
|
554
|
-
:description="shadowMeta[sh]"
|
|
555
|
-
size="sm"
|
|
556
|
-
radius="lg"
|
|
557
|
-
bordered
|
|
558
|
-
/>
|
|
559
|
-
</TfStack>
|
|
560
|
-
</TfGrid>
|
|
561
|
-
|
|
562
|
-
<TfAlert
|
|
563
|
-
variant="tinted-block"
|
|
564
|
-
type="info"
|
|
565
|
-
title="API 要点"
|
|
566
|
-
:description="apiShadowDesc"
|
|
567
|
-
/>
|
|
568
|
-
|
|
569
|
-
<TfCodeBlock :code="heroCode6" language="vue" collapsible />
|
|
570
|
-
</TfStack>
|
|
571
|
-
</TfCard>
|
|
572
|
-
|
|
573
|
-
<!-- ============================================================ -->
|
|
574
|
-
<!-- Section 7: 最小用法 -->
|
|
575
|
-
<!-- ============================================================ -->
|
|
576
|
-
<TfCard padding="lg" radius="lg" shadow="sm">
|
|
577
|
-
<template #title>
|
|
578
|
-
<TfTypography variant="h3">7. 最小用法(仅 icon + title + description)</TfTypography>
|
|
579
|
-
</template>
|
|
580
|
-
<template #description>
|
|
581
|
-
<TfTypography variant="caption">
|
|
582
|
-
无需 eyebrow、actions、footer 即可完成基础 Hero 展示。最常见的入门用法。
|
|
583
|
-
</TfTypography>
|
|
584
|
-
</template>
|
|
585
|
-
|
|
586
|
-
<TfStack gap="sm">
|
|
587
|
-
<TfHero
|
|
588
|
-
gradient="ai"
|
|
589
|
-
:icon="Sparkles"
|
|
590
|
-
title="欢迎使用 Enterprise UI Kit"
|
|
591
|
-
description="一套面向企业级应用的 Vue 3 组件库,支持 AI-native 能力、丰富的业务场景和主题定制。"
|
|
592
|
-
size="md"
|
|
593
|
-
radius="lg"
|
|
594
|
-
bordered
|
|
595
|
-
/>
|
|
596
|
-
|
|
597
|
-
<TfHero
|
|
598
|
-
gradient="success"
|
|
599
|
-
:icon="CheckCircle"
|
|
600
|
-
title="部署成功!"
|
|
601
|
-
description="您的应用已成功部署到生产环境,所有健康检查已通过。"
|
|
602
|
-
size="sm"
|
|
603
|
-
radius="lg"
|
|
604
|
-
bordered
|
|
605
|
-
/>
|
|
606
|
-
|
|
607
|
-
<TfAlert
|
|
608
|
-
variant="tinted-block"
|
|
609
|
-
type="info"
|
|
610
|
-
title="API 要点"
|
|
611
|
-
:description="apiMinimalDesc"
|
|
612
|
-
/>
|
|
613
|
-
|
|
614
|
-
<TfCodeBlock :code="heroCode7" language="vue" collapsible />
|
|
615
|
-
</TfStack>
|
|
616
|
-
</TfCard>
|
|
617
|
-
|
|
618
|
-
<!-- ============================================================ -->
|
|
619
|
-
<!-- Section 8: 完整插槽 -->
|
|
620
|
-
<!-- ============================================================ -->
|
|
621
|
-
<TfCard padding="lg" radius="lg" shadow="sm">
|
|
622
|
-
<template #title>
|
|
623
|
-
<TfTypography variant="h3">8. 完整插槽覆盖(#eyebrow / #actions / #footer)</TfTypography>
|
|
624
|
-
</template>
|
|
625
|
-
<template #description>
|
|
626
|
-
<TfTypography variant="caption">
|
|
627
|
-
演示 4 个 slot 的完整用法:眉标区、操作区、底部区和默认内容区。
|
|
628
|
-
</TfTypography>
|
|
629
|
-
</template>
|
|
630
|
-
|
|
631
|
-
<TfStack gap="sm">
|
|
632
|
-
<TfHero
|
|
633
|
-
gradient="ai"
|
|
634
|
-
:icon="Sparkles"
|
|
635
|
-
title="AI 智能文档处理平台"
|
|
636
|
-
description="上传文档即可自动提取关键信息、生成摘要并归类存档。"
|
|
637
|
-
size="lg"
|
|
638
|
-
radius="xl"
|
|
639
|
-
shadow="md"
|
|
640
|
-
bordered
|
|
641
|
-
align="start"
|
|
642
|
-
>
|
|
643
|
-
<template #eyebrow>
|
|
644
|
-
<TfTag type="ai" variant="solid" size="sm" round>NEW · AI-Powered</TfTag>
|
|
645
|
-
</template>
|
|
646
|
-
<template #actions>
|
|
647
|
-
<TfButton type="primary" size="md">
|
|
648
|
-
<Play class="h-4 w-4" />开始使用
|
|
649
|
-
</TfButton>
|
|
650
|
-
<TfButton type="default" size="md">
|
|
651
|
-
<BookOpen class="h-4 w-4" />查看文档
|
|
652
|
-
</TfButton>
|
|
653
|
-
<TfButton type="default" plain size="md">
|
|
654
|
-
<Star class="h-4 w-4" />收藏
|
|
655
|
-
</TfButton>
|
|
656
|
-
</template>
|
|
657
|
-
<template #footer>
|
|
658
|
-
<TfGrid :cols="{ base: 2, md: 4 }" gap="sm">
|
|
659
|
-
<TfMetric variant="card" label="处理速度" value="3.2s" theme="ai" accent />
|
|
660
|
-
<TfMetric variant="card" label="准确率" value="99.2%" theme="success" accent />
|
|
661
|
-
<TfMetric variant="card" label="日处理量" value="12K+" theme="info" accent />
|
|
662
|
-
<TfMetric variant="card" label="用户满意度" value="4.9" theme="warning" accent />
|
|
663
|
-
</TfGrid>
|
|
664
|
-
</template>
|
|
665
|
-
</TfHero>
|
|
666
|
-
|
|
667
|
-
<TfAlert
|
|
668
|
-
variant="tinted-block"
|
|
669
|
-
type="info"
|
|
670
|
-
title="API 要点"
|
|
671
|
-
:description="apiSlotsDesc"
|
|
672
|
-
/>
|
|
673
|
-
|
|
674
|
-
<TfCodeBlock :code="heroCode8" language="vue" collapsible />
|
|
675
|
-
</TfStack>
|
|
676
|
-
</TfCard>
|
|
677
|
-
|
|
678
|
-
<!-- ============================================================ -->
|
|
679
|
-
<!-- Section 9: 自定义内容 -->
|
|
680
|
-
<!-- ============================================================ -->
|
|
681
|
-
<TfCard padding="lg" radius="lg" shadow="sm">
|
|
682
|
-
<template #title>
|
|
683
|
-
<TfTypography variant="h3">9. 自定义内容(#default slot 覆盖主区域)</TfTypography>
|
|
684
|
-
</template>
|
|
685
|
-
<template #description>
|
|
686
|
-
<TfTypography variant="caption">
|
|
687
|
-
#default slot 可以完全替换 Hero 默认的 title + description 区域,嵌入任意组件。
|
|
688
|
-
</TfTypography>
|
|
689
|
-
</template>
|
|
690
|
-
|
|
691
|
-
<TfStack gap="sm">
|
|
692
|
-
<TfHero
|
|
693
|
-
gradient="warning"
|
|
694
|
-
:icon="AlertTriangle"
|
|
695
|
-
size="md"
|
|
696
|
-
radius="lg"
|
|
697
|
-
bordered
|
|
698
|
-
>
|
|
699
|
-
<template #default>
|
|
700
|
-
<TfStack gap="sm">
|
|
701
|
-
<TfAlert
|
|
702
|
-
variant="tinted-block"
|
|
703
|
-
type="warning"
|
|
704
|
-
title="⚠️ 安全警告"
|
|
705
|
-
description="检测到 3 项安全风险,建议立即处理以防止潜在的数据泄露风险。"
|
|
706
|
-
/>
|
|
707
|
-
<TfGrid :cols="{ base: 1, md: 3 }" gap="sm">
|
|
708
|
-
<TfCard padding="sm" radius="md" tone="warning" bordered>
|
|
709
|
-
<TfStack gap="xs">
|
|
710
|
-
<TfTypography variant="h3">密码过期</TfTypography>
|
|
711
|
-
<TfTypography variant="caption">32 位用户密码将在 3 天内过期。</TfTypography>
|
|
712
|
-
</TfStack>
|
|
713
|
-
</TfCard>
|
|
714
|
-
<TfCard padding="sm" radius="md" tone="warning" bordered>
|
|
715
|
-
<TfStack gap="xs">
|
|
716
|
-
<TfTypography variant="h3">异常登录</TfTypography>
|
|
717
|
-
<TfTypography variant="caption">来自异常 IP 的 5 次登录尝试被拦截。</TfTypography>
|
|
718
|
-
</TfStack>
|
|
719
|
-
</TfCard>
|
|
720
|
-
<TfCard padding="sm" radius="md" tone="warning" bordered>
|
|
721
|
-
<TfStack gap="xs">
|
|
722
|
-
<TfTypography variant="h3">权限变更</TfTypography>
|
|
723
|
-
<TfTypography variant="caption">2 个关键角色权限发生未授权变更。</TfTypography>
|
|
724
|
-
</TfStack>
|
|
725
|
-
</TfCard>
|
|
726
|
-
</TfGrid>
|
|
727
|
-
</TfStack>
|
|
728
|
-
</template>
|
|
729
|
-
<template #actions>
|
|
730
|
-
<TfButton type="primary" size="sm"><Shield class="h-3.5 w-3.5" />立即处理</TfButton>
|
|
731
|
-
<TfButton type="default" size="sm">查看详情</TfButton>
|
|
732
|
-
</template>
|
|
733
|
-
</TfHero>
|
|
734
|
-
|
|
735
|
-
<TfAlert
|
|
736
|
-
variant="tinted-block"
|
|
737
|
-
type="info"
|
|
738
|
-
title="API 要点"
|
|
739
|
-
:description="apiCustomDesc"
|
|
740
|
-
/>
|
|
741
|
-
|
|
742
|
-
<TfCodeBlock :code="heroCode9" language="vue" collapsible />
|
|
743
|
-
</TfStack>
|
|
744
|
-
</TfCard>
|
|
745
|
-
|
|
746
|
-
<!-- ============================================================ -->
|
|
747
|
-
<!-- Section 10: 业务场景 — NewDocumentDemo AI Hero 复刻 -->
|
|
748
|
-
<!-- ============================================================ -->
|
|
749
|
-
<TfCard padding="lg" radius="lg" shadow="md" tone="ai">
|
|
750
|
-
<template #title>
|
|
751
|
-
<TfTypography variant="h3">10. 业务场景:100% 复刻 NewDocumentDemo AI Hero</TfTypography>
|
|
752
|
-
</template>
|
|
753
|
-
<template #description>
|
|
754
|
-
<TfTypography variant="caption">
|
|
755
|
-
gradient="ai" + icon=Sparkles + eyebrow="AI 智能录入卡片" + 3 按钮 actions
|
|
756
|
-
+ footer 4 card metric + 风险提示 warning TfCard ×3。
|
|
757
|
-
</TfTypography>
|
|
758
|
-
</template>
|
|
759
|
-
|
|
760
|
-
<TfStack gap="sm">
|
|
761
|
-
<TfHero
|
|
762
|
-
gradient="ai"
|
|
763
|
-
:icon="Sparkles"
|
|
764
|
-
title="AI 智能录入卡片"
|
|
765
|
-
description="拍照或上传单据图片,AI 自动识别字段并填入表单。支持发票、合同、收据等 20+ 单据类型。"
|
|
766
|
-
size="lg"
|
|
767
|
-
radius="xl"
|
|
768
|
-
shadow="md"
|
|
769
|
-
bordered
|
|
770
|
-
align="start"
|
|
771
|
-
>
|
|
772
|
-
<template #eyebrow>
|
|
773
|
-
<TfTag type="ai" variant="solid" size="sm" round>AI 智能录入卡片</TfTag>
|
|
774
|
-
</template>
|
|
775
|
-
<template #actions>
|
|
776
|
-
<TfButton type="primary" size="md">
|
|
777
|
-
<Sparkles class="h-4 w-4" />智能录入
|
|
778
|
-
</TfButton>
|
|
779
|
-
<TfButton type="default" size="md">
|
|
780
|
-
<FileText class="h-4 w-4" />手动填写
|
|
781
|
-
</TfButton>
|
|
782
|
-
<TfButton type="default" plain size="md">
|
|
783
|
-
<BookOpen class="h-4 w-4" />使用教程
|
|
784
|
-
</TfButton>
|
|
785
|
-
</template>
|
|
786
|
-
<template #footer>
|
|
787
|
-
<TfGrid :cols="{ base: 2, md: 4 }" gap="sm">
|
|
788
|
-
<TfMetric
|
|
789
|
-
v-for="m in bizMetrics"
|
|
790
|
-
:key="m.label"
|
|
791
|
-
variant="card"
|
|
792
|
-
:label="m.label"
|
|
793
|
-
:value="m.value"
|
|
794
|
-
:theme="m.theme"
|
|
795
|
-
accent
|
|
796
|
-
/>
|
|
797
|
-
</TfGrid>
|
|
798
|
-
</template>
|
|
799
|
-
</TfHero>
|
|
800
|
-
|
|
801
|
-
<TfTypography variant="h3">风险提示</TfTypography>
|
|
802
|
-
|
|
803
|
-
<TfGrid :cols="{ base: 1, md: 3 }" gap="sm">
|
|
804
|
-
<TfCard
|
|
805
|
-
v-for="(wc, idx) in warningCards"
|
|
806
|
-
:key="idx"
|
|
807
|
-
padding="sm"
|
|
808
|
-
radius="md"
|
|
809
|
-
:tone="wc.tone"
|
|
810
|
-
bordered
|
|
811
|
-
clickable
|
|
812
|
-
>
|
|
813
|
-
<TfStack gap="xs">
|
|
814
|
-
<TfInline gap="xs" align="center">
|
|
815
|
-
<AlertTriangle class="h-4 w-4" />
|
|
816
|
-
<TfTypography variant="h3">{{ wc.title }}</TfTypography>
|
|
817
|
-
</TfInline>
|
|
818
|
-
<TfTypography variant="caption">{{ wc.desc }}</TfTypography>
|
|
819
|
-
</TfStack>
|
|
820
|
-
</TfCard>
|
|
821
|
-
</TfGrid>
|
|
822
|
-
|
|
823
|
-
<TfAlert
|
|
824
|
-
variant="tinted-block"
|
|
825
|
-
type="info"
|
|
826
|
-
title="API 要点"
|
|
827
|
-
:description="apiBizDesc"
|
|
828
|
-
/>
|
|
829
|
-
|
|
830
|
-
<TfCodeBlock :code="heroCode10" language="vue" collapsible />
|
|
831
|
-
</TfStack>
|
|
832
|
-
</TfCard>
|
|
833
|
-
|
|
834
|
-
</TfStack>
|
|
835
|
-
</TfPage>
|
|
836
|
-
</template>
|