misp-ui-library-test 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +113 -0
- package/dist/theme-chalk/alert/index.scss +152 -0
- package/dist/theme-chalk/avatar/index.scss +51 -0
- package/dist/theme-chalk/backtop/index.scss +38 -0
- package/dist/theme-chalk/badge/index.scss +63 -0
- package/dist/theme-chalk/breadcrumb/index.scss +36 -0
- package/dist/theme-chalk/breadcrumb-item/index.scss +36 -0
- package/dist/theme-chalk/button/index.scss +157 -0
- package/dist/theme-chalk/card/index.scss +38 -0
- package/dist/theme-chalk/chart/index.scss +21 -0
- package/dist/theme-chalk/checkbox/index.scss +358 -0
- package/dist/theme-chalk/col/index.scss +131 -0
- package/dist/theme-chalk/container/index.scss +40 -0
- package/dist/theme-chalk/css/alert.css +484 -0
- package/dist/theme-chalk/css/avatar.css +409 -0
- package/dist/theme-chalk/css/backtop.css +401 -0
- package/dist/theme-chalk/css/badge.css +419 -0
- package/dist/theme-chalk/css/breadcrumb-item.css +395 -0
- package/dist/theme-chalk/css/breadcrumb.css +395 -0
- package/dist/theme-chalk/css/button.css +587 -0
- package/dist/theme-chalk/css/card.css +397 -0
- package/dist/theme-chalk/css/chart.css +386 -0
- package/dist/theme-chalk/css/checkbox.css +648 -0
- package/dist/theme-chalk/css/col.css +2111 -0
- package/dist/theme-chalk/css/container.css +404 -0
- package/dist/theme-chalk/css/dialog.css +505 -0
- package/dist/theme-chalk/css/divider.css +405 -0
- package/dist/theme-chalk/css/drawer.css +546 -0
- package/dist/theme-chalk/css/empty.css +394 -0
- package/dist/theme-chalk/css/form.css +561 -0
- package/dist/theme-chalk/css/icon.css +1534 -0
- package/dist/theme-chalk/css/image.css +400 -0
- package/dist/theme-chalk/css/input-number.css +424 -0
- package/dist/theme-chalk/css/input.css +721 -0
- package/dist/theme-chalk/css/link.css +424 -0
- package/dist/theme-chalk/css/loading.css +483 -0
- package/dist/theme-chalk/css/message-box.css +479 -0
- package/dist/theme-chalk/css/message.css +456 -0
- package/dist/theme-chalk/css/no-data.css +397 -0
- package/dist/theme-chalk/css/notification.css +431 -0
- package/dist/theme-chalk/css/page-header.css +396 -0
- package/dist/theme-chalk/css/pagination.css +565 -0
- package/dist/theme-chalk/css/popover.css +421 -0
- package/dist/theme-chalk/css/popper.css +454 -0
- package/dist/theme-chalk/css/progress.css +451 -0
- package/dist/theme-chalk/css/radio.css +626 -0
- package/dist/theme-chalk/css/rate.css +414 -0
- package/dist/theme-chalk/css/result.css +403 -0
- package/dist/theme-chalk/css/row.css +433 -0
- package/dist/theme-chalk/css/scrollbar.css +422 -0
- package/dist/theme-chalk/css/select.css +1897 -0
- package/dist/theme-chalk/css/skeleton-item.css +407 -0
- package/dist/theme-chalk/css/skeleton.css +390 -0
- package/dist/theme-chalk/css/slider.css +460 -0
- package/dist/theme-chalk/css/spinner.css +403 -0
- package/dist/theme-chalk/css/statistic.css +396 -0
- package/dist/theme-chalk/css/status-timeline-chart.css +388 -0
- package/dist/theme-chalk/css/step.css +496 -0
- package/dist/theme-chalk/css/steps.css +496 -0
- package/dist/theme-chalk/css/switch.css +507 -0
- package/dist/theme-chalk/css/tab-pane.css +457 -0
- package/dist/theme-chalk/css/table.css +461 -0
- package/dist/theme-chalk/css/tabs-navigation.css +925 -0
- package/dist/theme-chalk/css/tabs.css +457 -0
- package/dist/theme-chalk/css/tag.css +599 -0
- package/dist/theme-chalk/css/time-picker.css +683 -0
- package/dist/theme-chalk/css/timeline-item.css +459 -0
- package/dist/theme-chalk/css/timeline.css +459 -0
- package/dist/theme-chalk/css/tooltip.css +485 -0
- package/dist/theme-chalk/css/tree.css +473 -0
- package/dist/theme-chalk/css/upload.css +665 -0
- package/dist/theme-chalk/dialog/index.scss +168 -0
- package/dist/theme-chalk/divider/index.scss +46 -0
- package/dist/theme-chalk/drawer/index.scss +172 -0
- package/dist/theme-chalk/empty/index.scss +36 -0
- package/dist/theme-chalk/fonts/element-icons.ttf +0 -0
- package/dist/theme-chalk/fonts/element-icons.woff +0 -0
- package/dist/theme-chalk/form/index.scss +220 -0
- package/dist/theme-chalk/icon/index.scss +1171 -0
- package/dist/theme-chalk/image/index.scss +39 -0
- package/dist/theme-chalk/index.scss +127 -0
- package/dist/theme-chalk/input/index.scss +363 -0
- package/dist/theme-chalk/input-number/index.scss +71 -0
- package/dist/theme-chalk/link/index.scss +75 -0
- package/dist/theme-chalk/loading/index.scss +131 -0
- package/dist/theme-chalk/message/index.scss +100 -0
- package/dist/theme-chalk/message-box/index.scss +131 -0
- package/dist/theme-chalk/mixins.scss +203 -0
- package/dist/theme-chalk/no-data/index.scss +36 -0
- package/dist/theme-chalk/notification/index.scss +76 -0
- package/dist/theme-chalk/page-header/index.scss +36 -0
- package/dist/theme-chalk/pagination/index.scss +225 -0
- package/dist/theme-chalk/popover/index.scss +56 -0
- package/dist/theme-chalk/popper/index.scss +89 -0
- package/dist/theme-chalk/progress/index.scss +105 -0
- package/dist/theme-chalk/radio/index.scss +328 -0
- package/dist/theme-chalk/rate/index.scss +56 -0
- package/dist/theme-chalk/reset.scss +262 -0
- package/dist/theme-chalk/result/index.scss +46 -0
- package/dist/theme-chalk/row/index.scss +88 -0
- package/dist/theme-chalk/scrollbar/index.scss +67 -0
- package/dist/theme-chalk/select/index.scss +223 -0
- package/dist/theme-chalk/skeleton/index.scss +30 -0
- package/dist/theme-chalk/skeleton-item/index.scss +49 -0
- package/dist/theme-chalk/slider/index.scss +113 -0
- package/dist/theme-chalk/spinner/index.scss +40 -0
- package/dist/theme-chalk/statistic/index.scss +38 -0
- package/dist/theme-chalk/status-timeline-chart/index.scss +23 -0
- package/dist/theme-chalk/step/index.scss +160 -0
- package/dist/theme-chalk/steps/index.scss +160 -0
- package/dist/theme-chalk/switch/index.scss +153 -0
- package/dist/theme-chalk/tab-pane/index.scss +112 -0
- package/dist/theme-chalk/table/index.scss +110 -0
- package/dist/theme-chalk/tabs/index.scss +112 -0
- package/dist/theme-chalk/tabs-navigation/index.scss +631 -0
- package/dist/theme-chalk/tag/index.scss +138 -0
- package/dist/theme-chalk/themes/blue.scss +76 -0
- package/dist/theme-chalk/themes/dark.scss +99 -0
- package/dist/theme-chalk/themes/index.scss +260 -0
- package/dist/theme-chalk/themes/light.scss +99 -0
- package/dist/theme-chalk/time-picker/index.scss +332 -0
- package/dist/theme-chalk/timeline/index.scss +119 -0
- package/dist/theme-chalk/timeline-item/index.scss +119 -0
- package/dist/theme-chalk/tooltip/index.scss +122 -0
- package/dist/theme-chalk/tree/index.scss +125 -0
- package/dist/theme-chalk/upload/index.scss +348 -0
- package/dist/theme-chalk/variables.scss +93 -0
- package/dist/vue2-ui-library.cjs.temp.js.map +1 -0
- package/dist/vue2-ui-library.common.js +28 -0
- package/dist/vue2-ui-library.common.js.map +1 -0
- package/dist/vue2-ui-library.esm.js +29 -0
- package/dist/vue2-ui-library.umd.js +27 -0
- package/package.json +161 -0
- package/src/directives/clickoutside/index.js +111 -0
- package/src/directives/init/index.js +50 -0
- package/src/directives/resize/index.js +69 -0
- package/src/index.js +174 -0
- package/src/mixins/emitter.js +47 -0
- package/src/mixins/focus.js +42 -0
- package/src/mixins/locale.js +24 -0
- package/src/mixins/migrating.js +46 -0
- package/src/packages/alert/index.js +12 -0
- package/src/packages/alert/src/main.vue +98 -0
- package/src/packages/aside/index.js +12 -0
- package/src/packages/aside/src/main.vue +20 -0
- package/src/packages/auto-grid-layout/index.js +18 -0
- package/src/packages/auto-grid-layout/prop.js +92 -0
- package/src/packages/auto-grid-layout/src/components/GridItem.vue +759 -0
- package/src/packages/auto-grid-layout/src/components/GridLayout.vue +367 -0
- package/src/packages/auto-grid-layout/src/main.vue +287 -0
- package/src/packages/auto-grid-layout/src/utils/DOM.js +46 -0
- package/src/packages/auto-grid-layout/src/utils/interact.js +333 -0
- package/src/packages/auto-grid-layout/src/utils/responsiveUtils.js +75 -0
- package/src/packages/auto-grid-layout/src/utils/utils.js +339 -0
- package/src/packages/autocomplete/index.js +12 -0
- package/src/packages/autocomplete/src/main.vue +170 -0
- package/src/packages/avatar/index.js +12 -0
- package/src/packages/avatar/src/main.vue +87 -0
- package/src/packages/backtop/index.js +12 -0
- package/src/packages/backtop/src/main.vue +120 -0
- package/src/packages/badge/index.js +12 -0
- package/src/packages/badge/src/main.vue +53 -0
- package/src/packages/breadcrumb/index.js +12 -0
- package/src/packages/breadcrumb/src/main.vue +34 -0
- package/src/packages/breadcrumb-item/index.js +12 -0
- package/src/packages/breadcrumb-item/src/main.vue +41 -0
- package/src/packages/button/index.js +13 -0
- package/src/packages/button/src/main.vue +106 -0
- package/src/packages/calendar/index.js +12 -0
- package/src/packages/calendar/src/main.vue +173 -0
- package/src/packages/card/index.js +12 -0
- package/src/packages/card/src/main.vue +26 -0
- package/src/packages/carousel/index.js +12 -0
- package/src/packages/carousel/src/main.vue +186 -0
- package/src/packages/carousel-item/index.js +12 -0
- package/src/packages/carousel-item/src/main.vue +34 -0
- package/src/packages/cascader/index.js +12 -0
- package/src/packages/cascader/src/main.vue +232 -0
- package/src/packages/chart/index.js +7 -0
- package/src/packages/chart/src/axis-chart.js +700 -0
- package/src/packages/chart/src/main.vue +828 -0
- package/src/packages/chart/src/utils.js +21 -0
- package/src/packages/checkbox/index.js +44 -0
- package/src/packages/checkbox/src/main.vue +312 -0
- package/src/packages/col/index.js +12 -0
- package/src/packages/col/src/main.vue +85 -0
- package/src/packages/collapse/index.js +12 -0
- package/src/packages/collapse/src/main.vue +69 -0
- package/src/packages/collapse-item/index.js +12 -0
- package/src/packages/collapse-item/src/main.vue +75 -0
- package/src/packages/color-picker/index.js +12 -0
- package/src/packages/color-picker/src/main.vue +206 -0
- package/src/packages/container/index.js +12 -0
- package/src/packages/container/src/main.vue +33 -0
- package/src/packages/date-picker/index.js +12 -0
- package/src/packages/date-picker/src/main.vue +246 -0
- package/src/packages/descriptions/index.js +12 -0
- package/src/packages/descriptions/src/main.vue +89 -0
- package/src/packages/descriptions-item/index.js +12 -0
- package/src/packages/descriptions-item/src/main.vue +26 -0
- package/src/packages/dialog/index.js +12 -0
- package/src/packages/dialog/src/main.vue +336 -0
- package/src/packages/divider/index.js +12 -0
- package/src/packages/divider/src/main.vue +37 -0
- package/src/packages/drawer/index.js +7 -0
- package/src/packages/drawer/src/main.vue +310 -0
- package/src/packages/dropdown/index.js +12 -0
- package/src/packages/dropdown/src/main.vue +82 -0
- package/src/packages/dropdown-menu-item/index.js +12 -0
- package/src/packages/dropdown-menu-item/src/main.vue +29 -0
- package/src/packages/empty/index.js +12 -0
- package/src/packages/empty/src/img-empty.vue +12 -0
- package/src/packages/empty/src/main.vue +49 -0
- package/src/packages/footer/index.js +12 -0
- package/src/packages/footer/src/main.vue +20 -0
- package/src/packages/form/index.js +13 -0
- package/src/packages/form/src/form-field.vue +790 -0
- package/src/packages/form/src/form-item.vue +464 -0
- package/src/packages/form/src/label-wrap.vue +127 -0
- package/src/packages/form/src/main.vue +442 -0
- package/src/packages/form-item/index.js +11 -0
- package/src/packages/header/index.js +12 -0
- package/src/packages/header/src/main.vue +20 -0
- package/src/packages/icon/index.js +12 -0
- package/src/packages/icon/src/main.vue +48 -0
- package/src/packages/image/index.js +12 -0
- package/src/packages/image/src/main.vue +224 -0
- package/src/packages/input/index.js +13 -0
- package/src/packages/input/src/calcTextareaHeight.js +123 -0
- package/src/packages/input/src/main.vue +510 -0
- package/src/packages/input-number/index.js +12 -0
- package/src/packages/input-number/src/main.vue +121 -0
- package/src/packages/link/index.js +12 -0
- package/src/packages/link/src/main.vue +53 -0
- package/src/packages/loading/index.js +17 -0
- package/src/packages/loading/src/directive.js +54 -0
- package/src/packages/loading/src/main.vue +38 -0
- package/src/packages/loading/src/service.js +63 -0
- package/src/packages/main/index.js +12 -0
- package/src/packages/main/src/main.vue +12 -0
- package/src/packages/menu/index.js +12 -0
- package/src/packages/menu/src/main.vue +117 -0
- package/src/packages/menu-item/index.js +12 -0
- package/src/packages/menu-item/src/main.vue +61 -0
- package/src/packages/message/index.js +95 -0
- package/src/packages/message/src/main.vue +131 -0
- package/src/packages/message-box/index.js +75 -0
- package/src/packages/message-box/src/main.vue +207 -0
- package/src/packages/no-data/index.js +8 -0
- package/src/packages/no-data/src/main.vue +23 -0
- package/src/packages/notification/index.js +72 -0
- package/src/packages/notification/src/main.vue +139 -0
- package/src/packages/option/index.js +13 -0
- package/src/packages/page-header/index.js +12 -0
- package/src/packages/page-header/src/main.vue +27 -0
- package/src/packages/pagination/index.js +12 -0
- package/src/packages/pagination/src/main.vue +255 -0
- package/src/packages/popconfirm/index.js +12 -0
- package/src/packages/popconfirm/src/main.vue +89 -0
- package/src/packages/popover/index.js +12 -0
- package/src/packages/popover/src/main.vue +452 -0
- package/src/packages/progress/index.js +12 -0
- package/src/packages/progress/src/main.vue +236 -0
- package/src/packages/radio/index.js +44 -0
- package/src/packages/radio/src/main.vue +291 -0
- package/src/packages/rate/index.js +12 -0
- package/src/packages/rate/src/main.vue +129 -0
- package/src/packages/result/index.js +12 -0
- package/src/packages/result/src/main.vue +52 -0
- package/src/packages/row/index.js +12 -0
- package/src/packages/row/src/main.vue +57 -0
- package/src/packages/scrollbar/index.js +12 -0
- package/src/packages/scrollbar/src/bar.vue +116 -0
- package/src/packages/scrollbar/src/main.vue +124 -0
- package/src/packages/select/index.js +15 -0
- package/src/packages/select/src/clickoutside.js +20 -0
- package/src/packages/select/src/main.vue +1055 -0
- package/src/packages/select/src/navigation-mixin.js +49 -0
- package/src/packages/select/src/option.vue +249 -0
- package/src/packages/select/src/select-dropdown.vue +95 -0
- package/src/packages/select/src/utils.js +5 -0
- package/src/packages/skeleton/index.js +12 -0
- package/src/packages/skeleton/src/main.vue +76 -0
- package/src/packages/skeleton-item/index.js +12 -0
- package/src/packages/skeleton-item/src/img-placeholder.vue +13 -0
- package/src/packages/skeleton-item/src/main.vue +22 -0
- package/src/packages/slider/index.js +12 -0
- package/src/packages/slider/src/main.vue +176 -0
- package/src/packages/spinner/index.js +12 -0
- package/src/packages/spinner/src/main.vue +27 -0
- package/src/packages/statistic/index.js +12 -0
- package/src/packages/statistic/src/main.vue +100 -0
- package/src/packages/status-timeline-chart/index.js +7 -0
- package/src/packages/status-timeline-chart/src/constants.js +20 -0
- package/src/packages/status-timeline-chart/src/main.vue +499 -0
- package/src/packages/status-timeline-chart/src/option-builder.js +475 -0
- package/src/packages/step/index.js +12 -0
- package/src/packages/step/src/main.vue +183 -0
- package/src/packages/steps/index.js +12 -0
- package/src/packages/steps/src/main.vue +57 -0
- package/src/packages/submenu/index.js +12 -0
- package/src/packages/submenu/src/main.vue +68 -0
- package/src/packages/switch/index.js +12 -0
- package/src/packages/switch/src/main.vue +166 -0
- package/src/packages/tab-pane/index.js +12 -0
- package/src/packages/tab-pane/src/main.vue +74 -0
- package/src/packages/table/index.js +8 -0
- package/src/packages/table/src/components/PagePagination.vue +82 -0
- package/src/packages/table/src/main.vue +153 -0
- package/src/packages/tabs/index.js +12 -0
- package/src/packages/tabs/src/main.vue +167 -0
- package/src/packages/tabs-navigation/index.js +7 -0
- package/src/packages/tabs-navigation/src/main.vue +462 -0
- package/src/packages/tag/index.js +12 -0
- package/src/packages/tag/src/main.vue +194 -0
- package/src/packages/time-picker/index.js +17 -0
- package/src/packages/time-picker/src/date-utils.js +455 -0
- package/src/packages/time-picker/src/main.vue +321 -0
- package/src/packages/time-picker/src/pane/date-range.vue +193 -0
- package/src/packages/time-picker/src/pane/date-time-range.vue +362 -0
- package/src/packages/time-picker/src/pane/date-time.vue +362 -0
- package/src/packages/time-picker/src/pane/date.vue +441 -0
- package/src/packages/time-picker/src/pane/time.vue +260 -0
- package/src/packages/time-picker/src/time-input.vue +203 -0
- package/src/packages/time-picker/src/time-range-input.vue +170 -0
- package/src/packages/timeline/index.js +12 -0
- package/src/packages/timeline/src/main.vue +24 -0
- package/src/packages/timeline-item/index.js +12 -0
- package/src/packages/timeline-item/src/main.vue +78 -0
- package/src/packages/tooltip/index.js +12 -0
- package/src/packages/tooltip/src/main.js +367 -0
- package/src/packages/transfer/index.js +8 -0
- package/src/packages/transfer/src/main.vue +229 -0
- package/src/packages/transfer/src/transfer-panel.vue +245 -0
- package/src/packages/transitions/collapse-transition.js +75 -0
- package/src/packages/tree/index.js +12 -0
- package/src/packages/tree/src/main.vue +322 -0
- package/src/packages/tree/src/model/node.js +348 -0
- package/src/packages/tree/src/model/tree-store.js +354 -0
- package/src/packages/tree/src/model/util.js +10 -0
- package/src/packages/tree/src/tree-node.vue +262 -0
- package/src/packages/upload/index.js +9 -0
- package/src/packages/upload/src/main.vue +415 -0
- package/src/playground/mixins/element.js +98 -0
- package/src/playground/types/element.js +197 -0
- package/src/playground/types/layout.js +80 -0
- package/src/plugins/i18n.js +125 -0
- package/src/styles/fonts/element-icons.ttf +0 -0
- package/src/styles/fonts/element-icons.woff +0 -0
- package/src/styles/index.scss +138 -0
- package/src/styles/reset.scss +257 -0
- package/src/styles/themes/blue.scss +75 -0
- package/src/styles/themes/dark.scss +98 -0
- package/src/styles/themes/index.scss +34 -0
- package/src/styles/themes/light.scss +98 -0
- package/src/styles/themes/variables.scss +233 -0
- package/src/styles/variables.scss +146 -0
- package/src/utils/async-validator/index.js +659 -0
- package/src/utils/browser/index.js +39 -0
- package/src/utils/color.js +76 -0
- package/src/utils/dom/index.js +421 -0
- package/src/utils/dom/scrollbar-width.js +49 -0
- package/src/utils/draggable/core.js +379 -0
- package/src/utils/draggable/draggable.js +478 -0
- package/src/utils/draggable/index.js +61 -0
- package/src/utils/draggable/sortable.js +751 -0
- package/src/utils/lodash/index.js +2395 -0
- package/src/utils/moment/index.js +909 -0
- package/src/utils/playground/index.js +37 -0
- package/src/utils/popper/index.js +308 -0
- package/src/utils/popper/popper.js +1132 -0
- package/src/utils/popper/popup-manager.js +288 -0
- package/src/utils/popper/popup.js +344 -0
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
// 导入各个主题配置
|
|
2
|
+
@import './light.scss';
|
|
3
|
+
@import './dark.scss';
|
|
4
|
+
@import './blue.scss';
|
|
5
|
+
|
|
6
|
+
// 合并所有主题
|
|
7
|
+
$themes: (
|
|
8
|
+
"light": $light-theme,
|
|
9
|
+
"dark": $dark-theme,
|
|
10
|
+
"blue": $blue-theme
|
|
11
|
+
);
|
|
12
|
+
|
|
13
|
+
// 生成 CSS 变量
|
|
14
|
+
:root {
|
|
15
|
+
// 默认使用 light 主题
|
|
16
|
+
@each $key, $value in map-get($themes, "light") {
|
|
17
|
+
--#{'' + $key}: #{$value};
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@each $theme-name, $theme-map in $themes {
|
|
21
|
+
&[data-theme="#{$theme-name}"] {
|
|
22
|
+
@each $key, $value in $theme-map {
|
|
23
|
+
--#{'' + $key}: #{$value};
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// 文本颜色
|
|
30
|
+
$primary-text: var(--primary-text);
|
|
31
|
+
$sd-text: var(--sd-text);
|
|
32
|
+
$td-text: var(--td-text);
|
|
33
|
+
$fr-text: var(--fr-text);
|
|
34
|
+
$disable-text: var(--disable-text);
|
|
35
|
+
$click-text: var(--click-text);
|
|
36
|
+
$click-disable-text: var(--click-disable-text);
|
|
37
|
+
$white: var(--white);
|
|
38
|
+
|
|
39
|
+
// 蓝色系列
|
|
40
|
+
$primary-blue: var(--primary-blue);
|
|
41
|
+
$primary-blue-light: var(--primary-blue-light);
|
|
42
|
+
$sd-blue: var(--sd-blue);
|
|
43
|
+
$md-blue: var(--md-blue);
|
|
44
|
+
$fr-blue: var(--fr-blue);
|
|
45
|
+
$fifth-blue: var(--fifth-blue);
|
|
46
|
+
$blue-bg: var(--blue-bg);
|
|
47
|
+
$blue-bg-2: var(--blue-bg-2);
|
|
48
|
+
$tg-bg: var(--tg-bg);
|
|
49
|
+
$popup-bg: var(--popup-bg);
|
|
50
|
+
$box-shadow-3: var(--box-shadow-3);
|
|
51
|
+
|
|
52
|
+
// 背景色
|
|
53
|
+
$base-bg: var(--base-bg);
|
|
54
|
+
$sd-bg: var(--sd-bg);
|
|
55
|
+
$md-bg: var(--md-bg);
|
|
56
|
+
$fr-bg: var(--fr-bg);
|
|
57
|
+
|
|
58
|
+
// 边框线
|
|
59
|
+
$primary-line: var(--primary-line);
|
|
60
|
+
|
|
61
|
+
// 状态颜色
|
|
62
|
+
$success: var(--success);
|
|
63
|
+
$success-light: var(--success-light);
|
|
64
|
+
$danger: var(--danger);
|
|
65
|
+
$danger-light: var(--danger-light);
|
|
66
|
+
$warning: var(--warning);
|
|
67
|
+
$warning-light: var(--warning-light);
|
|
68
|
+
|
|
69
|
+
// z-index
|
|
70
|
+
$index-normal: 1;
|
|
71
|
+
$index-top: 1000;
|
|
72
|
+
$index-popover: 2000;
|
|
73
|
+
$index-modal: 3000;
|
|
74
|
+
$index-notification: 4000;
|
|
75
|
+
$index-message: 5000;
|
|
76
|
+
|
|
77
|
+
// 图表颜色系列
|
|
78
|
+
// 蓝色图表
|
|
79
|
+
$blue-1: var(--blue-1);
|
|
80
|
+
$blue-2: var(--blue-2);
|
|
81
|
+
$blue-3: var(--blue-3);
|
|
82
|
+
$blue-4: var(--blue-4);
|
|
83
|
+
$blue-5: var(--blue-5);
|
|
84
|
+
$blue-6: var(--blue-6);
|
|
85
|
+
|
|
86
|
+
// 绿色图表
|
|
87
|
+
$green-1: var(--green-1);
|
|
88
|
+
$green-2: var(--green-2);
|
|
89
|
+
$green-3: var(--green-3);
|
|
90
|
+
$green-4: var(--green-4);
|
|
91
|
+
$green-5: var(--green-5);
|
|
92
|
+
$green-6: var(--green-6);
|
|
93
|
+
|
|
94
|
+
// 青色图表
|
|
95
|
+
$aquamarine-1: var(--aquamarine-1);
|
|
96
|
+
$aquamarine-2: var(--aquamarine-2);
|
|
97
|
+
$aquamarine-3: var(--aquamarine-3);
|
|
98
|
+
$aquamarine-4: var(--aquamarine-4);
|
|
99
|
+
$aquamarine-5: var(--aquamarine-5);
|
|
100
|
+
$aquamarine-6: var(--aquamarine-6);
|
|
101
|
+
|
|
102
|
+
// 黄色图表
|
|
103
|
+
$yellow-1: var(--yellow-1);
|
|
104
|
+
$yellow-2: var(--yellow-2);
|
|
105
|
+
$yellow-3: var(--yellow-3);
|
|
106
|
+
$yellow-4: var(--yellow-4);
|
|
107
|
+
$yellow-5: var(--yellow-5);
|
|
108
|
+
$yellow-6: var(--yellow-6);
|
|
109
|
+
|
|
110
|
+
// 橙色图表
|
|
111
|
+
$orange-1: var(--orange-1);
|
|
112
|
+
$orange-2: var(--orange-2);
|
|
113
|
+
$orange-3: var(--orange-3);
|
|
114
|
+
$orange-4: var(--orange-4);
|
|
115
|
+
$orange-5: var(--orange-5);
|
|
116
|
+
$orange-6: var(--orange-6);
|
|
117
|
+
|
|
118
|
+
// 红色图表
|
|
119
|
+
$red-1: var(--red-1);
|
|
120
|
+
$red-2: var(--red-2);
|
|
121
|
+
$red-3: var(--red-3);
|
|
122
|
+
$red-4: var(--red-4);
|
|
123
|
+
$red-5: var(--red-5);
|
|
124
|
+
$red-6: var(--red-6);
|
|
125
|
+
|
|
126
|
+
// 紫色图表
|
|
127
|
+
$purple-1: var(--purple-1);
|
|
128
|
+
$purple-2: var(--purple-2);
|
|
129
|
+
$purple-3: var(--purple-3);
|
|
130
|
+
$purple-4: var(--purple-4);
|
|
131
|
+
$purple-5: var(--purple-5);
|
|
132
|
+
$purple-6: var(--purple-6);
|
|
133
|
+
|
|
134
|
+
// 导出变量给 JavaScript 使用
|
|
135
|
+
:export {
|
|
136
|
+
// 文本颜色
|
|
137
|
+
primaryText: $primary-text;
|
|
138
|
+
sdText: $sd-text;
|
|
139
|
+
tdText: $td-text;
|
|
140
|
+
frText: $fr-text;
|
|
141
|
+
disableText: $disable-text;
|
|
142
|
+
clickText: $click-text;
|
|
143
|
+
clickDisableText: $click-disable-text;
|
|
144
|
+
white: $white;
|
|
145
|
+
|
|
146
|
+
// 蓝色系列
|
|
147
|
+
primaryBlue: $primary-blue;
|
|
148
|
+
primaryBlueLight: $primary-blue-light;
|
|
149
|
+
sdBlue: $sd-blue;
|
|
150
|
+
mdBlue: $md-blue;
|
|
151
|
+
frBlue: $fr-blue;
|
|
152
|
+
fifthBlue: $fifth-blue;
|
|
153
|
+
|
|
154
|
+
// 背景色
|
|
155
|
+
baseBg: $base-bg;
|
|
156
|
+
sdBg: $sd-bg;
|
|
157
|
+
mdBg: $md-bg;
|
|
158
|
+
frBg: $fr-bg;
|
|
159
|
+
blueBg: $blue-bg;
|
|
160
|
+
blueBg2: $blue-bg-2;
|
|
161
|
+
tgBg: $tg-bg;
|
|
162
|
+
|
|
163
|
+
popupBg: $popup-bg;
|
|
164
|
+
boxShadow3: $box-shadow-3;
|
|
165
|
+
|
|
166
|
+
// 边框线
|
|
167
|
+
primaryLine: $primary-line;
|
|
168
|
+
|
|
169
|
+
// 状态颜色
|
|
170
|
+
success: $success;
|
|
171
|
+
successLight: $success-light;
|
|
172
|
+
danger: $danger;
|
|
173
|
+
dangerLight: $danger-light;
|
|
174
|
+
warning: $warning;
|
|
175
|
+
warningLight: $warning-light;
|
|
176
|
+
|
|
177
|
+
// 图表颜色系列
|
|
178
|
+
// 蓝色图表
|
|
179
|
+
blue1: $blue-1;
|
|
180
|
+
blue2: $blue-2;
|
|
181
|
+
blue3: $blue-3;
|
|
182
|
+
blue4: $blue-4;
|
|
183
|
+
blue5: $blue-5;
|
|
184
|
+
blue6: $blue-6;
|
|
185
|
+
|
|
186
|
+
// 绿色图表
|
|
187
|
+
green1: $green-1;
|
|
188
|
+
green2: $green-2;
|
|
189
|
+
green3: $green-3;
|
|
190
|
+
green4: $green-4;
|
|
191
|
+
green5: $green-5;
|
|
192
|
+
green6: $green-6;
|
|
193
|
+
|
|
194
|
+
// 青色图表
|
|
195
|
+
aquamarine1: $aquamarine-1;
|
|
196
|
+
aquamarine2: $aquamarine-2;
|
|
197
|
+
aquamarine3: $aquamarine-3;
|
|
198
|
+
aquamarine4: $aquamarine-4;
|
|
199
|
+
aquamarine5: $aquamarine-5;
|
|
200
|
+
aquamarine6: $aquamarine-6;
|
|
201
|
+
|
|
202
|
+
// 黄色图表
|
|
203
|
+
yellow1: $yellow-1;
|
|
204
|
+
yellow2: $yellow-2;
|
|
205
|
+
yellow3: $yellow-3;
|
|
206
|
+
yellow4: $yellow-4;
|
|
207
|
+
yellow5: $yellow-5;
|
|
208
|
+
yellow6: $yellow-6;
|
|
209
|
+
|
|
210
|
+
// 橙色图表
|
|
211
|
+
orange1: $orange-1;
|
|
212
|
+
orange2: $orange-2;
|
|
213
|
+
orange3: $orange-3;
|
|
214
|
+
orange4: $orange-4;
|
|
215
|
+
orange5: $orange-5;
|
|
216
|
+
orange6: $orange-6;
|
|
217
|
+
|
|
218
|
+
// 红色图表
|
|
219
|
+
red1: $red-1;
|
|
220
|
+
red2: $red-2;
|
|
221
|
+
red3: $red-3;
|
|
222
|
+
red4: $red-4;
|
|
223
|
+
red5: $red-5;
|
|
224
|
+
red6: $red-6;
|
|
225
|
+
|
|
226
|
+
// 紫色图表
|
|
227
|
+
purple1: $purple-1;
|
|
228
|
+
purple2: $purple-2;
|
|
229
|
+
purple3: $purple-3;
|
|
230
|
+
purple4: $purple-4;
|
|
231
|
+
purple5: $purple-5;
|
|
232
|
+
purple6: $purple-6;
|
|
233
|
+
}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
// Color System
|
|
2
|
+
// -----------
|
|
3
|
+
|
|
4
|
+
// Brand colors
|
|
5
|
+
$--color-primary: #409eff;
|
|
6
|
+
$--color-success: #67c23a;
|
|
7
|
+
$--color-warning: #e6a23c;
|
|
8
|
+
$--color-danger: #f56c6c;
|
|
9
|
+
$--color-info: #909399;
|
|
10
|
+
|
|
11
|
+
// Text colors
|
|
12
|
+
$--color-text-primary: #303133;
|
|
13
|
+
$--color-text-regular: #606266;
|
|
14
|
+
$--color-text-secondary: #909399;
|
|
15
|
+
$--color-text-placeholder: #c0c4cc;
|
|
16
|
+
$--color-text-disabled: #c0c4cc;
|
|
17
|
+
|
|
18
|
+
// Border colors
|
|
19
|
+
$--border-color-base: #dcdfe6;
|
|
20
|
+
$--border-color-light: #e4e7ed;
|
|
21
|
+
$--border-color-lighter: #ebeef5;
|
|
22
|
+
$--border-color-extra-light: #f2f6fc;
|
|
23
|
+
|
|
24
|
+
// Background colors
|
|
25
|
+
$--background-color-base: #ffffff;
|
|
26
|
+
$--background-color-light: #f5f7fa;
|
|
27
|
+
|
|
28
|
+
// Font family
|
|
29
|
+
$--font-path: '~vue2-ui-library/theme-chalk/fonts';
|
|
30
|
+
|
|
31
|
+
// Typography
|
|
32
|
+
$--font-size-base: 14px;
|
|
33
|
+
$--font-size-small: 13px;
|
|
34
|
+
$--font-size-large: 16px;
|
|
35
|
+
$--font-weight-primary: 500;
|
|
36
|
+
$--font-line-height-primary: 1.5;
|
|
37
|
+
|
|
38
|
+
// Border radius
|
|
39
|
+
$--border-radius-base: 4px;
|
|
40
|
+
$--border-radius-small: 2px;
|
|
41
|
+
$--border-radius-large: 8px;
|
|
42
|
+
$--border-radius-round: 20px;
|
|
43
|
+
$--border-radius-circle: 100%;
|
|
44
|
+
|
|
45
|
+
// Spacing
|
|
46
|
+
$--spacing-base: 4px;
|
|
47
|
+
$--spacing-small: 2px;
|
|
48
|
+
$--spacing-large: 8px;
|
|
49
|
+
$--spacing-extra-large: 16px;
|
|
50
|
+
|
|
51
|
+
// Shadows
|
|
52
|
+
$--box-shadow-base: 0 2px 4px rgba(0, 0, 0, .12), 0 0 6px rgba(0, 0, 0, .04);
|
|
53
|
+
$--box-shadow-light: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
|
|
54
|
+
$--box-shadow-dark: 0 2px 4px rgba(0, 0, 0, .2), 0 0 6px rgba(0, 0, 0, .12);
|
|
55
|
+
|
|
56
|
+
// Transitions
|
|
57
|
+
$--transition-duration: 0.3s;
|
|
58
|
+
$--transition-timing: ease;
|
|
59
|
+
|
|
60
|
+
// Z-index
|
|
61
|
+
$--index-normal: 1;
|
|
62
|
+
$--index-top: 1000;
|
|
63
|
+
$--index-popper: 2000;
|
|
64
|
+
|
|
65
|
+
// Component specific variables
|
|
66
|
+
// --------------------------
|
|
67
|
+
|
|
68
|
+
// Button
|
|
69
|
+
$--button-padding-vertical: 12px;
|
|
70
|
+
$--button-padding-horizontal: 20px;
|
|
71
|
+
$--button-border-radius: $--border-radius-base;
|
|
72
|
+
$--button-font-size: $--font-size-base;
|
|
73
|
+
$--button-border-width: 1px;
|
|
74
|
+
|
|
75
|
+
// Input
|
|
76
|
+
$--input-height: 40px;
|
|
77
|
+
$--input-border-radius: $--border-radius-base;
|
|
78
|
+
$--input-padding-horizontal: 15px;
|
|
79
|
+
$--input-font-size: $--font-size-base;
|
|
80
|
+
$--input-line-height: 1.5;
|
|
81
|
+
|
|
82
|
+
// Select
|
|
83
|
+
$--select-height: $--input-height;
|
|
84
|
+
$--select-border-radius: $--border-radius-base;
|
|
85
|
+
$--select-padding-horizontal: $--input-padding-horizontal;
|
|
86
|
+
|
|
87
|
+
// CSS Variables for theme customization
|
|
88
|
+
:root {
|
|
89
|
+
// Colors
|
|
90
|
+
--ui-color-primary: #{$--color-primary};
|
|
91
|
+
--ui-color-success: #{$--color-success};
|
|
92
|
+
--ui-color-warning: #{$--color-warning};
|
|
93
|
+
--ui-color-danger: #{$--color-danger};
|
|
94
|
+
--ui-color-info: #{$--color-info};
|
|
95
|
+
|
|
96
|
+
// Text colors
|
|
97
|
+
--ui-color-text-primary: #{$--color-text-primary};
|
|
98
|
+
--ui-color-text-regular: #{$--color-text-regular};
|
|
99
|
+
--ui-color-text-secondary: #{$--color-text-secondary};
|
|
100
|
+
--ui-color-text-placeholder: #{$--color-text-placeholder};
|
|
101
|
+
--ui-color-text-disabled: #{$--color-text-disabled};
|
|
102
|
+
|
|
103
|
+
// Border colors
|
|
104
|
+
--ui-border-color-base: #{$--border-color-base};
|
|
105
|
+
--ui-border-color-light: #{$--border-color-light};
|
|
106
|
+
--ui-border-color-lighter: #{$--border-color-lighter};
|
|
107
|
+
--ui-border-color-extra-light: #{$--border-color-extra-light};
|
|
108
|
+
|
|
109
|
+
// Background
|
|
110
|
+
--ui-background-color-base: #{$--background-color-base};
|
|
111
|
+
--ui-background-color-light: #{$--background-color-light};
|
|
112
|
+
|
|
113
|
+
// Font
|
|
114
|
+
--ui-font-size-base: #{$--font-size-base};
|
|
115
|
+
--ui-font-size-small: #{$--font-size-small};
|
|
116
|
+
--ui-font-size-large: #{$--font-size-large};
|
|
117
|
+
--ui-font-weight-primary: #{$--font-weight-primary};
|
|
118
|
+
--ui-font-line-height-primary: #{$--font-line-height-primary};
|
|
119
|
+
|
|
120
|
+
// Spacing
|
|
121
|
+
--ui-spacing-base: #{$--spacing-base};
|
|
122
|
+
--ui-spacing-small: #{$--spacing-small};
|
|
123
|
+
--ui-spacing-large: #{$--spacing-large};
|
|
124
|
+
--ui-spacing-extra-large: #{$--spacing-extra-large};
|
|
125
|
+
|
|
126
|
+
// Border radius
|
|
127
|
+
--ui-border-radius-base: #{$--border-radius-base};
|
|
128
|
+
--ui-border-radius-small: #{$--border-radius-small};
|
|
129
|
+
--ui-border-radius-large: #{$--border-radius-large};
|
|
130
|
+
--ui-border-radius-round: #{$--border-radius-round};
|
|
131
|
+
--ui-border-radius-circle: #{$--border-radius-circle};
|
|
132
|
+
|
|
133
|
+
// Shadows
|
|
134
|
+
--ui-box-shadow-base: #{$--box-shadow-base};
|
|
135
|
+
--ui-box-shadow-light: #{$--box-shadow-light};
|
|
136
|
+
--ui-box-shadow-dark: #{$--box-shadow-dark};
|
|
137
|
+
|
|
138
|
+
// Transitions
|
|
139
|
+
--ui-transition-duration: #{$--transition-duration};
|
|
140
|
+
--ui-transition-timing: #{$--transition-timing};
|
|
141
|
+
|
|
142
|
+
// Z-index
|
|
143
|
+
--ui-index-normal: #{$--index-normal};
|
|
144
|
+
--ui-index-top: #{$--index-top};
|
|
145
|
+
--ui-index-popper: #{$--index-popper};
|
|
146
|
+
}
|