@fjyueke/arco-mcp 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +150 -1
- package/metaData/components/action-sheet/css-variables.md +32 -0
- package/metaData/components/action-sheet/style.md +57 -0
- package/metaData/components/avatar/css-variables.md +64 -0
- package/metaData/components/avatar/style.md +147 -0
- package/metaData/components/badge/style.md +74 -0
- package/metaData/components/button/css-variables.md +29 -0
- package/metaData/components/button/style.md +151 -0
- package/metaData/components/carousel/css-variables.md +15 -0
- package/metaData/components/carousel/style.md +208 -0
- package/metaData/components/cell/css-variables.md +32 -0
- package/metaData/components/cell/style.md +123 -0
- package/metaData/components/checkbox/css-variables.md +11 -0
- package/metaData/components/checkbox/style.md +62 -0
- package/metaData/components/circle-progress/css-variables.md +15 -0
- package/metaData/components/circle-progress/style.md +52 -0
- package/metaData/components/collapse/css-variables.md +14 -0
- package/metaData/components/collapse/style.md +53 -0
- package/metaData/components/context-provider/css-variables.md +9 -0
- package/metaData/components/context-provider/style.md +1 -0
- package/metaData/components/count-down/css-variables.md +32 -0
- package/metaData/components/count-down/style.md +7 -0
- package/metaData/components/date-picker/style.md +27 -0
- package/metaData/components/dialog/css-variables.md +31 -0
- package/metaData/components/dialog/style.md +271 -0
- package/metaData/components/divider/css-variables.md +13 -0
- package/metaData/components/divider/style.md +68 -0
- package/metaData/components/dropdown/css-variables.md +23 -0
- package/metaData/components/dropdown/style.md +108 -0
- package/metaData/components/dropdown-menu/css-variables.md +23 -0
- package/metaData/components/dropdown-menu/style.md +60 -0
- package/metaData/components/ellipsis/css-variables.md +9 -0
- package/metaData/components/ellipsis/style.md +31 -0
- package/metaData/components/form/css-variables.md +12 -0
- package/metaData/components/form/style.md +105 -0
- package/metaData/components/grid/css-variables.md +18 -0
- package/metaData/components/grid/style.md +109 -0
- package/metaData/components/icon/css-variables.md +32 -0
- package/metaData/components/image/css-variables.md +18 -0
- package/metaData/components/image/style.md +144 -0
- package/metaData/components/image-picker/css-variables.md +18 -0
- package/metaData/components/image-picker/style.md +116 -0
- package/metaData/components/image-preview/css-variables.md +18 -0
- package/metaData/components/image-preview/style.md +103 -0
- package/metaData/components/index-bar/css-variables.md +20 -0
- package/metaData/components/index-bar/style.md +122 -0
- package/metaData/components/input/css-variables.md +20 -0
- package/metaData/components/input/style.md +108 -0
- package/metaData/components/keyboard/css-variables.md +16 -0
- package/metaData/components/keyboard/style.md +80 -0
- package/metaData/components/load-more/css-variables.md +32 -0
- package/metaData/components/load-more/style.md +7 -0
- package/metaData/components/loading/css-variables.md +10 -0
- package/metaData/components/loading/style.md +102 -0
- package/metaData/components/masking/style.md +30 -0
- package/metaData/components/nav-bar/css-variables.md +13 -0
- package/metaData/components/nav-bar/style.md +112 -0
- package/metaData/components/notice-bar/css-variables.md +14 -0
- package/metaData/components/notice-bar/style.md +124 -0
- package/metaData/components/notify/css-variables.md +10 -0
- package/metaData/components/notify/style.md +40 -0
- package/metaData/components/pagination/css-variables.md +15 -0
- package/metaData/components/pagination/style.md +105 -0
- package/metaData/components/picker/css-variables.md +16 -0
- package/metaData/components/picker/style.md +46 -0
- package/metaData/components/picker-view/css-variables.md +16 -0
- package/metaData/components/picker-view/style.md +75 -0
- package/metaData/components/popover/css-variables.md +14 -0
- package/metaData/components/popover/style.md +226 -0
- package/metaData/components/popup/style.md +115 -0
- package/metaData/components/popup-swiper/style.md +10 -0
- package/metaData/components/portal/css-variables.md +32 -0
- package/metaData/components/portal/style.md +1 -0
- package/metaData/components/progress/css-variables.md +15 -0
- package/metaData/components/progress/style.md +114 -0
- package/metaData/components/pull-refresh/css-variables.md +9 -0
- package/metaData/components/pull-refresh/style.md +86 -0
- package/metaData/components/radio/style.md +57 -0
- package/metaData/components/rate/style.md +63 -0
- package/metaData/components/search-bar/css-variables.md +18 -0
- package/metaData/components/search-bar/style.md +115 -0
- package/metaData/components/show-monitor/css-variables.md +32 -0
- package/metaData/components/show-monitor/style.md +1 -0
- package/metaData/components/skeleton/css-variables.md +15 -0
- package/metaData/components/skeleton/style.md +147 -0
- package/metaData/components/slider/css-variables.md +22 -0
- package/metaData/components/slider/style.md +292 -0
- package/metaData/components/stepper/css-variables.md +11 -0
- package/metaData/components/stepper/style.md +85 -0
- package/metaData/components/steps/css-variables.md +17 -0
- package/metaData/components/steps/style.md +304 -0
- package/metaData/components/sticky/style.md +5 -0
- package/metaData/components/swipe-action/css-variables.md +12 -0
- package/metaData/components/swipe-action/style.md +89 -0
- package/metaData/components/swipe-load/css-variables.md +12 -0
- package/metaData/components/swipe-load/style.md +29 -0
- package/metaData/components/switch/css-variables.md +18 -0
- package/metaData/components/switch/style.md +158 -0
- package/metaData/components/tab-bar/css-variables.md +14 -0
- package/metaData/components/tab-bar/style.md +57 -0
- package/metaData/components/tabs/css-variables.md +18 -0
- package/metaData/components/tabs/style.md +436 -0
- package/metaData/components/tag/css-variables.md +19 -0
- package/metaData/components/tag/style.md +133 -0
- package/metaData/components/textarea/css-variables.md +11 -0
- package/metaData/components/textarea/style.md +37 -0
- package/metaData/components/toast/css-variables.md +19 -0
- package/metaData/components/toast/style.md +93 -0
- package/metaData/components/transition/css-variables.md +32 -0
- package/metaData/components/transition/style.md +28 -0
- package/metaData/components/uploader/css-variables.md +18 -0
- package/metaData/components/uploader/style.md +86 -0
- package/metaData/tokens.json +2358 -0
- package/package.json +1 -1
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
@import '../../../style/mixin.less';
|
|
2
|
+
|
|
3
|
+
@size-map: huge, large, medium, small, mini;
|
|
4
|
+
|
|
5
|
+
.button-has-border(@color) {
|
|
6
|
+
.use-var(border, @color, 1PX solid);
|
|
7
|
+
&.half-border {
|
|
8
|
+
border-width: 0;
|
|
9
|
+
.hairline-var(@color);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.button-has-border-value(@value) {
|
|
14
|
+
border: 1PX solid @value;
|
|
15
|
+
&.half-border {
|
|
16
|
+
border-width: 0;
|
|
17
|
+
.hairline(@value);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.button-no-border() {
|
|
22
|
+
border-width: 0;
|
|
23
|
+
box-shadow: none;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.button-text-size(@font-size) {
|
|
27
|
+
.@{prefix}-button-icon,
|
|
28
|
+
i,
|
|
29
|
+
.@{prefix}-button-text,
|
|
30
|
+
svg {
|
|
31
|
+
.use-var(font-size, @font-size);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.button-size-height(@height) {
|
|
36
|
+
.use-var(height, @height);
|
|
37
|
+
&-is-round {
|
|
38
|
+
.use-var(border-radius, @height);
|
|
39
|
+
}
|
|
40
|
+
&-is-square {
|
|
41
|
+
.rem(border-radius, 0);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.@{prefix}-button {
|
|
46
|
+
cursor: pointer;
|
|
47
|
+
text-align: center;
|
|
48
|
+
line-height: 1.2;
|
|
49
|
+
font-size: 0;
|
|
50
|
+
display: block;
|
|
51
|
+
width: 100%;
|
|
52
|
+
box-sizing: border-box;
|
|
53
|
+
.use-var(line-height, button-line-height);
|
|
54
|
+
.use-var(border-radius, button-radius);
|
|
55
|
+
.noselect();
|
|
56
|
+
|
|
57
|
+
&&-inline {
|
|
58
|
+
width: auto;
|
|
59
|
+
display: inline-block;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&&-type-primary {
|
|
63
|
+
.use-var(background, button-primary-background);
|
|
64
|
+
.use-var(color, button-primary-text-color);
|
|
65
|
+
&-disabled {
|
|
66
|
+
.use-var(background, button-primary-disabled-background);
|
|
67
|
+
.use-var(color, button-primary-disabled-text-color)
|
|
68
|
+
}
|
|
69
|
+
&-active {
|
|
70
|
+
.use-var(background, button-primary-clicked-background);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
&-type-primary {
|
|
74
|
+
.set-loading-color-var(button-primary-text-color);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&&-type-default {
|
|
78
|
+
.use-var(background, button-default-background);
|
|
79
|
+
.use-var(color, button-default-text-color);
|
|
80
|
+
&-disabled {
|
|
81
|
+
.use-var(background, button-default-disabled-background);
|
|
82
|
+
.use-var(color, button-default-disabled-text-color)
|
|
83
|
+
}
|
|
84
|
+
&-active {
|
|
85
|
+
.use-var(background, button-default-clicked-background);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
&-type-default {
|
|
89
|
+
.set-loading-color-var(button-default-text-color);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&&-type-ghost {
|
|
93
|
+
.use-var(background, button-ghost-background);
|
|
94
|
+
.use-var(color, button-ghost-text-color);
|
|
95
|
+
&-disabled {
|
|
96
|
+
.use-var(background, button-ghost-disabled-background);
|
|
97
|
+
.use-var(color, button-ghost-disabled-text-color)
|
|
98
|
+
}
|
|
99
|
+
&-active {
|
|
100
|
+
.use-var(background, button-ghost-clicked-background);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
&-type-ghost {
|
|
104
|
+
.set-loading-color-var(button-ghost-text-color);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
&&-type-ghost {
|
|
108
|
+
.button-has-border-value(currentColor);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.set-button-size(length(@size-map));
|
|
112
|
+
|
|
113
|
+
&-text-android {
|
|
114
|
+
.rem(padding-top, 2);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
&-icon {
|
|
118
|
+
vertical-align: middle;
|
|
119
|
+
display: inline-flex;
|
|
120
|
+
align-items: center;
|
|
121
|
+
justify-content: center;
|
|
122
|
+
}
|
|
123
|
+
&-text {
|
|
124
|
+
display: inline-block;
|
|
125
|
+
vertical-align: middle;
|
|
126
|
+
}
|
|
127
|
+
&-text-has-icon {
|
|
128
|
+
.use-var-with-rtl(margin-left, button-icon-text-gutter);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
&-loading-icon {
|
|
132
|
+
display: inline-block;
|
|
133
|
+
vertical-align: middle;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
&.has-custom-border {
|
|
137
|
+
border: 1PX solid;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.set-button-size(@index) when (@index > 0) {
|
|
142
|
+
@size: extract(@size-map, @index);
|
|
143
|
+
|
|
144
|
+
&&-size-@{size} {
|
|
145
|
+
.use-var(padding, "button-@{size}-padding");
|
|
146
|
+
.button-size-height("button-@{size}-height");
|
|
147
|
+
.button-text-size("button-@{size}-text-size");
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.set-button-size(@index - 1);
|
|
151
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
## 主题定制
|
|
2
|
+
|
|
3
|
+
### 样式变量
|
|
4
|
+
|
|
5
|
+
组件提供了下列 CSS 变量,可用于自定义样式,使用方法请参考 ConfigProvider 组件。
|
|
6
|
+
|
|
7
|
+
| 名称 | 默认值 | 描述 |
|
|
8
|
+
| --- | --- | --- |
|
|
9
|
+
| --arco-carousel-indicator-position | getRem(12) | 轮播图指示器不居中时,距离两侧的安全距离 |
|
|
10
|
+
| --arco-carousel-indicator-safe-padding | getRem(16) | 轮播图圆点形指示器之间的间距 |
|
|
11
|
+
| --arco-carousel-circle-indicator-gutter | getRem(8) | 轮播图方形指示器之间的间距 |
|
|
12
|
+
| --arco-carousel-square-indicator-gutter | getRem(8) | 轮播图圆点形指示器大小 |
|
|
13
|
+
| --arco-carousel-square-indicator-width | getRem(12) | 轮播图方形指示器高度 |
|
|
14
|
+
| --arco-carousel-item-text-height | getRem(32) | 轮播图滑块文字内边距 |
|
|
15
|
+
| --arco-carousel-item-text-font-size | getRem(16) | 输入框 高度 |
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
@import "../../../style/mixin.less";
|
|
2
|
+
|
|
3
|
+
.@{prefix}-carousel {
|
|
4
|
+
|
|
5
|
+
&-wrap {
|
|
6
|
+
position: relative;
|
|
7
|
+
font-size: 0;
|
|
8
|
+
width: 100%;
|
|
9
|
+
}
|
|
10
|
+
position: relative;
|
|
11
|
+
width: 100%;
|
|
12
|
+
overflow: hidden;
|
|
13
|
+
transition: height .3s;
|
|
14
|
+
box-sizing: content-box;
|
|
15
|
+
|
|
16
|
+
&.wrap-placeholder {
|
|
17
|
+
display: none;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&-inner {
|
|
21
|
+
overflow: visible;
|
|
22
|
+
|
|
23
|
+
&:not(.vertical) {
|
|
24
|
+
white-space: nowrap;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&.auto,
|
|
28
|
+
&.auto &-item-inner {
|
|
29
|
+
.use-var(transition-timing-function, carousel-auto-transition);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&.slide,
|
|
33
|
+
&.slide &-item-inner {
|
|
34
|
+
.use-var(transition-timing-function, carousel-slide-transition);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&-item {
|
|
39
|
+
width: 100%;
|
|
40
|
+
height: 100%;
|
|
41
|
+
display: inline-block;
|
|
42
|
+
vertical-align: top;
|
|
43
|
+
white-space: normal;
|
|
44
|
+
position: relative;
|
|
45
|
+
|
|
46
|
+
&.ssr-float {
|
|
47
|
+
max-height: 0;
|
|
48
|
+
overflow: visible;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&.vertical > *,
|
|
52
|
+
&.vertical &-inner > * {
|
|
53
|
+
height: 100%;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
& > img,
|
|
57
|
+
&-inner > img,
|
|
58
|
+
.carousel-item-img {
|
|
59
|
+
width: 100%;
|
|
60
|
+
height: 100%;
|
|
61
|
+
object-fit: cover;
|
|
62
|
+
object-position: center;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.carousel-item-text {
|
|
66
|
+
position: absolute;
|
|
67
|
+
bottom: 0;
|
|
68
|
+
left: 0;
|
|
69
|
+
width: 100%;
|
|
70
|
+
display: flex;
|
|
71
|
+
align-items: center;
|
|
72
|
+
box-sizing: border-box;
|
|
73
|
+
.use-var(padding, carousel-item-text-padding);
|
|
74
|
+
.use-var(font-size, carousel-item-text-font-size);
|
|
75
|
+
.use-var(height, carousel-item-text-height);
|
|
76
|
+
.use-var(color, carousel-item-text-color);
|
|
77
|
+
.use-var(background, carousel-item-text-background);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&-inner {
|
|
81
|
+
width: 100%;
|
|
82
|
+
height: 100%;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&-inner {
|
|
86
|
+
width: 100%;
|
|
87
|
+
height: 100%;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&-indicator {
|
|
92
|
+
position: absolute;
|
|
93
|
+
.use-var(bottom, carousel-indicator-position);
|
|
94
|
+
z-index: 1;
|
|
95
|
+
will-change: transform;
|
|
96
|
+
box-sizing: border-box;
|
|
97
|
+
|
|
98
|
+
&.pos-start {
|
|
99
|
+
.use-var-with-rtl(left, carousel-indicator-safe-padding);
|
|
100
|
+
.set-value-with-rtl(text-align, left);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&.pos-center {
|
|
104
|
+
left: 50%;
|
|
105
|
+
transform: translate3d(-50%, 0, 0);
|
|
106
|
+
text-align: center;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
&.pos-end {
|
|
110
|
+
.use-var-with-rtl(right, carousel-indicator-safe-padding);
|
|
111
|
+
.set-value-with-rtl(text-align, right);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
&-vertical {
|
|
115
|
+
|
|
116
|
+
.indicator {
|
|
117
|
+
display: block;
|
|
118
|
+
box-sizing: border-box;
|
|
119
|
+
.use-var(height, carousel-square-indicator-width);
|
|
120
|
+
.use-var(width, carousel-square-indicator-height);
|
|
121
|
+
|
|
122
|
+
&:not(:last-of-type) {
|
|
123
|
+
margin: 0;
|
|
124
|
+
.use-var(margin-bottom, carousel-square-indicator-gutter);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
&.type-circle:not(:last-of-type) {
|
|
128
|
+
margin: 0;
|
|
129
|
+
.use-var(margin-bottom, carousel-circle-indicator-gutter);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
&.pos-start {
|
|
134
|
+
.use-var(top, carousel-indicator-safe-padding);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
&.pos-center {
|
|
138
|
+
bottom: 50%;
|
|
139
|
+
transform: translate3d(0, 50%, 0);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
&.pos-end {
|
|
143
|
+
.use-var(bottom, carousel-indicator-safe-padding);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
&.ver-pos-left {
|
|
147
|
+
left: auto;
|
|
148
|
+
right: auto;
|
|
149
|
+
.use-var-with-rtl(left, carousel-indicator-position);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
&.ver-pos-right {
|
|
153
|
+
left: auto;
|
|
154
|
+
right: auto;
|
|
155
|
+
.use-var-with-rtl(right, carousel-indicator-position);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
&.inverse {
|
|
160
|
+
|
|
161
|
+
.indicator {
|
|
162
|
+
.use-var(background-color, carousel-indicator-inverse-background);
|
|
163
|
+
|
|
164
|
+
&.active {
|
|
165
|
+
.use-var(background-color, carousel-indicator-active-inverse-background);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
&.outside {
|
|
171
|
+
position: relative;
|
|
172
|
+
left: 0;
|
|
173
|
+
transform: none;
|
|
174
|
+
bottom: 0;
|
|
175
|
+
.use-var(padding, carousel-indicator-outside-padding);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.indicator {
|
|
179
|
+
transition: all .2s;
|
|
180
|
+
.use-var(background-color, carousel-indicator-background);
|
|
181
|
+
|
|
182
|
+
&.active {
|
|
183
|
+
.use-var(background-color, carousel-indicator-active-background);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
&-horizontal .indicator {
|
|
188
|
+
display: inline-block;
|
|
189
|
+
.use-var(width, carousel-square-indicator-width);
|
|
190
|
+
.use-var(height, carousel-square-indicator-height);
|
|
191
|
+
|
|
192
|
+
&:not(:last-of-type) {
|
|
193
|
+
.use-var-with-rtl(margin-right, carousel-square-indicator-gutter);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.circle-indicator,
|
|
198
|
+
.indicator.type-circle {
|
|
199
|
+
.use-var(width, carousel-circle-indicator-size);
|
|
200
|
+
.use-var(height, carousel-circle-indicator-size);
|
|
201
|
+
border-radius: 50%;
|
|
202
|
+
|
|
203
|
+
&:not(:last-of-type) {
|
|
204
|
+
.use-var-with-rtl(margin-right, carousel-circle-indicator-gutter);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
## 主题定制
|
|
2
|
+
|
|
3
|
+
### 样式变量
|
|
4
|
+
|
|
5
|
+
组件提供了下列 CSS 变量,可用于自定义样式,使用方法请参考 ConfigProvider 组件。
|
|
6
|
+
|
|
7
|
+
| 名称 | 默认值 | 描述 |
|
|
8
|
+
| --- | --- | --- |
|
|
9
|
+
| --arco-cell-load-more-font-size | getRem(14) | 加载更多文字颜色 |
|
|
10
|
+
| --arco-cell-desc-font-size | getRem(14) | 单元格标题文字大小 |
|
|
11
|
+
| --arco-cell-title-font-size | getRem(15) | 单元格标题文字字重 |
|
|
12
|
+
| --arco-cell-desc-margin-top | getRem(2) | 单元格内容文字大小 |
|
|
13
|
+
| --arco-cell-content-font-size | getRem(14) | 单元格右箭头图标颜色 |
|
|
14
|
+
| --arco-cell-arrow-gutter | getRem(8) | 单元格右箭头自定义图标大小 |
|
|
15
|
+
| --arco-cell-arrow-font-size | getRem(12) | 单元格背景色 |
|
|
16
|
+
| --arco-cell-font-size | getRem(16) | 单元格两侧横向间距 |
|
|
17
|
+
| --arco-cell-horizontal-padding | getRem(16) | 单元格基础样式高度 |
|
|
18
|
+
| --arco-cell-item-height | getRem(54) | 单元格有描述文字时的高度 |
|
|
19
|
+
| --arco-cell-item-has-desc-height | getRem(74) | 单元格标签文字右侧间距 |
|
|
20
|
+
| --arco-cell-label-gutter | getRem(24) | 单元格标签图标右侧间距 |
|
|
21
|
+
| --arco-cell-label-icon-gutter | getRem(12) | 单元格标签图标大小 |
|
|
22
|
+
| --arco-cell-label-icon-font-size | getRem(20) | 单元格头部和尾部说明文字大小 |
|
|
23
|
+
| --arco-cell-extra-font-size | getRem(14) | 单元格头部和尾部说明文字行高 |
|
|
24
|
+
| --arco-cell-extra-line-height | getRem(20) | 单元格头部和尾部说明内边距 |
|
|
25
|
+
| --arco-cell-count-down-font-size | getRem(16) | 倒计时默认字体行高 |
|
|
26
|
+
| --arco-cell-count-down-line-height | getRem(22) | 倒计时默认字体颜色 |
|
|
27
|
+
| --arco-cell-action-sheet-item-height | getRem(54) | 动作面板选项字体大小 |
|
|
28
|
+
| --arco-cell-action-sheet-item-font-size | getRem(16) | 动作面板顶部圆角值 |
|
|
29
|
+
| --arco-cell-action-sheet-border-radius | getRem(8) | 动作面板取消按钮顶线颜色 |
|
|
30
|
+
| --arco-cell-action-sheet-header-padding | getRem(16) | 动作面板头部标题字体大小 |
|
|
31
|
+
| --arco-cell-action-sheet-title-font-size | getRem(16) | 动作面板头部描述字体大小 |
|
|
32
|
+
| --arco-cell-action-sheet-sub-title-font-size | getRem(14) | 搜索栏内边距大小 |
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
@import "../../../style/mixin.less";
|
|
2
|
+
|
|
3
|
+
.@{prefix}-cell {
|
|
4
|
+
.use-var(color, cell-text-color);
|
|
5
|
+
.use-var(font-size, cell-font-size);
|
|
6
|
+
.use-var(margin-left, cell-horizontal-padding);
|
|
7
|
+
.use-var(padding-right, cell-horizontal-padding);
|
|
8
|
+
|
|
9
|
+
&:not(:first-of-type).bordered {
|
|
10
|
+
.onepx-border-var(top, line-color);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
&.without-group {
|
|
14
|
+
.use-var(background-color, cell-background-color);
|
|
15
|
+
.use-var(padding-left, cell-horizontal-padding);
|
|
16
|
+
margin-left: 0;
|
|
17
|
+
|
|
18
|
+
&.bordered {
|
|
19
|
+
.onepx-border-var(top, line-color);
|
|
20
|
+
.onepx-border-var(bottom, line-color);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&-inner {
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
.use-var(height, cell-item-height);
|
|
28
|
+
|
|
29
|
+
&.has-desc {
|
|
30
|
+
.use-var(height, cell-item-has-desc-height);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.cell-label {
|
|
35
|
+
.use-var(color, cell-label-color);
|
|
36
|
+
.use-var-with-rtl(margin-right, cell-label-gutter);
|
|
37
|
+
|
|
38
|
+
.cell-title {
|
|
39
|
+
.use-var(font-size, cell-title-font-size);
|
|
40
|
+
.use-var(font-weight, cell-title-font-weight);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.cell-desc {
|
|
45
|
+
.use-var(color, cell-desc-color);
|
|
46
|
+
.use-var(font-size, cell-desc-font-size);
|
|
47
|
+
.use-var(margin-top, cell-desc-margin-top);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.cell-content {
|
|
51
|
+
flex: 1;
|
|
52
|
+
display: flex;
|
|
53
|
+
align-items: center;
|
|
54
|
+
height: 100%;
|
|
55
|
+
|
|
56
|
+
&.has-label {
|
|
57
|
+
justify-content: flex-end;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.cell-text {
|
|
61
|
+
width: 100%;
|
|
62
|
+
.set-value-with-rtl(text-align, right);
|
|
63
|
+
.use-var(font-size, cell-content-font-size);
|
|
64
|
+
.text-overflow(2);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.cell-label-icon {
|
|
69
|
+
.use-var-with-rtl(margin-right, cell-label-icon-gutter);
|
|
70
|
+
font-size: 0;
|
|
71
|
+
.@{prefix}-icon {
|
|
72
|
+
line-height: initial;
|
|
73
|
+
.use-var(font-size, cell-label-icon-font-size);
|
|
74
|
+
.use-var(color, cell-label-icon-color);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.cell-arrow-icon {
|
|
79
|
+
.style-with-rtl({
|
|
80
|
+
transform: scale(-1);
|
|
81
|
+
});
|
|
82
|
+
.use-var-with-rtl(margin-left, cell-arrow-gutter);
|
|
83
|
+
font-size: 0;
|
|
84
|
+
.@{prefix}-icon {
|
|
85
|
+
.use-var(font-size, cell-arrow-font-size);
|
|
86
|
+
.use-var(color, cell-arrow-color);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.arrow-icon-svg {
|
|
90
|
+
.rem(width, 8);
|
|
91
|
+
|
|
92
|
+
path {
|
|
93
|
+
.use-var(fill, cell-arrow-color);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.@{prefix}-input-wrap {
|
|
99
|
+
.set-prop-with-rtl(padding-left, 0, {
|
|
100
|
+
.use-var(padding-left, input-horizontal-padding);
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.@{prefix}-cell-group {
|
|
106
|
+
|
|
107
|
+
.cell-group-header,
|
|
108
|
+
.cell-group-footer {
|
|
109
|
+
.use-var(color, cell-text-color);
|
|
110
|
+
.use-var(font-size, cell-extra-font-size);
|
|
111
|
+
.use-var(line-height, cell-extra-line-height);
|
|
112
|
+
.use-var(padding, cell-extra-padding);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.cell-group-body {
|
|
116
|
+
.use-var(background-color, cell-background-color);
|
|
117
|
+
|
|
118
|
+
&.bordered {
|
|
119
|
+
.onepx-border-var(top, line-color);
|
|
120
|
+
.onepx-border-var(bottom, line-color);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
## 主题定制
|
|
2
|
+
|
|
3
|
+
### 样式变量
|
|
4
|
+
|
|
5
|
+
组件提供了下列 CSS 变量,可用于自定义样式,使用方法请参考 ConfigProvider 组件。
|
|
6
|
+
|
|
7
|
+
| 名称 | 默认值 | 描述 |
|
|
8
|
+
| --- | --- | --- |
|
|
9
|
+
| --arco-checkbox-icon-margin-right | getRem(8) | checkbox图标被选中时的颜色 |
|
|
10
|
+
| --arco-checkbox-text-font-size | getRem(16) | checkbox文字禁用态透明度 |
|
|
11
|
+
| --arco-checkbox-group-gutter | getRem(24) | tabs tabbar 字体大小 |
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
@import "../../../style/mixin.less";
|
|
2
|
+
|
|
3
|
+
.@{prefix}-checkbox {
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
|
|
7
|
+
.checkbox-icon {
|
|
8
|
+
display: inline-flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
.use-var(font-size, checkbox-icon-font-size);
|
|
11
|
+
.use-var(color, checkbox-icon-color);
|
|
12
|
+
|
|
13
|
+
&.checked {
|
|
14
|
+
.use-var(color, checkbox-icon-checked-color);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&.disabled {
|
|
18
|
+
.use-var(color, checkbox-icon-disabled-color);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&.checked.disabled {
|
|
22
|
+
.use-var(color, checkbox-icon-checked-disabled-color);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.@{prefix}-icon-circle-disabled path {
|
|
26
|
+
.use-var(stroke, line-color);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.checkbox-text {
|
|
31
|
+
.use-var(font-size, checkbox-text-font-size);
|
|
32
|
+
.use-var(color, font-color);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.checkbox-icon + .checkbox-text {
|
|
36
|
+
.use-var-with-rtl(margin-left, checkbox-icon-margin-right);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&.disabled .checkbox-text {
|
|
40
|
+
.use-var(opacity, checkbox-text-disabled-opacity);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&.block {
|
|
44
|
+
width: 100%;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&.justify {
|
|
48
|
+
width: 100%;
|
|
49
|
+
justify-content: space-between;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.@{prefix}-checkbox-group {
|
|
54
|
+
.@{prefix}-checkbox:not(:last-child) {
|
|
55
|
+
.use-var-with-rtl(margin-right, checkbox-group-gutter);
|
|
56
|
+
|
|
57
|
+
&.block,
|
|
58
|
+
&.justify {
|
|
59
|
+
.set-prop-with-rtl(margin-right, 0);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
## 主题定制
|
|
2
|
+
|
|
3
|
+
### 样式变量
|
|
4
|
+
|
|
5
|
+
组件提供了下列 CSS 变量,可用于自定义样式,使用方法请参考 ConfigProvider 组件。
|
|
6
|
+
|
|
7
|
+
| 名称 | 默认值 | 描述 |
|
|
8
|
+
| --- | --- | --- |
|
|
9
|
+
| --arco-circleprogress-font-size | getRem(14) | 环形进度条 进度条颜色 |
|
|
10
|
+
| --arco-circleprogress-progress-text-gutter | getRem(8) | 进度条 文字大小 |
|
|
11
|
+
| --arco-circleprogress-progress-text-font-size | getRem(14) | 进度条 跟随进度样式的文字大小 |
|
|
12
|
+
| --arco-circleprogress-progress-text-follow-font-size | getRem(13) | 进度条 跟随进度样式的文字圆角值 |
|
|
13
|
+
| --arco-circleprogress-progress-text-follow-border-radius | getRem(20) | 进度条 跟随进度样式的文字宽度 |
|
|
14
|
+
| --arco-circleprogress-progress-text-follow-width | getRem(36) | 进度条 跟随进度样式的文字高度 |
|
|
15
|
+
| --arco-circleprogress-progress-text-follow-height | getRem(20) | 渐隐过渡效果持续时长 |
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
@import "../../../style/mixin.less";
|
|
2
|
+
|
|
3
|
+
.@{prefix}-circle-progress {
|
|
4
|
+
position: relative;
|
|
5
|
+
|
|
6
|
+
&-text {
|
|
7
|
+
position: absolute;
|
|
8
|
+
.use-var(font-size, circle-progress-font-size);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
&-text-center {
|
|
12
|
+
left: 50%;
|
|
13
|
+
top: 50%;
|
|
14
|
+
transform: translate(-50%, -50%);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&-text-bottom {
|
|
18
|
+
.rem(bottom, -20);
|
|
19
|
+
left: 50%;
|
|
20
|
+
transform: translateX(-50%);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.track-color {
|
|
24
|
+
.use-var(stroke, circle-progress-track-color);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.color {
|
|
28
|
+
.use-var(stroke, circle-progress-primary-color);
|
|
29
|
+
.use-var(color, circle-progress-primary-color);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.mini {
|
|
33
|
+
.use-var(stroke, circle-progress-mini-track-color);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.disabled {
|
|
37
|
+
.use-var(color, circle-progress-disabled-color);
|
|
38
|
+
.use-var(stroke, circle-progress-disabled-color);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.linear-gradient-start {
|
|
42
|
+
.use-var(stop-color, circle-progress-linear-gradient-start-color);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.linear-gradient-text {
|
|
46
|
+
.use-var(color, circle-progress-linear-gradient-text-color);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.linear-gradient-end {
|
|
50
|
+
.use-var(stop-color, circle-progress-linear-gradient-end-color);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
## 主题定制
|
|
2
|
+
|
|
3
|
+
### 样式变量
|
|
4
|
+
|
|
5
|
+
组件提供了下列 CSS 变量,可用于自定义样式,使用方法请参考 ConfigProvider 组件。
|
|
6
|
+
|
|
7
|
+
| 名称 | 默认值 | 描述 |
|
|
8
|
+
| --- | --- | --- |
|
|
9
|
+
| --arco-collapse-header-height | getRem(54) | collapse header的字体大小 |
|
|
10
|
+
| --arco-collapse-header-font-size | getRem(16) | collapse header的左侧的margin |
|
|
11
|
+
| --arco-collapse-header-margin-left | getRem(16) | collapse header的内边距 |
|
|
12
|
+
| --arco-collapse-header-line-height | getRem(22) | collapse header的图标的颜色 |
|
|
13
|
+
| --arco-collapse-content-font-size | getRem(14) | collapse content(面板)的字体颜色 |
|
|
14
|
+
| --arco-collapse-content-line-height | getRem(22) | 下拉刷新组件状态文案内容区背景色 |
|