oxy-uni-ui 2.0.0 → 2.1.0

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.
Files changed (75) hide show
  1. package/attributes.json +1 -1
  2. package/components/common/abstracts/variable.scss +338 -194
  3. package/components/composables/useVirtualScroll.ts +40 -14
  4. package/components/oxy-action-sheet/index.scss +3 -3
  5. package/components/oxy-backtop/index.scss +2 -2
  6. package/components/oxy-button/index.scss +2 -2
  7. package/components/oxy-calendar/index.scss +9 -9
  8. package/components/oxy-calendar-view/monthPanel/index.scss +4 -5
  9. package/components/oxy-calendar-view/year/index.scss +1 -1
  10. package/components/oxy-calendar-view/yearPanel/index.scss +3 -3
  11. package/components/oxy-cell/index.scss +1 -1
  12. package/components/oxy-checkbox/index.scss +9 -9
  13. package/components/oxy-checkbox-group/index.scss +2 -2
  14. package/components/oxy-col-picker/index.scss +3 -3
  15. package/components/oxy-corner/index.scss +1 -1
  16. package/components/oxy-datetime-picker/index.scss +5 -5
  17. package/components/oxy-drop-menu/index.scss +3 -3
  18. package/components/oxy-drop-menu-item/index.scss +2 -2
  19. package/components/oxy-file-list/index.scss +20 -20
  20. package/components/oxy-guidance/index.scss +13 -13
  21. package/components/oxy-img-cropper/index.scss +14 -14
  22. package/components/oxy-index-anchor/index.scss +2 -2
  23. package/components/oxy-index-bar/index.scss +3 -3
  24. package/components/oxy-input/index.scss +1 -1
  25. package/components/oxy-keyboard/index.scss +2 -2
  26. package/components/oxy-long-press-menu/index.scss +2 -2
  27. package/components/oxy-message-box/index.scss +7 -7
  28. package/components/oxy-message-box/oxy-message-box.vue +4 -5
  29. package/components/oxy-message-box/types.ts +0 -5
  30. package/components/oxy-pagination/index.scss +5 -4
  31. package/components/oxy-picker/index.scss +14 -14
  32. package/components/oxy-picker-view/index.scss +2 -2
  33. package/components/oxy-popover/index.scss +8 -8
  34. package/components/oxy-popup/index.scss +4 -4
  35. package/components/oxy-progress/index.scss +1 -1
  36. package/components/oxy-radio/index.scss +20 -14
  37. package/components/oxy-radio-group/index.scss +2 -2
  38. package/components/oxy-rich-text/index.scss +18 -18
  39. package/components/oxy-rich-text/mp-html/card/card.vue +3 -3
  40. package/components/oxy-rich-text/mp-html/mp-html.vue +4 -4
  41. package/components/oxy-rich-text/mp-html/node/node.vue +2 -2
  42. package/components/oxy-rich-text/oxy-rich-text.vue +8 -8
  43. package/components/oxy-search/index.scss +5 -5
  44. package/components/oxy-segmented/index.scss +13 -10
  45. package/components/oxy-select/index.scss +116 -68
  46. package/components/oxy-select/oxy-select.vue +24 -11
  47. package/components/oxy-select-picker/index.scss +2 -2
  48. package/components/oxy-sidebar-item/index.scss +2 -2
  49. package/components/oxy-skeleton/index.scss +1 -1
  50. package/components/oxy-slider/index.scss +4 -4
  51. package/components/oxy-splitter/index.scss +19 -0
  52. package/components/oxy-splitter/oxy-splitter.vue +409 -0
  53. package/components/oxy-splitter/types.ts +75 -0
  54. package/components/oxy-splitter-panel/index.scss +366 -0
  55. package/components/oxy-splitter-panel/oxy-splitter-panel.vue +432 -0
  56. package/components/oxy-splitter-panel/types.ts +63 -0
  57. package/components/oxy-step/index.scss +5 -5
  58. package/components/oxy-stream-render/oxy-stream-render.vue +230 -4
  59. package/components/oxy-swiper-nav/index.scss +3 -3
  60. package/components/oxy-switch/index.scss +2 -2
  61. package/components/oxy-tabbar/index.scss +2 -2
  62. package/components/oxy-table/index.scss +5 -5
  63. package/components/oxy-table-col/index.scss +3 -3
  64. package/components/oxy-tabs/index.scss +14 -12
  65. package/components/oxy-tag/index.scss +111 -36
  66. package/components/oxy-textarea/index.scss +3 -3
  67. package/components/oxy-tooltip/index.scss +1 -1
  68. package/components/oxy-tree/index.scss +4 -4
  69. package/components/oxy-upload/index.scss +17 -17
  70. package/components/oxy-virtual-scroll/index.scss +1 -1
  71. package/components/oxy-voice-player/index.scss +68 -39
  72. package/global.d.ts +2 -0
  73. package/package.json +1 -1
  74. package/tags.json +1 -1
  75. package/web-types.json +1 -1
