oxy-uni-ui 2.1.3 → 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-echarts/oxy-echarts.vue +2 -2
- 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
|
@@ -258,7 +258,7 @@ $-corner-embedded-side-padding: $-spacing-20;
|
|
|
258
258
|
bottom: 0;
|
|
259
259
|
width: $-corner-embedded-notch-width;
|
|
260
260
|
height: $-corner-ribbon-height;
|
|
261
|
-
background-color: $-
|
|
261
|
+
background-color: $-corner-notch-bg;
|
|
262
262
|
transform: skewX(30deg);
|
|
263
263
|
}
|
|
264
264
|
.oxy-corner__text {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
.oxy-theme-dark {
|
|
5
5
|
@include b(count-down) {
|
|
6
|
-
color: $-
|
|
6
|
+
color: $-count-down-text-color-dark;
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
|
|
@@ -12,4 +12,4 @@
|
|
|
12
12
|
color: $-count-down-text-color;
|
|
13
13
|
font-size: $-count-down-font-size;
|
|
14
14
|
line-height: $-count-down-line-height;
|
|
15
|
-
}
|
|
15
|
+
}
|
|
@@ -5,26 +5,29 @@
|
|
|
5
5
|
@include b(datetime-picker) {
|
|
6
6
|
|
|
7
7
|
@include e(placeholder) {
|
|
8
|
-
color: $-
|
|
8
|
+
color: $-datetime-picker-placeholder-color-dark;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
:deep(.oxy-datetime-picker__arrow) {
|
|
12
|
+
color: $-datetime-picker-arrow-color-dark;
|
|
9
13
|
}
|
|
10
14
|
|
|
11
|
-
:deep(.oxy-datetime-picker__arrow),
|
|
12
15
|
:deep(.oxy-datetime-picker__clear) {
|
|
13
|
-
color: $-
|
|
16
|
+
color: $-datetime-picker-clear-color-dark;
|
|
14
17
|
}
|
|
15
18
|
|
|
16
19
|
@include e(action) {
|
|
17
20
|
@include m(cancel) {
|
|
18
|
-
color: $-
|
|
21
|
+
color: $-picker-toolbar-cancel-color-dark;
|
|
19
22
|
}
|
|
20
23
|
}
|
|
21
24
|
|
|
22
25
|
@include e(region) {
|
|
23
|
-
color: $-
|
|
26
|
+
color: $-picker-region-color-dark;
|
|
24
27
|
|
|
25
28
|
@include when(active) {
|
|
26
29
|
background: $-picker-region-bg-active-color;
|
|
27
|
-
color: $-
|
|
30
|
+
color: $-picker-region-active-color;
|
|
28
31
|
}
|
|
29
32
|
}
|
|
30
33
|
}
|
|
@@ -67,7 +70,7 @@
|
|
|
67
70
|
}
|
|
68
71
|
|
|
69
72
|
@include e(placeholder) {
|
|
70
|
-
color: $-
|
|
73
|
+
color: $-datetime-picker-placeholder-color;
|
|
71
74
|
}
|
|
72
75
|
|
|
73
76
|
@include edeep(arrow) {
|
|
@@ -86,6 +89,7 @@
|
|
|
86
89
|
|
|
87
90
|
@include edeep(popup) {
|
|
88
91
|
border-radius: $-action-sheet-radius $-action-sheet-radius 0 0;
|
|
92
|
+
--oxy-popup-bg: #{$-picker-bg};
|
|
89
93
|
}
|
|
90
94
|
|
|
91
95
|
@include e(wraper) {
|
|
@@ -142,7 +146,7 @@
|
|
|
142
146
|
|
|
143
147
|
@include when(active) {
|
|
144
148
|
background: $-picker-region-bg-active-color;
|
|
145
|
-
color: $-color
|
|
149
|
+
color: $-picker-region-active-color;
|
|
146
150
|
}
|
|
147
151
|
}
|
|
148
152
|
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
.oxy-theme-dark {
|
|
5
5
|
@include b(divider) {
|
|
6
|
-
color: $-dark
|
|
6
|
+
color: $-divider-color-dark;
|
|
7
7
|
|
|
8
8
|
@include e(line) {
|
|
9
|
-
background: $-
|
|
9
|
+
background: $-divider-line-color-dark;
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
}
|
|
@@ -97,4 +97,4 @@
|
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
}
|
|
100
|
+
}
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
|
|
4
4
|
.oxy-theme-dark {
|
|
5
5
|
@include b(drop-menu) {
|
|
6
|
-
color: $-
|
|
6
|
+
color: $-drop-menu-color-dark;
|
|
7
7
|
|
|
8
8
|
@include e(list) {
|
|
9
|
-
background-color: $-dark
|
|
9
|
+
background-color: $-drop-menu-bg-dark;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
@include e(item) {
|
|
13
13
|
@include when(disabled) {
|
|
14
|
-
color: $-
|
|
14
|
+
color: $-drop-menu-disabled-color-dark;
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
}
|
|
@@ -3,10 +3,14 @@
|
|
|
3
3
|
|
|
4
4
|
.oxy-theme-dark {
|
|
5
5
|
@include b(drop-item) {
|
|
6
|
-
|
|
6
|
+
@include edeep(popup) {
|
|
7
|
+
--oxy-popup-bg: #{$-drop-menu-bg-dark};
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
color: $-drop-menu-item-color-dark;
|
|
7
11
|
|
|
8
12
|
@include e(tip) {
|
|
9
|
-
color: $-dark
|
|
13
|
+
color: $-drop-menu-item-color-tip-dark;
|
|
10
14
|
}
|
|
11
15
|
}
|
|
12
16
|
}
|
|
@@ -21,6 +25,10 @@
|
|
|
21
25
|
width: 100%;
|
|
22
26
|
z-index: 101;
|
|
23
27
|
|
|
28
|
+
@include edeep(popup) {
|
|
29
|
+
--oxy-popup-bg: #{$-drop-menu-bg};
|
|
30
|
+
}
|
|
31
|
+
|
|
24
32
|
@include e(popup) {
|
|
25
33
|
position: absolute;
|
|
26
34
|
max-height: 80%;
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
:position="position"
|
|
12
12
|
:max-width="popupMaxWidth"
|
|
13
13
|
:custom-style="`position: absolute; pointer-events: auto; max-height: ${popupHeight ? popupHeight : '80%'}; ${customPopupStyle}`"
|
|
14
|
-
:custom-class="customPopupClass"
|
|
14
|
+
:custom-class="`oxy-drop-item__popup ${customPopupClass}`"
|
|
15
15
|
:modal="false"
|
|
16
16
|
:close-on-click-modal="false"
|
|
17
17
|
:root-portal="rootPortal"
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
<script lang="ts">
|
|
7
7
|
import { ref } from 'vue'
|
|
8
8
|
import { echartsProps } from './types'
|
|
9
|
-
import UniEcharts from '
|
|
10
|
-
import type { UniEchartsInst } from '
|
|
9
|
+
import UniEcharts from '../../uni-echarts/components/uni-echarts/uni-echarts.vue'
|
|
10
|
+
import type { UniEchartsInst } from '../../uni-echarts'
|
|
11
11
|
|
|
12
12
|
export default {
|
|
13
13
|
name: 'oxy-echarts',
|
|
@@ -11,6 +11,31 @@
|
|
|
11
11
|
width: $-fab-trigger-width !important;
|
|
12
12
|
height: $-fab-trigger-height !important;
|
|
13
13
|
border-radius: calc($-fab-trigger-height / 2) !important;
|
|
14
|
+
|
|
15
|
+
&.is-primary {
|
|
16
|
+
background: $-fab-trigger-primary-bg !important;
|
|
17
|
+
color: $-fab-trigger-primary-color !important;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&.is-success {
|
|
21
|
+
background: $-fab-trigger-success-bg !important;
|
|
22
|
+
color: $-fab-trigger-success-color !important;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&.is-info {
|
|
26
|
+
background: $-fab-trigger-info-bg !important;
|
|
27
|
+
color: $-fab-trigger-info-color !important;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&.is-warning {
|
|
31
|
+
background: $-fab-trigger-warning-bg !important;
|
|
32
|
+
color: $-fab-trigger-warning-color !important;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&.is-error {
|
|
36
|
+
background: $-fab-trigger-error-bg !important;
|
|
37
|
+
color: $-fab-trigger-error-color !important;
|
|
38
|
+
}
|
|
14
39
|
}
|
|
15
40
|
|
|
16
41
|
:deep() {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
align-items: center;
|
|
20
20
|
width: 100%;
|
|
21
21
|
height: 100%;
|
|
22
|
-
border: #{$-border-width-base} solid $-
|
|
22
|
+
border: #{$-border-width-base} solid $-file-list-card-border-color;
|
|
23
23
|
border-radius: $-file-list-card-radius;
|
|
24
24
|
position: relative;
|
|
25
25
|
}
|
|
@@ -101,10 +101,10 @@
|
|
|
101
101
|
display: flex;
|
|
102
102
|
}
|
|
103
103
|
.oxy-file-list__download {
|
|
104
|
-
color: $-color
|
|
104
|
+
color: $-file-list-action-text-color;
|
|
105
105
|
}
|
|
106
106
|
.oxy-file-list__delete {
|
|
107
|
-
color: $-color
|
|
107
|
+
color: $-file-list-action-text-color;
|
|
108
108
|
margin-left: $-spacing-12;
|
|
109
109
|
}
|
|
110
110
|
}
|
|
@@ -3,10 +3,17 @@
|
|
|
3
3
|
|
|
4
4
|
.oxy-theme-dark {
|
|
5
5
|
@include b(floating-panel) {
|
|
6
|
-
background: $-dark
|
|
6
|
+
background: $-floating-panel-bg-dark;
|
|
7
|
+
color: $-floating-panel-color-dark;
|
|
8
|
+
|
|
9
|
+
@include e(header) {
|
|
10
|
+
&-bar {
|
|
11
|
+
background-color: $-floating-panel-bar-bg-dark;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
7
14
|
|
|
8
15
|
@include e(content) {
|
|
9
|
-
background: $-dark
|
|
16
|
+
background: $-floating-panel-content-bg-dark;
|
|
10
17
|
}
|
|
11
18
|
}
|
|
12
19
|
}
|
|
@@ -23,6 +30,7 @@
|
|
|
23
30
|
border-top-left-radius: $-floating-panel-radius;
|
|
24
31
|
border-top-right-radius: $-floating-panel-radius;
|
|
25
32
|
background-color: $-floating-panel-bg;
|
|
33
|
+
color: $-floating-panel-color;
|
|
26
34
|
touch-action: none;
|
|
27
35
|
will-change: transform;
|
|
28
36
|
@include when(safe) {
|
|
@@ -12,6 +12,12 @@
|
|
|
12
12
|
overflow: visible;
|
|
13
13
|
padding: 0;
|
|
14
14
|
background-color: $-footer-bg;
|
|
15
|
+
color: $-footer-color;
|
|
16
|
+
|
|
17
|
+
.oxy-theme-dark & {
|
|
18
|
+
background-color: $-footer-bg-dark;
|
|
19
|
+
color: $-footer-color-dark;
|
|
20
|
+
}
|
|
15
21
|
|
|
16
22
|
@include when(safe) {
|
|
17
23
|
box-sizing: content-box;
|
|
@@ -24,8 +24,8 @@ const props = defineProps(gapProps)
|
|
|
24
24
|
|
|
25
25
|
const rootStyle = computed(() => {
|
|
26
26
|
const rootStyle: CSSProperties = {}
|
|
27
|
-
if (
|
|
28
|
-
rootStyle['
|
|
27
|
+
if (props.bgColor) {
|
|
28
|
+
rootStyle['--oxy-gap-bg'] = props.bgColor
|
|
29
29
|
}
|
|
30
30
|
if (isDef(props.height)) {
|
|
31
31
|
rootStyle['height'] = withDefaultUnit(props.height)
|
|
@@ -3,26 +3,27 @@
|
|
|
3
3
|
|
|
4
4
|
.oxy-theme-dark {
|
|
5
5
|
@include b(grid-item) {
|
|
6
|
+
color: $-grid-item-color-dark;
|
|
6
7
|
|
|
7
8
|
@include when(border) {
|
|
8
9
|
&::before {
|
|
9
|
-
background-color: $-
|
|
10
|
+
background-color: $-grid-item-border-color-dark;
|
|
10
11
|
}
|
|
11
12
|
&::after {
|
|
12
|
-
background-color: $-
|
|
13
|
+
background-color: $-grid-item-border-color-dark;
|
|
13
14
|
}
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
// 第一行元素
|
|
17
18
|
@include when(first) {
|
|
18
19
|
&::after {
|
|
19
|
-
background-color: $-
|
|
20
|
+
background-color: $-grid-item-border-color-dark;
|
|
20
21
|
}
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
|
|
24
25
|
@include e(content) {
|
|
25
|
-
background-color: $-dark
|
|
26
|
+
background-color: $-grid-item-bg-dark;
|
|
26
27
|
|
|
27
28
|
@include m(hover) {
|
|
28
29
|
background-color: $-grid-item-hover-bg-dark !important;
|
|
@@ -34,6 +35,7 @@
|
|
|
34
35
|
@include b(grid-item) {
|
|
35
36
|
height: 100%;
|
|
36
37
|
font-size: $-grid-item-fs;
|
|
38
|
+
color: $-grid-item-color;
|
|
37
39
|
box-sizing: border-box;
|
|
38
40
|
|
|
39
41
|
position: relative;
|
|
@@ -143,6 +145,7 @@
|
|
|
143
145
|
margin-top: $-spacing-16;
|
|
144
146
|
font-size: $-grid-item-fs;
|
|
145
147
|
line-height: $-grid-item-fs;
|
|
148
|
+
color: inherit;
|
|
146
149
|
@include lineEllipsis;
|
|
147
150
|
}
|
|
148
151
|
}
|
|
@@ -105,15 +105,16 @@ function init() {
|
|
|
105
105
|
const children = grid.value.children
|
|
106
106
|
const width = grid.value.props.column ? 100 / grid.value.props.column + '%' : 100 / children.length + '%'
|
|
107
107
|
const gutterSize = grid.value.props.gutter ? withDefaultUnit(grid.value.props.gutter) : ''
|
|
108
|
+
const contentBgStyle = grid.value.props.bgColor
|
|
109
|
+
? `--oxy-grid-item-bg:${grid.value.props.bgColor};--oxy-grid-item-bg-dark:${grid.value.props.bgColor};`
|
|
110
|
+
: ''
|
|
108
111
|
// 单独定义间隔
|
|
109
112
|
const gutterStyle = gutterSize ? `padding:${gutterSize} ${gutterSize} 0 0; background-color: transparent;` : ''
|
|
110
113
|
// 单独定义正方形
|
|
111
114
|
const squareStyle = grid.value.props.square ? `background-color:transparent; padding-bottom: 0; padding-top:${width}` : ''
|
|
112
115
|
// 间隔+正方形
|
|
113
116
|
gutterContentStyle.value =
|
|
114
|
-
gutterSize && grid.value.props.square
|
|
115
|
-
? `right: ${gutterSize}; bottom:${gutterSize};height: auto; background-color: ${grid.value.props.bgColor}`
|
|
116
|
-
: `background-color: ${grid.value.props.bgColor}`
|
|
117
|
+
gutterSize && grid.value.props.square ? `right: ${gutterSize}; bottom:${gutterSize};height: auto;${contentBgStyle}` : contentBgStyle
|
|
117
118
|
|
|
118
119
|
border.value = Boolean(grid.value.props.border)
|
|
119
120
|
square.value = Boolean(grid.value.props.square)
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
|
|
4
4
|
.oxy-theme-dark {
|
|
5
5
|
@include b(index-anchor) {
|
|
6
|
-
background-color: $-
|
|
7
|
-
color: $-color-
|
|
6
|
+
background-color: $-index-anchor-bg-dark;
|
|
7
|
+
color: $-index-anchor-color-dark;
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
// #endif
|
|
22
22
|
|
|
23
23
|
@include b(index-anchor) {
|
|
24
|
-
background-color: $-
|
|
24
|
+
background-color: $-index-anchor-bg;
|
|
25
25
|
padding: $-spacing-24;
|
|
26
26
|
font-size: $-fs-content;
|
|
27
|
-
color: $-color
|
|
27
|
+
color: $-index-anchor-color;
|
|
28
28
|
|
|
29
29
|
@include when(sticky){
|
|
30
30
|
position: sticky;
|
|
@@ -3,8 +3,12 @@
|
|
|
3
3
|
|
|
4
4
|
.oxy-theme-dark {
|
|
5
5
|
@include b(index-bar) {
|
|
6
|
+
@include e(sidebar) {
|
|
7
|
+
background: $-index-bar-sidebar-bg;
|
|
8
|
+
}
|
|
9
|
+
|
|
6
10
|
@include e(index) {
|
|
7
|
-
color: $-color-
|
|
11
|
+
color: $-index-bar-index-color-dark;
|
|
8
12
|
}
|
|
9
13
|
}
|
|
10
14
|
}
|
|
@@ -24,16 +28,17 @@
|
|
|
24
28
|
top: 50%;
|
|
25
29
|
right: 12rpx;
|
|
26
30
|
transform: translateY(-50%);
|
|
31
|
+
background: $-index-bar-sidebar-bg;
|
|
27
32
|
}
|
|
28
33
|
|
|
29
34
|
@include e(index) {
|
|
30
35
|
font-size: $-index-bar-index-font-size;
|
|
31
36
|
font-weight: $-fw-medium;
|
|
32
|
-
color: $-color
|
|
37
|
+
color: $-index-bar-index-color;
|
|
33
38
|
padding: $-spacing-12 $-spacing-16;
|
|
34
39
|
|
|
35
40
|
@include when(active) {
|
|
36
|
-
color: $-color
|
|
41
|
+
color: $-index-bar-index-active-color;
|
|
37
42
|
}
|
|
38
43
|
}
|
|
39
44
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<view class="oxy-index-bar" :id="indexBarId">
|
|
2
|
+
<view :class="['oxy-index-bar', customClass]" :style="customStyle" :id="indexBarId">
|
|
3
3
|
<!-- #ifdef MP-DINGTALK -->
|
|
4
4
|
<view class="oxy-index-bar" :id="indexBarId">
|
|
5
5
|
<!-- #endif -->
|
|
@@ -23,6 +23,19 @@
|
|
|
23
23
|
</view>
|
|
24
24
|
</template>
|
|
25
25
|
|
|
26
|
+
<script lang="ts">
|
|
27
|
+
export default {
|
|
28
|
+
name: 'oxy-index-bar',
|
|
29
|
+
options: {
|
|
30
|
+
addGlobalClass: true,
|
|
31
|
+
// #ifndef MP-TOUTIAO
|
|
32
|
+
virtualHost: true,
|
|
33
|
+
// #endif
|
|
34
|
+
styleIsolation: 'shared'
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
</script>
|
|
38
|
+
|
|
26
39
|
<script setup lang="ts">
|
|
27
40
|
import type { AnchorIndex } from './types'
|
|
28
41
|
import { indexBarInjectionKey, indexBarProps } from './types'
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { InjectionKey } from 'vue'
|
|
2
2
|
import type { ExtractPropTypes } from 'vue'
|
|
3
|
-
import { makeBooleanProp } from '../common/props'
|
|
3
|
+
import { baseProps, makeBooleanProp } from '../common/props'
|
|
4
4
|
|
|
5
5
|
export type AnchorIndex = number | string
|
|
6
6
|
|
|
7
7
|
export const indexBarProps = {
|
|
8
|
+
...baseProps,
|
|
8
9
|
/**
|
|
9
10
|
* 索引栏是否启用吸顶效果
|
|
10
11
|
*/
|
|
@@ -3,64 +3,64 @@
|
|
|
3
3
|
|
|
4
4
|
.oxy-theme-dark {
|
|
5
5
|
@include b(input) {
|
|
6
|
-
background: $-dark
|
|
6
|
+
background: $-input-bg-dark;
|
|
7
7
|
|
|
8
8
|
&::after {
|
|
9
|
-
background: $-
|
|
9
|
+
background: $-input-border-color-dark;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
@include when(not-empty) {
|
|
13
13
|
&:not(.is-disabled) {
|
|
14
14
|
&::after {
|
|
15
|
-
background-color: $-
|
|
15
|
+
background-color: $-input-not-empty-border-color-dark;
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
@include e(inner) {
|
|
22
|
-
color: $-
|
|
22
|
+
color: $-input-color-dark;
|
|
23
23
|
|
|
24
24
|
&::-webkit-input-placeholder {
|
|
25
|
-
color: $-dark
|
|
25
|
+
color: $-input-placeholder-color-dark;
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
@include e(count) {
|
|
30
|
-
color: $-dark
|
|
30
|
+
color: $-input-count-color-dark;
|
|
31
31
|
background: transparent;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
@include e(count-current) {
|
|
35
|
-
color: $-
|
|
35
|
+
color: $-input-count-current-color-dark;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
:deep(.oxy-input__icon),
|
|
39
39
|
:deep(.oxy-input__clear) {
|
|
40
|
-
color: $-
|
|
40
|
+
color: $-input-icon-color-dark;
|
|
41
41
|
background: transparent;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
@include when(cell) {
|
|
45
|
-
background-color: $-dark
|
|
45
|
+
background-color: $-input-cell-bg-dark;
|
|
46
46
|
line-height: $-cell-line-height;
|
|
47
47
|
|
|
48
48
|
@include when(border) {
|
|
49
|
-
@include halfPixelBorder("top", $-input-cell-padding, $-
|
|
49
|
+
@include halfPixelBorder("top", $-input-cell-padding, $-input-cell-border-color-dark);
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
@include when(disabled) {
|
|
54
54
|
|
|
55
55
|
.oxy-input__inner {
|
|
56
|
-
color: $-
|
|
56
|
+
color: $-input-disabled-color-dark;
|
|
57
57
|
background: transparent;
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
|
|
62
62
|
@include e(label) {
|
|
63
|
-
color: $-
|
|
63
|
+
color: $-input-label-color-dark;
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
}
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
position: relative;
|
|
96
96
|
display: flex;
|
|
97
97
|
width: $-input-cell-label-width;
|
|
98
|
-
color: $-
|
|
98
|
+
color: $-input-label-color;
|
|
99
99
|
margin-right: $-cell-padding;
|
|
100
100
|
box-sizing: border-box;
|
|
101
101
|
font-size: $-input-fs;
|
|
@@ -223,7 +223,7 @@
|
|
|
223
223
|
}
|
|
224
224
|
|
|
225
225
|
@include when(border) {
|
|
226
|
-
@include halfPixelBorder("top", $-input-cell-padding);
|
|
226
|
+
@include halfPixelBorder("top", $-input-cell-padding, $-input-cell-border-color);
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
229
|
|
|
@@ -4,23 +4,33 @@
|
|
|
4
4
|
.oxy-theme-dark {
|
|
5
5
|
@include b(input-number) {
|
|
6
6
|
@include e(action) {
|
|
7
|
-
color: $-
|
|
7
|
+
color: $-input-number-color-dark;
|
|
8
|
+
|
|
9
|
+
&::after {
|
|
10
|
+
border-color: $-input-number-border-color-dark;
|
|
11
|
+
}
|
|
12
|
+
|
|
8
13
|
@include when(disabled) {
|
|
9
|
-
color: $-
|
|
14
|
+
color: $-input-number-disabled-color-dark;
|
|
10
15
|
}
|
|
11
16
|
}
|
|
12
17
|
|
|
13
18
|
@include e(input) {
|
|
14
|
-
color: $-
|
|
19
|
+
color: $-input-number-color-dark;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@include e(input-border) {
|
|
23
|
+
border-top-color: $-input-number-border-color-dark;
|
|
24
|
+
border-bottom-color: $-input-number-border-color-dark;
|
|
15
25
|
}
|
|
16
26
|
|
|
17
27
|
@include when(disabled) {
|
|
18
28
|
.oxy-input-number__input {
|
|
19
|
-
color: $-
|
|
29
|
+
color: $-input-number-disabled-color-dark;
|
|
20
30
|
}
|
|
21
31
|
.oxy-input-number__sub,
|
|
22
32
|
.oxy-input-number__add {
|
|
23
|
-
color: $-
|
|
33
|
+
color: $-input-number-disabled-color-dark;
|
|
24
34
|
}
|
|
25
35
|
}
|
|
26
36
|
}
|
|
@@ -65,7 +75,7 @@
|
|
|
65
75
|
}
|
|
66
76
|
|
|
67
77
|
&:not(.is-disabled):active {
|
|
68
|
-
background-color: $-
|
|
78
|
+
background-color: $-input-number-active-bg;
|
|
69
79
|
}
|
|
70
80
|
|
|
71
81
|
@include when(disabled) {
|