@zkwq/business 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.
Files changed (231) hide show
  1. package/dist/index.css +1 -0
  2. package/dist/index.js +21861 -0
  3. package/dist/index.umd.cjs +46 -0
  4. package/package.json +27 -0
  5. package/src/components/base/ui/alert/Alert.vue +94 -0
  6. package/src/components/base/ui/autocomplete/autocomplete-suggestions.vue +77 -0
  7. package/src/components/base/ui/autocomplete/autocomplete.vue +305 -0
  8. package/src/components/base/ui/backtop/main.vue +112 -0
  9. package/src/components/base/ui/button/Button.vue +84 -0
  10. package/src/components/base/ui/button/ButtonGroup.vue +10 -0
  11. package/src/components/base/ui/carousel/Carousel.vue +304 -0
  12. package/src/components/base/ui/carousel/CarouselItem.vue +137 -0
  13. package/src/components/base/ui/cascader/cascader.vue +650 -0
  14. package/src/components/base/ui/cascader-panel/cascader-menu.vue +138 -0
  15. package/src/components/base/ui/cascader-panel/cascader-node.vue +246 -0
  16. package/src/components/base/ui/cascader-panel/cascader-panel.vue +382 -0
  17. package/src/components/base/ui/cascader-panel/node.js +166 -0
  18. package/src/components/base/ui/cascader-panel/store.js +62 -0
  19. package/src/components/base/ui/checkbox/checkbox-button.vue +199 -0
  20. package/src/components/base/ui/checkbox/checkbox-group.vue +48 -0
  21. package/src/components/base/ui/checkbox/checkbox.vue +222 -0
  22. package/src/components/base/ui/col/col.js +71 -0
  23. package/src/components/base/ui/collapse/collapse-item.vue +180 -0
  24. package/src/components/base/ui/collapse/collapse.vue +73 -0
  25. package/src/components/base/ui/color-picker/color.js +317 -0
  26. package/src/components/base/ui/color-picker/components/alpha-slider.vue +132 -0
  27. package/src/components/base/ui/color-picker/components/hue-slider.vue +123 -0
  28. package/src/components/base/ui/color-picker/components/picker-dropdown.vue +119 -0
  29. package/src/components/base/ui/color-picker/components/predefine.vue +61 -0
  30. package/src/components/base/ui/color-picker/components/sv-panel.vue +100 -0
  31. package/src/components/base/ui/color-picker/draggable.js +36 -0
  32. package/src/components/base/ui/color-picker/index.js +2 -0
  33. package/src/components/base/ui/color-picker/main.vue +188 -0
  34. package/src/components/base/ui/date-picker/basic/date-table.vue +441 -0
  35. package/src/components/base/ui/date-picker/basic/month-table.vue +254 -0
  36. package/src/components/base/ui/date-picker/basic/time-spinner.vue +304 -0
  37. package/src/components/base/ui/date-picker/basic/year-table.vue +101 -0
  38. package/src/components/base/ui/date-picker/panel/date-range.vue +680 -0
  39. package/src/components/base/ui/date-picker/panel/date.vue +597 -0
  40. package/src/components/base/ui/date-picker/panel/month-range.vue +289 -0
  41. package/src/components/base/ui/date-picker/panel/time-range.vue +248 -0
  42. package/src/components/base/ui/date-picker/panel/time-select.vue +178 -0
  43. package/src/components/base/ui/date-picker/panel/time.vue +186 -0
  44. package/src/components/base/ui/date-picker/picker/date-picker.js +43 -0
  45. package/src/components/base/ui/date-picker/picker/time-picker.js +39 -0
  46. package/src/components/base/ui/date-picker/picker/time-select.js +21 -0
  47. package/src/components/base/ui/date-picker/picker.vue +942 -0
  48. package/src/components/base/ui/dialog/Index.vue +212 -0
  49. package/src/components/base/ui/directive/repeat-click.js +24 -0
  50. package/src/components/base/ui/directive/ripple.js +303 -0
  51. package/src/components/base/ui/divider/Divider.vue +37 -0
  52. package/src/components/base/ui/drawer/Drawer.vue +202 -0
  53. package/src/components/base/ui/dropdown/dropdown-item.vue +39 -0
  54. package/src/components/base/ui/dropdown/dropdown-menu.vue +63 -0
  55. package/src/components/base/ui/dropdown/dropdown.vue +308 -0
  56. package/src/components/base/ui/form/Form.vue +167 -0
  57. package/src/components/base/ui/form/FormItem.vue +334 -0
  58. package/src/components/base/ui/form/LabelWrap.vue +69 -0
  59. package/src/components/base/ui/icon/icon.vue +13 -0
  60. package/src/components/base/ui/image/image-viewer.vue +302 -0
  61. package/src/components/base/ui/image/main.vue +248 -0
  62. package/src/components/base/ui/index.js +189 -0
  63. package/src/components/base/ui/input/Input.vue +438 -0
  64. package/src/components/base/ui/input/calcTextareaHeight.js +104 -0
  65. package/src/components/base/ui/input-number/input-number.vue +285 -0
  66. package/src/components/base/ui/locale/format.js +32 -0
  67. package/src/components/base/ui/locale/index.js +48 -0
  68. package/src/components/base/ui/locale/lang/zh-CN.js +120 -0
  69. package/src/components/base/ui/menu/menu-item-group.vue +45 -0
  70. package/src/components/base/ui/menu/menu-item.vue +112 -0
  71. package/src/components/base/ui/menu/menu-mixin.js +44 -0
  72. package/src/components/base/ui/menu/menu.vue +312 -0
  73. package/src/components/base/ui/menu/submenu.vue +408 -0
  74. package/src/components/base/ui/message/index.js +2 -0
  75. package/src/components/base/ui/message/main.js +87 -0
  76. package/src/components/base/ui/message/main.vue +110 -0
  77. package/src/components/base/ui/message-box/main.js +216 -0
  78. package/src/components/base/ui/message-box/main.vue +323 -0
  79. package/src/components/base/ui/mixin/emitter.js +31 -0
  80. package/src/components/base/ui/mixin/focus.js +9 -0
  81. package/src/components/base/ui/mixin/locale.js +9 -0
  82. package/src/components/base/ui/mixin/migrating.js +33 -0
  83. package/src/components/base/ui/pagination/pager.vue +163 -0
  84. package/src/components/base/ui/pagination/pagination.jsx +391 -0
  85. package/src/components/base/ui/popover/directive.js +20 -0
  86. package/src/components/base/ui/popover/index.js +14 -0
  87. package/src/components/base/ui/popover/main.vue +236 -0
  88. package/src/components/base/ui/progress/Progress.vue +227 -0
  89. package/src/components/base/ui/radio/radio-button.vue +114 -0
  90. package/src/components/base/ui/radio/radio-group.vue +111 -0
  91. package/src/components/base/ui/radio/radio.vue +134 -0
  92. package/src/components/base/ui/row/row.js +47 -0
  93. package/src/components/base/ui/scrollbar/bar.jsx +91 -0
  94. package/src/components/base/ui/scrollbar/index.jsx +203 -0
  95. package/src/components/base/ui/scrollbar/util.js +32 -0
  96. package/src/components/base/ui/select/Option.vue +168 -0
  97. package/src/components/base/ui/select/OptionGroup.vue +60 -0
  98. package/src/components/base/ui/select/Select.vue +920 -0
  99. package/src/components/base/ui/select/SelectDropdown.vue +74 -0
  100. package/src/components/base/ui/select/navigation-mixin.js +54 -0
  101. package/src/components/base/ui/skeleton/index.js +8 -0
  102. package/src/components/base/ui/skeleton/src/img-placeholder.vue +16 -0
  103. package/src/components/base/ui/skeleton/src/index.vue +80 -0
  104. package/src/components/base/ui/skeleton/src/item.vue +22 -0
  105. package/src/components/base/ui/skeleton-item/index.js +8 -0
  106. package/src/components/base/ui/slider/button.vue +238 -0
  107. package/src/components/base/ui/slider/main.vue +427 -0
  108. package/src/components/base/ui/slider/marker.js +18 -0
  109. package/src/components/base/ui/style/alert.scss +147 -0
  110. package/src/components/base/ui/style/animations.scss +65 -0
  111. package/src/components/base/ui/style/autocomplete.scss +81 -0
  112. package/src/components/base/ui/style/backtop.scss +20 -0
  113. package/src/components/base/ui/style/button-group.scss +0 -0
  114. package/src/components/base/ui/style/button.scss +380 -0
  115. package/src/components/base/ui/style/carousel-item.scss +50 -0
  116. package/src/components/base/ui/style/carousel.scss +161 -0
  117. package/src/components/base/ui/style/cascader-panel.scss +120 -0
  118. package/src/components/base/ui/style/cascader.scss +185 -0
  119. package/src/components/base/ui/style/checkbox-button.scss +0 -0
  120. package/src/components/base/ui/style/checkbox-group.scss +0 -0
  121. package/src/components/base/ui/style/checkbox.scss +360 -0
  122. package/src/components/base/ui/style/col.scss +156 -0
  123. package/src/components/base/ui/style/collapse-item.scss +0 -0
  124. package/src/components/base/ui/style/collapse.scss +114 -0
  125. package/src/components/base/ui/style/color-picker.scss +387 -0
  126. package/src/components/base/ui/style/config.scss +4 -0
  127. package/src/components/base/ui/style/date-picker/date-picker.scss +97 -0
  128. package/src/components/base/ui/style/date-picker/date-range-picker.scss +101 -0
  129. package/src/components/base/ui/style/date-picker/date-table.scss +151 -0
  130. package/src/components/base/ui/style/date-picker/month-table.scss +82 -0
  131. package/src/components/base/ui/style/date-picker/picker-panel.scss +117 -0
  132. package/src/components/base/ui/style/date-picker/picker.scss +197 -0
  133. package/src/components/base/ui/style/date-picker/time-picker.scss +85 -0
  134. package/src/components/base/ui/style/date-picker/time-range-picker.scss +31 -0
  135. package/src/components/base/ui/style/date-picker/time-spinner.scss +110 -0
  136. package/src/components/base/ui/style/date-picker/year-table.scss +51 -0
  137. package/src/components/base/ui/style/date-picker.scss +12 -0
  138. package/src/components/base/ui/style/dialog.scss +123 -0
  139. package/src/components/base/ui/style/divider.scss +47 -0
  140. package/src/components/base/ui/style/drawer.scss +218 -0
  141. package/src/components/base/ui/style/dropdown-item.scss +0 -0
  142. package/src/components/base/ui/style/dropdown-menu.scss +0 -0
  143. package/src/components/base/ui/style/dropdown.scss +185 -0
  144. package/src/components/base/ui/style/form-item.scss +0 -0
  145. package/src/components/base/ui/style/form.scss +203 -0
  146. package/src/components/base/ui/style/function.scss +43 -0
  147. package/src/components/base/ui/style/icon.scss +1167 -0
  148. package/src/components/base/ui/style/image.scss +184 -0
  149. package/src/components/base/ui/style/index.scss +57 -0
  150. package/src/components/base/ui/style/input-number.scss +187 -0
  151. package/src/components/base/ui/style/input.scss +477 -0
  152. package/src/components/base/ui/style/menu-item-group.scss +0 -0
  153. package/src/components/base/ui/style/menu-item.scss +0 -0
  154. package/src/components/base/ui/style/menu.scss +294 -0
  155. package/src/components/base/ui/style/message-box.scss +231 -0
  156. package/src/components/base/ui/style/message.scss +120 -0
  157. package/src/components/base/ui/style/mixins.scss +196 -0
  158. package/src/components/base/ui/style/option-group.scss +42 -0
  159. package/src/components/base/ui/style/option.scss +36 -0
  160. package/src/components/base/ui/style/pagination.scss +295 -0
  161. package/src/components/base/ui/style/popover.scss +40 -0
  162. package/src/components/base/ui/style/popper.scss +102 -0
  163. package/src/components/base/ui/style/popup.scss +42 -0
  164. package/src/components/base/ui/style/progress.scss +141 -0
  165. package/src/components/base/ui/style/radio-button.scss +113 -0
  166. package/src/components/base/ui/style/radio-group.scss +9 -0
  167. package/src/components/base/ui/style/radio.scss +203 -0
  168. package/src/components/base/ui/style/ripple.scss +35 -0
  169. package/src/components/base/ui/style/row.scss +39 -0
  170. package/src/components/base/ui/style/scrollbar.scss +75 -0
  171. package/src/components/base/ui/style/select-dropdown.scss +59 -0
  172. package/src/components/base/ui/style/select.scss +154 -0
  173. package/src/components/base/ui/style/skeleton-item.scss +84 -0
  174. package/src/components/base/ui/style/skeleton.scss +40 -0
  175. package/src/components/base/ui/style/slider.scss +250 -0
  176. package/src/components/base/ui/style/switch.scss +116 -0
  177. package/src/components/base/ui/style/tabs.scss +602 -0
  178. package/src/components/base/ui/style/tag.scss +174 -0
  179. package/src/components/base/ui/style/tooltip.scss +146 -0
  180. package/src/components/base/ui/style/transition.scss +138 -0
  181. package/src/components/base/ui/style/upload.scss +603 -0
  182. package/src/components/base/ui/style/utils.scss +39 -0
  183. package/src/components/base/ui/style/var.scss +1007 -0
  184. package/src/components/base/ui/switch/index.vue +174 -0
  185. package/src/components/base/ui/tabs/tab-bar.vue +57 -0
  186. package/src/components/base/ui/tabs/tab-nav.vue +294 -0
  187. package/src/components/base/ui/tabs/tab-pane.vue +56 -0
  188. package/src/components/base/ui/tabs/tabs.vue +191 -0
  189. package/src/components/base/ui/tag/Tag.vue +60 -0
  190. package/src/components/base/ui/tooltip/tooltip.jsx +234 -0
  191. package/src/components/base/ui/upload/Index.vue +340 -0
  192. package/src/components/base/ui/upload/Upload.vue +216 -0
  193. package/src/components/base/ui/upload/UploadDragger.vue +70 -0
  194. package/src/components/base/ui/upload/UploadList.vue +100 -0
  195. package/src/components/base/ui/upload/ajax.js +85 -0
  196. package/src/components/base/ui/util/aria-dialog.js +90 -0
  197. package/src/components/base/ui/util/aria-utils.js +122 -0
  198. package/src/components/base/ui/util/clickoutside.js +76 -0
  199. package/src/components/base/ui/util/date-util.js +292 -0
  200. package/src/components/base/ui/util/date.js +370 -0
  201. package/src/components/base/ui/util/debounce.js +21 -0
  202. package/src/components/base/ui/util/deepmerge.js +100 -0
  203. package/src/components/base/ui/util/dom.js +215 -0
  204. package/src/components/base/ui/util/index.js +262 -0
  205. package/src/components/base/ui/util/menu/aria-menubar.js +14 -0
  206. package/src/components/base/ui/util/menu/aria-menuitem.js +49 -0
  207. package/src/components/base/ui/util/menu/aria-submenu.js +59 -0
  208. package/src/components/base/ui/util/merge.js +14 -0
  209. package/src/components/base/ui/util/popper.js +1235 -0
  210. package/src/components/base/ui/util/popup/index.js +218 -0
  211. package/src/components/base/ui/util/popup/popup-manager.js +194 -0
  212. package/src/components/base/ui/util/resize-events.js +32 -0
  213. package/src/components/base/ui/util/scroll-into-view.js +27 -0
  214. package/src/components/base/ui/util/scrollbar-width.js +29 -0
  215. package/src/components/base/ui/util/shared.js +7 -0
  216. package/src/components/base/ui/util/throttle.js +91 -0
  217. package/src/components/base/ui/util/types.js +24 -0
  218. package/src/components/base/ui/util/vdom.js +5 -0
  219. package/src/components/base/ui/util/vue-popper.js +188 -0
  220. package/src/components/normal/AggsItemH.vue +139 -0
  221. package/src/index.js +10 -0
  222. package/src/static/base-icons.ttf +0 -0
  223. package/src/static/base-icons.woff +0 -0
  224. package/src/static/label_bg.png +0 -0
  225. package/src/static/term-label-bg.png +0 -0
  226. package/src/style/app-article.scss +698 -0
  227. package/src/style/app-comment.scss +259 -0
  228. package/src/style/app-recommend.scss +48 -0
  229. package/src/style/app-richtext.scss +176 -0
  230. package/src/style/index.scss +523 -0
  231. package/vite.config.js +38 -0