@@ -27,7 +27,7 @@
27
27
 
28
28
  .editor_toolbox {
29
29
  width: 100%;
30
- background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
30
+ background: $-rich-text-toolbox-bg-gradient;
31
31
  padding: 8rpx 16rpx;
32
32
  box-sizing: border-box;
33
33
  flex-wrap: wrap;
@@ -35,7 +35,7 @@
35
35
  display: flex;
36
36
  align-items: center;
37
37
  border-bottom: 1px solid $-color-border-light;
38
- box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.03);
38
+ box-shadow: $-rich-text-toolbox-shadow;
39
39
 
40
40
  .oxy-icon {
41
41
  cursor: pointer;
@@ -44,18 +44,18 @@
44
44
  display: inline-flex;
45
45
  align-items: center;
46
46
  justify-content: center;
47
- border-radius: 12rpx;
47
+ border-radius: $-rich-text-toolbox-icon-radius;
48
48
  transition: all 0.2s ease;
49
49
  color: $-color-secondary;
50
- font-size: 36rpx;
50
+ font-size: $-rich-text-toolbox-icon-size;
51
51
 
52
52
  &:hover {
53
- background-color: rgba(0, 0, 0, 0.05);
53
+ background-color: $-rich-text-toolbox-icon-hover-bg;
54
54
  color: $-color-theme;
55
55
  }
56
56
 
57
57
  &:active {
58
- background-color: rgba(0, 0, 0, 0.08);
58
+ background-color: $-rich-text-toolbox-icon-active-bg;
59
59
  }
60
60
  }
61
61
 
@@ -64,18 +64,18 @@
64
64
  height: 32rpx;
65
65
  cursor: pointer;
66
66
  padding: 16rpx;
67
- border-radius: 12rpx;
67
+ border-radius: $-rich-text-toolbox-icon-radius;
68
68
  transition: all 0.2s ease;
69
69
  box-sizing: content-box;
70
70
  display: inline-block;
71
71
  vertical-align: middle;
72
72
 
73
73
  &:hover {
74
- background-color: rgba(0, 0, 0, 0.05);
74
+ background-color: $-rich-text-toolbox-icon-hover-bg;
75
75
  }
76
76
 
77
77
  &:active {
78
- background-color: rgba(0, 0, 0, 0.08);
78
+ background-color: $-rich-text-toolbox-icon-active-bg;
79
79
  }
80
80
  }
81
81
 
@@ -84,19 +84,19 @@
84
84
  width: 32rpx;
85
85
  height: 32rpx;
86
86
  padding: 16rpx;
87
- border-radius: 12rpx;
87
+ border-radius: $-rich-text-toolbox-icon-radius;
88
88
  transition: all 0.2s ease;
89
89
  box-sizing: content-box;
90
90
  display: inline-block;
91
91
  vertical-align: middle;
92
92
 
93
93
  &:hover {
94
- background-color: rgba(0, 0, 0, 0.05);
94
+ background-color: $-rich-text-toolbox-icon-hover-bg;
95
95
  transform: translateY(-2rpx);
96
96
  }
97
97
 
98
98
  &:active {
99
- background-color: rgba(0, 0, 0, 0.08);
99
+ background-color: $-rich-text-toolbox-icon-active-bg;
100
100
  transform: translateY(0);
101
101
  }
102
102
  }
@@ -107,10 +107,10 @@
107
107
  }
108
108
 
