vdesign-ui 0.2.1 → 0.2.2

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 (104) hide show
  1. package/dist/components/actionbar/style.less +8 -12
  2. package/dist/components/actionbar-cell/index.js +7 -0
  3. package/dist/components/{actionbar/actionbar-cell → actionbar-cell}/index.vue +4 -0
  4. package/dist/components/{actions-cell/actions → actions}/index.vue +6 -6
  5. package/dist/components/{actions-cell/actions → actions}/style.less +38 -41
  6. package/dist/components/activityviews/index.vue +7 -1
  7. package/dist/components/activityviews/style.less +42 -46
  8. package/dist/components/badge/style.less +22 -34
  9. package/dist/components/button/index.vue +4 -0
  10. package/dist/components/button/style.less +82 -87
  11. package/dist/components/calendar/index.vue +1 -1
  12. package/dist/components/calendar/style.less +24 -53
  13. package/dist/components/checkbox/index.vue +5 -1
  14. package/dist/components/checkbox/style.less +30 -32
  15. package/dist/components/checkbox-group/index.js +7 -0
  16. package/dist/components/{checkbox/checkbox-group → checkbox-group}/index.vue +1 -2
  17. package/dist/components/common/state/index.vue +1 -48
  18. package/dist/components/common/state/style.less +48 -0
  19. package/dist/components/data-list/style.less +81 -82
  20. package/dist/components/datetime-picker/style.less +12 -12
  21. package/dist/components/dialog/index.vue +4 -0
  22. package/dist/components/dialog/style.less +27 -31
  23. package/dist/components/divider/style.less +1 -1
  24. package/dist/components/dropdown/index.vue +6 -1
  25. package/dist/components/dropdown/style.less +117 -125
  26. package/dist/components/empty/index.vue +10 -8
  27. package/dist/components/empty/style.less +34 -26
  28. package/dist/components/footer/style.less +6 -7
  29. package/dist/components/footnav/index.vue +1 -1
  30. package/dist/components/footnav/style.less +5 -5
  31. package/dist/components/{footnav/footnav-item → footnav-item}/index.vue +7 -1
  32. package/dist/components/{footnav/footnav-item → footnav-item}/style.less +2 -2
  33. package/dist/components/headnav/index.vue +5 -1
  34. package/dist/components/headnav/style.less +54 -58
  35. package/dist/components/icon/style.less +4 -4
  36. package/dist/components/input/index.vue +4 -0
  37. package/dist/components/input/style.less +88 -101
  38. package/dist/components/list/index.vue +5 -0
  39. package/dist/components/list/style.less +45 -52
  40. package/dist/components/loading/style.less +25 -27
  41. package/dist/components/mixins/languageMixin.js +7 -3
  42. package/dist/components/mixins/outlineConfigPlugin.js +1 -1
  43. package/dist/components/mixins/themeMixin.js +29 -15
  44. package/dist/components/noticebar/index.vue +7 -1
  45. package/dist/components/noticebar/style.less +125 -129
  46. package/dist/components/overlay/index.vue +34 -11
  47. package/dist/components/pagebreak/style.less +18 -19
  48. package/dist/components/popover/index.vue +2 -1
  49. package/dist/components/popover/style.less +39 -39
  50. package/dist/components/radio/index.js +1 -1
  51. package/dist/components/radio/index.vue +1 -1
  52. package/dist/components/radio/style.less +35 -43
  53. package/dist/components/radio-group/index.js +6 -0
  54. package/dist/components/{radio/radio-group → radio-group}/index.vue +1 -1
  55. package/dist/components/result/completed-dark.png +0 -0
  56. package/dist/components/result/completed.png +0 -0
  57. package/dist/components/result/error-dark.png +0 -0
  58. package/dist/components/result/error.png +0 -0
  59. package/dist/components/result/index.vue +1 -2
  60. package/dist/components/result/style.less +22 -20
  61. package/dist/components/result/wait-dark.png +0 -0
  62. package/dist/components/result/wait.png +0 -0
  63. package/dist/components/{input/search → search}/index.vue +4 -0
  64. package/dist/components/selector/index.vue +4 -0
  65. package/dist/components/selector/style.less +96 -100
  66. package/dist/components/skeleton/style.less +112 -107
  67. package/dist/components/slider/index.vue +1 -1
  68. package/dist/components/slider/style.less +41 -37
  69. package/dist/components/step/style.less +3 -4
  70. package/dist/components/step-item/index.vue +12 -3
  71. package/dist/components/step-item/style.less +61 -60
  72. package/dist/components/{input/stepper → stepper}/index.vue +5 -1
  73. package/dist/components/switch/style.less +8 -8
  74. package/dist/components/tab/index.js +7 -0
  75. package/dist/components/tabs/index.vue +4 -0
  76. package/dist/components/tabs/style.less +97 -105
  77. package/dist/components/tag/style.less +35 -35
  78. package/dist/components/title/index.vue +4 -0
  79. package/dist/components/title/style.less +164 -170
  80. package/dist/components/toast/index.js +9 -3
  81. package/dist/components/toast/style.less +8 -8
  82. package/dist/components/upload/index.vue +4 -0
  83. package/dist/components/upload/style.less +22 -31
  84. package/dist/components/utils/env.js +2 -0
  85. package/dist/token.css +1278 -1278
  86. package/dist/vdesign-ui.common.js +1112 -948
  87. package/dist/vdesign-ui.css +1 -1
  88. package/dist/vdesign-ui.umd.js +1112 -948
  89. package/dist/vdesign-ui.umd.min.js +3 -3
  90. package/package.json +1 -1
  91. package/dist/components/checkbox/checkbox-group/index.js +0 -8
  92. package/dist/components/radio/assist.js +0 -34
  93. package/dist/components/radio/style.css +0 -213
  94. package/dist/img/completed-dark.4183a8a8.png +0 -0
  95. package/dist/img/error-dark.b80857da.png +0 -0
  96. package/dist/img/wait-dark.6aa28731.png +0 -0
  97. /package/dist/components/{actions-cell/actions → actions}/index.js +0 -0
  98. /package/dist/components/{footnav/footnav-item → footnav-item}/index.js +0 -0
  99. /package/dist/components/{input/password → password}/index.js +0 -0
  100. /package/dist/components/{input/password → password}/index.vue +0 -0
  101. /package/dist/components/{input/search → search}/index.js +0 -0
  102. /package/dist/components/{input/stepper → stepper}/index.js +0 -0
  103. /package/dist/components/{tabs/tab → tab}/index.vue +0 -0
  104. /package/dist/components/{checkbox → utils}/assist.js +0 -0