@@ -0,0 +1,42 @@
1
+ @import "./var.scss";
2
+ @import "./mixins";
3
+
4
+ .v-modal-enter {
5
+ animation: v-modal-in .2s ease;
6
+ }
7
+
8
+ .v-modal-leave {
9
+ animation: v-modal-out .2s ease forwards;
10
+ }
11
+
12
+ @keyframes v-modal-in {
13
+ 0% {
14
+ opacity: 0;
15
+ }
16
+ 100% {
17
+ }
18
+ }
19
+
20
+ @keyframes v-modal-out {
21
+ 0% {
22
+ }
23
+ 100% {
24
+ opacity: 0;
25
+ }
26
+ }
27
+
28
+ .v-modal {
29
+ position: fixed;
30
+ left: 0;
31
+ top: 0;
32
+ width: 100%;
33
+ height: 100%;
34
+ opacity: $--popup-modal-opacity;
35
+ background: $--popup-modal-background-color;
36
+ }
37
+
38
+ @include b(popup-parent) {
39
+ @include m(hidden) {
40
+ overflow: hidden;
41
+ }
42
+ }
@@ -0,0 +1,141 @@
1
+ @import "mixins";
2
+ @import "utils";
3
+ @import "var";
4
+
5
+ @include b(progress) {
6
+ position: relative;
7
+ line-height: 1;
8
+
9
+ @include e(text) {
10
+ font-size:14px;
11
+ color: $--color-text-regular;
12
+ display: inline-block;
13
+ vertical-align: middle;
14
+ margin-left: 10px;
15
+ line-height: 1;
16
+
17
+ i {
18
+ vertical-align: middle;
19
+ display: block;
20
+ }
21
+ }
22
+
23
+ @include m((circle,dashboard)) {
24
+ display: inline-block;
25
+
26
+ .base-progress__text {
27
+ position: absolute;
28
+ top: 50%;
29
+ left: 0;
30
+ width: 100%;
31
+ text-align: center;
32
+ margin: 0;
33
+ transform: translate(0, -50%);
34
+
35
+ i {
36
+ vertical-align: middle;
37
+ display: inline-block;
38
+ }
39
+ }
40
+ }
41
+
42
+
43
+ @include m(without-text) {
44
+ .base-progress__text {
45
+ display: none;
46
+ }
47
+
48
+ .base-progress-bar {
49
+ padding-right: 0;
50
+ margin-right: 0;
51
+ display: block;
52
+ }
53
+ }
54
+
55
+ @include m(text-inside) {
56
+ .base-progress-bar {
57
+ padding-right: 0;
58
+ margin-right: 0;
59
+ }
60
+ }
61
+
62
+ @include when(success) {
63
+ .base-progress-bar__inner {
64
+ background-color: $--color-success;
65
+ }
66
+
67
+ .base-progress__text {
68
+ color: $--color-success;
69
+ }
70
+ }
71
+
72
+ @include when(warning) {
73
+ .base-progress-bar__inner {
74
+ background-color: $--color-warning;
75
+ }
76
+
77
+ .base-progress__text {
78
+ color: $--color-warning;
79
+ }
80
+ }
81
+
82
+ @include when(exception) {
83
+ .base-progress-bar__inner {
84
+ background-color: $--color-danger;
85
+ }
86
+
87
+ .base-progress__text {
88
+ color: $--color-danger;
89
+ }
90
+ }
91
+ }
92
+
93
+ @include b(progress-bar) {
94
+ padding-right: 50px;
95
+ display: inline-block;
96
+ vertical-align: middle;
97
+ width: 100%;
98
+ margin-right: -55px;
99
+ box-sizing: border-box;
100
+
101
+ @include e(outer) {
102
+ height: 6px;
103
+ border-radius: 100px;
104
+ background-color: $--border-color-lighter;
105
+ overflow: hidden;
106
+ position: relative;
107
+ vertical-align: middle;
108
+ }
109
+ @include e(inner) {
110
+ position: absolute;
111
+ left: 0;
112
+ top: 0;
113
+ height: 100%;
114
+ background-color: $--color-primary;
115
+ text-align: right;
116
+ border-radius: 100px;
117
+ line-height: 1;
118
+ white-space: nowrap;
119
+ transition: width 0.6s ease;
120
+
121
+ @include utils-vertical-center;
122
+ }
123
+
124
+ @include e(innerText) {
125
+ display: inline-block;
126
+ vertical-align: middle;
127
+ color: $--color-white;
128
+ font-size: 12px;
129
+ margin: 0 5px;
130
+ }
131
+ }
132
+
133
+ @keyframes progress {
134
+ 0% {
135
+ background-position: 0 0;
136
+ }
137
+
138
+ 100% {
139
+ background-position: 32px 0;
140
+ }
141
+ }
@@ -0,0 +1,113 @@
1
+ @import "mixins";
2
+ @import "button";
3
+ @import "var";
4
+
5
+ @include b(radio-button) {
6
+ position: relative;
7
+ display: inline-block;
8
+ outline: none;
9
+
10
+ @include e(inner) {
11
+ display: inline-block;
12
+ line-height: 1;
13
+ white-space: nowrap;
14
+ vertical-align: middle;
15
+ background: $--button-default-background-color;
16
+ border: $--border-base;
17
+ font-weight: $--button-font-weight;
18
+ border-left: 0;
19
+ color: $--button-default-font-color;
20
+ -webkit-appearance: none;
21
+ text-align: center;
22
+ box-sizing: border-box;
23
+ outline: none;
24
+ margin: 0;
25
+ position: relative;
26
+ cursor: pointer;
27
+ transition: $--all-transition;
28
+
29
+ @include button-size($--button-padding-vertical, $--button-padding-horizontal, $--button-font-size, 0);
30
+
31
+ &:hover {
32
+ color: $--color-primary;
33
+ }
34
+
35
+ & [class*="base-icon-"] {
36
+ line-height: 0.9;
37
+
38
+ & + span {
39
+ margin-left: 5px;
40
+ }
41
+ }
42
+ }
43
+
44
+ &:first-child {
45
+ .base-radio-button__inner {
46
+ border-left: $--border-base;
47
+ border-radius: $--border-radius-base 0 0 $--border-radius-base;
48
+ box-shadow: none !important;
49
+ }
50
+ }
51
+
52
+ @include e(orig-radio) {
53
+ opacity: 0;
54
+ outline: none;
55
+ position: absolute;
56
+ z-index: -1;
57
+
58
+ &:checked {
59
+ & + .base-radio-button__inner {
60
+ color: $--radio-button-checked-font-color;
61
+ background-color: $--radio-button-checked-background-color;
62
+ border-color: $--radio-button-checked-border-color;
63
+ box-shadow: -1px 0 0 0 $--radio-button-checked-border-color;
64
+ }
65
+ }
66
+
67
+ &:disabled {
68
+ & + .base-radio-button__inner {
69
+ color: $--button-disabled-font-color;
70
+ cursor: not-allowed;
71
+ background-image: none;
72
+ background-color: $--button-disabled-background-color;
73
+ border-color: $--button-disabled-border-color;
74
+ box-shadow: none;
75
+ }
76
+ &:checked + .base-radio-button__inner {
77
+ background-color: $--radio-button-disabled-checked-fill;
78
+ }
79
+ }
80
+ }
81
+
82
+ &:last-child {
83
+ .base-radio-button__inner {
84
+ border-radius: 0 $--border-radius-base $--border-radius-base 0;
85
+ }
86
+ }
87
+
88
+ &:first-child:last-child {
89
+ .base-radio-button__inner {
90
+ border-radius: $--border-radius-base;
91
+ }
92
+ }
93
+
94
+ @include m(medium) {
95
+ & .base-radio-button__inner {
96
+ @include button-size($--button-medium-padding-vertical, $--button-medium-padding-horizontal, $--button-medium-font-size, 0);
97
+ }
98
+ }
99
+ @include m(small) {
100
+ & .base-radio-button__inner {
101
+ @include button-size($--button-small-padding-vertical, $--button-small-padding-horizontal, $--button-small-font-size, 0);
102
+ }
103
+ }
104
+ @include m(mini) {
105
+ & .base-radio-button__inner {
106
+ @include button-size($--button-mini-padding-vertical, $--button-mini-padding-horizontal, $--button-mini-font-size, 0);
107
+ }
108
+ }
109
+
110
+ &:focus:not(.is-focus):not(:active):not(.is-disabled){ /*获得焦点时 样式提醒*/
111
+ box-shadow: 0 0 2px 2px $--radio-button-checked-border-color;
112
+ }
113
+ }
@@ -0,0 +1,9 @@
1
+ @import "mixins";
2
+ @import "var";
3
+
4
+ @include b(radio-group) {
5
+ display: inline-block;
6
+ line-height: 1;
7
+ vertical-align: middle;
8
+ font-size: 0;
9
+ }
@@ -0,0 +1,203 @@
1
+ @import "mixins";
2
+ @import "utils";
3
+ @import 'button';
4
+ @import "var";
5
+
6
+ @include b(radio) {
7
+ color: $--radio-font-color;
8
+ font-weight: $--radio-font-weight;
9
+ line-height: 1;
10
+ position: relative;
11
+ cursor: pointer;
12
+ display: inline-block;
13
+ white-space: nowrap;
14
+ outline: none;
15
+ font-size: $--font-size-base;
16
+ margin-right: 30px;
17
+ @include utils-user-select(none);
18
+
19
+ @include when(bordered) {
20
+ padding: $--radio-bordered-padding;
21
+ border-radius: $--border-radius-base;
22
+ border: $--border-base;
23
+ box-sizing: border-box;
24
+ height: $--radio-bordered-height;
25
+
26
+ &.is-checked {
27
+ border-color: $--color-primary;
28
+ }
29
+
30
+ &.is-disabled {
31
+ cursor: not-allowed;
32
+ border-color: $--border-color-lighter;
33
+ }
34
+
35
+ & + .base-radio.is-bordered {
36
+ margin-left: 10px;
37
+ }
38
+ }
39
+
40
+ @include m(medium) {
41
+ &.is-bordered {
42
+ padding: $--radio-bordered-medium-padding;
43
+ border-radius: $--button-medium-border-radius;
44
+ height: $--radio-bordered-medium-height;
45
+ .base-radio__label {
46
+ font-size: $--button-medium-font-size;
47
+ }
48
+ .base-radio__inner {
49
+ height: $--radio-bordered-medium-input-height;
50
+ width: $--radio-bordered-medium-input-width;
51
+ }
52
+ }
53
+ }
54
+ @include m(small) {
55
+ &.is-bordered {
56
+ padding: $--radio-bordered-small-padding;
57
+ border-radius: $--button-small-border-radius;
58
+ height: $--radio-bordered-small-height;
59
+ .base-radio__label {
60
+ font-size: $--button-small-font-size;
61
+ }
62
+ .base-radio__inner {
63
+ height: $--radio-bordered-small-input-height;
64
+ width: $--radio-bordered-small-input-width;
65
+ }
66
+ }
67
+ }
68
+ @include m(mini) {
69
+ &.is-bordered {
70
+ padding: $--radio-bordered-mini-padding;
71
+ border-radius: $--button-mini-border-radius;
72
+ height: $--radio-bordered-mini-height;
73
+ .base-radio__label {
74
+ font-size: $--button-mini-font-size;
75
+ }
76
+ .base-radio__inner {
77
+ height: $--radio-bordered-mini-input-height;
78
+ width: $--radio-bordered-mini-input-width;
79
+ }
80
+ }
81
+ }
82
+
83
+ &:last-child {
84
+ margin-right: 0;
85
+ }
86
+
87
+ @include e(input) {
88
+ white-space: nowrap;
89
+ cursor: pointer;
90
+ outline: none;
91
+ display: inline-block;
92
+ line-height: 1;
93
+ position: relative;
94
+ vertical-align: middle;
95
+
96
+ @include when(invisible) {
97
+ display: none;
98
+ }
99
+
100
+ @include when(disabled) {
101
+ .base-radio__inner {
102
+ background-color: $--radio-disabled-input-fill;
103
+ border-color: $--radio-disabled-input-border-color;
104
+ cursor: not-allowed;
105
+
106
+ &::after {
107
+ cursor: not-allowed;
108
+ background-color: $--radio-disabled-icon-color;
109
+ }
110
+
111
+ & + .base-radio__label {
112
+ cursor: not-allowed;
113
+ }
114
+ }
115
+ &.is-checked {
116
+ .base-radio__inner {
117
+ background-color: $--radio-disabled-checked-input-fill;
118
+ border-color: $--radio-disabled-checked-input-border-color;
119
+
120
+ &::after {
121
+ background-color: $--radio-disabled-checked-icon-color;
122
+ }
123
+ }
124
+ }
125
+ & + span.base-radio__label {
126
+ color: $--color-text-placeholder;
127
+ cursor: not-allowed;
128
+ }
129
+ }
130
+
131
+ @include when(checked) {
132
+ .base-radio__inner {
133
+ border-color: $--radio-checked-input-border-color;
134
+ background: $--radio-checked-icon-color;
135
+
136
+ &::after {
137
+ transform: translate(-50%, -50%) scale(1);
138
+ }
139
+ }
140
+
141
+ & + .base-radio__label {
142
+ color: $--radio-checked-font-color;
143
+ }
144
+ }
145
+
146
+ @include when(focus) {
147
+ .base-radio__inner {
148
+ border-color: $--radio-input-border-color-hover;
149
+ }
150
+ }
151
+ }
152
+ @include e(inner) {
153
+ border: $--radio-input-border;
154
+ border-radius: $--radio-input-border-radius;
155
+ width: $--radio-input-width;
156
+ height: $--radio-input-height;
157
+ background-color: $--radio-input-background-color;
158
+ position: relative;
159
+ cursor: pointer;
160
+ display: inline-block;
161
+ box-sizing: border-box;
162
+
163
+ &:hover {
164
+ border-color: $--radio-input-border-color-hover;
165
+ }
166
+
167
+ &::after {
168
+ width: 7px;
169
+ height: 7px;
170
+ border-radius: $--radio-input-border-radius;
171
+ background-color: $--color-primary;
172
+ content: "";
173
+ position: absolute;
174
+ left: 50%;
175
+ top: 50%;
176
+ transform: translate(-50%, -50%) scale(0);
177
+ transition: transform .15s ease-in;
178
+ }
179
+ }
180
+
181
+ @include e(original) {
182
+ opacity: 0;
183
+ outline: none;
184
+ position: absolute;
185
+ z-index: -1;
186
+ top: 0;
187
+ left: 0;
188
+ right: 0;
189
+ bottom: 0;
190
+ margin: 0;
191
+ }
192
+
193
+ &:focus:not(.is-focus):not(:active):not(.is-disabled) { /*获得焦点时 样式提醒*/
194
+ .base-radio__inner {
195
+ box-shadow: 0 0 2px 2px $--radio-input-border-color-hover;
196
+ }
197
+ }
198
+
199
+ @include e(label) {
200
+ font-size: $--radio-font-size;
201
+ padding-left: 8px;
202
+ }
203
+ }
@@ -0,0 +1,35 @@
1
+ .v-ripple__container {
2
+ color: inherit;
3
+ border-radius: inherit;
4
+ position: absolute;
5
+ width: 100%;
6
+ height: 100%;
7
+ left: 0;
8
+ top: 0;
9
+ overflow: hidden;
10
+ z-index: 0;
11
+ pointer-events: none;
12
+ contain: strict;
13
+ }
14
+ .v-ripple__animation {
15
+ color: inherit;
16
+ position: absolute;
17
+ top: 0;
18
+ left: 0;
19
+ border-radius: 50%;
20
+ background: currentColor;
21
+ opacity: 0;
22
+ pointer-events: none;
23
+ overflow: hidden;
24
+ will-change: transform, opacity;
25
+ }
26
+ .v-ripple__animation--enter {
27
+ transition: none;
28
+ }
29
+ .v-ripple__animation--in {
30
+ transition: transform .25s cubic-bezier(0.4, 0, 0.2, 1), opacity .1s cubic-bezier(0.4, 0, 0.2, 1);
31
+
32
+ }
33
+ .v-ripple__animation--out {
34
+ transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
35
+ }
@@ -0,0 +1,39 @@
1
+ @import "var";
2
+ @import "mixins";
3
+ @import "utils";
4
+
5
+ @include b(row) {
6
+ position: relative;
7
+ box-sizing: border-box;
8
+ @include utils-clearfix;
9
+
10
+ @include m(flex) {
11
+ display: flex;
12
+ &:before,
13
+ &:after {
14
+ display: none;
15
+ }
16
+
17
+ @include when(justify-center) {
18
+ justify-content: center;
19
+ }
20
+ @include when(justify-end) {
21
+ justify-content: flex-end;
22
+ }
23
+ @include when(justify-space-between) {
24
+ justify-content: space-between;
25
+ }
26
+ @include when(justify-space-around) {
27
+ justify-content: space-around;
28
+ }
29
+
30
+ @include when(align-middle) {
31
+ align-items: center;
32
+ }
33
+ @include when(align-bottom) {
34
+ align-items: flex-end;
35
+ }
36
+ }
37
+
38
+ }
39
+
@@ -0,0 +1,75 @@
1
+ @import "mixins";
2
+ @import "var";
3
+
4
+ @include b(scrollbar) {
5
+ overflow: hidden;
6
+ position: relative;
7
+
8
+ &:hover,
9
+ &:active,
10
+ &:focus {
11
+ > .base-scrollbar__bar {
12
+ opacity: 1;
13
+ transition: opacity 340ms ease-out;
14
+ }
15
+ }
16
+
17
+ @include e(wrap) {
18
+ overflow: scroll;
19
+ overflow-x: hidden;
20
+ height: 100%;
21
+
22
+ @include m(hidden-default) {
23
+ scrollbar-width: none;
24
+ &::-webkit-scrollbar {
25
+ width: 0;
26
+ height: 0;
27
+ }
28
+ }
29
+ }
30
+
31
+ @include e(thumb) {
32
+ position: relative;
33
+ display: block;
34
+ width: 0;
35
+ height: 0;
36
+ cursor: grab;
37
+ border-radius: inherit;
38
+ background-color: rgba(0, 0, 0, 0.5);
39
+ transition: .3s background-color;
40
+ @include when(grab) {
41
+ cursor: grabbing;
42
+ }
43
+ &:hover {
44
+ background-color: rgba(0, 0, 0, 0.5);
45
+ }
46
+ }
47
+
48
+ @include e(bar) {
49
+ position: absolute;
50
+ right: 2px;
51
+ bottom: 2px;
52
+ z-index: 1;
53
+ border-radius: 8px;
54
+ opacity: 0;
55
+ transition: opacity 120ms ease-out;
56
+
57
+ @include when(vertical) {
58
+ width: 8px;
59
+ top: 2px;
60
+
61
+ > div {
62
+ width: 100%;
63
+ }
64
+ }
65
+
66
+ @include when(horizontal) {
67
+ height: 6px;
68
+ left: 2px;
69
+
70
+ > div {
71
+ height: 100%;
72
+ }
73
+ }
74
+ }
75
+ }
@@ -0,0 +1,59 @@
1
+ @import "mixins";
2
+ @import "var";
3
+ @import "./popper";
4
+
5
+ @include b(select-dropdown) {
6
+ position: absolute;
7
+ z-index: #{$--index-top + 1};
8
+ border: $--select-dropdown-border;
9
+ border-radius: $--border-radius-base;
10
+ background-color: $--select-dropdown-background;
11
+ box-shadow: $--select-dropdown-shadow;
12
+ box-sizing: border-box;
13
+ margin: 5px 0;
14
+
15
+ @include when(multiple) {
16
+ & .base-select-dropdown__item.selected {
17
+ color: $--select-option-selected-font-color;
18
+ background-color: $--select-dropdown-background;
19
+
20
+ &.hover {
21
+ background-color: $--select-option-hover-background;
22
+ }
23
+
24
+ &::after {
25
+ position: absolute;
26
+ right: 20px;
27
+ font-family: 'base-icons';
28
+ content: "\e6da";
29
+ font-size: 12px;
30
+ font-weight: bold;
31
+ -webkit-font-smoothing: antialiased;
32
+ -moz-osx-font-smoothing: grayscale;
33
+ }
34
+ }
35
+ }
36
+
37
+ .base-scrollbar.is-empty .base-select-dropdown__list{
38
+ padding: 0;
39
+ }
40
+ }
41
+
42
+ @include b(select-dropdown__empty) {
43
+ padding: $--select-dropdown-empty-padding;
44
+ margin: 0;
45
+ text-align: center;
46
+ color: $--select-dropdown-empty-color;
47
+ font-size: $--select-font-size;
48
+ }
49
+
50
+ @include b(select-dropdown__wrap) {
51
+ max-height: $--select-dropdown-max-height;
52
+ }
53
+
54
+ @include b(select-dropdown__list) {
55
+ list-style: none;
56
+ padding: $--select-dropdown-padding;
57
+ margin: 0;
58
+ box-sizing: border-box;
59
+ }