109
109
  .dialog-title {
110
- font-size: 32rpx;
111
- line-height: 92rpx;
110
+ font-size: $-fs-title;
111
+ line-height: 100rpx;
112
112
  text-align: center;
113
- height: 92rpx;
113
+ height: 100rpx;
114
114
  font-weight: $-fw-semibold;
115
115
  color: $-color-black;
116
116
 
@@ -121,8 +121,8 @@
121
121
 
122
122
  .oxy-rich-text__emoji-content {
123
123
  display: flex;
124
- font-size: 40rpx;
125
- line-height: 70rpx;
124
+ font-size: $-rich-text-emoji-fs;
125
+ line-height: 80rpx;
126
126
  text-align: center;
127
127
 
128
128
  .oxy-rich-text__emoji-block {
@@ -141,7 +141,7 @@
141
141
  margin-bottom: 32rpx;
142
142
 
143
143
  .oxy-rich-text__link-label {
144
- font-size: 28rpx;
144
+ font-size: $-fs-content;
145
145
  color: $-color-secondary;
146
146
  margin-bottom: 16rpx;
147
147
  }
@@ -71,7 +71,7 @@
71
71
  .card {
72
72
 
73
73
  width: 80%;
74
- margin: 10rpx auto;
74
+ margin: 12rpx auto;
75
75
  max-width: 700rpx;
76
76
  max-height: 140rpx;
77
77
 
@@ -82,7 +82,7 @@
82
82
  justify-content: space-between;
83
83
  align-items: center;
84
84
 
85
- padding: 20rpx 0 20rpx 10rpx;
85
+ padding: 20rpx 0 20rpx 12rpx;
86
86
  border-radius: 12rpx;
87
87
 
88
88
  &-img {
@@ -119,4 +119,4 @@
119
119
  line-height: 37rpx;
120
120
  }
121
121
  }
122
- </style>
122
+ </style>
@@ -596,7 +596,7 @@ export default {
596
596
  /* #ifndef APP-PLUS-NVUE */
597
597
  /* 根节点样式 */
598
598
  ._root {
599
- padding: 2rpx 0;
599
+ padding: 4rpx 0;
600
600
  overflow-x: auto;
601
601
  overflow-y: hidden;
602
602
  -webkit-overflow-scrolling: touch;
@@ -622,10 +622,10 @@ export default {
622
622
  width: auto;
623
623
  max-width: 100%;
624
624
  height: 60rpx;
625
- padding: 0 6rpx;
625
+ padding: 0 8rpx;
626
626
  overflow-x: auto;
627
627
  overflow-y: hidden;
628
- font-size: 28rpx;
628
+ font-size: var(--oxy-fs-content, 32rpx);
629
629
  line-height: 60rpx;
630
630
  white-space: nowrap;
631
631
  padding-bottom: 4rpx;
@@ -663,7 +663,7 @@ export default {
663
663
  display: inline-block;
664
664
  width: 36rpx;
665
665
  height: 36rpx;
666
- margin: 10rpx 2vw;
666
+ margin: 12rpx 2vw;
667
667
  border: 1px solid #dfe2e5;
668
668
  border-radius: 50%;
669
669
  }
@@ -948,7 +948,7 @@ export default {
948
948
 
949
949
  /deep/ .md-th,
950
950
  /deep/ .md-td {
951
- padding: 12rpx 26rpx !important;
951
+ padding: 12rpx 28rpx !important;
952
952
  border: 1px solid #dfe2e5;
953
953
  }
954
954
 
@@ -1001,7 +1001,7 @@ export default {
1001
1001
  }
1002
1002
  /* a 标签默认效果 */
1003
1003
  ._a {
1004
- padding: 3rpx 0 3rpx 0;
1004
+ padding: 4rpx 0 4rpx 0;
1005
1005
  color: #366092;
1006
1006
  word-break: break-all;
1007
1007
  }
@@ -111,7 +111,7 @@ const emit = defineEmits<{
111
111
  const { translate } = useTranslate('richText')
112
112
  const templates = [
113
113
  '<section style="text-align: center; margin: 0 auto;"><section style="border-radius: 8rpx; border: 1px solid #757576; display: inline-block; padding: 10rpx 40rpx;"><span style="font-size: 36rpx; color: #595959;">标题</span></section></section>',
114
- '<div style="width: 100%; box-sizing: border-box; border-radius: 10rpx; background-color: #f6f6f6; padding: 20rpx; margin: 20rpx 0"><div>卡片</div><div style="font-size: 24rpx; color: gray">正文</div></div>',
114
+ '<div style="width: 100%; box-sizing: border-box; border-radius: 10rpx; background-color: #f6f6f6; padding: 20rpx; margin: 20rpx 0"><div>卡片</div><div style="font-size: 32rpx; color: gray">正文</div></div>',
115
115
  '<div style="border: 1px solid gray; box-shadow: 6rpx 6rpx 0 #cfcfce; padding: 20rpx; margin: 20rpx 0">段落</div>'
116
116
  ]
117
117
  const emojis = [
@@ -148,37 +148,37 @@ const customTagStyle = {
148
148
  `,
149
149
  h1: `
150
150
  margin: 36rpx 0 20rpx 0;
151
- font-size: 48rpx;
151
+ font-size: 52rpx;
152
152
  font-weight: 700;
153
153
  color: var(--oxy-rich-text-title-color, #000);
154
154
  `,
155
155
  h2: `
156
156
  margin: 28rpx 0 20rpx 0;
157
- font-size: 40rpx;
157
+ font-size: 44rpx;
158
158
  font-weight: 600;
159
159
  color: var(--oxy-rich-text-title-color, #000);
160
160
  `,
161
161
  h3: `
162
162
  margin: 24rpx 0 16rpx 0;
163
- font-size: 36rpx;
163
+ font-size: 40rpx;
164
164
  font-weight: 600;
165
165
  color: var(--oxy-rich-text-title-color, #000);
166
166
  `,
167
167
  h4: `
168
168
  margin: 24rpx 0 16rpx 0;
169
- font-size: 32rpx;
169
+ font-size: 36rpx;
170
170
  font-weight: 600;
171
171
  color: var(--oxy-rich-text-title-color, #000);
172
172
  `,
173
173
  h5: `
174
174
  margin: 20rpx 0 16rpx 0;
175
- font-size: 30rpx;
175
+ font-size: 34rpx;
176
176
  font-weight: 600;
177
177
  color: var(--oxy-rich-text-title-color, #000);
178
178
  `,
179
179
  h6: `
180
180
  margin: 16rpx 0;
181
- font-size: 28rpx;
181
+ font-size: 32rpx;
182
182
  color: var(--oxy-rich-text-title-color, #000);
183
183
  `,
184
184
  blockquote: `
@@ -244,7 +244,7 @@ const customTagStyle = {
244
244
  white-space: pre;
245
245
  background: var(--oxy-rich-text-code-bg, #2d2d2d);
246
246
  color: var(--oxy-rich-text-code-color, #f8f8f2);
247
- font-size: 26rpx;
247
+ font-size: 30rpx;
248
248
  line-height: 1.65;
249
249
  padding: 24rpx;
250
250
  overflow: auto;
@@ -48,7 +48,7 @@
48
48
  display: flex;
49
49
  padding: $-search-padding;
50
50
  align-items: center;
51
- background: #fff;
51
+ background: $-search-bg;
52
52
 
53
53
  @include e(block) {
54
54
  flex: 1;
@@ -116,7 +116,7 @@
116
116
  @include edeep(clear) {
117
117
  position: absolute;
118
118
  right: 0;
119
- padding: 12rpx 18rpx 12rpx 14rpx;
119
+ padding: 16rpx 24rpx 16rpx 20rpx;
120
120
  color: $-search-cancel-color;
121
121
  }
122
122
  @include edeep(clear-icon) {
@@ -135,14 +135,14 @@
135
135
  background: $-search-light-bg;
136
136
 
137
137
  .oxy-search__block {
138
- background: #fff;
138
+ background: $-search-light-input-bg;
139
139
  }
140
140
 
141
141
  .oxy-search__cover {
142
- background: #fff;
142
+ background: $-search-light-input-bg;
143
143
  }
144
144
  }
145
145
  @include when(without-cancel) {
146
146
  padding-right: $-search-side-padding;
147
147
  }
148
- }
148
+ }
@@ -40,21 +40,24 @@
40
40
  width: 100%;
41
41
  background-color: $-segmented-item-bg-color;
42
42
  padding: $-segmented-padding;
43
- border-radius: 8rpx;
43
+ border-radius: $-segmented-radius;
44
44
  box-sizing: border-box;
45
45
 
46
46
 
47
47
  @include e(item) {
48
48
  position: relative;
49
+ display: flex;
50
+ align-items: center;
51
+ justify-content: center;
49
52
  text-align: center;
50
- border-radius: 8rpx;
53
+ border-radius: $-segmented-radius;
51
54
  flex: 1;
52
55
  min-width: 0;
53
56
  z-index: 1;
54
57
  min-height: 56rpx;
55
- line-height: 56rpx;
58
+ line-height: 1.2;
56
59
  padding: 0 24rpx;
57
- font-size: 28rpx;
60
+ font-size: $-fs-content;
58
61
  color: $-segmented-item-color;
59
62
  font-weight: 400;
60
63
 
@@ -64,17 +67,17 @@
64
67
 
65
68
  @include when(large) {
66
69
  min-height: 64rpx;
67
- line-height: 64rpx;
70
+ line-height: 1.2;
68
71
  padding: 0 24rpx;
69
- font-size: 32rpx;
72
+ font-size: $-fs-title;
70
73
  }
71
74
 
72
75
 
73
76
  @include when(small) {
74
77
  min-height: 48rpx;
75
- line-height: 48rpx;
76
- padding: 0 14rpx;
77
- font-size: 24rpx;
78
+ line-height: 1.2;
79
+ padding: 0 16rpx;
80
+ font-size: $-fs-secondary;
78
81
  }
79
82
 
80
83
  @include when(disabled) {
@@ -84,7 +87,7 @@
84
87
 
85
88
  @include m(active) {
86
89
  background-color: $-segmented-item-acitve-bg;
87
- border-radius: 8rpx;
90
+ border-radius: $-segmented-radius;
88
91
  height: calc(100% - $-segmented-padding * 2);
89
92
  @include when(disabled) {
90
93
  opacity: 0.8;
@@ -11,19 +11,19 @@
11
11
  text-align: left;
12
12
  .oxy-select__label {
13
13
  margin: auto 0;
14
- color: $-cell-title-color;
15
- margin-right: $-cell-padding;
14
+ color: $-select-label-color;
15
+ margin-right: $-select-label-gap;
16
16
  box-sizing: border-box;
17
- font-size: $-input-fs;
17
+ font-size: $-select-fs;
18
18
  }
19
19
  .oxy-select__icon {
20
20
  position: absolute;
21
21
  right: 0;
22
- font-size: $-input-icon-size;
23
- color: $-input-icon-color;
22
+ font-size: $-select-icon-size;
23
+ color: $-select-icon-color;
24
24
  }
25
25
  .oxy-select__icon-clear {
26
- color: $-input-clear-color;
26
+ color: $-select-clear-icon-color;
27
27
  }
28
28
  .oxy-select__icon-arrow {
29
29
  transition: transform .2s;
@@ -36,12 +36,12 @@
36
36
  flex: 1;
37
37
  }
38
38
  .oxy-select__wrapper {
39
- font-size: $-input-fs;
40
- color: $-input-color;
39
+ font-size: $-select-fs;
40
+ color: $-select-text-color;
41
41
  border: 1px solid $-color-border;
42
42
  box-sizing: border-box;
43
- border-radius: 8rpx;
44
- padding: 0 $-input-cell-padding;
43
+ border-radius: $-select-wrapper-radius;
44
+ padding: 0 $-select-wrapper-padding-x;
45
45
  position: relative;
46
46
  /* #ifndef APP-NVUE */
47
47
  display: flex;
@@ -50,7 +50,7 @@
50
50
  flex-direction: row;
51
51
  width: 100%;
52
52
  flex: 1;
53
- min-height: $-input-inner-height;
53
+ min-height: $-select-wrapper-min-height;
54
54
  transition: all 0.2s;
55
55
 
56
56
  &:hover:not(.is-disabled):not(.is-readonly) {
@@ -59,7 +59,7 @@
59
59
 
60
60
  &.is-focus:not(.is-disabled):not(.is-readonly) {
61
61
  border-color: $-color-theme;
62
- box-shadow: 0 0 0 4rpx rgba($-color-theme, 0.1);
62
+ box-shadow: $-select-focus-shadow;
63
63
  }
64
64
 
65
65
  &.is-disabled {
@@ -91,55 +91,71 @@
91
91
  width: 100%;
92
92
  display: flex;
93
93
  flex-wrap: wrap;
94
- padding: 8rpx 0;
95
-
96
- &-item {
97
- font-size: 24rpx;
98
- border-radius: 8rpx;
99
- white-space: nowrap;
100
- height: 48rpx;
101
- padding: 0 16rpx;
102
- line-height: 44rpx;
103
- box-sizing: border-box;
104
- margin: 4rpx 8rpx 4rpx 0;
105
- display: flex;
106
- max-width: 100%;
107
- align-items: center;
108
- background-color: $-color-bg;
109
- border: 1px solid $-color-border-light;
110
- color: $-color-secondary;
111
- transition: all 0.2s;
94
+ min-width: 0;
95
+ padding: 12rpx 0;
96
+ }
112
97
 
113
- &:hover {
114
- border-color: $-color-theme;
115
- color: $-color-theme;
116
- }
98
+ .oxy-select__tags-item {
99
+ display: inline-flex;
100
+ min-width: 0;
101
+ max-width: 100%;
102
+ margin: 8rpx 8rpx 8rpx 0;
103
+ }
117
104
 
118
- &-text {
119
- font-size: 24rpx;
120
- white-space: nowrap;
121
- line-height: 44rpx;
122
- overflow: hidden;
123
- text-overflow: ellipsis;
124
- }
125
- }
126
- .oxy-select__icon-error{
127
- margin-left: 8rpx;
128
- font-size: 28rpx;
129
- color: $-color-aid;
130
- cursor: pointer;
131
-
132
- &:hover {
133
- color: $-color-danger;
134
- }
105
+ :deep(.oxy-select__tags-item-tag.oxy-tag.is-round) {
106
+ display: inline-flex;
107
+ align-items: center;
108
+ box-sizing: border-box;
109
+ min-height: 56rpx;
110
+ max-width: 100%;
111
+ height: 56rpx;
112
+ padding: 0 20rpx;
113
+ background-color: $-color-bg;
114
+ border-color: $-color-border-light;
115
+ border-radius: $-select-tag-radius;
116
+ color: $-color-secondary;
117
+ font-size: $-select-tag-font-size;
118
+ line-height: 52rpx;
119
+ transition: all 0.2s;
120
+
121
+ &:hover {
122
+ border-color: $-color-theme;
123
+ color: $-color-theme;
135
124
  }
136
125
  }
137
126
 
127
+ :deep(.oxy-select__tags-item-tag .oxy-tag__text) {
128
+ display: inline-block;
129
+ min-width: 0;
130
+ max-width: 100%;
131
+ white-space: nowrap;
132
+ overflow: hidden;
133
+ text-overflow: ellipsis;
134
+ line-height: 1.2;
135
+ vertical-align: middle;
136
+ }
137
+
138
+ :deep(.oxy-select__tags-item-tag .oxy-tag__close) {
139
+ margin-left: 12rpx;
140
+ margin-right: 0;
141
+ height: auto;
142
+ line-height: 1;
143
+ color: $-color-aid;
144
+ }
145
+
146
+ :deep(.oxy-select__tags-item-tag .oxy-tag__close:active) {
147
+ color: $-color-danger;
148
+ }
149
+
150
+ .oxy-select__tags-item-text {
151
+ font-size: $-select-tag-font-size;
152
+ }
153
+
138
154
  .oxy-select__input {
139
155
  flex: 1;
140
156
  font-size: $-fs-content;
141
- height: 44rpx;
142
- line-height: 44rpx;
157
+ height: 52rpx;
158
+ line-height: 52rpx;
143
159
  }
144
160
 
145
161
  .oxy-select__input-plac {
@@ -173,13 +189,45 @@
173
189
  width: 100%;
174
190
  background-color: $-color-white;
175
191
  border: 1px solid $-color-border-light;
176
- border-radius: 16rpx;
177
- box-shadow: 0 8rpx 24rpx rgba(0, 0, 0, 0.1);
192
+ border-radius: $-select-dropdown-radius;
193
+ box-shadow: $-select-dropdown-shadow;
178
194
  z-index: 100;
179
- padding: 12rpx 0;
195
+ padding: 16rpx 0;
180
196
  overflow: hidden;
181
197
  }
182
198
 
199
+ .oxy-select__dropdown-transition {
200
+ .oxy-select__selector {
201
+ opacity: 1;
202
+ transform: translateY(0) scale(1);
203
+ will-change: transform, opacity;
204
+ transition-property: opacity, transform;
205
+ transition-duration: 0.2s;
206
+ transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
207
+ }
208
+
209
+ .oxy-select__selector__down {
210
+ transform-origin: center top;
211
+ }
212
+
213
+ .oxy-select__selector__upwards {
214
+ transform-origin: center bottom;
215
+ }
216
+
217
+ &.oxy-fade-enter,
218
+ &.oxy-fade-leave-to {
219
+ .oxy-select__selector.oxy-select__selector__down {
220
+ opacity: 0;
221
+ transform: translateY(-12rpx) scale(0.98);
222
+ }
223
+
224
+ .oxy-select__selector.oxy-select__selector__upwards {
225
+ opacity: 0;
226
+ transform: translateY(12rpx) scale(0.98);
227
+ }
228
+ }
229
+ }
230
+
183
231
  .oxy-select__selector-scroll {
184
232
  /* #ifndef APP-NVUE */
185
233
  max-height: 480rpx;
@@ -192,10 +240,10 @@
192
240
  /* #ifndef APP-NVUE */
193
241
  display: flex;
194
242
  /* #endif */
195
- min-height: 80rpx;
243
+ min-height: 88rpx;
196
244
  line-height: 1.4;
197
245
  font-size: $-fs-content;
198
- padding: 16rpx 32rpx;
246
+ padding: 20rpx 32rpx;
199
247
  box-sizing: border-box;
200
248
  transition: background-color 0.2s;
201
249
  }
@@ -213,7 +261,7 @@
213
261
 
214
262
  &.oxy-select_selector-item_active {
215
263
  color: $-color-theme;
216
- background-color: rgba($-color-theme, 0.05);
264
+ background-color: $-select-active-bg;
217
265
  font-weight: 500;
218
266
  }
219
267
  }
@@ -256,10 +304,10 @@
256
304
  }
257
305
 
258
306
  .oxy-select__selector-arrow {
259
- filter: drop-shadow(0 4rpx 24rpx rgba(0, 0, 0, 0.03));
307
+ filter: $-select-dropdown-filter-shadow;
260
308
 
261
309
  left: 10%;
262
- margin-right: 6rpx;
310
+ margin-right: 8rpx;
263
311
  border-top-width: 0;
264
312
  border-bottom-color: $-color-border-light;
265
313
  }
@@ -274,8 +322,8 @@
274
322
 
275
323
  .oxy-select__input-text {
276
324
  width: 100%;
277
- font-size: $-input-fs;
278
- color: $-input-color;
325
+ font-size: $-select-fs;
326
+ color: $-select-text-color;
279
327
  outline: none;
280
328
  border: none;
281
329
  background: none;
@@ -287,11 +335,11 @@
287
335
  .oxy-select__input-selector {
288
336
  position: absolute;
289
337
  z-index: 1;
290
- left: 20rpx;
338
+ left: 0;
291
339
  right: 60rpx;
292
340
  width: auto;
293
341
  &::-webkit-input-placeholder {
294
- color: $-input-placeholder-color;
342
+ color: $-select-placeholder-color;
295
343
  }
296
344
  }
297
345
 
@@ -301,12 +349,12 @@
301
349
  margin-left: 8rpx;
302
350
  flex: 1;
303
351
  &::-webkit-input-placeholder {
304
- color: $-input-placeholder-color;
352
+ color: $-select-placeholder-color;
305
353
  }
306
354
  }
307
355
 
308
356
  .oxy-select__input-placeholder {
309
- color: $-input-placeholder-color;
357
+ color: $-select-placeholder-color;
310
358
  }
311
359
 
312
360
  .oxy-select--mask {
@@ -322,7 +370,7 @@
322
370
  .oxy-select__wrapper {
323
371
  border: 0;
324
372
  padding: 0;
325
- min-height: $-input-cell-height;
373
+ min-height: $-select-no-border-min-height;
326
374
  &.is-focus:not(.is-disabled):not(.is-readonly) {
327
375
  box-shadow: none;
328
376
  }