@@ -1,194 +1,188 @@
1
1
 
2
2
  @title-prefix-cls: vd-title;
3
3
 
4
- .@{title-prefix-cls} {
4
+ .@{title-prefix-cls} {
5
+ display: flex;
6
+ align-items: center;
7
+ justify-content: space-between;
8
+ padding-inline-start: var(--spacing-title-padding_left);
9
+ padding-inline-end: var(--spacing-title-padding_right);
10
+ background-color: var(--bg-color-1);
11
+
12
+ &--sticky {
13
+ position: sticky;
14
+ top: 0;
15
+ z-index: 1000;
16
+ }
17
+
18
+ &--right {
19
+ display: flex;
20
+ align-items: center;
21
+ }
5
22
 
23
+ &-content {
6
24
  display: flex;
7
25
  align-items: center;
8
- justify-content: space-between;
9
- padding-inline-start: calc(var(--spacing-title-padding_left) * 1px);
10
- padding-inline-end: calc(var(--spacing-title-padding_right) * 1px);
11
- background-color: var(--bg-color-1);
12
-
13
- // &--left{
14
- // display: flex;
15
- // flex-direction: column;
16
- // }
17
-
18
- &--sticky {
19
- position: sticky;
20
- top: 0;
21
- z-index: 1000;
22
- }
23
-
24
- &--right{
25
- display: flex;
26
- align-items: center;
27
- }
28
-
29
- &-content{
30
- display: flex;
31
- align-items: center;
32
- }
33
-
34
- &-inner__title{
35
- color: var(--color-title-head);
36
- }
37
-
38
- &__subtext{
39
- margin-block-start: calc(var(--spacing-title-subtitle-margin_top) * 1px);
26
+ }
27
+
28
+ &-inner__title {
29
+ color: var(--color-title-head);
30
+ }
31
+
32
+ &__subtext {
33
+ margin-block-start: var(--spacing-title-subtitle-margin_top);
34
+ color: var(--color-title-text);
35
+ }
36
+
37
+ &-arrow {
38
+ color: var(--color-title-icon_arrow);
39
+ font-size: var(--icon-title-arrow);
40
+ }
41
+
42
+ &-primary {
43
+ height: var(--height-title-primary);
44
+
45
+ &__icon--left {
46
+ margin-inline-end: var(--spacing-title-primary_icon-margin_y);
47
+ font-size: var(--icon-title-primary);
48
+ }
49
+
50
+ &__icon--right {
51
+ margin-inline-start: var(--spacing-title-primary_icon-margin_y);
52
+ font-size: var(--icon-title-primary);
53
+ }
54
+
55
+ &__title {
56
+ font-size: var(--en-single-f-f-b-fontSize);
57
+ font-weight: var(--en-single-f-f-b-fontWeight);
58
+ }
59
+
60
+ &__text--right {
61
+ margin-inline-end: var(--spacing-title-text-margin_right);
62
+ font-size: var(--en-single-f-c-r-fontSize);
63
+ font-weight: var(--en-single-f-c-r-fontWeight);
40
64
  color: var(--color-title-text);
41
65
  }
42
66
 
43
- &-arrow{
44
- color:var(--color-title-icon_arrow);
45
- font-size: calc(var(--icon-title-arrow) * 1px);
67
+ &__subtext {
68
+ font-size: var(--en-single-f-c-r-fontSize);
69
+ font-weight: var(--en-single-f-c-r-fontWeight);
46
70
  }
71
+ }
47
72
 
48
- &-primary{
73
+ &-secondary {
74
+ height: var(--height-title-secondary);
49
75
 
50
- height: calc(var(--height-title-primary) * 1px);
76
+ &__icon--left {
77
+ margin-inline-end: var(--spacing-title-secondary_icon-margin_y);
78
+ font-size: var(--icon-title-secondary);
79
+ }
80
+
81
+ &__icon--right {
82
+ margin-inline-start: var(--spacing-title-secondary_icon-margin_y);
83
+ font-size: var(--icon-title-secondary);
84
+ }
51
85
 
52
- &__icon--left{
53
- margin-inline-end: calc(var(--spacing-title-primary_icon-margin_y) * 1px);
54
- font-size: calc(var(--icon-title-primary) * 1px);
55
- }
56
-
57
- &__icon--right{
58
- margin-inline-start: calc(var(--spacing-title-primary_icon-margin_y) * 1px);
59
- font-size: calc(var(--icon-title-primary) * 1px);
60
- }
61
-
62
- &__title{
63
- font-size: calc(var(--en-single-f-f-b-fontSize) * 1px);
64
- font-weight: var(--en-single-f-f-b-fontWeight);
65
- }
66
-
67
- &__text--right{
68
- margin-inline-end: calc(var(--spacing-title-text-margin_right) * 1px);
69
- font-size: calc(var(--en-single-f-c-r-fontSize) * 1px);
70
- font-weight: var(--en-single-f-c-r-fontWeight);
71
- color: var(--color-title-text);
72
- }
73
- &__subtext{
74
- font-size: calc(var(--en-single-f-c-r-fontSize) * 1px);
75
- font-weight: var(--en-single-f-c-r-fontWeight);
76
- }
77
- }
78
-
79
- &-secondary {
80
-
81
- height: calc(var(--height-title-secondary) * 1px);
82
-
83
- &__icon--left{
84
- margin-inline-end: calc(var(--spacing-title-secondary_icon-margin_y) * 1px);
85
- font-size: calc(var(--icon-title-secondary) * 1px);
86
- }
87
-
88
- &__icon--right{
89
- margin-inline-start: calc(var(--spacing-title-secondary_icon-margin_y) * 1px);
90
- font-size: calc(var(--icon-title-secondary) * 1px);
91
-
92
- }
93
-
94
- &__title{
95
- font-size: calc(var(--en-single-f-e-s-fontSize) * 1px);
96
- font-weight: var(--en-single-f-e-s-fontWeight);
97
- }
98
-
99
- &__text--right{
100
- margin-inline-end: calc(var(--spacing-title-text-margin_right) * 1px);
101
- font-size: calc(var(--en-single-f-c-r-fontSize) * 1px);
102
- font-weight: var(--en-single-f-c-r-fontWeight);
103
- color: var(--color-title-text);
104
- }
105
- &__subtext{
106
- font-size: calc(var(--en-single-f-b-r-fontSize) * 1px);
107
- font-weight: var(--en-single-f-b-r-fontWeight);
108
- }
109
- }
110
-
111
- &-tertiary {
112
- height: calc(var(--height-title-tertiary) * 1px);
113
-
114
- &__icon--left{
115
- margin-inline-end: calc(var(--spacing-title-tertiary_icon-margin_y) * 1px);
116
- font-size: calc(var(--icon-title-tertiary) * 1px);
117
- }
118
-
119
- &__icon--right{
120
- margin-inline-start: calc(var(--spacing-title-tertiary_icon-margin_y) * 1px);
121
- font-size: calc(var(--icon-title-tertiary) * 1px);
122
- }
123
-
124
- &__title{
125
- font-size: calc(var(--en-single-f-d-s-fontSize) * 1px);
126
- font-weight: var(--en-single-f-d-s-fontWeight);
127
- }
128
-
129
- &__text--right{
130
- margin-inline-end: calc(var(--spacing-title-text-margin_right) * 1px);
131
- font-size: calc(var(--en-single-f-b-r-fontSize) * 1px);
132
- font-weight: var(--en-single-f-b-r-fontWeight);
133
- color: var(--color-title-text);
134
- }
135
-
136
- &__subtext{
137
- font-size: calc(var(--en-single-f-b-r-fontSize) * 1px);
138
- font-weight: var(--en-single-f-b-r-fontSize);
139
- }
140
- }
141
-
142
- &-quaternary {
143
- height: calc(var(--height-title-quaternary) * 1px);
144
-
145
- &__icon--left{
146
- margin-inline-end: calc(var(--spacing-title-quaternary_icon-margin_y) * 1px);
147
- font-size: calc(var(--icon-title-quaternary) * 1px);
148
- }
149
-
150
- &__icon--right{
151
- margin-inline-start: calc(var(--spacing-title-quaternary_icon-margin_y) * 1px);
152
- font-size: calc(var(--icon-title-quaternary) * 1px);
153
- }
154
-
155
- &__title{
156
- font-size: calc(var(--en-single-f-c-s-fontSize) * 1px);
157
- font-weight: var(--en-single-f-c-s-fontWeight);
158
- }
159
-
160
- &__text--right{
161
- margin-inline-end: calc(var(--spacing-title-text-margin_right) * 1px);
162
- font-size: calc(var(--en-single-f-b-r-fontSize) * 1px);
163
- font-weight: var(--en-single-f-b-r-fontWeight);
164
- color: var(--color-title-text);
165
- }
166
- &__subtext{
167
- font-size: calc(var(--en-single-f-a-r-fontSize) * 1px);
168
- font-weight: var(--en-single-f-a-r-fontSize);
169
- }
170
- }
171
-
172
- &-label{
173
- padding-inline-start: 0;
174
- padding-inline-end: 0;
175
- font-size: calc(var(--en-single-f-c-r-fontSize) * 1px);
86
+ &__title {
87
+ font-size: var(--en-single-f-e-s-fontSize);
88
+ font-weight: var(--en-single-f-e-s-fontWeight);
89
+ }
90
+
91
+ &__text--right {
92
+ margin-inline-end: var(--spacing-title-text-margin_right);
93
+ font-size: var(--en-single-f-c-r-fontSize);
176
94
  font-weight: var(--en-single-f-c-r-fontWeight);
95
+ color: var(--color-title-text);
177
96
  }
178
97
 
179
- &-primary-double {
180
- height: calc(var(--height-title-primary_double) * 1px);
98
+ &__subtext {
99
+ font-size: var(--en-single-f-b-r-fontSize);
100
+ font-weight: var(--en-single-f-b-r-fontWeight);
181
101
  }
182
- &-secondary-double {
183
- height: calc(var(--height-title-secondary_double) * 1px);
102
+ }
103
+
104
+ &-tertiary {
105
+ height: var(--height-title-tertiary);
106
+
107
+ &__icon--left {
108
+ margin-inline-end: var(--spacing-title-tertiary_icon-margin_y);
109
+ font-size: var(--icon-title-tertiary);
110
+ }
111
+
112
+ &__icon--right {
113
+ margin-inline-start: var(--spacing-title-tertiary_icon-margin_y);
114
+ font-size: var(--icon-title-tertiary);
184
115
  }
185
- &-tertiary-double {
186
- height: calc(var(--height-title-tertiary_double) * 1px);
116
+
117
+ &__title {
118
+ font-size: var(--en-single-f-d-s-fontSize);
119
+ font-weight: var(--en-single-f-d-s-fontWeight);
187
120
  }
188
- &-quaternary-double {
189
- height: calc(var(--height-title-quaternary_double) * 1px);
121
+
122
+ &__text--right {
123
+ margin-inline-end: var(--spacing-title-text-margin_right);
124
+ font-size: var(--en-single-f-b-r-fontSize);
125
+ font-weight: var(--en-single-f-b-r-fontWeight);
126
+ color: var(--color-title-text);
127
+ }
128
+
129
+ &__subtext {
130
+ font-size: var(--en-single-f-b-r-fontSize);
131
+ font-weight: var(--en-single-f-b-r-fontSize);
190
132
  }
191
133
  }
192
134
 
135
+ &-quaternary {
136
+ height: var(--height-title-quaternary);
137
+
138
+ &__icon--left {
139
+ margin-inline-end: var(--spacing-title-quaternary_icon-margin_y);
140
+ font-size: var(--icon-title-quaternary);
141
+ }
193
142
 
143
+ &__icon--right {
144
+ margin-inline-start: var(--spacing-title-quaternary_icon-margin_y);
145
+ font-size: var(--icon-title-quaternary);
146
+ }
194
147
 
148
+ &__title {
149
+ font-size: var(--en-single-f-c-s-fontSize);
150
+ font-weight: var(--en-single-f-c-s-fontWeight);
151
+ }
152
+
153
+ &__text--right {
154
+ margin-inline-end: var(--spacing-title-text-margin_right);
155
+ font-size: var(--en-single-f-b-r-fontSize);
156
+ font-weight: var(--en-single-f-b-r-fontWeight);
157
+ color: var(--color-title-text);
158
+ }
159
+
160
+ &__subtext {
161
+ font-size: var(--en-single-f-a-r-fontSize);
162
+ font-weight: var(--en-single-f-a-r-fontSize);
163
+ }
164
+ }
165
+
166
+ &-label {
167
+ padding-inline-start: 0;
168
+ padding-inline-end: 0;
169
+ font-size: var(--en-single-f-c-r-fontSize);
170
+ font-weight: var(--en-single-f-c-r-fontWeight);
171
+ }
172
+
173
+ &-primary-double {
174
+ height: var(--height-title-primary_double);
175
+ }
176
+
177
+ &-secondary-double {
178
+ height: var(--height-title-secondary_double);
179
+ }
180
+
181
+ &-tertiary-double {
182
+ height: var(--height-title-tertiary_double);
183
+ }
184
+
185
+ &-quaternary-double {
186
+ height: var(--height-title-quaternary_double);
187
+ }
188
+ }
@@ -1,5 +1,7 @@
1
1
  import Vue from 'vue'
2
2
  import VdToast from './index.vue'
3
+ import { inBrowser } from '../utils/env';
4
+
3
5
  let timer = null
4
6
 
5
7
  /**
@@ -41,8 +43,10 @@ class Toast extends Vue.extend(VdToast) {
41
43
  /**
42
44
  * 把虚拟 DOM 插入到真实 DOM 树中
43
45
  */
44
- document.body.appendChild(this.vm.$el)
45
- this.start()
46
+ if (inBrowser) {
47
+ document.body.appendChild(this.vm.$el) // 将虚拟 DOM 插入真实 DOM
48
+ this.start()
49
+ }
46
50
  }
47
51
 
48
52
  /**
@@ -69,7 +73,9 @@ class Toast extends Vue.extend(VdToast) {
69
73
  setTimeout(() => {
70
74
  this.isShow = false
71
75
  setTimeout(() => {
72
- document.body.removeChild(this.vm.$el)
76
+ if (inBrowser) {
77
+ document.body.removeChild(this.vm.$el)
78
+ }
73
79
  }, 500)
74
80
  }, this.duration)
75
81
  }
@@ -13,13 +13,13 @@
13
13
  transition: opacity .3s linear;
14
14
  opacity: 0;
15
15
  // token
16
- min-width: calc(var(--width-toast-small)* 1px);
17
- max-width: calc(var(--width-toast-large)* 1px);
18
- padding: calc(var(--spacing-toast-padding_x) * 1px) calc(var(--spacing-toast-padding_y) * 1px);
16
+ min-width: var(--width-toast-small);
17
+ max-width: var(--width-toast-large);
18
+ padding: var(--spacing-toast-padding_x) var(--spacing-toast-padding_y);
19
19
  background-color: var(--color-toast-bg);
20
- border-radius: calc(var(--radius-toast-content) * 1px);
20
+ border-radius: var(--radius-toast-content);
21
21
  color: var(--color-toast-text);
22
- font-size: calc(var(--en-single-f-c-r-fontSize) * 1px);
22
+ font-size: var(--en-single-f-c-r-fontSize);
23
23
  font-weight: var(--en-single-f-c-r-fontWeight);
24
24
 
25
25
  &.vd-toast-show {
@@ -27,11 +27,11 @@
27
27
  }
28
28
 
29
29
  &-icon {
30
- min-height: calc(var(--height-toast-small) * 1px);
30
+ min-height: var(--height-toast-small);
31
31
 
32
32
  .vd-iconfont {
33
- font-size: calc(var(--icon-toast-size) * 1px);
34
- margin-bottom: calc(var(--spacing-toast-icon-margin_bottom) * 1px);
33
+ font-size: var(--icon-toast-size);
34
+ margin-bottom: var(--spacing-toast-icon-margin_bottom);
35
35
  }
36
36
  }
37
37
 
@@ -12,8 +12,12 @@
12
12
  </template>
13
13
 
14
14
  <script>
15
+ import VdIcon from '../icon';
15
16
  export default {
16
17
  name: 'vd-upload',
18
+ components: {
19
+ VdIcon
20
+ },
17
21
  inheritAttrs: false,
18
22
  props: {
19
23
  photo: {
@@ -1,4 +1,3 @@
1
-
2
1
  @upload-prefix-cls: vd-upload;
3
2
 
4
3
  .@{upload-prefix-cls}{
@@ -18,7 +17,6 @@
18
17
  width: 100%;
19
18
  }
20
19
  }
21
-
22
20
  }
23
21
 
24
22
  &__wrapper{
@@ -32,16 +30,15 @@
32
30
  flex-direction: column;
33
31
  align-items: center;
34
32
  justify-content: center;
35
- height: calc(var(--height-upload-bg) * 1px);
36
- min-width: calc(var(--width-upload-small) * 1px);
33
+ height: var(--height-upload-bg);
34
+ min-width: var(--width-upload-small);
37
35
  background-color: var(--color-upload-bg);
38
- border-radius: calc( var(--radius-upload-content) * 1px);
36
+ border-radius: var(--radius-upload-content);
39
37
 
40
38
  &--text{
41
- padding-block-start: calc(var(--spacing-upload-padding_top) * 1px);
42
- padding-block-end: calc(var(--spacing-upload-padding_bottom) * 1px);
39
+ padding-block-start: var(--spacing-upload-padding_top);
40
+ padding-block-end: var(--spacing-upload-padding_bottom);
43
41
  }
44
-
45
42
  }
46
43
 
47
44
  &__preview{
@@ -49,8 +46,8 @@
49
46
  display: flex;
50
47
  align-items: center;
51
48
  justify-content: center;
52
- width: calc(var(--width-upload-small) * 1px);
53
- border-radius: calc( var(--radius-upload-content) * 1px);
49
+ width: var(--width-upload-small);
50
+ border-radius: var(--radius-upload-content);
54
51
 
55
52
  &--pdf{
56
53
  background-color: var(--color-upload-pdf-bg);
@@ -65,41 +62,38 @@
65
62
  display: flex;
66
63
  align-items: center;
67
64
  justify-content: center;
68
- border-radius: 0 calc(var(--radius-upload-content) * 1px);
65
+ border-radius: 0 var(--radius-upload-content);
69
66
  background-color: var(--color-upload-close_bg);
70
67
  &-icon{
71
- font-size: calc(var(--icon-upload-close) * 1px);
68
+ font-size: var(--icon-upload-close);
72
69
  color: #ffffff;
73
70
  }
74
71
  }
75
72
  &-word{
76
73
  color: var(--color-upload-pdf-text);
77
- font-size: calc(var(--en-single-f-f-b-fontSize) * 1px);
74
+ font-size: var(--en-single-f-f-b-fontSize);
78
75
  font-weight: var(--en-single-f-f-b-fontWeight);
79
76
  }
80
77
 
81
78
  &-img{
82
-
83
79
  img{
84
80
  object-fit: cover;
85
- width: calc(var(--height-upload-bg) * 1px);
86
- height: calc(var(--height-upload-bg) * 1px);
87
- border-radius: calc( var(--radius-upload-content) * 1px);
81
+ width: var(--height-upload-bg);
82
+ height: var(--height-upload-bg);
83
+ border-radius: var(--radius-upload-content);
88
84
  }
89
85
  }
90
86
  }
91
87
 
92
-
93
-
94
88
  &__icon{
95
- font-size: calc(var(--icon-upload-size) * 1px);
89
+ font-size: var(--icon-upload-size);
96
90
  color: var(--color-upload-icon);
97
91
  }
98
92
 
99
93
  &__text{
100
- margin-block-start: calc(var(--spacing-upload-text-margin_top) * 1px);
94
+ margin-block-start: var(--spacing-upload-text-margin_top);
101
95
  color: var(--color-upload-text);
102
- font-size: calc(var(--en-single-f-c-r-fontSize) * 1px);
96
+ font-size: var(--en-single-f-c-r-fontSize);
103
97
  font-weight: var(--en-single-f-c-r-fontWeight);
104
98
  }
105
99
 
@@ -133,24 +127,21 @@
133
127
  display: flex;
134
128
  justify-content: center;
135
129
  align-items: center;
136
- img{
137
- display: block;
138
- object-fit: contain;
139
- }
130
+ img{
131
+ display: block;
132
+ object-fit: contain;
140
133
  }
141
134
  }
135
+ }
142
136
 
143
-
144
-
145
137
  [lang='ar'] {
146
138
  .@{upload-prefix-cls}{
147
139
  &__preview{
148
140
  &-delete{
149
141
  left: 0;
150
142
  right: auto;
151
- border-radius: calc(var(--radius-upload-content) * 1px) 0;
152
-
143
+ border-radius: var(--radius-upload-content) 0;
153
144
  }
154
145
  }
155
146
  }
156
- }
147
+ }
@@ -0,0 +1,2 @@
1
+ // env.js
2
+ export const inBrowser = typeof window !== 'undefined';