From bd0641fefb372df4c738f8746c18b423a2663115 Mon Sep 17 00:00:00 2001 From: taoya7 Date: Tue, 14 Jun 2022 09:05:00 +0800 Subject: [PATCH] initial --- .idea/.gitignore | 5 + .idea/codeStyles/Project.xml | 41 + .idea/codeStyles/codeStyleConfig.xml | 5 + .idea/inspectionProfiles/Project_Default.xml | 7 + .idea/modules.xml | 8 + .idea/vcs.xml | 6 + .idea/vue2.iml | 12 + LICENSE | 21 - README.md | 73 +- assets/README.md | 8 - components/OneDemo.vue | 524 +- components/OneEditLink.vue | 165 +- components/OneFooter.vue | 253 +- components/OneLive.vue | 579 +- components/OneMenu.vue | 421 +- components/OneRepl.vue | 184 +- env.js | 4 + nuxt.config.js | 66 +- one/docs/advanced/custom-rules.md | 91 - one/docs/advanced/global-config.md | 61 - one/docs/advanced/overlay.md | 124 - one/docs/advanced/theming.md | 157 - one/docs/changelog.vue | 394 - one/docs/components/accordion.md | 105 - one/docs/components/alert-box.md | 75 - one/docs/components/alert.md | 104 - one/docs/components/anchor.md | 70 - one/docs/components/autocomplete.md | 138 - one/docs/components/badge.md | 58 - one/docs/components/breadcrumb-item.md | 48 - one/docs/components/breadcrumb.md | 114 - one/docs/components/button-group.md | 111 - one/docs/components/button.md | 93 - one/docs/components/calendar.md | 153 - one/docs/components/carousel.md | 164 - one/docs/components/cascader.md | 314 - one/docs/components/check-button-group.md | 124 - one/docs/components/checkbox-group.md | 104 - one/docs/components/checkbox.md | 83 - one/docs/components/collapse.md | 97 - one/docs/components/column.md | 131 - one/docs/components/config-provider.md | 22 - one/docs/components/confirm-box.md | 48 - one/docs/components/conponent.md | 28 + one/docs/components/content.md | 15 - one/docs/components/date-picker.md | 246 - one/docs/components/dialog.md | 145 - one/docs/components/drawer.md | 103 - one/docs/components/dropdown.md | 207 - one/docs/components/embedded.md | 72 - one/docs/components/field.md | 165 - one/docs/components/fieldset.md | 30 - one/docs/components/filter-panel.md | 59 - one/docs/components/footer.md | 22 - one/docs/components/form.md | 194 - one/docs/components/grid-column.md | 26 - one/docs/components/grid-container.md | 48 - one/docs/components/grid-row.md | 17 - one/docs/components/header.md | 22 - one/docs/components/icon.md | 25 - one/docs/components/input-group.md | 21 - one/docs/components/input.md | 149 - one/docs/components/label.md | 36 - one/docs/components/layout.md | 48 - one/docs/components/lightbox.md | 123 - one/docs/components/link.md | 57 - one/docs/components/loading.md | 58 - one/docs/components/message.md | 70 - one/docs/components/nav.md | 118 - one/docs/components/number-input.md | 118 - one/docs/components/option-group.md | 133 - one/docs/components/option.md | 39 - one/docs/components/overlay.md | 109 - one/docs/components/pagination.md | 77 - one/docs/components/popover.md | 92 - one/docs/components/progress.md | 63 - one/docs/components/prompt-box.md | 67 - one/docs/components/radio-button-group.md | 111 - one/docs/components/radio-group.md | 96 - one/docs/components/radio.md | 73 - one/docs/components/region-picker.md | 81 - one/docs/components/schedule.md | 154 - one/docs/components/search-box.md | 207 - one/docs/components/select.md | 281 - one/docs/components/sidebar.md | 44 - one/docs/components/sidenav.md | 140 - one/docs/components/slider.md | 129 - one/docs/components/span.md | 11 - one/docs/components/steps.md | 91 - one/docs/components/switch.md | 76 - one/docs/components/tab.md | 57 - one/docs/components/table.md | 180 - one/docs/components/tabs.md | 143 - one/docs/components/tabs/index.vue | 5 - one/docs/components/tabs/tab.vue | 5 - one/docs/components/tabs/tab2.vue | 5 - one/docs/components/tabs/tab3.vue | 5 - one/docs/components/tag.md | 100 - one/docs/components/textarea.md | 99 - one/docs/components/time-picker.md | 124 - one/docs/components/toast.md | 78 - one/docs/components/tooltip.md | 95 - one/docs/components/transfer.md | 213 - one/docs/components/tree.md | 181 - one/docs/components/uploader.md | 385 - one/docs/demo/accordion/multiple.vue | 29 - one/docs/demo/accordion/position.vue | 60 - one/docs/demo/accordion/size.vue | 41 - one/docs/demo/accordion/variant.vue | 87 - one/docs/demo/alert-box/title.vue | 65 - one/docs/demo/alert-box/type.vue | 67 - one/docs/demo/alert/extra.vue | 37 - one/docs/demo/alert/multiple.vue | 46 - one/docs/demo/alert/title.vue | 38 - one/docs/demo/alert/type.vue | 41 - one/docs/demo/anchor/normal.vue | 108 - one/docs/demo/anchor/offset.vue | 143 - one/docs/demo/anchor/sticky.vue | 115 - one/docs/demo/autocomplete/custom.vue | 72 - one/docs/demo/autocomplete/normal.vue | 114 - one/docs/demo/autocomplete/strict.vue | 50 - one/docs/demo/badge/corner-dot.vue | 43 - one/docs/demo/badge/dot.vue | 45 - one/docs/demo/badge/number.vue | 61 - one/docs/demo/badge/text.vue | 58 - one/docs/demo/breadcrumb/base.vue | 26 - one/docs/demo/breadcrumb/datasource.vue | 32 - one/docs/demo/breadcrumb/redirect.vue | 55 - one/docs/demo/breadcrumb/separator.vue | 49 - one/docs/demo/breadcrumb/size.vue | 47 - one/docs/demo/breadcrumb/style.vue | 47 - one/docs/demo/button-group/disabled.vue | 76 - one/docs/demo/button-group/items.vue | 43 - one/docs/demo/button-group/size.vue | 41 - one/docs/demo/button-group/style.vue | 49 - one/docs/demo/button/disabled.vue | 98 - one/docs/demo/button/loading.vue | 98 - one/docs/demo/button/size.vue | 35 - one/docs/demo/button/style.vue | 58 - one/docs/demo/calendar/date-class.vue | 118 - one/docs/demo/calendar/default.vue | 39 - one/docs/demo/calendar/disabled-date.vue | 27 - one/docs/demo/calendar/fill-month.vue | 33 - one/docs/demo/calendar/multiple-ranges.vue | 49 - one/docs/demo/calendar/range-multiple.vue | 79 - one/docs/demo/calendar/slots.vue | 70 - one/docs/demo/calendar/type.vue | 37 - one/docs/demo/carousel/autoplay.vue | 54 - one/docs/demo/carousel/effect.vue | 67 - one/docs/demo/carousel/indicator.vue | 95 - one/docs/demo/carousel/ratio.vue | 57 - one/docs/demo/carousel/slides.vue | 76 - one/docs/demo/carousel/switch.vue | 64 - one/docs/demo/carousel/vertical.vue | 69 - one/docs/demo/cascader/column-trigger.vue | 144 - one/docs/demo/cascader/inline.vue | 129 - one/docs/demo/cascader/multiple.vue | 217 - one/docs/demo/cascader/searchable.vue | 128 - one/docs/demo/cascader/select-mode.vue | 144 - one/docs/demo/cascader/size.vue | 154 - one/docs/demo/cascader/value-display.vue | 144 - one/docs/demo/check-button-group/default.vue | 65 - one/docs/demo/check-button-group/desc.vue | 50 - .../demo/check-button-group/exclusive.vue | 62 - one/docs/demo/check-button-group/simple.vue | 60 - one/docs/demo/check-button-group/stable.vue | 42 - one/docs/demo/checkbox-group/default.vue | 65 - one/docs/demo/checkbox-group/desc.vue | 50 - one/docs/demo/checkbox-group/exclusive.vue | 62 - one/docs/demo/checkbox/size.vue | 65 - one/docs/demo/checkbox/value.vue | 33 - one/docs/demo/collapse/position.vue | 57 - one/docs/demo/collapse/size.vue | 35 - one/docs/demo/collapse/variant.vue | 84 - one/docs/demo/config-provider/select.vue | 56 - one/docs/demo/confirm-box/custom.vue | 40 - one/docs/demo/date-picker/default.vue | 52 - one/docs/demo/date-picker/disabled.vue | 45 - one/docs/demo/date-picker/range.vue | 54 - one/docs/demo/date-picker/shortcuts.vue | 62 - one/docs/demo/dialog/async.vue | 120 - one/docs/demo/dialog/custom.vue | 73 - one/docs/demo/dialog/draggable.vue | 38 - one/docs/demo/dialog/modal.vue | 64 - one/docs/demo/dialog/size.vue | 74 - one/docs/demo/dialog/stack.vue | 62 - one/docs/demo/dialog/status.vue | 57 - one/docs/demo/directives/drag/axis.vue | 51 - one/docs/demo/directives/drag/base.vue | 27 - one/docs/demo/directives/drag/containment.vue | 38 - one/docs/demo/directives/drag/sort-x.vue | 72 - one/docs/demo/directives/drag/sort-y.vue | 77 - one/docs/demo/directives/drag/targets.vue | 48 - one/docs/demo/directives/nudge.vue | 76 - one/docs/demo/directives/outside/click.vue | 52 - .../directives/outside/hover-with-delay.vue | 62 - one/docs/demo/directives/outside/hover.vue | 47 - one/docs/demo/directives/resize.vue | 97 - one/docs/demo/directives/tooltip/default.vue | 45 - one/docs/demo/directives/tooltip/overflow.vue | 47 - one/docs/demo/drawer/custom.vue | 73 - one/docs/demo/drawer/modal.vue | 64 - one/docs/demo/drawer/placement.vue | 103 - one/docs/demo/dropdown/disable.vue | 105 - one/docs/demo/dropdown/inline.vue | 69 - one/docs/demo/dropdown/other.vue | 133 - one/docs/demo/dropdown/searchable.vue | 168 - one/docs/demo/dropdown/size.vue | 71 - one/docs/demo/dropdown/style.vue | 59 - one/docs/demo/embedded/size.vue | 50 - one/docs/demo/filter-panel/default.vue | 63 - one/docs/demo/focus-visible.vue | 62 - one/docs/demo/form/abstract.vue | 80 - one/docs/demo/form/disabled.vue | 44 - one/docs/demo/form/help.vue | 63 - one/docs/demo/form/normal.vue | 74 - one/docs/demo/form/readonly.vue | 44 - one/docs/demo/form/validate.vue | 326 - one/docs/demo/form/withhold.vue | 47 - one/docs/demo/icon/default.vue | 70 - one/docs/demo/input-group/default.vue | 126 - one/docs/demo/input/composition.vue | 39 - one/docs/demo/input/disabled.vue | 60 - one/docs/demo/input/readonly.vue | 60 - one/docs/demo/input/size.vue | 39 - one/docs/demo/input/trim.vue | 33 - one/docs/demo/label/default.vue | 55 - one/docs/demo/layout/basic.vue | 47 - one/docs/demo/layout/global-footer.vue | 51 - one/docs/demo/layout/global-sidebar.vue | 51 - one/docs/demo/layout/sticky.vue | 68 - one/docs/demo/lightbox/default.vue | 90 - one/docs/demo/link/default.vue | 55 - one/docs/demo/loading/layout.vue | 34 - one/docs/demo/loading/size.vue | 92 - one/docs/demo/loading/slot.vue | 72 - one/docs/demo/loading/style.vue | 44 - one/docs/demo/message/default.vue | 102 - one/docs/demo/nav/card.vue | 87 - one/docs/demo/nav/more.vue | 95 - one/docs/demo/nav/size.vue | 89 - one/docs/demo/nav/slot.vue | 92 - one/docs/demo/number-input/decimal.vue | 28 - one/docs/demo/number-input/disabled.vue | 53 - one/docs/demo/number-input/readonly.vue | 52 - one/docs/demo/number-input/size.vue | 40 - one/docs/demo/overlay/position.vue | 62 - one/docs/demo/overlay/relative-base.vue | 61 - .../stack-display-order-with-on-overlay.vue | 107 - one/docs/demo/overlay/stack-display-order.vue | 91 - one/docs/demo/overlay/stack-on-overlay.vue | 80 - one/docs/demo/pagination/pages.vue | 55 - one/docs/demo/pagination/parts.vue | 60 - one/docs/demo/pagination/size.vue | 58 - one/docs/demo/popover/foot.vue | 48 - one/docs/demo/popover/position.vue | 151 - one/docs/demo/popover/trigger.vue | 78 - one/docs/demo/popover/ui.vue | 64 - one/docs/demo/progress/default.vue | 82 - one/docs/demo/prompt-box/base.vue | 42 - one/docs/demo/radio-button-group/default.vue | 77 - one/docs/demo/radio-button-group/desc.vue | 50 - one/docs/demo/radio-button-group/simple.vue | 53 - one/docs/demo/radio-button-group/stable.vue | 47 - one/docs/demo/radio-group/default.vue | 62 - one/docs/demo/radio-group/desc.vue | 50 - one/docs/demo/radio/model.vue | 47 - one/docs/demo/radio/size.vue | 47 - one/docs/demo/region-picker/default.vue | 44 - one/docs/demo/schedule/default.vue | 71 - one/docs/demo/search-box/disabled.vue | 69 - one/docs/demo/search-box/size.vue | 43 - one/docs/demo/search-box/style.vue | 22 - one/docs/demo/search-box/suggestion.vue | 77 - one/docs/demo/select/inline.vue | 102 - one/docs/demo/select/multiple.vue | 79 - one/docs/demo/select/searchable.vue | 38 - one/docs/demo/select/selected.vue | 81 - one/docs/demo/select/size.vue | 59 - one/docs/demo/sidebar/collapse-mode.vue | 69 - one/docs/demo/sidebar/collapsible.vue | 59 - one/docs/demo/sidenav/collaspible.vue | 121 - one/docs/demo/sidenav/normal.vue | 83 - one/docs/demo/sidenav/slot.vue | 93 - one/docs/demo/slider/buffer.vue | 24 - one/docs/demo/slider/editable.vue | 28 - one/docs/demo/slider/range.vue | 24 - one/docs/demo/slider/size.vue | 24 - one/docs/demo/slider/steps.vue | 35 - one/docs/demo/slider/variant.vue | 102 - one/docs/demo/steps/default.vue | 117 - one/docs/demo/steps/status.vue | 54 - one/docs/demo/style/number.vue | 57 - one/docs/demo/switch/size.vue | 64 - one/docs/demo/switch/value.vue | 33 - one/docs/demo/table/advanced.vue | 229 - one/docs/demo/table/basic.vue | 151 - one/docs/demo/table/desc.vue | 94 - one/docs/demo/table/expandable.vue | 158 - one/docs/demo/table/filter.vue | 153 - one/docs/demo/table/fixed.vue | 145 - one/docs/demo/table/loading.vue | 95 - one/docs/demo/table/order.vue | 134 - one/docs/demo/table/scrollable.vue | 125 - one/docs/demo/table/tooltip.vue | 64 - one/docs/demo/tabs/disabled.vue | 57 - one/docs/demo/tabs/route.vue | 46 - one/docs/demo/tabs/size.vue | 73 - one/docs/demo/tabs/style.vue | 72 - one/docs/demo/tag/removable.vue | 51 - one/docs/demo/tag/selectable.vue | 51 - one/docs/demo/tag/size.vue | 70 - one/docs/demo/textarea/autoresize.vue | 26 - one/docs/demo/textarea/disabled.vue | 46 - one/docs/demo/textarea/readonly.vue | 48 - one/docs/demo/textarea/size.vue | 29 - one/docs/demo/time-picker/datasource.vue | 37 - one/docs/demo/time-picker/mode.vue | 47 - one/docs/demo/time-picker/range.vue | 29 - one/docs/demo/toast/default.vue | 53 - one/docs/demo/toast/plugin.vue | 41 - one/docs/demo/tooltip/position.vue | 151 - one/docs/demo/tooltip/style.vue | 45 - one/docs/demo/tooltip/trigger.vue | 78 - one/docs/demo/transfer/custom-search.vue | 196 - one/docs/demo/transfer/flat.vue | 177 - one/docs/demo/transfer/merge-checked.vue | 200 - one/docs/demo/transfer/no-search.vue | 149 - one/docs/demo/transfer/size.vue | 163 - one/docs/demo/tree/custom-item.vue | 195 - one/docs/demo/tree/default.vue | 183 - one/docs/demo/tree/size.vue | 80 - one/docs/demo/ui.vue | 39 - one/docs/demo/uploader/controls.vue | 57 - one/docs/demo/uploader/custom.vue | 85 - one/docs/demo/uploader/entries.vue | 57 - one/docs/demo/uploader/file.vue | 58 - one/docs/demo/uploader/image.vue | 56 - one/docs/demo/uploader/media.vue | 59 - one/docs/demo/uploader/sortable.vue | 36 - one/docs/demo/uploader/validate.vue | 55 - one/docs/directives/v-drag.md | 189 - one/docs/directives/v-longpress.md | 60 - one/docs/directives/v-nudge.md | 81 - one/docs/directives/v-outside.md | 91 - one/docs/directives/v-resize.md | 77 - one/docs/directives/v-tooltip.md | 67 - one/docs/en-US/components/alert-box.md | 75 - one/docs/en-US/components/alert.md | 91 - one/docs/en-US/components/breadcrumb-item.md | 48 - one/docs/en-US/components/breadcrumb.md | 116 - one/docs/en-US/components/button-group.md | 111 - one/docs/en-US/components/button.md | 93 - one/docs/en-US/components/calendar.md | 119 - one/docs/en-US/components/carousel.md | 107 - .../en-US/components/check-button-group.md | 95 - one/docs/en-US/components/checkbox-group.md | 88 - one/docs/en-US/components/checkbox.md | 83 - one/docs/en-US/components/column.md | 110 - one/docs/en-US/components/confirm-box.md | 48 - one/docs/en-US/components/date-picker.md | 238 - one/docs/en-US/components/dialog.md | 141 - one/docs/en-US/components/dropdown.md | 195 - one/docs/en-US/components/filter-panel.md | 58 - one/docs/en-US/components/grid-column.md | 26 - one/docs/en-US/components/grid-container.md | 48 - one/docs/en-US/components/grid-row.md | 17 - one/docs/en-US/components/icon.md | 33 - one/docs/en-US/components/input.md | 134 - one/docs/en-US/components/link.md | 57 - one/docs/en-US/components/loading.md | 56 - one/docs/en-US/components/option-group.md | 114 - one/docs/en-US/components/option.md | 37 - one/docs/en-US/components/overlay.md | 106 - one/docs/en-US/components/pagination.md | 77 - one/docs/en-US/components/popover.md | 71 - one/docs/en-US/components/progress.md | 59 - one/docs/en-US/components/prompt-box.md | 65 - .../en-US/components/radio-button-group.md | 88 - one/docs/en-US/components/radio-group.md | 86 - one/docs/en-US/components/radio.md | 73 - one/docs/en-US/components/region-picker.md | 79 - one/docs/en-US/components/schedule.md | 146 - one/docs/en-US/components/search-box.md | 204 - one/docs/en-US/components/select.md | 235 - one/docs/en-US/components/slider.md | 126 - one/docs/en-US/components/steps.md | 89 - one/docs/en-US/components/switch.md | 75 - one/docs/en-US/components/table.md | 148 - one/docs/en-US/components/tabs/index.vue | 5 - one/docs/en-US/components/tabs/tab.vue | 5 - one/docs/en-US/components/tabs/tab2.vue | 5 - one/docs/en-US/components/tabs/tab3.vue | 5 - one/docs/en-US/components/textarea.md | 90 - one/docs/en-US/components/toast.md | 74 - one/docs/en-US/components/tooltip.md | 80 - one/docs/en-US/components/transfer.md | 197 - one/docs/en-US/components/tree.md | 169 - one/docs/en-US/components/uploader.md | 319 - .../getting-started/babel-plugin-veui.md | 78 - one/docs/en-US/getting-started/index.md | 108 - .../en-US/getting-started/style-variants.md | 35 - one/docs/en-US/getting-started/veui-loader.md | 64 - one/docs/en-US/index.md | 33 - one/docs/getting-started/babel-plugin-veui.md | 78 - one/docs/getting-started/index.md | 108 - one/docs/getting-started/style-variants.md | 35 - one/docs/getting-started/veui-loader.md | 64 - one/docs/index.md | 25 +- one/docs/nav.json | 825 +- one/docs/plugins/alert.md | 38 - one/docs/plugins/confirm.md | 29 - one/docs/plugins/prompt.md | 29 - one/docs/plugins/toast.md | 34 - one/docs/typescript.md | 68 - one/docs/use.md | 34 + one/templates/page.etpl | 4 +- package-lock.json | 12667 +++++++++------- package.json | 7 +- plugins/i18n.js | 9 +- yarn.lock | 12124 +++++++++++++++ 421 files changed, 20350 insertions(+), 40204 deletions(-) create mode 100644 .idea/.gitignore create mode 100644 .idea/codeStyles/Project.xml create mode 100644 .idea/codeStyles/codeStyleConfig.xml create mode 100644 .idea/inspectionProfiles/Project_Default.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml create mode 100644 .idea/vue2.iml delete mode 100644 LICENSE create mode 100644 env.js delete mode 100644 one/docs/advanced/custom-rules.md delete mode 100644 one/docs/advanced/global-config.md delete mode 100644 one/docs/advanced/overlay.md delete mode 100644 one/docs/advanced/theming.md delete mode 100644 one/docs/changelog.vue delete mode 100644 one/docs/components/accordion.md delete mode 100644 one/docs/components/alert-box.md delete mode 100644 one/docs/components/alert.md delete mode 100644 one/docs/components/anchor.md delete mode 100644 one/docs/components/autocomplete.md delete mode 100644 one/docs/components/badge.md delete mode 100644 one/docs/components/breadcrumb-item.md delete mode 100644 one/docs/components/breadcrumb.md delete mode 100644 one/docs/components/button-group.md delete mode 100644 one/docs/components/button.md delete mode 100644 one/docs/components/calendar.md delete mode 100644 one/docs/components/carousel.md delete mode 100644 one/docs/components/cascader.md delete mode 100644 one/docs/components/check-button-group.md delete mode 100644 one/docs/components/checkbox-group.md delete mode 100644 one/docs/components/checkbox.md delete mode 100644 one/docs/components/collapse.md delete mode 100644 one/docs/components/column.md delete mode 100644 one/docs/components/config-provider.md delete mode 100644 one/docs/components/confirm-box.md create mode 100644 one/docs/components/conponent.md delete mode 100644 one/docs/components/content.md delete mode 100644 one/docs/components/date-picker.md delete mode 100644 one/docs/components/dialog.md delete mode 100644 one/docs/components/drawer.md delete mode 100644 one/docs/components/dropdown.md delete mode 100644 one/docs/components/embedded.md delete mode 100644 one/docs/components/field.md delete mode 100644 one/docs/components/fieldset.md delete mode 100644 one/docs/components/filter-panel.md delete mode 100644 one/docs/components/footer.md delete mode 100644 one/docs/components/form.md delete mode 100644 one/docs/components/grid-column.md delete mode 100644 one/docs/components/grid-container.md delete mode 100644 one/docs/components/grid-row.md delete mode 100644 one/docs/components/header.md delete mode 100644 one/docs/components/icon.md delete mode 100644 one/docs/components/input-group.md delete mode 100644 one/docs/components/input.md delete mode 100644 one/docs/components/label.md delete mode 100644 one/docs/components/layout.md delete mode 100644 one/docs/components/lightbox.md delete mode 100644 one/docs/components/link.md delete mode 100644 one/docs/components/loading.md delete mode 100644 one/docs/components/message.md delete mode 100644 one/docs/components/nav.md delete mode 100644 one/docs/components/number-input.md delete mode 100644 one/docs/components/option-group.md delete mode 100644 one/docs/components/option.md delete mode 100644 one/docs/components/overlay.md delete mode 100644 one/docs/components/pagination.md delete mode 100644 one/docs/components/popover.md delete mode 100644 one/docs/components/progress.md delete mode 100644 one/docs/components/prompt-box.md delete mode 100644 one/docs/components/radio-button-group.md delete mode 100644 one/docs/components/radio-group.md delete mode 100644 one/docs/components/radio.md delete mode 100644 one/docs/components/region-picker.md delete mode 100644 one/docs/components/schedule.md delete mode 100644 one/docs/components/search-box.md delete mode 100644 one/docs/components/select.md delete mode 100644 one/docs/components/sidebar.md delete mode 100644 one/docs/components/sidenav.md delete mode 100644 one/docs/components/slider.md delete mode 100644 one/docs/components/span.md delete mode 100644 one/docs/components/steps.md delete mode 100644 one/docs/components/switch.md delete mode 100644 one/docs/components/tab.md delete mode 100644 one/docs/components/table.md delete mode 100644 one/docs/components/tabs.md delete mode 100644 one/docs/components/tabs/index.vue delete mode 100644 one/docs/components/tabs/tab.vue delete mode 100644 one/docs/components/tabs/tab2.vue delete mode 100644 one/docs/components/tabs/tab3.vue delete mode 100644 one/docs/components/tag.md delete mode 100644 one/docs/components/textarea.md delete mode 100644 one/docs/components/time-picker.md delete mode 100644 one/docs/components/toast.md delete mode 100644 one/docs/components/tooltip.md delete mode 100644 one/docs/components/transfer.md delete mode 100644 one/docs/components/tree.md delete mode 100644 one/docs/components/uploader.md delete mode 100644 one/docs/demo/accordion/multiple.vue delete mode 100644 one/docs/demo/accordion/position.vue delete mode 100644 one/docs/demo/accordion/size.vue delete mode 100644 one/docs/demo/accordion/variant.vue delete mode 100644 one/docs/demo/alert-box/title.vue delete mode 100644 one/docs/demo/alert-box/type.vue delete mode 100644 one/docs/demo/alert/extra.vue delete mode 100644 one/docs/demo/alert/multiple.vue delete mode 100644 one/docs/demo/alert/title.vue delete mode 100644 one/docs/demo/alert/type.vue delete mode 100644 one/docs/demo/anchor/normal.vue delete mode 100644 one/docs/demo/anchor/offset.vue delete mode 100644 one/docs/demo/anchor/sticky.vue delete mode 100644 one/docs/demo/autocomplete/custom.vue delete mode 100644 one/docs/demo/autocomplete/normal.vue delete mode 100644 one/docs/demo/autocomplete/strict.vue delete mode 100644 one/docs/demo/badge/corner-dot.vue delete mode 100644 one/docs/demo/badge/dot.vue delete mode 100644 one/docs/demo/badge/number.vue delete mode 100644 one/docs/demo/badge/text.vue delete mode 100644 one/docs/demo/breadcrumb/base.vue delete mode 100644 one/docs/demo/breadcrumb/datasource.vue delete mode 100644 one/docs/demo/breadcrumb/redirect.vue delete mode 100644 one/docs/demo/breadcrumb/separator.vue delete mode 100644 one/docs/demo/breadcrumb/size.vue delete mode 100644 one/docs/demo/breadcrumb/style.vue delete mode 100644 one/docs/demo/button-group/disabled.vue delete mode 100644 one/docs/demo/button-group/items.vue delete mode 100644 one/docs/demo/button-group/size.vue delete mode 100644 one/docs/demo/button-group/style.vue delete mode 100644 one/docs/demo/button/disabled.vue delete mode 100644 one/docs/demo/button/loading.vue delete mode 100644 one/docs/demo/button/size.vue delete mode 100644 one/docs/demo/button/style.vue delete mode 100644 one/docs/demo/calendar/date-class.vue delete mode 100644 one/docs/demo/calendar/default.vue delete mode 100644 one/docs/demo/calendar/disabled-date.vue delete mode 100644 one/docs/demo/calendar/fill-month.vue delete mode 100644 one/docs/demo/calendar/multiple-ranges.vue delete mode 100644 one/docs/demo/calendar/range-multiple.vue delete mode 100644 one/docs/demo/calendar/slots.vue delete mode 100644 one/docs/demo/calendar/type.vue delete mode 100644 one/docs/demo/carousel/autoplay.vue delete mode 100644 one/docs/demo/carousel/effect.vue delete mode 100644 one/docs/demo/carousel/indicator.vue delete mode 100644 one/docs/demo/carousel/ratio.vue delete mode 100644 one/docs/demo/carousel/slides.vue delete mode 100644 one/docs/demo/carousel/switch.vue delete mode 100644 one/docs/demo/carousel/vertical.vue delete mode 100644 one/docs/demo/cascader/column-trigger.vue delete mode 100644 one/docs/demo/cascader/inline.vue delete mode 100644 one/docs/demo/cascader/multiple.vue delete mode 100644 one/docs/demo/cascader/searchable.vue delete mode 100644 one/docs/demo/cascader/select-mode.vue delete mode 100644 one/docs/demo/cascader/size.vue delete mode 100644 one/docs/demo/cascader/value-display.vue delete mode 100644 one/docs/demo/check-button-group/default.vue delete mode 100644 one/docs/demo/check-button-group/desc.vue delete mode 100644 one/docs/demo/check-button-group/exclusive.vue delete mode 100644 one/docs/demo/check-button-group/simple.vue delete mode 100644 one/docs/demo/check-button-group/stable.vue delete mode 100644 one/docs/demo/checkbox-group/default.vue delete mode 100644 one/docs/demo/checkbox-group/desc.vue delete mode 100644 one/docs/demo/checkbox-group/exclusive.vue delete mode 100644 one/docs/demo/checkbox/size.vue delete mode 100644 one/docs/demo/checkbox/value.vue delete mode 100644 one/docs/demo/collapse/position.vue delete mode 100644 one/docs/demo/collapse/size.vue delete mode 100644 one/docs/demo/collapse/variant.vue delete mode 100644 one/docs/demo/config-provider/select.vue delete mode 100644 one/docs/demo/confirm-box/custom.vue delete mode 100644 one/docs/demo/date-picker/default.vue delete mode 100644 one/docs/demo/date-picker/disabled.vue delete mode 100644 one/docs/demo/date-picker/range.vue delete mode 100644 one/docs/demo/date-picker/shortcuts.vue delete mode 100644 one/docs/demo/dialog/async.vue delete mode 100644 one/docs/demo/dialog/custom.vue delete mode 100644 one/docs/demo/dialog/draggable.vue delete mode 100644 one/docs/demo/dialog/modal.vue delete mode 100644 one/docs/demo/dialog/size.vue delete mode 100644 one/docs/demo/dialog/stack.vue delete mode 100644 one/docs/demo/dialog/status.vue delete mode 100644 one/docs/demo/directives/drag/axis.vue delete mode 100644 one/docs/demo/directives/drag/base.vue delete mode 100644 one/docs/demo/directives/drag/containment.vue delete mode 100644 one/docs/demo/directives/drag/sort-x.vue delete mode 100644 one/docs/demo/directives/drag/sort-y.vue delete mode 100644 one/docs/demo/directives/drag/targets.vue delete mode 100644 one/docs/demo/directives/nudge.vue delete mode 100644 one/docs/demo/directives/outside/click.vue delete mode 100644 one/docs/demo/directives/outside/hover-with-delay.vue delete mode 100644 one/docs/demo/directives/outside/hover.vue delete mode 100644 one/docs/demo/directives/resize.vue delete mode 100644 one/docs/demo/directives/tooltip/default.vue delete mode 100644 one/docs/demo/directives/tooltip/overflow.vue delete mode 100644 one/docs/demo/drawer/custom.vue delete mode 100644 one/docs/demo/drawer/modal.vue delete mode 100644 one/docs/demo/drawer/placement.vue delete mode 100644 one/docs/demo/dropdown/disable.vue delete mode 100644 one/docs/demo/dropdown/inline.vue delete mode 100644 one/docs/demo/dropdown/other.vue delete mode 100644 one/docs/demo/dropdown/searchable.vue delete mode 100644 one/docs/demo/dropdown/size.vue delete mode 100644 one/docs/demo/dropdown/style.vue delete mode 100644 one/docs/demo/embedded/size.vue delete mode 100644 one/docs/demo/filter-panel/default.vue delete mode 100644 one/docs/demo/focus-visible.vue delete mode 100644 one/docs/demo/form/abstract.vue delete mode 100644 one/docs/demo/form/disabled.vue delete mode 100644 one/docs/demo/form/help.vue delete mode 100644 one/docs/demo/form/normal.vue delete mode 100644 one/docs/demo/form/readonly.vue delete mode 100644 one/docs/demo/form/validate.vue delete mode 100644 one/docs/demo/form/withhold.vue delete mode 100644 one/docs/demo/icon/default.vue delete mode 100644 one/docs/demo/input-group/default.vue delete mode 100644 one/docs/demo/input/composition.vue delete mode 100644 one/docs/demo/input/disabled.vue delete mode 100644 one/docs/demo/input/readonly.vue delete mode 100644 one/docs/demo/input/size.vue delete mode 100644 one/docs/demo/input/trim.vue delete mode 100644 one/docs/demo/label/default.vue delete mode 100644 one/docs/demo/layout/basic.vue delete mode 100644 one/docs/demo/layout/global-footer.vue delete mode 100644 one/docs/demo/layout/global-sidebar.vue delete mode 100644 one/docs/demo/layout/sticky.vue delete mode 100644 one/docs/demo/lightbox/default.vue delete mode 100644 one/docs/demo/link/default.vue delete mode 100644 one/docs/demo/loading/layout.vue delete mode 100644 one/docs/demo/loading/size.vue delete mode 100644 one/docs/demo/loading/slot.vue delete mode 100644 one/docs/demo/loading/style.vue delete mode 100644 one/docs/demo/message/default.vue delete mode 100644 one/docs/demo/nav/card.vue delete mode 100644 one/docs/demo/nav/more.vue delete mode 100644 one/docs/demo/nav/size.vue delete mode 100644 one/docs/demo/nav/slot.vue delete mode 100644 one/docs/demo/number-input/decimal.vue delete mode 100644 one/docs/demo/number-input/disabled.vue delete mode 100644 one/docs/demo/number-input/readonly.vue delete mode 100644 one/docs/demo/number-input/size.vue delete mode 100644 one/docs/demo/overlay/position.vue delete mode 100644 one/docs/demo/overlay/relative-base.vue delete mode 100644 one/docs/demo/overlay/stack-display-order-with-on-overlay.vue delete mode 100644 one/docs/demo/overlay/stack-display-order.vue delete mode 100644 one/docs/demo/overlay/stack-on-overlay.vue delete mode 100644 one/docs/demo/pagination/pages.vue delete mode 100644 one/docs/demo/pagination/parts.vue delete mode 100644 one/docs/demo/pagination/size.vue delete mode 100644 one/docs/demo/popover/foot.vue delete mode 100644 one/docs/demo/popover/position.vue delete mode 100644 one/docs/demo/popover/trigger.vue delete mode 100644 one/docs/demo/popover/ui.vue delete mode 100644 one/docs/demo/progress/default.vue delete mode 100644 one/docs/demo/prompt-box/base.vue delete mode 100644 one/docs/demo/radio-button-group/default.vue delete mode 100644 one/docs/demo/radio-button-group/desc.vue delete mode 100644 one/docs/demo/radio-button-group/simple.vue delete mode 100644 one/docs/demo/radio-button-group/stable.vue delete mode 100644 one/docs/demo/radio-group/default.vue delete mode 100644 one/docs/demo/radio-group/desc.vue delete mode 100644 one/docs/demo/radio/model.vue delete mode 100644 one/docs/demo/radio/size.vue delete mode 100644 one/docs/demo/region-picker/default.vue delete mode 100644 one/docs/demo/schedule/default.vue delete mode 100644 one/docs/demo/search-box/disabled.vue delete mode 100644 one/docs/demo/search-box/size.vue delete mode 100644 one/docs/demo/search-box/style.vue delete mode 100644 one/docs/demo/search-box/suggestion.vue delete mode 100644 one/docs/demo/select/inline.vue delete mode 100644 one/docs/demo/select/multiple.vue delete mode 100644 one/docs/demo/select/searchable.vue delete mode 100644 one/docs/demo/select/selected.vue delete mode 100644 one/docs/demo/select/size.vue delete mode 100644 one/docs/demo/sidebar/collapse-mode.vue delete mode 100644 one/docs/demo/sidebar/collapsible.vue delete mode 100644 one/docs/demo/sidenav/collaspible.vue delete mode 100644 one/docs/demo/sidenav/normal.vue delete mode 100644 one/docs/demo/sidenav/slot.vue delete mode 100644 one/docs/demo/slider/buffer.vue delete mode 100644 one/docs/demo/slider/editable.vue delete mode 100644 one/docs/demo/slider/range.vue delete mode 100644 one/docs/demo/slider/size.vue delete mode 100644 one/docs/demo/slider/steps.vue delete mode 100644 one/docs/demo/slider/variant.vue delete mode 100644 one/docs/demo/steps/default.vue delete mode 100644 one/docs/demo/steps/status.vue delete mode 100644 one/docs/demo/style/number.vue delete mode 100644 one/docs/demo/switch/size.vue delete mode 100644 one/docs/demo/switch/value.vue delete mode 100644 one/docs/demo/table/advanced.vue delete mode 100644 one/docs/demo/table/basic.vue delete mode 100644 one/docs/demo/table/desc.vue delete mode 100644 one/docs/demo/table/expandable.vue delete mode 100644 one/docs/demo/table/filter.vue delete mode 100644 one/docs/demo/table/fixed.vue delete mode 100644 one/docs/demo/table/loading.vue delete mode 100644 one/docs/demo/table/order.vue delete mode 100644 one/docs/demo/table/scrollable.vue delete mode 100644 one/docs/demo/table/tooltip.vue delete mode 100644 one/docs/demo/tabs/disabled.vue delete mode 100644 one/docs/demo/tabs/route.vue delete mode 100644 one/docs/demo/tabs/size.vue delete mode 100644 one/docs/demo/tabs/style.vue delete mode 100644 one/docs/demo/tag/removable.vue delete mode 100644 one/docs/demo/tag/selectable.vue delete mode 100644 one/docs/demo/tag/size.vue delete mode 100644 one/docs/demo/textarea/autoresize.vue delete mode 100644 one/docs/demo/textarea/disabled.vue delete mode 100644 one/docs/demo/textarea/readonly.vue delete mode 100644 one/docs/demo/textarea/size.vue delete mode 100644 one/docs/demo/time-picker/datasource.vue delete mode 100644 one/docs/demo/time-picker/mode.vue delete mode 100644 one/docs/demo/time-picker/range.vue delete mode 100644 one/docs/demo/toast/default.vue delete mode 100644 one/docs/demo/toast/plugin.vue delete mode 100644 one/docs/demo/tooltip/position.vue delete mode 100644 one/docs/demo/tooltip/style.vue delete mode 100644 one/docs/demo/tooltip/trigger.vue delete mode 100644 one/docs/demo/transfer/custom-search.vue delete mode 100644 one/docs/demo/transfer/flat.vue delete mode 100644 one/docs/demo/transfer/merge-checked.vue delete mode 100644 one/docs/demo/transfer/no-search.vue delete mode 100644 one/docs/demo/transfer/size.vue delete mode 100644 one/docs/demo/tree/custom-item.vue delete mode 100644 one/docs/demo/tree/default.vue delete mode 100644 one/docs/demo/tree/size.vue delete mode 100644 one/docs/demo/ui.vue delete mode 100644 one/docs/demo/uploader/controls.vue delete mode 100644 one/docs/demo/uploader/custom.vue delete mode 100644 one/docs/demo/uploader/entries.vue delete mode 100644 one/docs/demo/uploader/file.vue delete mode 100644 one/docs/demo/uploader/image.vue delete mode 100644 one/docs/demo/uploader/media.vue delete mode 100644 one/docs/demo/uploader/sortable.vue delete mode 100644 one/docs/demo/uploader/validate.vue delete mode 100644 one/docs/directives/v-drag.md delete mode 100644 one/docs/directives/v-longpress.md delete mode 100644 one/docs/directives/v-nudge.md delete mode 100644 one/docs/directives/v-outside.md delete mode 100644 one/docs/directives/v-resize.md delete mode 100644 one/docs/directives/v-tooltip.md delete mode 100644 one/docs/en-US/components/alert-box.md delete mode 100644 one/docs/en-US/components/alert.md delete mode 100644 one/docs/en-US/components/breadcrumb-item.md delete mode 100644 one/docs/en-US/components/breadcrumb.md delete mode 100644 one/docs/en-US/components/button-group.md delete mode 100644 one/docs/en-US/components/button.md delete mode 100644 one/docs/en-US/components/calendar.md delete mode 100644 one/docs/en-US/components/carousel.md delete mode 100644 one/docs/en-US/components/check-button-group.md delete mode 100644 one/docs/en-US/components/checkbox-group.md delete mode 100644 one/docs/en-US/components/checkbox.md delete mode 100644 one/docs/en-US/components/column.md delete mode 100644 one/docs/en-US/components/confirm-box.md delete mode 100644 one/docs/en-US/components/date-picker.md delete mode 100644 one/docs/en-US/components/dialog.md delete mode 100644 one/docs/en-US/components/dropdown.md delete mode 100644 one/docs/en-US/components/filter-panel.md delete mode 100644 one/docs/en-US/components/grid-column.md delete mode 100644 one/docs/en-US/components/grid-container.md delete mode 100644 one/docs/en-US/components/grid-row.md delete mode 100644 one/docs/en-US/components/icon.md delete mode 100644 one/docs/en-US/components/input.md delete mode 100644 one/docs/en-US/components/link.md delete mode 100644 one/docs/en-US/components/loading.md delete mode 100644 one/docs/en-US/components/option-group.md delete mode 100644 one/docs/en-US/components/option.md delete mode 100644 one/docs/en-US/components/overlay.md delete mode 100644 one/docs/en-US/components/pagination.md delete mode 100644 one/docs/en-US/components/popover.md delete mode 100644 one/docs/en-US/components/progress.md delete mode 100644 one/docs/en-US/components/prompt-box.md delete mode 100644 one/docs/en-US/components/radio-button-group.md delete mode 100644 one/docs/en-US/components/radio-group.md delete mode 100644 one/docs/en-US/components/radio.md delete mode 100644 one/docs/en-US/components/region-picker.md delete mode 100644 one/docs/en-US/components/schedule.md delete mode 100644 one/docs/en-US/components/search-box.md delete mode 100644 one/docs/en-US/components/select.md delete mode 100644 one/docs/en-US/components/slider.md delete mode 100644 one/docs/en-US/components/steps.md delete mode 100644 one/docs/en-US/components/switch.md delete mode 100644 one/docs/en-US/components/table.md delete mode 100644 one/docs/en-US/components/tabs/index.vue delete mode 100644 one/docs/en-US/components/tabs/tab.vue delete mode 100644 one/docs/en-US/components/tabs/tab2.vue delete mode 100644 one/docs/en-US/components/tabs/tab3.vue delete mode 100644 one/docs/en-US/components/textarea.md delete mode 100644 one/docs/en-US/components/toast.md delete mode 100644 one/docs/en-US/components/tooltip.md delete mode 100644 one/docs/en-US/components/transfer.md delete mode 100644 one/docs/en-US/components/tree.md delete mode 100644 one/docs/en-US/components/uploader.md delete mode 100644 one/docs/en-US/getting-started/babel-plugin-veui.md delete mode 100644 one/docs/en-US/getting-started/index.md delete mode 100644 one/docs/en-US/getting-started/style-variants.md delete mode 100644 one/docs/en-US/getting-started/veui-loader.md delete mode 100644 one/docs/en-US/index.md delete mode 100644 one/docs/getting-started/babel-plugin-veui.md delete mode 100644 one/docs/getting-started/index.md delete mode 100644 one/docs/getting-started/style-variants.md delete mode 100644 one/docs/getting-started/veui-loader.md delete mode 100644 one/docs/plugins/alert.md delete mode 100644 one/docs/plugins/confirm.md delete mode 100644 one/docs/plugins/prompt.md delete mode 100644 one/docs/plugins/toast.md delete mode 100644 one/docs/typescript.md create mode 100644 one/docs/use.md create mode 100644 yarn.lock diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..b58b603 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,5 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml new file mode 100644 index 0000000..17e0377 --- /dev/null +++ b/.idea/codeStyles/Project.xml @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml new file mode 100644 index 0000000..79ee123 --- /dev/null +++ b/.idea/codeStyles/codeStyleConfig.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 0000000..7c4836f --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,7 @@ + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..d789b3f --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/vue2.iml b/.idea/vue2.iml new file mode 100644 index 0000000..0c8867d --- /dev/null +++ b/.idea/vue2.iml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/LICENSE b/LICENSE deleted file mode 100644 index b2a6de6..0000000 --- a/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2020 Baidu EFE team - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/README.md b/README.md index ba1f8f6..71a9504 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,4 @@ -# veui/docs - -> VEUI 文档。 +# 文档服务 ## 本地安装 @@ -11,8 +9,6 @@ npm i npm run dev ``` -后在浏览访问 `http://localhost:3000` 即可。 - ## 文档编写 开发相关文档位于 `one/docs/development` 下。文档目录结构与网站的目录结构一致,新建 `.md` 文件后需要在 `one/docs/nav.json` 中新建相应的条目,作为目录配置。添加 `sub: true` 将缩进一个层级。 @@ -55,70 +51,5 @@ npm run dev 路径为 demo 文件相对于当前文档文件的路径。Demo 文件是一个 Vue 单文件组件,最后会将代码展示到文档中。可以编写多个 ` diff --git a/components/OneEditLink.vue b/components/OneEditLink.vue index 06dd862..691765d 100644 --- a/components/OneEditLink.vue +++ b/components/OneEditLink.vue @@ -1,110 +1,121 @@ diff --git a/components/OneFooter.vue b/components/OneFooter.vue index e8614e5..161f516 100644 --- a/components/OneFooter.vue +++ b/components/OneFooter.vue @@ -1,203 +1,190 @@ diff --git a/components/OneLive.vue b/components/OneLive.vue index 04ba1eb..728c2fc 100644 --- a/components/OneLive.vue +++ b/components/OneLive.vue @@ -1,78 +1,60 @@ diff --git a/components/OneMenu.vue b/components/OneMenu.vue index 4028e00..2b9965e 100644 --- a/components/OneMenu.vue +++ b/components/OneMenu.vue @@ -1,124 +1,95 @@ diff --git a/components/OneRepl.vue b/components/OneRepl.vue index 4882a71..07a9ee1 100644 --- a/components/OneRepl.vue +++ b/components/OneRepl.vue @@ -1,136 +1,134 @@ + diff --git a/env.js b/env.js new file mode 100644 index 0000000..3bc3239 --- /dev/null +++ b/env.js @@ -0,0 +1,4 @@ +export default { + app_name: '文档服务', + github_repo: 'http://10.1.23.40:8081/web/jhuan/jhuan-mes-pc-v2/', +} diff --git a/nuxt.config.js b/nuxt.config.js index 62a565a..5b7a12a 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -1,11 +1,11 @@ const path = require('path') const MonacoEditorPlugin = require('monaco-editor-webpack-plugin') -function resolve (p) { +function resolve(p) { return path.resolve(__dirname, p) } -function appendLoader (config, loader) { +function appendLoader(config, loader) { config.module.rules.push(loader) } @@ -17,29 +17,35 @@ module.exports = { * Headers of the page */ head: { - title: 'VEUI', + title: '', htmlAttrs: { lang: 'zh-Hans' }, - meta: [ - { charset: 'utf-8' }, - { name: 'viewport', content: 'width=device-width, initial-scale=1' }, + meta: [{ + charset: 'utf-8' + }, + { + name: 'viewport', + content: 'width=device-width, initial-scale=1' + }, { hid: 'description', name: 'description', - content: 'Website for VEUI: an enterprise component library for Vue.js.' + content: '' }, { name: 'theme-color', content: '#0052cc' } ], - link: [{ rel: 'shortcut icon', href: 'https://www.baidu.com/favicon.ico' }] + // link: [{ rel: 'shortcut icon', href: 'https://www.baidu.com/favicon.ico' }] }, /** * Customize the progress bar color */ - loading: { color: '#0052cc' }, + loading: { + color: '#0052cc' + }, pageTransition: { css: false @@ -52,13 +58,27 @@ module.exports = { 'veui-theme-dls/' ], - plugins: [ - { src: '~plugins/global.js' }, - { src: '~plugins/hm.js', ssr: false }, - { src: '~plugins/i18n.js' }, - { src: '~plugins/l10n.js' }, - { src: '~plugins/target.js', ssr: false }, - { src: '~plugins/prism.js', ssr: false } + plugins: [{ + src: '~plugins/global.js' + }, + { + src: '~plugins/hm.js', + ssr: false + }, + { + src: '~plugins/i18n.js' + }, + { + src: '~plugins/l10n.js' + }, + { + src: '~plugins/target.js', + ssr: false + }, + { + src: '~plugins/prism.js', + ssr: false + } ], /** @@ -101,7 +121,7 @@ module.exports = { }) ], - extend (config) { + extend(config) { /** * veui-loader */ @@ -111,13 +131,11 @@ module.exports = { loader: 'veui-loader', options: { locale: ['zh-Hans', 'en-US'], - modules: [ - { - package: 'veui-theme-dls', - fileName: '{module}.js', - transform: false - } - ] + modules: [{ + package: 'veui-theme-dls', + fileName: '{module}.js', + transform: false + }] }, include: [resolve('pages'), resolve('node_modules/veui')] }) diff --git a/one/docs/advanced/custom-rules.md b/one/docs/advanced/custom-rules.md deleted file mode 100644 index d271eed..0000000 --- a/one/docs/advanced/custom-rules.md +++ /dev/null @@ -1,91 +0,0 @@ -# 自定义校验规则 - -对于多值校验,`Form` 组件的 [`validators`](../components/form#props-validators) 属性提供了比较完善的功能来实现自定义校验。对于单值校验,`Field` 组件内置了 7 种常见规则,具体参考其 [`rule`](../components/field#props-rule) 属性。如果无法覆盖需求,`VEUI` 校验规则模块允许你添加自定义规则。 - -## 示例 - -```js -import ruleManager from 'veui/managers/rule' -ruleManager.addRule('range', { - validate (value, ruleValue) { - // 仅实现大小校验部分 - let range = value.split('-') - return +range[0] >= ruleValue.floor && +range[1] <= ruleValue.ceil - }, - message: '范围值必须在限定区间内', - priority: 100 -}) -``` - -```vue - -``` - -## API - -| 名称 | 类型 | 描述 | -| -- | -- | -- | -| `validate` | `function(value: *, ruleValue: ?*=)` | 校验逻辑,`value` 为 `Field` 需要校验的值,`ruleValue` 可选,根据规则需要添加,表示规则的限定值。 | -| `message` | `function | string` | [^message] | -| `priority` | `number` | [^priority] | - -^^^message -默认出错信息。 - -若类型为 `string`,可以通过 `{ruleValue}` 引用 `ruleValue`、`{value}` 引用 `value`。例如: - -```js -let minLengthRule = { - validate (value, ruleValue) { - return !isEmpty(value) ? val.length >= ruleValue : true - }, - message: '字符长度不能短于 {ruleValue},当前长度 {value}', - priority: 100 -} -``` - -若类型为 `function`,参数为 `(ruleValue: ?*=, value: *)`。例如: - -```js -let minLengthRule = { - validate (value, ruleValue) { - return !isEmpty(value) ? val.length >= ruleValue : true - }, - message (ruleValue, value) { - return `字符长度不能短于${ruleValue},当前长度${value}` - }, - priority: 100 -} -``` - -:::tip -如果需要支持运行时切换语言,`message` 必须使用 `function` 类型。 -::: -^^^ - -^^^priority -规则优先级。数值低优先级高。 - -+++目前内置的优先级 -| 名称 | 优先级 | -| -- | -- | -- | -| `required` | `0` | -| `numeric` | `10` | -| `pattern` | `50` | -| `maxLength` | `100` | -| `minLength` | `100` | -| `max` | `200` | -| `min` | `200` | -+++ diff --git a/one/docs/advanced/global-config.md b/one/docs/advanced/global-config.md deleted file mode 100644 index 3aa538f..0000000 --- a/one/docs/advanced/global-config.md +++ /dev/null @@ -1,61 +0,0 @@ -# 全局配置 - -VEUI 中很多组件都定义了全局配置项,允许开发者在使用时全局配置某个组件的行为细节。 - -例如,`Uploader` 组件可以统一配置上传模式,用户可以根据项目前后端接口、需要支持浏览器版本的具体情况选择使用 iframe 回调方式还是 XHR2 方式传递数据,也可以统一配置远端数据格式的转换函数。 - -VEUI 全局配置项可以通过 `veui/managers/config` 模块进行覆盖: - -```js -import config from 'veui/managers/config' - -config.set('uploader.requestMode', 'iframe') -config.set('uploader.convertResponse', ({ code, error, result }) => { - /** - * Transform from - * - * { - * code: 0, - * error: '...', - * result: { - * url: '...' - * } - * } - * - * to - * - * { - * success: true, - * message: '...', - * src: '...' - * } - */ - return { - success: code === 0, - src: error ? null : result.url, - message: error || null - } -}) -``` - -如果需要一次修改同一个组件的多项设置,可以使用如下写法: - -```js -import config from 'veui/managers/config' - -config.set({ - requestMode: 'iframe', - convertResponse: data => data -}, 'uploader') -``` - -`config.set()` 方法参数可为如下形式: - -* `(key: string, value: *, namespace: string)` -* `(values: Object<{key: string, value: *}>, namespace: string)` - -当提供了 `namespace` 参数时,最终生成的配置项键名为 \`${namespace}.${key}\`。 - -除此以外,还提供了相同参数列表的 `config.defaults()` 方法,区别在于当需要在配置项中写入的键值已经存在,则不会覆盖。 - -每个组件、指令等支持的全局配置请查看对应组件、指令的详情页。 diff --git a/one/docs/advanced/overlay.md b/one/docs/advanced/overlay.md deleted file mode 100644 index 67aff40..0000000 --- a/one/docs/advanced/overlay.md +++ /dev/null @@ -1,124 +0,0 @@ -# 浮层管理 - -在 VEUI 中,有大量组件使用到了浮层功能: - -* 各种类型的弹框:[对话框](../components/dialog)、[警告弹框](../components/alert-box)等; -* [下拉选择](../components/select); -* …… - -针对这些组件,我们抽离了具备如下功能的浮层模块: - -* 能够浮于页面上所有普通元素之上; -* 能够进行层叠顺序管理; -* 能够基于指定元素定位。 - -## 层叠覆盖 - -为了避免浮层被上层 `overflow: hidden` 的元素意外遮盖,我们将浮层根元素直接置于 `` 下统一管理。 - -在[浮层组件](../components/overlay)中,`.veui-overlay-box` 对应了浮层根元素,该元素在组件初始化的时候,会被放置到 `` 之下,组件销毁的时候,会被移除掉。 - -## 层叠顺序管理 - -在将浮层根元素置于 `` 下后,原有的层级嵌套关系会丢失,同时也无法通过原生的层叠上下文机制来控制浮层的层叠顺序。比如: - -* 某个对话框组件 A 上有一个下拉选择组件 B,那么 B 组件浮层应该位于 A 组件浮层之上。 -* 警告框浮层应该位于普通对话框浮层之上。 - -基于上述限制,浮层模块实现了自己的层叠顺序管理机制。整个浮层层级嵌套关系,是通过一棵树来表达的: - - - -树中每一个蓝色节点都对应关联到具体的[浮层组件](../components/overlay)实例。针对上图,树的构造顺序可以是: - -1. 弹出“对话框 1”,创建一个“对话框 1”节点,根据节点权重信息创建一个分组,然后将分组挂在 root 节点之下。 -2. 弹出“对话框 2”,创建一个“对话框 2”节点,发现已经存在相同权重的分组,就直接将“对话框 2”节点放置在该分组的末尾位置。 -3. 在“对话框 2”中实例化一个“下拉选择 1”组件实例,由于“对话框 2”组件实例是“下拉选择 1”组件实例的父级,因此对应的浮层节点也应当具备父子关系,因此按照类似于“步骤 1”的顺序在“对话框 2”节点下生成分组及“下拉选择 1”节点。 -4. 此时由于程序运行出现了故障,弹出了“警告弹框 1”,由于“警告弹框”类型的组件相对于“对话框”组件具备更高的层级权重,因此在 root 之下新建了一个靠右的分组,并将生成的“警告弹框 1”节点置于分组末尾。 - -有了树之后,就会按照深度优先的遍历顺序生成每个节点的 `z-index` 值。 - -其中,基准 `z-index` 值可以通过全局配置对象进行配置: - -```js -import config from 'veui/managers/config' - -config.set('overlay.baseZIndex', 200) -``` - -:::warning -必须在[浮层组件](../components/overlay)引入之前设置基准 `z-index`,不然不会生效。 -::: - -可以针对组件类型,甚至组件实例粒度设置层叠优先级,层叠优先级值越大,最终生成的 `z-index` 值就越大。具有相同层叠优先级的同级组件实例,越靠后实例化的组件,生成的 `z-index` 值越大。 - -浮层组件、对话框组件、弹框组件等提供了 `priority` 属性,用于自定义组件实例的层叠优先级: - -```html - -``` - -一些比较特殊的组件,会提供基于组件类型粒度的层叠优先级配置: - -| 组件 | 配置字段 | 默认值 | 修改配置示例 | -| -- | -- | -- | -- | -| 警告弹框 | `alertbox.priority` | `100` | [^alert-box] | -| 确认弹框 | `confirmbox.priority` | `100` | [^confirm-box] | -| 输入弹框 | `promptbox.priority` | `100` | [^prompt-box] | - -^^^alert-box -```js -import config from 'veui/managers/config' - -config.set('alertbox.priority', 100) -``` -^^^ - -^^^confirm-box -```js -import config from 'veui/managers/config' - -config.set('confirmbox.priority', 100) -``` -^^^ - -^^^prompt-box -```js -import config from 'veui/managers/config' - -config.set('promptbox.priority', 100) -``` -^^^ - -总结起来,确定某个浮层系组件实例的层叠优先级的逻辑流程为: - -* 如果能够设置组件实例级别的层叠优先级,并且设置了,那么就使用这个层叠优先级值,否则进入下一步; -* 如果能够设置组件类型级别的层叠优先级,并且设置了,那么就使用这个层叠优先级值,否则进入下一步; -* 使用默认的层叠优先级值:`1`。 - -## 定位 - -VEUI 中,浮层支持两种定位方式: - -* 在页面范围内,以坐标值的形式进行定位; -* 相对于某个元素,指定偏移和变换规则进行定位。 - -以坐标方式定位时,需要自己写 CSS 进行控制(浮层模块内部只会生成浮层根元素的 `z-index` 值)。 - -相对元素定位时,可以通过[浮层组件](../components/overlay)的 `options` 属性描述偏移和变换规则。由于目前内部采用 [Popper.js](https://popper.js.org/docs/v1/) 实现,因此完整的配置项可以参考 [Popper.js 官网](https://popper.js.org/docs/v1/#popperdefaults--codeobjectcode)。 - -## 样式 - -由于浮层根元素被手动放置到 `` 元素之下了,要设置浮层内容的样式,就需要给浮层根元素指定 `class`。所有浮层系组件都支持 `overlay-class` 属性,通过该属性为浮层根元素设置 `class`: - -```vue -