@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.
- package/dist/index.css +1 -0
- package/dist/index.js +21861 -0
- package/dist/index.umd.cjs +46 -0
- package/package.json +27 -0
- package/src/components/base/ui/alert/Alert.vue +94 -0
- package/src/components/base/ui/autocomplete/autocomplete-suggestions.vue +77 -0
- package/src/components/base/ui/autocomplete/autocomplete.vue +305 -0
- package/src/components/base/ui/backtop/main.vue +112 -0
- package/src/components/base/ui/button/Button.vue +84 -0
- package/src/components/base/ui/button/ButtonGroup.vue +10 -0
- package/src/components/base/ui/carousel/Carousel.vue +304 -0
- package/src/components/base/ui/carousel/CarouselItem.vue +137 -0
- package/src/components/base/ui/cascader/cascader.vue +650 -0
- package/src/components/base/ui/cascader-panel/cascader-menu.vue +138 -0
- package/src/components/base/ui/cascader-panel/cascader-node.vue +246 -0
- package/src/components/base/ui/cascader-panel/cascader-panel.vue +382 -0
- package/src/components/base/ui/cascader-panel/node.js +166 -0
- package/src/components/base/ui/cascader-panel/store.js +62 -0
- package/src/components/base/ui/checkbox/checkbox-button.vue +199 -0
- package/src/components/base/ui/checkbox/checkbox-group.vue +48 -0
- package/src/components/base/ui/checkbox/checkbox.vue +222 -0
- package/src/components/base/ui/col/col.js +71 -0
- package/src/components/base/ui/collapse/collapse-item.vue +180 -0
- package/src/components/base/ui/collapse/collapse.vue +73 -0
- package/src/components/base/ui/color-picker/color.js +317 -0
- package/src/components/base/ui/color-picker/components/alpha-slider.vue +132 -0
- package/src/components/base/ui/color-picker/components/hue-slider.vue +123 -0
- package/src/components/base/ui/color-picker/components/picker-dropdown.vue +119 -0
- package/src/components/base/ui/color-picker/components/predefine.vue +61 -0
- package/src/components/base/ui/color-picker/components/sv-panel.vue +100 -0
- package/src/components/base/ui/color-picker/draggable.js +36 -0
- package/src/components/base/ui/color-picker/index.js +2 -0
- package/src/components/base/ui/color-picker/main.vue +188 -0
- package/src/components/base/ui/date-picker/basic/date-table.vue +441 -0
- package/src/components/base/ui/date-picker/basic/month-table.vue +254 -0
- package/src/components/base/ui/date-picker/basic/time-spinner.vue +304 -0
- package/src/components/base/ui/date-picker/basic/year-table.vue +101 -0
- package/src/components/base/ui/date-picker/panel/date-range.vue +680 -0
- package/src/components/base/ui/date-picker/panel/date.vue +597 -0
- package/src/components/base/ui/date-picker/panel/month-range.vue +289 -0
- package/src/components/base/ui/date-picker/panel/time-range.vue +248 -0
- package/src/components/base/ui/date-picker/panel/time-select.vue +178 -0
- package/src/components/base/ui/date-picker/panel/time.vue +186 -0
- package/src/components/base/ui/date-picker/picker/date-picker.js +43 -0
- package/src/components/base/ui/date-picker/picker/time-picker.js +39 -0
- package/src/components/base/ui/date-picker/picker/time-select.js +21 -0
- package/src/components/base/ui/date-picker/picker.vue +942 -0
- package/src/components/base/ui/dialog/Index.vue +212 -0
- package/src/components/base/ui/directive/repeat-click.js +24 -0
- package/src/components/base/ui/directive/ripple.js +303 -0
- package/src/components/base/ui/divider/Divider.vue +37 -0
- package/src/components/base/ui/drawer/Drawer.vue +202 -0
- package/src/components/base/ui/dropdown/dropdown-item.vue +39 -0
- package/src/components/base/ui/dropdown/dropdown-menu.vue +63 -0
- package/src/components/base/ui/dropdown/dropdown.vue +308 -0
- package/src/components/base/ui/form/Form.vue +167 -0
- package/src/components/base/ui/form/FormItem.vue +334 -0
- package/src/components/base/ui/form/LabelWrap.vue +69 -0
- package/src/components/base/ui/icon/icon.vue +13 -0
- package/src/components/base/ui/image/image-viewer.vue +302 -0
- package/src/components/base/ui/image/main.vue +248 -0
- package/src/components/base/ui/index.js +189 -0
- package/src/components/base/ui/input/Input.vue +438 -0
- package/src/components/base/ui/input/calcTextareaHeight.js +104 -0
- package/src/components/base/ui/input-number/input-number.vue +285 -0
- package/src/components/base/ui/locale/format.js +32 -0
- package/src/components/base/ui/locale/index.js +48 -0
- package/src/components/base/ui/locale/lang/zh-CN.js +120 -0
- package/src/components/base/ui/menu/menu-item-group.vue +45 -0
- package/src/components/base/ui/menu/menu-item.vue +112 -0
- package/src/components/base/ui/menu/menu-mixin.js +44 -0
- package/src/components/base/ui/menu/menu.vue +312 -0
- package/src/components/base/ui/menu/submenu.vue +408 -0
- package/src/components/base/ui/message/index.js +2 -0
- package/src/components/base/ui/message/main.js +87 -0
- package/src/components/base/ui/message/main.vue +110 -0
- package/src/components/base/ui/message-box/main.js +216 -0
- package/src/components/base/ui/message-box/main.vue +323 -0
- package/src/components/base/ui/mixin/emitter.js +31 -0
- package/src/components/base/ui/mixin/focus.js +9 -0
- package/src/components/base/ui/mixin/locale.js +9 -0
- package/src/components/base/ui/mixin/migrating.js +33 -0
- package/src/components/base/ui/pagination/pager.vue +163 -0
- package/src/components/base/ui/pagination/pagination.jsx +391 -0
- package/src/components/base/ui/popover/directive.js +20 -0
- package/src/components/base/ui/popover/index.js +14 -0
- package/src/components/base/ui/popover/main.vue +236 -0
- package/src/components/base/ui/progress/Progress.vue +227 -0
- package/src/components/base/ui/radio/radio-button.vue +114 -0
- package/src/components/base/ui/radio/radio-group.vue +111 -0
- package/src/components/base/ui/radio/radio.vue +134 -0
- package/src/components/base/ui/row/row.js +47 -0
- package/src/components/base/ui/scrollbar/bar.jsx +91 -0
- package/src/components/base/ui/scrollbar/index.jsx +203 -0
- package/src/components/base/ui/scrollbar/util.js +32 -0
- package/src/components/base/ui/select/Option.vue +168 -0
- package/src/components/base/ui/select/OptionGroup.vue +60 -0
- package/src/components/base/ui/select/Select.vue +920 -0
- package/src/components/base/ui/select/SelectDropdown.vue +74 -0
- package/src/components/base/ui/select/navigation-mixin.js +54 -0
- package/src/components/base/ui/skeleton/index.js +8 -0
- package/src/components/base/ui/skeleton/src/img-placeholder.vue +16 -0
- package/src/components/base/ui/skeleton/src/index.vue +80 -0
- package/src/components/base/ui/skeleton/src/item.vue +22 -0
- package/src/components/base/ui/skeleton-item/index.js +8 -0
- package/src/components/base/ui/slider/button.vue +238 -0
- package/src/components/base/ui/slider/main.vue +427 -0
- package/src/components/base/ui/slider/marker.js +18 -0
- package/src/components/base/ui/style/alert.scss +147 -0
- package/src/components/base/ui/style/animations.scss +65 -0
- package/src/components/base/ui/style/autocomplete.scss +81 -0
- package/src/components/base/ui/style/backtop.scss +20 -0
- package/src/components/base/ui/style/button-group.scss +0 -0
- package/src/components/base/ui/style/button.scss +380 -0
- package/src/components/base/ui/style/carousel-item.scss +50 -0
- package/src/components/base/ui/style/carousel.scss +161 -0
- package/src/components/base/ui/style/cascader-panel.scss +120 -0
- package/src/components/base/ui/style/cascader.scss +185 -0
- package/src/components/base/ui/style/checkbox-button.scss +0 -0
- package/src/components/base/ui/style/checkbox-group.scss +0 -0
- package/src/components/base/ui/style/checkbox.scss +360 -0
- package/src/components/base/ui/style/col.scss +156 -0
- package/src/components/base/ui/style/collapse-item.scss +0 -0
- package/src/components/base/ui/style/collapse.scss +114 -0
- package/src/components/base/ui/style/color-picker.scss +387 -0
- package/src/components/base/ui/style/config.scss +4 -0
- package/src/components/base/ui/style/date-picker/date-picker.scss +97 -0
- package/src/components/base/ui/style/date-picker/date-range-picker.scss +101 -0
- package/src/components/base/ui/style/date-picker/date-table.scss +151 -0
- package/src/components/base/ui/style/date-picker/month-table.scss +82 -0
- package/src/components/base/ui/style/date-picker/picker-panel.scss +117 -0
- package/src/components/base/ui/style/date-picker/picker.scss +197 -0
- package/src/components/base/ui/style/date-picker/time-picker.scss +85 -0
- package/src/components/base/ui/style/date-picker/time-range-picker.scss +31 -0
- package/src/components/base/ui/style/date-picker/time-spinner.scss +110 -0
- package/src/components/base/ui/style/date-picker/year-table.scss +51 -0
- package/src/components/base/ui/style/date-picker.scss +12 -0
- package/src/components/base/ui/style/dialog.scss +123 -0
- package/src/components/base/ui/style/divider.scss +47 -0
- package/src/components/base/ui/style/drawer.scss +218 -0
- package/src/components/base/ui/style/dropdown-item.scss +0 -0
- package/src/components/base/ui/style/dropdown-menu.scss +0 -0
- package/src/components/base/ui/style/dropdown.scss +185 -0
- package/src/components/base/ui/style/form-item.scss +0 -0
- package/src/components/base/ui/style/form.scss +203 -0
- package/src/components/base/ui/style/function.scss +43 -0
- package/src/components/base/ui/style/icon.scss +1167 -0
- package/src/components/base/ui/style/image.scss +184 -0
- package/src/components/base/ui/style/index.scss +57 -0
- package/src/components/base/ui/style/input-number.scss +187 -0
- package/src/components/base/ui/style/input.scss +477 -0
- package/src/components/base/ui/style/menu-item-group.scss +0 -0
- package/src/components/base/ui/style/menu-item.scss +0 -0
- package/src/components/base/ui/style/menu.scss +294 -0
- package/src/components/base/ui/style/message-box.scss +231 -0
- package/src/components/base/ui/style/message.scss +120 -0
- package/src/components/base/ui/style/mixins.scss +196 -0
- package/src/components/base/ui/style/option-group.scss +42 -0
- package/src/components/base/ui/style/option.scss +36 -0
- package/src/components/base/ui/style/pagination.scss +295 -0
- package/src/components/base/ui/style/popover.scss +40 -0
- package/src/components/base/ui/style/popper.scss +102 -0
- package/src/components/base/ui/style/popup.scss +42 -0
- package/src/components/base/ui/style/progress.scss +141 -0
- package/src/components/base/ui/style/radio-button.scss +113 -0
- package/src/components/base/ui/style/radio-group.scss +9 -0
- package/src/components/base/ui/style/radio.scss +203 -0
- package/src/components/base/ui/style/ripple.scss +35 -0
- package/src/components/base/ui/style/row.scss +39 -0
- package/src/components/base/ui/style/scrollbar.scss +75 -0
- package/src/components/base/ui/style/select-dropdown.scss +59 -0
- package/src/components/base/ui/style/select.scss +154 -0
- package/src/components/base/ui/style/skeleton-item.scss +84 -0
- package/src/components/base/ui/style/skeleton.scss +40 -0
- package/src/components/base/ui/style/slider.scss +250 -0
- package/src/components/base/ui/style/switch.scss +116 -0
- package/src/components/base/ui/style/tabs.scss +602 -0
- package/src/components/base/ui/style/tag.scss +174 -0
- package/src/components/base/ui/style/tooltip.scss +146 -0
- package/src/components/base/ui/style/transition.scss +138 -0
- package/src/components/base/ui/style/upload.scss +603 -0
- package/src/components/base/ui/style/utils.scss +39 -0
- package/src/components/base/ui/style/var.scss +1007 -0
- package/src/components/base/ui/switch/index.vue +174 -0
- package/src/components/base/ui/tabs/tab-bar.vue +57 -0
- package/src/components/base/ui/tabs/tab-nav.vue +294 -0
- package/src/components/base/ui/tabs/tab-pane.vue +56 -0
- package/src/components/base/ui/tabs/tabs.vue +191 -0
- package/src/components/base/ui/tag/Tag.vue +60 -0
- package/src/components/base/ui/tooltip/tooltip.jsx +234 -0
- package/src/components/base/ui/upload/Index.vue +340 -0
- package/src/components/base/ui/upload/Upload.vue +216 -0
- package/src/components/base/ui/upload/UploadDragger.vue +70 -0
- package/src/components/base/ui/upload/UploadList.vue +100 -0
- package/src/components/base/ui/upload/ajax.js +85 -0
- package/src/components/base/ui/util/aria-dialog.js +90 -0
- package/src/components/base/ui/util/aria-utils.js +122 -0
- package/src/components/base/ui/util/clickoutside.js +76 -0
- package/src/components/base/ui/util/date-util.js +292 -0
- package/src/components/base/ui/util/date.js +370 -0
- package/src/components/base/ui/util/debounce.js +21 -0
- package/src/components/base/ui/util/deepmerge.js +100 -0
- package/src/components/base/ui/util/dom.js +215 -0
- package/src/components/base/ui/util/index.js +262 -0
- package/src/components/base/ui/util/menu/aria-menubar.js +14 -0
- package/src/components/base/ui/util/menu/aria-menuitem.js +49 -0
- package/src/components/base/ui/util/menu/aria-submenu.js +59 -0
- package/src/components/base/ui/util/merge.js +14 -0
- package/src/components/base/ui/util/popper.js +1235 -0
- package/src/components/base/ui/util/popup/index.js +218 -0
- package/src/components/base/ui/util/popup/popup-manager.js +194 -0
- package/src/components/base/ui/util/resize-events.js +32 -0
- package/src/components/base/ui/util/scroll-into-view.js +27 -0
- package/src/components/base/ui/util/scrollbar-width.js +29 -0
- package/src/components/base/ui/util/shared.js +7 -0
- package/src/components/base/ui/util/throttle.js +91 -0
- package/src/components/base/ui/util/types.js +24 -0
- package/src/components/base/ui/util/vdom.js +5 -0
- package/src/components/base/ui/util/vue-popper.js +188 -0
- package/src/components/normal/AggsItemH.vue +139 -0
- package/src/index.js +10 -0
- package/src/static/base-icons.ttf +0 -0
- package/src/static/base-icons.woff +0 -0
- package/src/static/label_bg.png +0 -0
- package/src/static/term-label-bg.png +0 -0
- package/src/style/app-article.scss +698 -0
- package/src/style/app-comment.scss +259 -0
- package/src/style/app-recommend.scss +48 -0
- package/src/style/app-richtext.scss +176 -0
- package/src/style/index.scss +523 -0
- package/vite.config.js +38 -0
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
@import "../mixins";
|
|
2
|
+
@import "../var";
|
|
3
|
+
@import "../transition";
|
|
4
|
+
|
|
5
|
+
@include b(date-editor) {
|
|
6
|
+
position: relative;
|
|
7
|
+
display: inline-block;
|
|
8
|
+
text-align: left;
|
|
9
|
+
|
|
10
|
+
&.base-input,
|
|
11
|
+
&.base-input__inner {
|
|
12
|
+
width: 220px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@include m((monthrange)) {
|
|
16
|
+
&.base-input,
|
|
17
|
+
&.base-input__inner {
|
|
18
|
+
width: 300px;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@include m((daterange, timerange)) {
|
|
23
|
+
&.base-input,
|
|
24
|
+
&.base-input__inner {
|
|
25
|
+
width: 350px;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@include m(datetimerange) {
|
|
30
|
+
&.base-input,
|
|
31
|
+
&.base-input__inner {
|
|
32
|
+
width: 400px;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@include m(dates) {
|
|
37
|
+
.base-input__inner {
|
|
38
|
+
text-overflow: ellipsis;
|
|
39
|
+
white-space: nowrap;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.base-icon-circle-close {
|
|
44
|
+
cursor: pointer;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.base-range__icon {
|
|
48
|
+
font-size: 14px;
|
|
49
|
+
margin-left: -5px;
|
|
50
|
+
color: $--color-text-placeholder;
|
|
51
|
+
float: left;
|
|
52
|
+
line-height: 32px;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.base-range-input {
|
|
56
|
+
appearance: none;
|
|
57
|
+
border: none;
|
|
58
|
+
outline: none;
|
|
59
|
+
display: inline-block;
|
|
60
|
+
height: 100%;
|
|
61
|
+
margin: 0;
|
|
62
|
+
padding: 0;
|
|
63
|
+
width: 39%;
|
|
64
|
+
text-align: center;
|
|
65
|
+
font-size: $--font-size-base;
|
|
66
|
+
color: $--color-text-regular;
|
|
67
|
+
|
|
68
|
+
&::placeholder {
|
|
69
|
+
color: $--color-text-placeholder;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.base-range-separator {
|
|
74
|
+
display: inline-block;
|
|
75
|
+
height: 100%;
|
|
76
|
+
padding: 0 5px;
|
|
77
|
+
margin: 0;
|
|
78
|
+
text-align: center;
|
|
79
|
+
line-height: 32px;
|
|
80
|
+
font-size: 14px;
|
|
81
|
+
width: 5%;
|
|
82
|
+
color: $--color-text-primary;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.base-range__close-icon {
|
|
86
|
+
font-size: 14px;
|
|
87
|
+
color: $--color-text-placeholder;
|
|
88
|
+
width: 25px;
|
|
89
|
+
display: inline-block;
|
|
90
|
+
float: right;
|
|
91
|
+
line-height: 32px;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
@include b(range-editor) {
|
|
96
|
+
&.base-input__inner {
|
|
97
|
+
display: inline-flex;
|
|
98
|
+
align-items: center;
|
|
99
|
+
padding: 3px 10px;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.base-range-input {
|
|
103
|
+
line-height: 1;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
@include when(active) {
|
|
107
|
+
border-color: $--color-primary;
|
|
108
|
+
|
|
109
|
+
&:hover {
|
|
110
|
+
border-color: $--color-primary;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
@include m(medium) {
|
|
115
|
+
&.base-input__inner {
|
|
116
|
+
height: $--input-medium-height;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.base-range-separator {
|
|
120
|
+
line-height: 28px;
|
|
121
|
+
font-size: $--input-medium-font-size;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.base-range-input {
|
|
125
|
+
font-size: $--input-medium-font-size;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.base-range__icon,
|
|
129
|
+
.base-range__close-icon {
|
|
130
|
+
line-height: 28px;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
@include m(small) {
|
|
135
|
+
&.base-input__inner {
|
|
136
|
+
height: $--input-small-height;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.base-range-separator {
|
|
140
|
+
line-height: 24px;
|
|
141
|
+
font-size: $--input-small-font-size;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.base-range-input {
|
|
145
|
+
font-size: $--input-small-font-size;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.base-range__icon,
|
|
149
|
+
.base-range__close-icon {
|
|
150
|
+
line-height: 24px;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
@include m(mini) {
|
|
155
|
+
&.base-input__inner {
|
|
156
|
+
height: $--input-mini-height;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.base-range-separator {
|
|
160
|
+
line-height: 20px;
|
|
161
|
+
font-size: $--input-mini-font-size;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.base-range-input {
|
|
165
|
+
font-size: $--input-mini-font-size;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.base-range__icon,
|
|
169
|
+
.base-range__close-icon {
|
|
170
|
+
line-height: 20px;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
@include when(disabled) {
|
|
175
|
+
background-color: $--input-disabled-fill;
|
|
176
|
+
border-color: $--input-disabled-border;
|
|
177
|
+
color: $--input-disabled-color;
|
|
178
|
+
cursor: not-allowed;
|
|
179
|
+
|
|
180
|
+
&:hover, &:focus {
|
|
181
|
+
border-color: $--input-disabled-border;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
input {
|
|
185
|
+
background-color: $--input-disabled-fill;
|
|
186
|
+
color: $--input-disabled-color;
|
|
187
|
+
cursor: not-allowed;
|
|
188
|
+
&::placeholder {
|
|
189
|
+
color: $--input-disabled-placeholder-color;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.base-range-separator {
|
|
194
|
+
color: $--input-disabled-color;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
@import "../var";
|
|
2
|
+
|
|
3
|
+
@include b(time-panel) {
|
|
4
|
+
margin: 5px 0;
|
|
5
|
+
border: solid 1px $--datepicker-border-color;
|
|
6
|
+
background-color: $--color-white;
|
|
7
|
+
box-shadow: $--box-shadow-light;
|
|
8
|
+
border-radius: 2px;
|
|
9
|
+
position: absolute;
|
|
10
|
+
width: 180px;
|
|
11
|
+
left: 0;
|
|
12
|
+
z-index: $--index-top;
|
|
13
|
+
user-select: none;
|
|
14
|
+
box-sizing: content-box;
|
|
15
|
+
|
|
16
|
+
@include e(content) {
|
|
17
|
+
font-size: 0;
|
|
18
|
+
position: relative;
|
|
19
|
+
overflow: hidden;
|
|
20
|
+
|
|
21
|
+
&::after, &::before {
|
|
22
|
+
content: "";
|
|
23
|
+
top: 50%;
|
|
24
|
+
position: absolute;
|
|
25
|
+
margin-top: -15px;
|
|
26
|
+
height: 32px;
|
|
27
|
+
z-index: -1;
|
|
28
|
+
left: 0;
|
|
29
|
+
right: 0;
|
|
30
|
+
box-sizing: border-box;
|
|
31
|
+
padding-top: 6px;
|
|
32
|
+
text-align: left;
|
|
33
|
+
border-top: 1px solid $--border-color-light;
|
|
34
|
+
border-bottom: 1px solid $--border-color-light;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&::after {
|
|
38
|
+
left: 50%;
|
|
39
|
+
margin-left: 12%;
|
|
40
|
+
margin-right: 12%;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&::before {
|
|
44
|
+
padding-left: 50%;
|
|
45
|
+
margin-right: 12%;
|
|
46
|
+
margin-left: 12%;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&.has-seconds {
|
|
50
|
+
&::after {
|
|
51
|
+
left: calc(100% / 3 * 2);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&::before {
|
|
55
|
+
padding-left: calc(100% / 3);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@include e(footer) {
|
|
61
|
+
border-top: 1px solid $--datepicker-inner-border-color;
|
|
62
|
+
padding: 4px;
|
|
63
|
+
height: 36px;
|
|
64
|
+
line-height: 25px;
|
|
65
|
+
text-align: right;
|
|
66
|
+
box-sizing: border-box;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
@include e(btn) {
|
|
70
|
+
border: none;
|
|
71
|
+
line-height: 28px;
|
|
72
|
+
padding: 0 5px;
|
|
73
|
+
margin: 0 5px;
|
|
74
|
+
cursor: pointer;
|
|
75
|
+
background-color: transparent;
|
|
76
|
+
outline: none;
|
|
77
|
+
font-size: 12px;
|
|
78
|
+
color: $--color-text-primary;
|
|
79
|
+
|
|
80
|
+
&.confirm {
|
|
81
|
+
font-weight: 800;
|
|
82
|
+
color: $--datepicker-active-color;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
@import "../var";
|
|
2
|
+
|
|
3
|
+
@include b(time-range-picker) {
|
|
4
|
+
width: 354px;
|
|
5
|
+
overflow: visible;
|
|
6
|
+
|
|
7
|
+
@include e(content) {
|
|
8
|
+
position: relative;
|
|
9
|
+
text-align: center;
|
|
10
|
+
padding: 10px;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@include e(cell) {
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
margin: 0;
|
|
16
|
+
padding: 4px 7px 7px;
|
|
17
|
+
width: 50%;
|
|
18
|
+
display: inline-block;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@include e(header) {
|
|
22
|
+
margin-bottom: 5px;
|
|
23
|
+
text-align: center;
|
|
24
|
+
font-size: 14px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@include e(body) {
|
|
28
|
+
border-radius:2px;
|
|
29
|
+
border: 1px solid $--datepicker-border-color;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
@import "../var";
|
|
2
|
+
|
|
3
|
+
@include b(time-spinner) {
|
|
4
|
+
&.has-seconds {
|
|
5
|
+
.base-time-spinner__wrapper {
|
|
6
|
+
width: 33.3%;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@include e(wrapper) {
|
|
11
|
+
max-height: 190px;
|
|
12
|
+
overflow: auto;
|
|
13
|
+
display: inline-block;
|
|
14
|
+
width: 50%;
|
|
15
|
+
vertical-align: top;
|
|
16
|
+
position: relative;
|
|
17
|
+
|
|
18
|
+
& .base-scrollbar__wrap:not(.base-scrollbar__wrap--hidden-default) {
|
|
19
|
+
padding-bottom: 15px;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@include when(arrow) {
|
|
23
|
+
box-sizing: border-box;
|
|
24
|
+
text-align: center;
|
|
25
|
+
overflow: hidden;
|
|
26
|
+
|
|
27
|
+
.base-time-spinner__list {
|
|
28
|
+
transform: translateY(-32px);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.base-time-spinner__item:hover:not(.disabled):not(.active) {
|
|
32
|
+
background: $--color-white;
|
|
33
|
+
cursor: default;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@include e(arrow) {
|
|
39
|
+
font-size: 12px;
|
|
40
|
+
color: $--color-text-secondary;
|
|
41
|
+
position: absolute;
|
|
42
|
+
left: 0;
|
|
43
|
+
width: 100%;
|
|
44
|
+
z-index: $--index-normal;
|
|
45
|
+
text-align: center;
|
|
46
|
+
height: 30px;
|
|
47
|
+
line-height: 30px;
|
|
48
|
+
cursor: pointer;
|
|
49
|
+
|
|
50
|
+
&:hover {
|
|
51
|
+
color: $--color-primary;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&.base-icon-arrow-up {
|
|
55
|
+
top: 10px;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&.base-icon-arrow-down {
|
|
59
|
+
bottom: 10px;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@include e(input) {
|
|
64
|
+
&.base-input {
|
|
65
|
+
width: 70%;
|
|
66
|
+
|
|
67
|
+
.base-input__inner {
|
|
68
|
+
padding: 0;
|
|
69
|
+
text-align: center;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
@include e(list) {
|
|
75
|
+
padding: 0;
|
|
76
|
+
margin: 0;
|
|
77
|
+
list-style: none;
|
|
78
|
+
text-align: center;
|
|
79
|
+
|
|
80
|
+
&::after,
|
|
81
|
+
&::before {
|
|
82
|
+
content: '';
|
|
83
|
+
display: block;
|
|
84
|
+
width: 100%;
|
|
85
|
+
height: 80px;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
@include e(item) {
|
|
90
|
+
height: 32px;
|
|
91
|
+
line-height: 32px;
|
|
92
|
+
font-size: 12px;
|
|
93
|
+
color: $--color-text-regular;
|
|
94
|
+
|
|
95
|
+
&:hover:not(.disabled):not(.active) {
|
|
96
|
+
background: $--background-color-base;
|
|
97
|
+
cursor: pointer;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&.active:not(.disabled) {
|
|
101
|
+
color: $--color-text-primary;
|
|
102
|
+
font-weight: bold;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
&.disabled {
|
|
106
|
+
color: $--color-text-placeholder;
|
|
107
|
+
cursor: not-allowed;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
@import "../var";
|
|
2
|
+
|
|
3
|
+
@include b(year-table) {
|
|
4
|
+
font-size: 12px;
|
|
5
|
+
margin: -1px;
|
|
6
|
+
border-collapse: collapse;
|
|
7
|
+
|
|
8
|
+
.base-icon {
|
|
9
|
+
color: $--datepicker-icon-color;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
td {
|
|
13
|
+
text-align: center;
|
|
14
|
+
padding: 20px 3px;
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
|
|
17
|
+
&.today {
|
|
18
|
+
.cell {
|
|
19
|
+
color: $--color-primary;
|
|
20
|
+
font-weight: bold;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&.disabled .cell {
|
|
25
|
+
background-color: $--background-color-base;
|
|
26
|
+
cursor: not-allowed;
|
|
27
|
+
color: $--color-text-placeholder;
|
|
28
|
+
|
|
29
|
+
&:hover {
|
|
30
|
+
color: $--color-text-placeholder;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.cell {
|
|
35
|
+
width: 48px;
|
|
36
|
+
height: 32px;
|
|
37
|
+
display: block;
|
|
38
|
+
line-height: 32px;
|
|
39
|
+
color: $--datepicker-font-color;
|
|
40
|
+
margin: 0 auto;
|
|
41
|
+
|
|
42
|
+
&:hover {
|
|
43
|
+
color: $--datepicker-hover-font-color;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&.current:not(.disabled) .cell {
|
|
48
|
+
color: $--datepicker-active-color;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
@import "./date-picker/date-table.scss";
|
|
2
|
+
@import "./date-picker/month-table.scss";
|
|
3
|
+
@import "./date-picker/year-table.scss";
|
|
4
|
+
@import "./date-picker/time-spinner.scss";
|
|
5
|
+
@import "./date-picker/picker.scss";
|
|
6
|
+
@import "./date-picker/date-picker.scss";
|
|
7
|
+
@import "./date-picker/date-range-picker.scss";
|
|
8
|
+
@import "./date-picker/time-range-picker.scss";
|
|
9
|
+
@import "./date-picker/time-picker.scss";
|
|
10
|
+
@import "./input.scss";
|
|
11
|
+
@import "./scrollbar.scss";
|
|
12
|
+
@import "./popper";
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
@import "mixins";
|
|
2
|
+
@import "utils";
|
|
3
|
+
@import "var";
|
|
4
|
+
@import "popup";
|
|
5
|
+
|
|
6
|
+
@include b(dialog) {
|
|
7
|
+
position: relative;
|
|
8
|
+
margin: 0 auto 50px;
|
|
9
|
+
background: $--dialog-background-color;
|
|
10
|
+
border-radius: $--border-radius-small;
|
|
11
|
+
box-shadow: $--dialog-box-shadow;
|
|
12
|
+
box-sizing: border-box;
|
|
13
|
+
width: 50%;
|
|
14
|
+
|
|
15
|
+
@include when(fullscreen) {
|
|
16
|
+
width: 100%;
|
|
17
|
+
margin-top: 0;
|
|
18
|
+
margin-bottom: 0;
|
|
19
|
+
height: 100%;
|
|
20
|
+
overflow: auto;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@include e(wrapper) {
|
|
24
|
+
position: fixed;
|
|
25
|
+
top: 0;
|
|
26
|
+
right: 0;
|
|
27
|
+
bottom: 0;
|
|
28
|
+
left: 0;
|
|
29
|
+
overflow: auto;
|
|
30
|
+
margin: 0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@include e(header) {
|
|
34
|
+
padding: $--dialog-padding-primary;
|
|
35
|
+
padding-bottom: 10px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@include e(headerbtn) {
|
|
39
|
+
position: absolute;
|
|
40
|
+
top: $--dialog-padding-primary;
|
|
41
|
+
right: $--dialog-padding-primary;
|
|
42
|
+
padding: 0;
|
|
43
|
+
background: transparent;
|
|
44
|
+
border: none;
|
|
45
|
+
outline: none;
|
|
46
|
+
cursor: pointer;
|
|
47
|
+
font-size: $--message-close-size;
|
|
48
|
+
|
|
49
|
+
.base-dialog__close {
|
|
50
|
+
color: $--color-info;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&:focus, &:hover {
|
|
54
|
+
.base-dialog__close {
|
|
55
|
+
color: $--color-primary;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@include e(title) {
|
|
61
|
+
line-height: $--dialog-font-line-height;
|
|
62
|
+
font-size: $--dialog-title-font-size;
|
|
63
|
+
color: $--color-text-primary;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@include e(body) {
|
|
67
|
+
padding: ($--dialog-padding-primary + 10px) $--dialog-padding-primary;
|
|
68
|
+
color: $--color-text-regular;
|
|
69
|
+
font-size: $--dialog-content-font-size;
|
|
70
|
+
word-break: break-all;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@include e(footer) {
|
|
74
|
+
padding: $--dialog-padding-primary;
|
|
75
|
+
padding-top: 10px;
|
|
76
|
+
text-align: right;
|
|
77
|
+
box-sizing: border-box;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// 内容居中布局
|
|
81
|
+
@include m(center) {
|
|
82
|
+
text-align: center;
|
|
83
|
+
|
|
84
|
+
@include e(body) {
|
|
85
|
+
text-align: initial;
|
|
86
|
+
padding: 25px ($--dialog-padding-primary + 5px) 30px;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
@include e(footer) {
|
|
90
|
+
text-align: inherit;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.dialog-fade-enter-active {
|
|
96
|
+
animation: dialog-fade-in .3s;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.dialog-fade-leave-active {
|
|
100
|
+
animation: dialog-fade-out .3s;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
@keyframes dialog-fade-in {
|
|
104
|
+
0% {
|
|
105
|
+
transform: translate3d(0, -20px, 0);
|
|
106
|
+
opacity: 0;
|
|
107
|
+
}
|
|
108
|
+
100% {
|
|
109
|
+
transform: translate3d(0, 0, 0);
|
|
110
|
+
opacity: 1;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
@keyframes dialog-fade-out {
|
|
115
|
+
0% {
|
|
116
|
+
transform: translate3d(0, 0, 0);
|
|
117
|
+
opacity: 1;
|
|
118
|
+
}
|
|
119
|
+
100% {
|
|
120
|
+
transform: translate3d(0, -20px, 0);
|
|
121
|
+
opacity: 0;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
@import "var";
|
|
2
|
+
@import "mixins";
|
|
3
|
+
|
|
4
|
+
@include b(divider) {
|
|
5
|
+
background-color: $--border-color-base;
|
|
6
|
+
position: relative;
|
|
7
|
+
|
|
8
|
+
@include m(horizontal) {
|
|
9
|
+
display: block;
|
|
10
|
+
height: 1px;
|
|
11
|
+
width: 100%;
|
|
12
|
+
margin: 24px 0;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@include m(vertical) {
|
|
16
|
+
display: inline-block;
|
|
17
|
+
border-left: thin solid $--color-text-regular;
|
|
18
|
+
height: 1em;
|
|
19
|
+
margin: 0 8px;
|
|
20
|
+
vertical-align: middle;
|
|
21
|
+
position: relative;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@include e(text) {
|
|
25
|
+
position: absolute;
|
|
26
|
+
background-color: $--color-white;
|
|
27
|
+
padding: 0 20px;
|
|
28
|
+
font-weight: 500;
|
|
29
|
+
color: $--color-text-primary;
|
|
30
|
+
font-size: 14px;
|
|
31
|
+
|
|
32
|
+
@include when(left) {
|
|
33
|
+
left: 20px;
|
|
34
|
+
transform: translateY(-50%);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@include when(center) {
|
|
38
|
+
left: 50%;
|
|
39
|
+
transform: translateX(-50%) translateY(-50%);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@include when(right) {
|
|
43
|
+
right: 20px;
|
|
44
|
+
transform: translateY(-50%);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|