@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,60 @@
|
|
|
1
|
+
@import '../../../style/mixin.less';
|
|
2
|
+
|
|
3
|
+
.@{prefix}-dropdown-menu {
|
|
4
|
+
.@{prefix}-select{
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: row;
|
|
7
|
+
justify-content: space-between;
|
|
8
|
+
.onepx-border-var(bottom, line-color);
|
|
9
|
+
&-item {
|
|
10
|
+
position: relative;
|
|
11
|
+
.use-var(padding, dropdown-menu-padding);
|
|
12
|
+
.use-var(font-size, dropdown-menu-font-size);
|
|
13
|
+
.use-var(line-height, dropdown-menu-line-height);
|
|
14
|
+
flex: 1;
|
|
15
|
+
display:flex;
|
|
16
|
+
flex-wrap: nowrap;
|
|
17
|
+
align-items: center;
|
|
18
|
+
justify-content: center;
|
|
19
|
+
.use-var(color, dropdown-menu-color);
|
|
20
|
+
&.is-disabled {
|
|
21
|
+
.use-var(color, dropdown-menu-disabled-color);
|
|
22
|
+
}
|
|
23
|
+
&.is-selected {
|
|
24
|
+
.use-var(color, dropdown-menu-selected-color);
|
|
25
|
+
}
|
|
26
|
+
&-tip {
|
|
27
|
+
display: inline-block;
|
|
28
|
+
white-space: nowrap;
|
|
29
|
+
.use-var(color, dropdown-menu-tip-color);
|
|
30
|
+
.use-var-with-rtl(padding-right, dropdown-menu-tip-padding-right);
|
|
31
|
+
}
|
|
32
|
+
&-label {
|
|
33
|
+
display: flex;
|
|
34
|
+
flex-wrap: nowrap;
|
|
35
|
+
align-items: center;
|
|
36
|
+
&-text {
|
|
37
|
+
flex: auto;
|
|
38
|
+
display: inline-block;
|
|
39
|
+
white-space: nowrap;
|
|
40
|
+
overflow: hidden;
|
|
41
|
+
.use-var(max-width, dropdown-menu-label-max-width);
|
|
42
|
+
text-overflow: ellipsis;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
&-icon {
|
|
46
|
+
flex: none;
|
|
47
|
+
.use-var(color, dropdown-menu-icon-color);
|
|
48
|
+
.use-var(width, dropdown-menu-icon-size);
|
|
49
|
+
.use-var(height, dropdown-menu-icon-size);
|
|
50
|
+
.use-var-with-rtl(margin-left, dropdown-menu-icon-margin-left);
|
|
51
|
+
transform: rotate(0deg);
|
|
52
|
+
transition: transform .2s cubic-bezier(.34, .69, .1, 1);
|
|
53
|
+
&.is-show {
|
|
54
|
+
.use-var(color, dropdown-menu-icon-selected-color);
|
|
55
|
+
transform: rotate(180deg);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
@import '../../../style/mixin.less';
|
|
2
|
+
|
|
3
|
+
.@{prefix}-ellipsis {
|
|
4
|
+
.use-var(font-size, ellipsis-default-text-size);
|
|
5
|
+
|
|
6
|
+
&-native.ellipsis,
|
|
7
|
+
&-js-content-initial {
|
|
8
|
+
display: -webkit-box;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
text-overflow: ellipsis;
|
|
11
|
+
word-break: break-word;
|
|
12
|
+
-webkit-box-orient: vertical;
|
|
13
|
+
position: relative;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&-native-ellipsis-node {
|
|
17
|
+
position: absolute;
|
|
18
|
+
right: 0;
|
|
19
|
+
bottom: 0;
|
|
20
|
+
.use-var(background, ellipsis-float-ellipsis-node-background);
|
|
21
|
+
.use-var(padding-left, ellipsis-float-ellipsis-node-padding-left);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&-js-content-text-pre {
|
|
25
|
+
white-space: pre-line;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&-js-content-ellipsis {
|
|
29
|
+
display: none;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
## 主题定制
|
|
2
|
+
|
|
3
|
+
### 样式变量
|
|
4
|
+
|
|
5
|
+
组件提供了下列 CSS 变量,可用于自定义样式,使用方法请参考 ConfigProvider 组件。
|
|
6
|
+
|
|
7
|
+
| 名称 | 默认值 | 描述 |
|
|
8
|
+
| --- | --- | --- |
|
|
9
|
+
| --arco-form-item-label-item-font-size | getRem(16) | 表单项标签行高 |
|
|
10
|
+
| --arco-form-item-label-item-line-height | getRem(54) | 表单项标签颜色 |
|
|
11
|
+
| --arco-form-item-label-item-gutter | getRem(16) | 表单项标签宽度 |
|
|
12
|
+
| --arco-form-item-label-item-width | getRem(96) | 表单项分割线颜色 |
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
@import '../../../style/mixin.less';
|
|
2
|
+
|
|
3
|
+
.@{prefix}-form {
|
|
4
|
+
&-item {
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: flex-start;
|
|
7
|
+
border-top-width: 1px;
|
|
8
|
+
border-top-style: solid;
|
|
9
|
+
.use-var(border-top-color, form-item-border-divider-color);
|
|
10
|
+
|
|
11
|
+
&:first-child {
|
|
12
|
+
border: none;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&-label-item {
|
|
17
|
+
display: flex;
|
|
18
|
+
position: relative;
|
|
19
|
+
align-items: center;
|
|
20
|
+
justify-content: flex-start;
|
|
21
|
+
.use-var(font-size, form-item-label-item-font-size);
|
|
22
|
+
.use-var(line-height, form-item-label-item-line-height);
|
|
23
|
+
.use-var(color, form-item-label-item-color);
|
|
24
|
+
.use-var-with-rtl(padding-right, form-item-label-item-gutter);
|
|
25
|
+
.use-var(width, form-item-label-item-width);
|
|
26
|
+
|
|
27
|
+
&-required-asterisk {
|
|
28
|
+
position: absolute;
|
|
29
|
+
.set-prop-with-rtl(left, -0.6em);
|
|
30
|
+
top: 0;
|
|
31
|
+
|
|
32
|
+
.use-var(font-size, form-item-label-item-font-size);
|
|
33
|
+
.use-var(line-height, form-item-label-item-line-height);
|
|
34
|
+
.use-var(color, form-item-label-item-required-asterisk-color);
|
|
35
|
+
}
|
|
36
|
+
.disabled & {
|
|
37
|
+
.use-var(color, input-disabled-color);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
&-item-control {
|
|
41
|
+
padding: 16px 0;
|
|
42
|
+
.@{prefix}-input-wrap, .@{prefix}-input {
|
|
43
|
+
padding: 0;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.@{prefix}-input-wrap.textarea {
|
|
47
|
+
padding: 0;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&-wrapper {
|
|
51
|
+
width: 100%;
|
|
52
|
+
flex: 1;
|
|
53
|
+
position: relative;
|
|
54
|
+
.@{prefix}-input-wrap.single-line {
|
|
55
|
+
.use-var(height, input-text-line-height);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
&-item-message {
|
|
60
|
+
.rem(font-size, 12);
|
|
61
|
+
.use-var(color, form-item-label-item-required-asterisk-color);
|
|
62
|
+
.rem(margin-top, -5);
|
|
63
|
+
svg,
|
|
64
|
+
span {
|
|
65
|
+
vertical-align: middle;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
svg {
|
|
69
|
+
.rem-with-rtl(margin-right, 4);
|
|
70
|
+
}
|
|
71
|
+
margin-bottom: 16px;
|
|
72
|
+
}
|
|
73
|
+
&-item-error-message {
|
|
74
|
+
.use-var(color, form-item-error-message-color);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&-item-warning-message {
|
|
78
|
+
.use-var(color, form-item-warning-message-color);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&-item.@{prefix}-form-item-vertical {
|
|
82
|
+
display: block;
|
|
83
|
+
.@{prefix}-input-wrap {
|
|
84
|
+
.set-prop-with-rtl(padding-left, 0);
|
|
85
|
+
}
|
|
86
|
+
.@{prefix}-form-label-item {
|
|
87
|
+
width: auto;
|
|
88
|
+
margin-top: 16px;
|
|
89
|
+
.use-var(height, form-item-label-item-font-size);
|
|
90
|
+
.use-var( line-height, form-item-label-item-font-size);
|
|
91
|
+
&-required-asterisk {
|
|
92
|
+
.use-var(height, form-item-label-item-font-size);
|
|
93
|
+
.use-var( line-height, form-item-label-item-font-size);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&-picker-link-container {
|
|
99
|
+
.rem(font-size, 16);
|
|
100
|
+
.use-var(color, font-color);
|
|
101
|
+
&-placeholder {
|
|
102
|
+
.use-var(color, input-placeholder-color);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
## 主题定制
|
|
2
|
+
|
|
3
|
+
### 样式变量
|
|
4
|
+
|
|
5
|
+
组件提供了下列 CSS 变量,可用于自定义样式,使用方法请参考 ConfigProvider 组件。
|
|
6
|
+
|
|
7
|
+
| 名称 | 默认值 | 描述 |
|
|
8
|
+
| --- | --- | --- |
|
|
9
|
+
| --arco-grid-icon-width | getRem(32) | 宫格组件每个单元格图标的高度 |
|
|
10
|
+
| --arco-grid-icon-height | getRem(32) | 宫格组件垂直布局中文字区域顶部间距 |
|
|
11
|
+
| --arco-grid-vertical-text-margin-top | getRem(8) | 宫格组件垂直布局中标题字体大小 |
|
|
12
|
+
| --arco-grid-vertical-title-font-size | getRem(16) | 宫格组件垂直布局中标题字体行高 |
|
|
13
|
+
| --arco-grid-vertical-title-line-height | getRem(20) | 宫格组件垂直布局中描述内容顶部间距 |
|
|
14
|
+
| --arco-grid-vertical-content-margin-top | getRem(2) | 宫格组件垂直布局中描述内容字体大小 |
|
|
15
|
+
| --arco-grid-vertical-content-font-size | getRem(12) | 宫格组件垂直布局中描述内容字体行高 |
|
|
16
|
+
| --arco-grid-vertical-content-line-height | getRem(16) | 宫格组件水平布局中文字区域左侧间距 |
|
|
17
|
+
| --arco-grid-horizontal-text-margin-left | getRem(12) | 宫格组件水平布局中描述内容顶部间距 |
|
|
18
|
+
| --arco-grid-horizontal-content-margin-top | getRem(0) | 宫格组件分割线颜色 |
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
@import "../../../style/mixin.less";
|
|
2
|
+
|
|
3
|
+
.@{prefix}-grid {
|
|
4
|
+
width: 100%;
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
|
|
8
|
+
&-rows {
|
|
9
|
+
display: flex;
|
|
10
|
+
|
|
11
|
+
&-item {
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
align-items: center;
|
|
16
|
+
width: 100%;
|
|
17
|
+
|
|
18
|
+
&-icon {
|
|
19
|
+
.use-var(width, grid-icon-width);
|
|
20
|
+
.use-var(height, grid-icon-height);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&-icon.circle {
|
|
24
|
+
border-radius: 50%;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&-text {
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
.use-var(margin-top, grid-vertical-text-margin-top);
|
|
31
|
+
text-align: center;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&-title {
|
|
35
|
+
.use-var(font-size, grid-vertical-title-font-size);
|
|
36
|
+
.use-var(line-height, grid-vertical-title-line-height);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&-content {
|
|
40
|
+
.use-var(font-size, grid-vertical-content-font-size);
|
|
41
|
+
.use-var(line-height, grid-vertical-content-line-height);
|
|
42
|
+
.use-var(margin-top, grid-vertical-content-margin-top);
|
|
43
|
+
.use-var(color, sub-info-font-color);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&-item.horizontal {
|
|
49
|
+
flex-direction: row;
|
|
50
|
+
|
|
51
|
+
.@{prefix}-grid-rows-item {
|
|
52
|
+
|
|
53
|
+
&-text {
|
|
54
|
+
.use-var-with-rtl(margin-left, grid-horizontal-text-margin-left);
|
|
55
|
+
margin-top: 0;
|
|
56
|
+
.set-value-with-rtl(text-align, left);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&-content {
|
|
60
|
+
.use-var(margin-top, grid-horizontal-content-margin-top);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&-item.border {
|
|
67
|
+
position: relative;
|
|
68
|
+
display: flex;
|
|
69
|
+
align-items: center;
|
|
70
|
+
justify-content: center;
|
|
71
|
+
|
|
72
|
+
.vertical-border:after {
|
|
73
|
+
content: "";
|
|
74
|
+
width: 1px;
|
|
75
|
+
position: absolute;
|
|
76
|
+
top: 50%;
|
|
77
|
+
right: 0;
|
|
78
|
+
transform: scaleX(.5) translateY(-50%);
|
|
79
|
+
.use-var(height, grid-border-size);
|
|
80
|
+
.use-var(background-color, grid-border-color);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.horizontal-border:after {
|
|
84
|
+
content: "";
|
|
85
|
+
height: 1px;
|
|
86
|
+
position: absolute;
|
|
87
|
+
bottom: 0;
|
|
88
|
+
left: 50%;
|
|
89
|
+
transform: scaleY(.5) translateX(-50%);
|
|
90
|
+
.use-var(width, grid-border-size);
|
|
91
|
+
.use-var(background-color, grid-border-color);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
.@{prefix}-grid.sliding {
|
|
97
|
+
display: inline-block;
|
|
98
|
+
overflow-x: auto;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.@{prefix}-grid.sliding::-webkit-scrollbar {
|
|
102
|
+
display: none; /* Chrome Safari */
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.@{prefix}-grid {
|
|
106
|
+
.@{prefix}-image-picker {
|
|
107
|
+
width: 100%; /* 兼容grid和image-picker组合使用 */
|
|
108
|
+
}
|
|
109
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
## 主题定制
|
|
2
|
+
|
|
3
|
+
### 样式变量
|
|
4
|
+
|
|
5
|
+
组件提供了下列 CSS 变量,可用于自定义样式,使用方法请参考 ConfigProvider 组件。
|
|
6
|
+
|
|
7
|
+
| 名称 | 默认值 | 描述 |
|
|
8
|
+
| --- | --- | --- |
|
|
9
|
+
| --arco-icon-load-more-font-size | getRem(14) | 加载更多文字颜色 |
|
|
10
|
+
| --arco-icon-cell-desc-font-size | getRem(14) | 单元格标题文字大小 |
|
|
11
|
+
| --arco-icon-cell-title-font-size | getRem(15) | 单元格标题文字字重 |
|
|
12
|
+
| --arco-icon-cell-desc-margin-top | getRem(2) | 单元格内容文字大小 |
|
|
13
|
+
| --arco-icon-cell-content-font-size | getRem(14) | 单元格右箭头图标颜色 |
|
|
14
|
+
| --arco-icon-cell-arrow-gutter | getRem(8) | 单元格右箭头自定义图标大小 |
|
|
15
|
+
| --arco-icon-cell-arrow-font-size | getRem(12) | 单元格背景色 |
|
|
16
|
+
| --arco-icon-cell-font-size | getRem(16) | 单元格两侧横向间距 |
|
|
17
|
+
| --arco-icon-cell-horizontal-padding | getRem(16) | 单元格基础样式高度 |
|
|
18
|
+
| --arco-icon-cell-item-height | getRem(54) | 单元格有描述文字时的高度 |
|
|
19
|
+
| --arco-icon-cell-item-has-desc-height | getRem(74) | 单元格标签文字右侧间距 |
|
|
20
|
+
| --arco-icon-cell-label-gutter | getRem(24) | 单元格标签图标右侧间距 |
|
|
21
|
+
| --arco-icon-cell-label-icon-gutter | getRem(12) | 单元格标签图标大小 |
|
|
22
|
+
| --arco-icon-cell-label-icon-font-size | getRem(20) | 单元格头部和尾部说明文字大小 |
|
|
23
|
+
| --arco-icon-cell-extra-font-size | getRem(14) | 单元格头部和尾部说明文字行高 |
|
|
24
|
+
| --arco-icon-cell-extra-line-height | getRem(20) | 单元格头部和尾部说明内边距 |
|
|
25
|
+
| --arco-icon-count-down-font-size | getRem(16) | 倒计时默认字体行高 |
|
|
26
|
+
| --arco-icon-count-down-line-height | getRem(22) | 倒计时默认字体颜色 |
|
|
27
|
+
| --arco-icon-action-sheet-item-height | getRem(54) | 动作面板选项字体大小 |
|
|
28
|
+
| --arco-icon-action-sheet-item-font-size | getRem(16) | 动作面板顶部圆角值 |
|
|
29
|
+
| --arco-icon-action-sheet-border-radius | getRem(8) | 动作面板取消按钮顶线颜色 |
|
|
30
|
+
| --arco-icon-action-sheet-header-padding | getRem(16) | 动作面板头部标题字体大小 |
|
|
31
|
+
| --arco-icon-action-sheet-title-font-size | getRem(16) | 动作面板头部描述字体大小 |
|
|
32
|
+
| --arco-icon-action-sheet-sub-title-font-size | getRem(14) | 搜索栏内边距大小 |
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
## 主题定制
|
|
2
|
+
|
|
3
|
+
### 样式变量
|
|
4
|
+
|
|
5
|
+
组件提供了下列 CSS 变量,可用于自定义样式,使用方法请参考 ConfigProvider 组件。
|
|
6
|
+
|
|
7
|
+
| 名称 | 默认值 | 描述 |
|
|
8
|
+
| --- | --- | --- |
|
|
9
|
+
| --arco-image-inner-font-size | getRem(16) | 图片重试时字体大小 |
|
|
10
|
+
| --arco-image-retry-font-size | getRem(16) | switch 文字颜色 |
|
|
11
|
+
| --arco-image-preview-indicator-font-size | getRem(14) | 图片预览指示器内边距 |
|
|
12
|
+
| --arco-image-picker-font-size | getRem(14) | 图片选择器禁用状态下的透明度 |
|
|
13
|
+
| --arco-image-picker-border-radius | getRem(2) | 图片选择器添加图片按钮的背景色 |
|
|
14
|
+
| --arco-image-picker-add-icon-font-size | getRem(30) | 图片选择器添加图片按钮的图标颜色 |
|
|
15
|
+
| --arco-image-picker-add-text-font-size | getRem(12) | 图片选择器添加图片按钮的字体颜色 |
|
|
16
|
+
| --arco-image-picker-close-font-size | getRem(12) | 图片选择器关闭按钮宽度 |
|
|
17
|
+
| --arco-image-picker-close-width | getRem(18) | 图片选择器关闭按钮高度 |
|
|
18
|
+
| --arco-image-picker-close-height | getRem(18) | 图片选择器关闭按钮背景色 |
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
@import '../../../style/mixin.less';
|
|
2
|
+
|
|
3
|
+
.@{prefix}-image {
|
|
4
|
+
display: inline-block;
|
|
5
|
+
position: relative;
|
|
6
|
+
|
|
7
|
+
&.preview {
|
|
8
|
+
transition: all 0.3s ease-in-out;
|
|
9
|
+
|
|
10
|
+
.image-container,
|
|
11
|
+
.image-loading-container .image-loading,
|
|
12
|
+
.image-error-container .image-retry-load {
|
|
13
|
+
background-color: transparent;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.image-container::after {
|
|
17
|
+
border-color: transparent;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.image-bottom-overlap,
|
|
22
|
+
.image-top-overlap {
|
|
23
|
+
position: absolute;
|
|
24
|
+
width: 100%;
|
|
25
|
+
height: 100%;
|
|
26
|
+
top: 0;
|
|
27
|
+
left: 0;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.image-bottom-overlap {
|
|
31
|
+
z-index: 0;
|
|
32
|
+
overflow: hidden;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.image-placeholder {
|
|
36
|
+
.use-var(background-color, image-placeholder-background);
|
|
37
|
+
width: 100%;
|
|
38
|
+
height: 100%;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.image-top-overlap {
|
|
42
|
+
z-index: 10;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.image-loading-container,
|
|
46
|
+
.image-error-container {
|
|
47
|
+
overflow: hidden;
|
|
48
|
+
position: absolute;
|
|
49
|
+
top: 0;
|
|
50
|
+
left: 0;
|
|
51
|
+
width: 100%;
|
|
52
|
+
height: 100%;
|
|
53
|
+
display: flex;
|
|
54
|
+
flex-direction: column;
|
|
55
|
+
align-items: center;
|
|
56
|
+
justify-content: center;
|
|
57
|
+
z-index: 2;
|
|
58
|
+
.use-var(font-size, image-inner-font-size);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.image-container {
|
|
62
|
+
position: relative;
|
|
63
|
+
font-size: 0;
|
|
64
|
+
opacity: 0;
|
|
65
|
+
z-index: 1;
|
|
66
|
+
overflow: hidden;
|
|
67
|
+
|
|
68
|
+
&.static-label,
|
|
69
|
+
&.loaded,
|
|
70
|
+
&.error,
|
|
71
|
+
&.has-loaded {
|
|
72
|
+
opacity: 1;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&.animate {
|
|
76
|
+
transition-property: opacity;
|
|
77
|
+
.use-var(transition-timing-function, image-transition-function);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.bordered {
|
|
81
|
+
.hairline-var(line-color);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&,
|
|
85
|
+
& img {
|
|
86
|
+
width: inherit;
|
|
87
|
+
height: inherit;
|
|
88
|
+
min-width: inherit;
|
|
89
|
+
min-height: inherit;
|
|
90
|
+
max-width: inherit;
|
|
91
|
+
max-height: inherit;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.preview-fit-contain-y {
|
|
95
|
+
width: 100%;
|
|
96
|
+
height: auto;
|
|
97
|
+
position: absolute;
|
|
98
|
+
top: 50%;
|
|
99
|
+
transform: translateY(-50%);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.preview-fit-contain-x {
|
|
103
|
+
height: 100%;
|
|
104
|
+
width: auto;
|
|
105
|
+
position: absolute;
|
|
106
|
+
left: 50%;
|
|
107
|
+
transform: translateX(-50%);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.image-error-container {
|
|
112
|
+
.image-retry-load {
|
|
113
|
+
position: absolute;
|
|
114
|
+
top: 0;
|
|
115
|
+
left: 0;
|
|
116
|
+
width: 100%;
|
|
117
|
+
height: 100%;
|
|
118
|
+
display: flex;
|
|
119
|
+
flex-direction: column;
|
|
120
|
+
justify-content: center;
|
|
121
|
+
align-items: center;
|
|
122
|
+
.use-var(background-color, image-mask-background);
|
|
123
|
+
.use-var(font-size, image-retry-font-size);
|
|
124
|
+
.use-var(color, image-retry-icon-color);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.image-loading-container {
|
|
129
|
+
.image-loading {
|
|
130
|
+
position: absolute;
|
|
131
|
+
top: 0;
|
|
132
|
+
left: 0;
|
|
133
|
+
width: 100%;
|
|
134
|
+
height: 100%;
|
|
135
|
+
display: flex;
|
|
136
|
+
flex-direction: column;
|
|
137
|
+
justify-content: center;
|
|
138
|
+
align-items: center;
|
|
139
|
+
.use-var(color, image-loading-icon-color);
|
|
140
|
+
.use-var(background-color, image-mask-background);
|
|
141
|
+
.set-loading-color-var(image-loading-icon-color);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
## 主题定制
|
|
2
|
+
|
|
3
|
+
### 样式变量
|
|
4
|
+
|
|
5
|
+
组件提供了下列 CSS 变量,可用于自定义样式,使用方法请参考 ConfigProvider 组件。
|
|
6
|
+
|
|
7
|
+
| 名称 | 默认值 | 描述 |
|
|
8
|
+
| --- | --- | --- |
|
|
9
|
+
| --arco-imagepicker-uploader-item-height | getRem(36) | 文件上传组件上传列表上边距 |
|
|
10
|
+
| --arco-imagepicker-uploader-item-margin-top | getRem(16) | 文件上传组件上传列表内边距 |
|
|
11
|
+
| --arco-imagepicker-uploader-file-icon-font-size | getRem(16) | 文件上传组件上传列表文件图标右边距 |
|
|
12
|
+
| --arco-imagepicker-uploader-file-icon-margin-right | getRem(12) | 文件上传组件上传列表文件图标颜色 |
|
|
13
|
+
| --arco-imagepicker-uploader-item-text-font-size | getRem(14) | 文件上传组件上传列表外边框圆角 |
|
|
14
|
+
| --arco-imagepicker-uploader-item-border-radius | getRem(2) | 文件上传组件上传列表文字颜色 |
|
|
15
|
+
| --arco-imagepicker-uploader-loaded-icon-font-size | getRem(16) | 文件上传组件上传列表加载成功图标颜色 |
|
|
16
|
+
| --arco-imagepicker-uploader-error-text-font-size | getRem(12) | 文件上传组件上传列表错误文字颜色 |
|
|
17
|
+
| --arco-imagepicker-uploader-delete-icon-font-size | getRem(12) | 文件上传组件上传列表删除图标左内边距 |
|
|
18
|
+
| --arco-imagepicker-uploader-delete-icon-padding-left | getRem(12) | 文件上传组件上传列表删除图标颜色 |
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
@import '../../../style/mixin.less';
|
|
2
|
+
|
|
3
|
+
.@{prefix}-image-picker {
|
|
4
|
+
.use-var(font-size, image-picker-font-size);
|
|
5
|
+
&-container {
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-wrap: wrap;
|
|
8
|
+
}
|
|
9
|
+
.container() {
|
|
10
|
+
position: absolute;
|
|
11
|
+
top: 0;
|
|
12
|
+
width: 100%;
|
|
13
|
+
height: 100%;
|
|
14
|
+
left: 0;
|
|
15
|
+
}
|
|
16
|
+
&-image {
|
|
17
|
+
position: relative;
|
|
18
|
+
width: 100%;
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
justify-content: center;
|
|
22
|
+
padding-top: 100%;
|
|
23
|
+
.use-var(border-radius, image-picker-border-radius);
|
|
24
|
+
overflow: hidden;
|
|
25
|
+
&-container {
|
|
26
|
+
.container()
|
|
27
|
+
}
|
|
28
|
+
.@{prefix}-image {
|
|
29
|
+
height: 100%;
|
|
30
|
+
width: 100%;
|
|
31
|
+
}
|
|
32
|
+
&-mask {
|
|
33
|
+
position: absolute;
|
|
34
|
+
left: 0;
|
|
35
|
+
top: 0;
|
|
36
|
+
width: 100%;
|
|
37
|
+
height: 100%;
|
|
38
|
+
z-index: 2;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
&-add {
|
|
42
|
+
.use-var(background-color, image-picker-add-background);
|
|
43
|
+
.use-var(border-radius, image-picker-border-radius);
|
|
44
|
+
position: relative;
|
|
45
|
+
width: 100%;
|
|
46
|
+
height: 100%;
|
|
47
|
+
padding-top: 100%;
|
|
48
|
+
&-container {
|
|
49
|
+
.container();
|
|
50
|
+
display: flex;
|
|
51
|
+
flex-direction: column;
|
|
52
|
+
justify-content: center;
|
|
53
|
+
align-items: center;
|
|
54
|
+
text-align: center;
|
|
55
|
+
.use-var(font-size, image-picker-add-text-font-size);
|
|
56
|
+
.use-var(color, image-picker-add-text-color);
|
|
57
|
+
}
|
|
58
|
+
&-icon {
|
|
59
|
+
.use-var(font-size, image-picker-add-icon-font-size);
|
|
60
|
+
.use-var(color, image-picker-add-icon-color);
|
|
61
|
+
svg {
|
|
62
|
+
display: block;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
&-disabled {
|
|
66
|
+
pointer-events: none;
|
|
67
|
+
}
|
|
68
|
+
&-disabled &-icon {
|
|
69
|
+
.use-var(opacity, image-picker-disabled-opacity);
|
|
70
|
+
}
|
|
71
|
+
input {
|
|
72
|
+
position: absolute;
|
|
73
|
+
opacity: 0;
|
|
74
|
+
left: 0;
|
|
75
|
+
top: 0;
|
|
76
|
+
width: 100%;
|
|
77
|
+
height: 100%;
|
|
78
|
+
display: none;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
&-close {
|
|
82
|
+
position: absolute;
|
|
83
|
+
top: 0;
|
|
84
|
+
right: 0;
|
|
85
|
+
z-index: 2;
|
|
86
|
+
&-icon {
|
|
87
|
+
display: flex;
|
|
88
|
+
align-items: center;
|
|
89
|
+
justify-content: center;
|
|
90
|
+
.use-var(font-size, image-picker-close-font-size);
|
|
91
|
+
.use-var(width, image-picker-close-width);
|
|
92
|
+
.use-var(height, image-picker-close-height);
|
|
93
|
+
.use-var(color, image-picker-close-color);
|
|
94
|
+
.use-var(background, image-picker-close-background);
|
|
95
|
+
.use-var(border-radius, image-picker-close-border-radius);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
&-error {
|
|
99
|
+
position: absolute;
|
|
100
|
+
top: 0;
|
|
101
|
+
left: 0;
|
|
102
|
+
width: 100%;
|
|
103
|
+
height: 100%;
|
|
104
|
+
display: flex;
|
|
105
|
+
flex-direction: column;
|
|
106
|
+
justify-content: center;
|
|
107
|
+
align-items: center;
|
|
108
|
+
.use-var(background, image-picker-error-background);
|
|
109
|
+
.use-var(color, image-picker-error-color);
|
|
110
|
+
.use-var(font-size, image-picker-font-size);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.@{prefix}-image-picker-disabled {
|
|
115
|
+
pointer-events: none;
|
|
116
|
+
}
|