oxy-uni-ui 2.1.4 → 2.1.5
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/attributes.json +1 -1
- package/components/common/abstracts/variable.scss +364 -5
- package/components/oxy-action-sheet/index.scss +21 -13
- package/components/oxy-backtop/index.scss +1 -1
- package/components/oxy-badge/index.scss +1 -1
- package/components/oxy-button/index.scss +13 -10
- package/components/oxy-calendar/index.scss +32 -8
- package/components/oxy-calendar-view/month/index.scss +3 -3
- package/components/oxy-calendar-view/monthPanel/index.scss +4 -4
- package/components/oxy-calendar-view/year/index.scss +3 -3
- package/components/oxy-calendar-view/yearPanel/index.scss +1 -1
- package/components/oxy-card/index.scss +5 -5
- package/components/oxy-cell/index.scss +9 -9
- package/components/oxy-cell-group/index.scss +10 -10
- package/components/oxy-checkbox/index.scss +47 -6
- package/components/oxy-checkbox-group/index.scss +1 -1
- package/components/oxy-col-picker/index.scss +7 -7
- package/components/oxy-collapse/index.scss +7 -3
- package/components/oxy-collapse-item/index.scss +9 -5
- package/components/oxy-config-provider/oxy-config-provider.vue +49 -10
- package/components/oxy-config-provider/types.ts +856 -1
- package/components/oxy-corner/index.scss +1 -1
- package/components/oxy-count-down/index.scss +2 -2
- package/components/oxy-curtain/index.scss +1 -1
- package/components/oxy-date-strip-item/index.scss +1 -1
- package/components/oxy-datetime-picker/index.scss +12 -8
- package/components/oxy-divider/index.scss +3 -3
- package/components/oxy-drop-menu/index.scss +3 -3
- package/components/oxy-drop-menu-item/index.scss +10 -2
- package/components/oxy-drop-menu-item/oxy-drop-menu-item.vue +1 -1
- package/components/oxy-fab/index.scss +25 -0
- package/components/oxy-file-list/index.scss +3 -3
- package/components/oxy-floating-panel/index.scss +10 -2
- package/components/oxy-footer/index.scss +6 -0
- package/components/oxy-gap/index.scss +3 -1
- package/components/oxy-gap/oxy-gap.vue +2 -2
- package/components/oxy-gap/types.ts +1 -1
- package/components/oxy-grid-item/index.scss +7 -4
- package/components/oxy-grid-item/oxy-grid-item.vue +4 -3
- package/components/oxy-index-anchor/index.scss +4 -4
- package/components/oxy-index-bar/index.scss +8 -3
- package/components/oxy-index-bar/oxy-index-bar.vue +14 -1
- package/components/oxy-index-bar/types.ts +2 -1
- package/components/oxy-input/index.scss +14 -14
- package/components/oxy-input/placeholder.scss +1 -1
- package/components/oxy-input-number/index.scss +16 -6
- package/components/oxy-keyboard/index.scss +11 -3
- package/components/oxy-keyboard/key/index.scss +4 -4
- package/components/oxy-keyboard/oxy-keyboard.vue +1 -0
- package/components/oxy-loadmore/index.scss +1 -1
- package/components/oxy-message-box/index.scss +5 -5
- package/components/oxy-message-box/oxy-message-box.vue +5 -1
- package/components/oxy-navbar/index.scss +9 -5
- package/components/oxy-navbar-capsule/index.scss +5 -5
- package/components/oxy-overlay/index.scss +2 -0
- package/components/oxy-pagination/index.scss +47 -9
- package/components/oxy-password-input/index.scss +7 -7
- package/components/oxy-picker/index.scss +43 -6
- package/components/oxy-picker-view/index.scss +12 -4
- package/components/oxy-popover/index.scss +2 -2
- package/components/oxy-popup/index.scss +2 -2
- package/components/oxy-progress/index.scss +1 -1
- package/components/oxy-radio/index.scss +17 -16
- package/components/oxy-radio-group/index.scss +1 -1
- package/components/oxy-rich-text/index.scss +27 -4
- package/components/oxy-rich-text/mp-html/mp-html.vue +4 -0
- package/components/oxy-rich-text/oxy-rich-text.vue +4 -15
- package/components/oxy-rich-text/types.ts +11 -0
- package/components/oxy-search/index.scss +14 -11
- package/components/oxy-segmented/index.scss +6 -6
- package/components/oxy-select/index.scss +22 -22
- package/components/oxy-select-picker/index.scss +24 -4
- package/components/oxy-sidebar/index.scss +5 -5
- package/components/oxy-sidebar-item/index.scss +8 -7
- package/components/oxy-skeleton/index.scss +1 -1
- package/components/oxy-slider/index.scss +3 -3
- package/components/oxy-sort-button/index.scss +1 -1
- package/components/oxy-splitter-panel/index.scss +7 -7
- package/components/oxy-status-tip/index.scss +3 -2
- package/components/oxy-step/index.scss +10 -10
- package/components/oxy-tabbar/index.scss +7 -3
- package/components/oxy-tabbar-item/index.scss +2 -2
- package/components/oxy-table/index.scss +7 -7
- package/components/oxy-tabs/index.scss +30 -18
- package/components/oxy-tag/index.scss +19 -7
- package/components/oxy-textarea/index.scss +17 -17
- package/components/oxy-textarea/placeholder.scss +2 -2
- package/components/oxy-tooltip/index.scss +2 -2
- package/components/oxy-tree/index.scss +1 -1
- package/components/oxy-upload/index.scss +10 -10
- package/components/oxy-voice-player/index.scss +4 -0
- package/package.json +1 -1
- package/tags.json +1 -1
- package/web-types.json +1 -1
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
|
|
4
4
|
.oxy-theme-dark {
|
|
5
5
|
@include b(key) {
|
|
6
|
-
background: $-dark
|
|
7
|
-
color: $-
|
|
6
|
+
background: $-keyboard-key-background-dark;
|
|
7
|
+
color: $-keyboard-key-color-dark;
|
|
8
8
|
|
|
9
9
|
&:active {
|
|
10
|
-
background-color: $-dark
|
|
10
|
+
background-color: $-keyboard-key-active-color-dark;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
@include m(active) {
|
|
14
|
-
background-color: $-dark
|
|
14
|
+
background-color: $-keyboard-key-active-color-dark;
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
}
|
|
@@ -4,25 +4,25 @@
|
|
|
4
4
|
.oxy-theme-dark {
|
|
5
5
|
@include b(message-box) {
|
|
6
6
|
@include e(container) {
|
|
7
|
-
background-color: $-dark
|
|
7
|
+
background-color: $-message-box-bg-dark;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
@include e(title) {
|
|
11
|
-
color: $-
|
|
11
|
+
color: $-message-box-title-color-dark;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
@include e(content-text) {
|
|
15
|
-
color: $-dark
|
|
15
|
+
color: $-message-box-content-color-dark;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
@include e(content) {
|
|
19
19
|
&::-webkit-scrollbar-thumb {
|
|
20
|
-
background: $-
|
|
20
|
+
background: $-message-box-content-scrollbar-color-dark;
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
@include e(close) {
|
|
25
|
-
color: $-dark
|
|
25
|
+
color: $-message-box-close-color-dark;
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
}
|
|
@@ -119,10 +119,14 @@ const bodyClass = computed(() => {
|
|
|
119
119
|
return `oxy-message-box__body ${messageState.type === 'prompt' ? 'is-prompt' : ''}`
|
|
120
120
|
})
|
|
121
121
|
|
|
122
|
-
const
|
|
122
|
+
const resolvedPopupWidth = computed(() => {
|
|
123
123
|
return resolveSizeWithScreenWidth(messageState.width || props.width, { defaultUnit: 'rpx' })
|
|
124
124
|
})
|
|
125
125
|
|
|
126
|
+
const popupWidth = computed(() => {
|
|
127
|
+
return `var(--oxy-message-box-width, ${resolvedPopupWidth.value})`
|
|
128
|
+
})
|
|
129
|
+
|
|
126
130
|
const showCancelButton = computed(() => {
|
|
127
131
|
return !!messageState.showCancelButton && messageState.cancelButtonProps !== null
|
|
128
132
|
})
|
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
|
|
4
4
|
.oxy-theme-dark {
|
|
5
5
|
@include b(navbar) {
|
|
6
|
-
background-color: $-
|
|
6
|
+
background-color: $-navbar-background-dark;
|
|
7
7
|
|
|
8
8
|
@include e(title) {
|
|
9
|
-
color: $-
|
|
9
|
+
color: $-navbar-color-dark;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
@include e(text) {
|
|
13
|
-
color: $-
|
|
13
|
+
color: $-navbar-desc-font-color-dark;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
:deep(.oxy-navbar__arrow) {
|
|
17
|
-
color: $-
|
|
17
|
+
color: $-navbar-color-dark;
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
}
|
|
@@ -80,7 +80,11 @@
|
|
|
80
80
|
|
|
81
81
|
|
|
82
82
|
@include when(border) {
|
|
83
|
-
@include halfPixelBorder('bottom');
|
|
83
|
+
@include halfPixelBorder('bottom', 0, $-navbar-border-color);
|
|
84
|
+
|
|
85
|
+
.oxy-theme-dark & {
|
|
86
|
+
@include halfPixelBorder('bottom', 0, $-navbar-border-color-dark);
|
|
87
|
+
}
|
|
84
88
|
}
|
|
85
89
|
|
|
86
90
|
@include when(fixed) {
|
|
@@ -4,15 +4,15 @@
|
|
|
4
4
|
.oxy-theme-dark {
|
|
5
5
|
@include b(navbar-capsule) {
|
|
6
6
|
&::before {
|
|
7
|
-
border: 2rpx solid $-
|
|
7
|
+
border: 2rpx solid $-navbar-capsule-border-color-dark;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
&::after {
|
|
11
|
-
background: $-
|
|
11
|
+
background: $-navbar-capsule-border-color-dark;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
:deep(.oxy-navbar-capsule__icon) {
|
|
15
|
-
color: $-
|
|
15
|
+
color: $-navbar-capsule-icon-color-dark;
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
}
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
@include edeep(icon) {
|
|
61
61
|
flex: 1;
|
|
62
62
|
position: relative;
|
|
63
|
-
color: $-navbar-
|
|
63
|
+
color: $-navbar-capsule-icon-color;
|
|
64
64
|
font-size: $-navbar-capsule-icon-size;
|
|
65
65
|
}
|
|
66
|
-
}
|
|
66
|
+
}
|
|
@@ -3,9 +3,33 @@
|
|
|
3
3
|
|
|
4
4
|
.oxy-theme-dark {
|
|
5
5
|
@include b(pager) {
|
|
6
|
-
background-color: $-dark
|
|
6
|
+
background-color: $-pagination-bg-dark;
|
|
7
|
+
--oxy-button-info-bg-color: #{$-pagination-nav-bg-dark};
|
|
8
|
+
--oxy-button-info-color: #{$-pagination-nav-color-dark};
|
|
9
|
+
--oxy-button-plain-bg-color: #{$-pagination-bg-dark};
|
|
10
|
+
--oxy-button-info-plain-normal-color: #{$-pagination-nav-active-color-dark};
|
|
11
|
+
--oxy-button-info-plain-border-color: #{$-pagination-nav-border-dark};
|
|
12
|
+
|
|
7
13
|
@include e(message) {
|
|
8
|
-
color: $-dark
|
|
14
|
+
color: $-pagination-message-color-dark;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@include e(size) {
|
|
18
|
+
color: $-pagination-size-color-dark;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@include e(separator) {
|
|
22
|
+
color: $-pagination-separator-color-dark;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@include edeep(nav) {
|
|
26
|
+
@include m(active) {
|
|
27
|
+
color: $-pagination-nav-active-color-dark;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@include m(disabled) {
|
|
31
|
+
color: $-pagination-nav-disabled-color-dark;
|
|
32
|
+
}
|
|
9
33
|
}
|
|
10
34
|
}
|
|
11
35
|
}
|
|
@@ -13,6 +37,11 @@
|
|
|
13
37
|
@include b(pager) {
|
|
14
38
|
user-select: none;
|
|
15
39
|
background-color: $-pagination-bg;
|
|
40
|
+
--oxy-button-info-bg-color: #{$-pagination-nav-bg};
|
|
41
|
+
--oxy-button-info-color: #{$-pagination-nav-color};
|
|
42
|
+
--oxy-button-plain-bg-color: #{$-pagination-bg};
|
|
43
|
+
--oxy-button-info-plain-normal-color: #{$-pagination-nav-active-color};
|
|
44
|
+
--oxy-button-info-plain-border-color: #{$-pagination-nav-border};
|
|
16
45
|
|
|
17
46
|
@include edeep(icon) {
|
|
18
47
|
font-size: $-pagination-icon-size;
|
|
@@ -26,33 +55,42 @@
|
|
|
26
55
|
}
|
|
27
56
|
@include e(message) {
|
|
28
57
|
text-align: center;
|
|
29
|
-
color
|
|
58
|
+
color: $-pagination-message-color;
|
|
30
59
|
font-size: $-pagination-message-fs;
|
|
31
60
|
padding: $-pagination-message-padding;
|
|
32
61
|
}
|
|
62
|
+
|
|
33
63
|
@include edeep(nav) {
|
|
34
64
|
min-width: $-pagination-nav-width;
|
|
35
65
|
font-size: $-pagination-nav-fs;
|
|
36
|
-
|
|
66
|
+
|
|
67
|
+
@include m(active) {
|
|
37
68
|
color: $-pagination-nav-active-color;
|
|
38
69
|
}
|
|
39
|
-
|
|
70
|
+
|
|
71
|
+
@include m(disabled) {
|
|
40
72
|
color: $-pagination-nav-disabled-color;
|
|
41
73
|
}
|
|
42
74
|
}
|
|
43
|
-
|
|
75
|
+
|
|
76
|
+
@include e(size) {
|
|
44
77
|
flex: 1;
|
|
45
78
|
text-align: center;
|
|
46
79
|
font-size: $-pagination-nav-content-fs;
|
|
80
|
+
color: $-pagination-size-color;
|
|
47
81
|
}
|
|
48
|
-
|
|
82
|
+
|
|
83
|
+
@include e(separator) {
|
|
49
84
|
padding: $-pagination-nav-sepatator-padding;
|
|
85
|
+
color: $-pagination-separator-color;
|
|
50
86
|
}
|
|
51
|
-
|
|
87
|
+
|
|
88
|
+
@include edeep(left) {
|
|
52
89
|
transform: rotate(180deg) translateY(2rpx);
|
|
53
90
|
display: inline-block;
|
|
54
91
|
}
|
|
55
|
-
|
|
92
|
+
|
|
93
|
+
@include e(current) {
|
|
56
94
|
color: $-pagination-nav-current-color;
|
|
57
95
|
}
|
|
58
96
|
}
|
|
@@ -4,27 +4,27 @@
|
|
|
4
4
|
.oxy-theme-dark {
|
|
5
5
|
@include b(password-input) {
|
|
6
6
|
@include e(item) {
|
|
7
|
-
color: $-
|
|
8
|
-
background: $-dark
|
|
7
|
+
color: $-password-input-text-color-dark;
|
|
8
|
+
background: $-password-input-background-dark;
|
|
9
9
|
|
|
10
10
|
@include when(border) {
|
|
11
|
-
border-color: $-
|
|
11
|
+
border-color: $-password-input-border-color-dark;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
@include e(mask) {
|
|
16
|
-
background-color: $-
|
|
16
|
+
background-color: $-password-input-dot-color-dark;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
@include e(cursor) {
|
|
20
|
-
background-color: $-
|
|
20
|
+
background-color: $-password-input-cursor-color-dark;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
@include e(info) {
|
|
24
|
-
color: $-
|
|
24
|
+
color: $-password-input-info-color-dark;
|
|
25
25
|
|
|
26
26
|
@include when(border) {
|
|
27
|
-
color: $-dark
|
|
27
|
+
color: $-password-input-info-border-color-dark;
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
}
|
|
@@ -5,21 +5,52 @@
|
|
|
5
5
|
@include b(picker) {
|
|
6
6
|
@include e(action) {
|
|
7
7
|
@include m(cancel) {
|
|
8
|
-
color: $-
|
|
8
|
+
color: $-picker-toolbar-cancel-color-dark;
|
|
9
9
|
}
|
|
10
10
|
@include when(loading) {
|
|
11
|
-
color: $-dark
|
|
11
|
+
color: $-picker-loading-button-color-dark;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
@include e(title) {
|
|
16
|
+
color: $-picker-toolbar-title-color-dark;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@include e(search) {
|
|
20
|
+
background: $-picker-search-bg-dark;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
:deep(.oxy-picker__arrow) {
|
|
24
|
+
color: $-picker-arrow-color-dark;
|
|
25
|
+
}
|
|
26
|
+
|
|
16
27
|
:deep(.oxy-picker__clear) {
|
|
17
|
-
color: $-
|
|
28
|
+
color: $-picker-clear-color-dark;
|
|
18
29
|
}
|
|
19
30
|
|
|
20
31
|
:deep(.oxy-picker__cell--placeholder) {
|
|
21
32
|
.oxy-cell__value {
|
|
22
|
-
color: $-
|
|
33
|
+
color: $-picker-placeholder-color-dark;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
:deep(.oxy-picker__search-clear-icon) {
|
|
38
|
+
color: $-picker-search-icon-color-dark;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@include e(search-icon) {
|
|
42
|
+
color: $-picker-search-icon-color-dark;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@include e(search-input) {
|
|
46
|
+
background: $-picker-column-select-bg-dark;
|
|
47
|
+
|
|
48
|
+
input {
|
|
49
|
+
color: $-picker-search-input-color-dark;
|
|
50
|
+
|
|
51
|
+
&::placeholder {
|
|
52
|
+
color: $-picker-search-placeholder-color-dark;
|
|
53
|
+
}
|
|
23
54
|
}
|
|
24
55
|
}
|
|
25
56
|
}
|
|
@@ -28,6 +59,7 @@
|
|
|
28
59
|
@include b(picker) {
|
|
29
60
|
@include edeep(popup) {
|
|
30
61
|
border-radius: $-action-sheet-radius $-action-sheet-radius 0 0;
|
|
62
|
+
--oxy-popup-bg: #{$-picker-bg};
|
|
31
63
|
}
|
|
32
64
|
|
|
33
65
|
@include edeep(cell) {
|
|
@@ -53,7 +85,7 @@
|
|
|
53
85
|
}
|
|
54
86
|
@include m(placeholder) {
|
|
55
87
|
.oxy-cell__value {
|
|
56
|
-
color: $-
|
|
88
|
+
color: $-picker-placeholder-color;
|
|
57
89
|
}
|
|
58
90
|
}
|
|
59
91
|
}
|
|
@@ -126,9 +158,14 @@
|
|
|
126
158
|
height: 100%;
|
|
127
159
|
margin-left: $-spacing-20;
|
|
128
160
|
font-size: $-fs-content;
|
|
161
|
+
color: $-picker-search-input-color;
|
|
129
162
|
background: transparent;
|
|
130
163
|
border: none;
|
|
131
164
|
outline: none;
|
|
165
|
+
|
|
166
|
+
&::placeholder {
|
|
167
|
+
color: $-picker-search-placeholder-color;
|
|
168
|
+
}
|
|
132
169
|
}
|
|
133
170
|
}
|
|
134
171
|
|
|
@@ -4,20 +4,28 @@
|
|
|
4
4
|
.oxy-theme-dark {
|
|
5
5
|
@include b(picker-view) {
|
|
6
6
|
@include e(columns) {
|
|
7
|
-
background: $-dark
|
|
7
|
+
background: $-picker-bg-dark;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
:deep(.oxy-picker-view__roller) {
|
|
11
|
-
background: $-dark
|
|
11
|
+
background: $-picker-column-select-bg-dark;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:deep(.oxy-picker-view__mask) {
|
|
15
|
+
background: $-picker-mask-dark;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@include e(loading) {
|
|
19
|
+
background: $-picker-loading-bg-dark;
|
|
12
20
|
}
|
|
13
21
|
}
|
|
14
22
|
|
|
15
23
|
@include b(picker-view-column) {
|
|
16
|
-
color: $-
|
|
24
|
+
color: $-picker-column-color-dark;
|
|
17
25
|
|
|
18
26
|
@include e(item) {
|
|
19
27
|
@include m(disabled) {
|
|
20
|
-
color: $-
|
|
28
|
+
color: $-picker-column-disabled-color-dark;
|
|
21
29
|
}
|
|
22
30
|
}
|
|
23
31
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
@include e(pos) {
|
|
8
8
|
background: $-popover-dark-bg;
|
|
9
|
-
color: $-
|
|
9
|
+
color: $-popover-color-dark;
|
|
10
10
|
box-shadow: $-popover-dark-box-shadow;
|
|
11
11
|
}
|
|
12
12
|
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
@include e(menu-inner) {
|
|
22
22
|
|
|
23
|
-
@include halfPixelBorder("top", 0, $-
|
|
23
|
+
@include halfPixelBorder("top", 0, $-popover-border-color-dark);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
@include squareArrow($-popover-arrow-size, $-popover-dark-bg, $-popover-z-index - 1, $-popover-arrow-box-shadow);
|
|
@@ -4,53 +4,54 @@
|
|
|
4
4
|
.oxy-theme-dark {
|
|
5
5
|
@include b(radio) {
|
|
6
6
|
@include e(shape) {
|
|
7
|
-
background:
|
|
7
|
+
background: $-radio-shape-bg-dark;
|
|
8
8
|
}
|
|
9
9
|
@include e(label) {
|
|
10
|
-
color: $-
|
|
10
|
+
color: $-radio-label-color-dark;
|
|
11
11
|
}
|
|
12
12
|
@include when(button) {
|
|
13
13
|
.oxy-radio__label {
|
|
14
|
-
background-color: $-dark
|
|
14
|
+
background-color: $-radio-button-bg-dark;
|
|
15
|
+
border-color: $-radio-button-border-dark;
|
|
15
16
|
}
|
|
16
17
|
@include when(checked) {
|
|
17
18
|
.oxy-radio__label {
|
|
18
|
-
background-color: $-dark
|
|
19
|
+
background-color: $-radio-button-checked-bg-dark;
|
|
19
20
|
}
|
|
20
21
|
}
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
@include when(disabled) {
|
|
24
25
|
.oxy-radio__label {
|
|
25
|
-
color: $-
|
|
26
|
+
color: $-radio-disabled-label-color-dark;
|
|
26
27
|
}
|
|
27
28
|
@include when(checked) {
|
|
28
29
|
.oxy-radio__label {
|
|
29
|
-
color: $-
|
|
30
|
+
color: $-radio-disabled-label-color-dark;
|
|
30
31
|
}
|
|
31
32
|
}
|
|
32
33
|
|
|
33
34
|
@include when(button) {
|
|
34
35
|
.oxy-radio__label {
|
|
35
|
-
border-color: $-
|
|
36
|
-
background: $-
|
|
37
|
-
color: $-
|
|
36
|
+
border-color: $-radio-button-disabled-border-dark;
|
|
37
|
+
background: $-radio-button-disabled-bg-dark;
|
|
38
|
+
color: $-radio-button-disabled-label-color-dark;
|
|
38
39
|
}
|
|
39
40
|
@include when(checked) {
|
|
40
41
|
.oxy-radio__label {
|
|
41
|
-
border-color: $-
|
|
42
|
-
background: $-
|
|
43
|
-
color: $-color-
|
|
42
|
+
border-color: $-radio-button-disabled-border-dark;
|
|
43
|
+
background: $-radio-button-disabled-bg-dark;
|
|
44
|
+
color: $-radio-button-disabled-label-color-dark;
|
|
44
45
|
}
|
|
45
46
|
}
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
@include when(dot) {
|
|
49
50
|
.oxy-radio__shape {
|
|
50
|
-
border-color: $-
|
|
51
|
-
background: $-
|
|
51
|
+
border-color: $-radio-dot-disabled-border-dark;
|
|
52
|
+
background: $-radio-dot-disabled-bg-dark;
|
|
52
53
|
&::before {
|
|
53
|
-
background-color: $-color-
|
|
54
|
+
background-color: $-radio-dot-disabled-color-dark;
|
|
54
55
|
}
|
|
55
56
|
}
|
|
56
57
|
}
|
|
@@ -126,7 +127,7 @@
|
|
|
126
127
|
left: calc(50% - #{$-radio-dot-size / 2});
|
|
127
128
|
top: calc(50% - #{$-radio-dot-size / 2});
|
|
128
129
|
border-radius: $-radius-circle;
|
|
129
|
-
background-color: $-color
|
|
130
|
+
background-color: $-radio-dot-color;
|
|
130
131
|
transform: scale(0);
|
|
131
132
|
transition: transform .2s ease-in;
|
|
132
133
|
}
|
|
@@ -10,6 +10,29 @@
|
|
|
10
10
|
|
|
11
11
|
&.editable {
|
|
12
12
|
border: 1px solid $-rich-text-editable-border-color;
|
|
13
|
+
--oxy-popup-bg: #{$-rich-text-toolbox-bg};
|
|
14
|
+
--oxy-popup-close-color: #{$-rich-text-link-label-color};
|
|
15
|
+
--oxy-action-sheet-bg: #{$-rich-text-toolbox-bg};
|
|
16
|
+
--oxy-action-sheet-color: #{$-rich-text-title-color};
|
|
17
|
+
--oxy-action-sheet-close-color: #{$-rich-text-link-label-color};
|
|
18
|
+
--oxy-input-bg: #{$-rich-text-blockquote-bg};
|
|
19
|
+
--oxy-input-color: #{$-rich-text-primary-color};
|
|
20
|
+
--oxy-input-placeholder-color: #{$-rich-text-link-label-color};
|
|
21
|
+
--oxy-input-border-color: #{$-rich-text-toolbox-border-color};
|
|
22
|
+
--oxy-button-normal-bg: #{$-rich-text-blockquote-bg};
|
|
23
|
+
--oxy-button-normal-color: #{$-rich-text-primary-color};
|
|
24
|
+
--oxy-button-primary-bg-color: #{$-rich-text-a-color};
|
|
25
|
+
--oxy-button-primary-color: #{$-color-white};
|
|
26
|
+
--oxy-input-number-color: #{$-rich-text-primary-color};
|
|
27
|
+
--oxy-input-number-border-color: #{$-rich-text-toolbox-border-color};
|
|
28
|
+
--oxy-input-number-icon-color: #{$-rich-text-link-label-color};
|
|
29
|
+
--oxy-message-box-bg: #{$-rich-text-toolbox-bg};
|
|
30
|
+
--oxy-message-box-title-color: #{$-rich-text-title-color};
|
|
31
|
+
--oxy-message-box-content-color: #{$-rich-text-primary-color};
|
|
32
|
+
--oxy-message-box-content-scrollbar-color: #{$-rich-text-toolbox-border-color};
|
|
33
|
+
--oxy-message-box-close-color: #{$-rich-text-link-label-color};
|
|
34
|
+
--oxy-message-box-actions-text-border-color: #{$-rich-text-toolbox-border-color};
|
|
35
|
+
--oxy-message-box-actions-text-confirm-color: #{$-rich-text-a-color};
|
|
13
36
|
|
|
14
37
|
}
|
|
15
38
|
|
|
@@ -30,7 +53,7 @@
|
|
|
30
53
|
gap: $-spacing-8;
|
|
31
54
|
display: flex;
|
|
32
55
|
align-items: center;
|
|
33
|
-
border-bottom: 1px solid $-
|
|
56
|
+
border-bottom: 1px solid $-rich-text-toolbox-border-color;
|
|
34
57
|
box-shadow: $-rich-text-toolbox-shadow;
|
|
35
58
|
|
|
36
59
|
.oxy-icon {
|
|
@@ -42,7 +65,7 @@
|
|
|
42
65
|
justify-content: center;
|
|
43
66
|
border-radius: $-rich-text-toolbox-icon-radius;
|
|
44
67
|
transition: all 0.2s ease;
|
|
45
|
-
color: $-color
|
|
68
|
+
color: $-rich-text-toolbox-icon-color;
|
|
46
69
|
font-size: $-rich-text-toolbox-icon-size;
|
|
47
70
|
|
|
48
71
|
&:hover {
|
|
@@ -108,7 +131,7 @@
|
|
|
108
131
|
text-align: center;
|
|
109
132
|
height: 100rpx;
|
|
110
133
|
font-weight: $-fw-semibold;
|
|
111
|
-
color: $-color
|
|
134
|
+
color: $-rich-text-dialog-title-color;
|
|
112
135
|
|
|
113
136
|
}
|
|
114
137
|
|
|
@@ -138,7 +161,7 @@
|
|
|
138
161
|
|
|
139
162
|
.oxy-rich-text__link-label {
|
|
140
163
|
font-size: $-fs-content;
|
|
141
|
-
color: $-color
|
|
164
|
+
color: $-rich-text-link-label-color;
|
|
142
165
|
margin-bottom: $-spacing-16;
|
|
143
166
|
}
|
|
144
167
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<view class="oxy-rich-text" :style="customStyle"
|
|
2
|
+
<view :class="['oxy-rich-text', { editable }, customClass]" :style="customStyle">
|
|
3
3
|
<view v-if="editable" class="editor_toolbox">
|
|
4
4
|
<template v-for="(button, index) in toolButtons" :key="index">
|
|
5
5
|
<image width="32rpx" height="32rpx" v-if="button.icon" :src="button.icon" alt="" @click="button.tap()" />
|
|
@@ -99,7 +99,7 @@ import OxyInput from '../oxy-input/oxy-input.vue'
|
|
|
99
99
|
import OxyButton from '../oxy-button/oxy-button.vue'
|
|
100
100
|
import { useMessage } from '../../index'
|
|
101
101
|
import { useTranslate } from '../composables/useTranslate'
|
|
102
|
-
import { type ActionSheetInfo, type RemoveEvent, richTextProps, type ToolButton } from './types'
|
|
102
|
+
import { type ActionSheetInfo, type CustomNodeTapEvent, type LinkTapEvent, type RemoveEvent, richTextProps, type ToolButton } from './types'
|
|
103
103
|
import emjio from './icon/emjio.svg'
|
|
104
104
|
import quote from './icon/quote.svg'
|
|
105
105
|
import text from './icon/text.svg'
|
|
@@ -107,23 +107,12 @@ import title from './icon/title.svg'
|
|
|
107
107
|
|
|
108
108
|
const props = defineProps(richTextProps)
|
|
109
109
|
|
|
110
|
-
type LinkTapEvent = {
|
|
111
|
-
href: string
|
|
112
|
-
innerText?: string
|
|
113
|
-
[key: string]: unknown
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
type CustomTapEvent = {
|
|
117
|
-
innerText?: string
|
|
118
|
-
[key: string]: unknown
|
|
119
|
-
}
|
|
120
|
-
|
|
121
110
|
const emit = defineEmits<{
|
|
122
111
|
save: [value: string]
|
|
123
112
|
clear: [void]
|
|
124
113
|
remove: [event: RemoveEvent]
|
|
125
114
|
linktap: [event: LinkTapEvent]
|
|
126
|
-
customtap: [event:
|
|
115
|
+
customtap: [event: CustomNodeTapEvent]
|
|
127
116
|
}>()
|
|
128
117
|
const { translate } = useTranslate('richText')
|
|
129
118
|
const templates = [
|
|
@@ -421,7 +410,7 @@ function handleLinkTap(e: LinkTapEvent): void {
|
|
|
421
410
|
emit('linktap', e)
|
|
422
411
|
}
|
|
423
412
|
|
|
424
|
-
function handleCustomTap(e:
|
|
413
|
+
function handleCustomTap(e: CustomNodeTapEvent): void {
|
|
425
414
|
emit('customtap', e)
|
|
426
415
|
}
|
|
427
416
|
|