vdesign-ui 0.1.20 → 0.1.21

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 (183) hide show
  1. package/package.json +1 -1
  2. package/dist/components/actionbar/actionbar-cell/index.vue +0 -34
  3. package/dist/components/actionbar/index.js +0 -8
  4. package/dist/components/actionbar/index.vue +0 -39
  5. package/dist/components/actionbar/style.less +0 -48
  6. package/dist/components/actions-cell/actions/index.js +0 -7
  7. package/dist/components/actions-cell/actions/index.vue +0 -76
  8. package/dist/components/actions-cell/actions/style.less +0 -112
  9. package/dist/components/actions-cell/index.js +0 -7
  10. package/dist/components/actions-cell/index.vue +0 -94
  11. package/dist/components/actions-cell/style.less +0 -39
  12. package/dist/components/activityviews/index.js +0 -8
  13. package/dist/components/activityviews/index.vue +0 -140
  14. package/dist/components/activityviews/style.less +0 -138
  15. package/dist/components/badge/index.js +0 -8
  16. package/dist/components/badge/index.vue +0 -49
  17. package/dist/components/badge/style.less +0 -66
  18. package/dist/components/button/index.js +0 -8
  19. package/dist/components/button/index.vue +0 -89
  20. package/dist/components/button/style.less +0 -563
  21. package/dist/components/calendar/end.png +0 -0
  22. package/dist/components/calendar/index-element.vue +0 -84
  23. package/dist/components/calendar/index.js +0 -8
  24. package/dist/components/calendar/index.vue +0 -52
  25. package/dist/components/calendar/start.png +0 -0
  26. package/dist/components/calendar/style.less +0 -167
  27. package/dist/components/checkbox/assist.js +0 -34
  28. package/dist/components/checkbox/checkbox-group/index.js +0 -8
  29. package/dist/components/checkbox/checkbox-group/index.vue +0 -69
  30. package/dist/components/checkbox/index.js +0 -8
  31. package/dist/components/checkbox/index.vue +0 -184
  32. package/dist/components/checkbox/style.less +0 -291
  33. package/dist/components/common/state/index.vue +0 -80
  34. package/dist/components/data-list/index.js +0 -10
  35. package/dist/components/data-list/index.vue +0 -19
  36. package/dist/components/data-list/style.less +0 -624
  37. package/dist/components/datetime-picker/index.js +0 -8
  38. package/dist/components/datetime-picker/index.vue +0 -37
  39. package/dist/components/datetime-picker/style.less +0 -24
  40. package/dist/components/dialog/index.js +0 -8
  41. package/dist/components/dialog/index.vue +0 -162
  42. package/dist/components/dialog/overlay-manager.js +0 -18
  43. package/dist/components/dialog/style.less +0 -132
  44. package/dist/components/divider/index.js +0 -8
  45. package/dist/components/divider/index.vue +0 -54
  46. package/dist/components/divider/style.less +0 -92
  47. package/dist/components/dropdown/index.js +0 -8
  48. package/dist/components/dropdown/index.vue +0 -210
  49. package/dist/components/dropdown/style.less +0 -418
  50. package/dist/components/empty/404-dark.png +0 -0
  51. package/dist/components/empty/404.png +0 -0
  52. package/dist/components/empty/index.js +0 -8
  53. package/dist/components/empty/index.vue +0 -95
  54. package/dist/components/empty/network-dark.png +0 -0
  55. package/dist/components/empty/network.png +0 -0
  56. package/dist/components/empty/nodata-dark.png +0 -0
  57. package/dist/components/empty/nodata.png +0 -0
  58. package/dist/components/empty/style.less +0 -60
  59. package/dist/components/footer/index.js +0 -7
  60. package/dist/components/footer/index.vue +0 -29
  61. package/dist/components/footer/style.less +0 -22
  62. package/dist/components/footnav/footnav-item/index.js +0 -7
  63. package/dist/components/footnav/footnav-item/index.vue +0 -75
  64. package/dist/components/footnav/footnav-item/style.less +0 -39
  65. package/dist/components/footnav/index.js +0 -7
  66. package/dist/components/footnav/index.vue +0 -97
  67. package/dist/components/footnav/style.less +0 -23
  68. package/dist/components/form/index.js +0 -7
  69. package/dist/components/form/index.vue +0 -12
  70. package/dist/components/headnav/index.js +0 -7
  71. package/dist/components/headnav/index.vue +0 -163
  72. package/dist/components/headnav/style.less +0 -245
  73. package/dist/components/icon/font/iconfont.css +0 -1050
  74. package/dist/components/icon/font/iconfont.js +0 -2
  75. package/dist/components/icon/index.js +0 -9
  76. package/dist/components/icon/index.vue +0 -46
  77. package/dist/components/icon/style.less +0 -44
  78. package/dist/components/input/calcTextareaHeight.js +0 -266
  79. package/dist/components/input/index.js +0 -8
  80. package/dist/components/input/index.vue +0 -343
  81. package/dist/components/input/password/index.js +0 -8
  82. package/dist/components/input/password/index.vue +0 -60
  83. package/dist/components/input/search/index.js +0 -8
  84. package/dist/components/input/search/index.vue +0 -66
  85. package/dist/components/input/stepper/index.js +0 -8
  86. package/dist/components/input/stepper/index.vue +0 -136
  87. package/dist/components/input/style.less +0 -497
  88. package/dist/components/list/index.js +0 -8
  89. package/dist/components/list/index.vue +0 -159
  90. package/dist/components/list/style.less +0 -292
  91. package/dist/components/loading/index.js +0 -7
  92. package/dist/components/loading/index.vue +0 -53
  93. package/dist/components/loading/loading.png +0 -0
  94. package/dist/components/loading/refresh.png +0 -0
  95. package/dist/components/loading/style.less +0 -48
  96. package/dist/components/mixins/clickoutside.js +0 -81
  97. package/dist/components/mixins/dom.js +0 -41
  98. package/dist/components/mixins/languageMixin.js +0 -38
  99. package/dist/components/mixins/outlineConfigPlugin.js +0 -40
  100. package/dist/components/mixins/router-link.js +0 -23
  101. package/dist/components/mixins/themeMixin.js +0 -29
  102. package/dist/components/noticebar/index.js +0 -8
  103. package/dist/components/noticebar/index.vue +0 -247
  104. package/dist/components/noticebar/style.less +0 -332
  105. package/dist/components/overlay/index.js +0 -8
  106. package/dist/components/overlay/index.vue +0 -161
  107. package/dist/components/overlay/style.less +0 -23
  108. package/dist/components/pagebreak/index.js +0 -7
  109. package/dist/components/pagebreak/index.vue +0 -60
  110. package/dist/components/pagebreak/style.less +0 -43
  111. package/dist/components/popover/index.js +0 -8
  112. package/dist/components/popover/index.vue +0 -99
  113. package/dist/components/popover/style.less +0 -346
  114. package/dist/components/popover/vue-popover.vue +0 -314
  115. package/dist/components/radio/assist.js +0 -34
  116. package/dist/components/radio/index.js +0 -8
  117. package/dist/components/radio/index.vue +0 -159
  118. package/dist/components/radio/radio-group/index.vue +0 -70
  119. package/dist/components/radio/style.less +0 -297
  120. package/dist/components/result/completed-dark.png +0 -0
  121. package/dist/components/result/completed.png +0 -0
  122. package/dist/components/result/error-dark.png +0 -0
  123. package/dist/components/result/error.png +0 -0
  124. package/dist/components/result/index.js +0 -8
  125. package/dist/components/result/index.vue +0 -75
  126. package/dist/components/result/style.less +0 -42
  127. package/dist/components/result/wait-dark.png +0 -0
  128. package/dist/components/result/wait.png +0 -0
  129. package/dist/components/selector/index.js +0 -8
  130. package/dist/components/selector/index.vue +0 -124
  131. package/dist/components/selector/style.less +0 -474
  132. package/dist/components/skeleton/index.js +0 -7
  133. package/dist/components/skeleton/index.vue +0 -142
  134. package/dist/components/skeleton/style.less +0 -192
  135. package/dist/components/slider/draggable.js +0 -49
  136. package/dist/components/slider/index.js +0 -7
  137. package/dist/components/slider/index.vue +0 -173
  138. package/dist/components/slider/style.less +0 -96
  139. package/dist/components/slider/utils.js +0 -60
  140. package/dist/components/step/index.js +0 -7
  141. package/dist/components/step/index.vue +0 -48
  142. package/dist/components/step/style.less +0 -59
  143. package/dist/components/step-item/index.js +0 -7
  144. package/dist/components/step-item/index.vue +0 -117
  145. package/dist/components/step-item/style.less +0 -361
  146. package/dist/components/style/index.vue +0 -42
  147. package/dist/components/switch/index.js +0 -8
  148. package/dist/components/switch/index.vue +0 -72
  149. package/dist/components/switch/style.less +0 -56
  150. package/dist/components/tabs/index.js +0 -8
  151. package/dist/components/tabs/index.vue +0 -145
  152. package/dist/components/tabs/style.less +0 -385
  153. package/dist/components/tabs/tab/index.vue +0 -56
  154. package/dist/components/tag/index.js +0 -7
  155. package/dist/components/tag/index.vue +0 -50
  156. package/dist/components/tag/style.less +0 -211
  157. package/dist/components/title/index.js +0 -8
  158. package/dist/components/title/index.vue +0 -92
  159. package/dist/components/title/style.less +0 -188
  160. package/dist/components/toast/index.js +0 -80
  161. package/dist/components/toast/index.vue +0 -44
  162. package/dist/components/toast/style.less +0 -55
  163. package/dist/components/transition/index.js +0 -8
  164. package/dist/components/transition/index.vue +0 -13
  165. package/dist/components/transition/style.less +0 -208
  166. package/dist/components/upload/index.js +0 -7
  167. package/dist/components/upload/index.vue +0 -224
  168. package/dist/components/upload/style.less +0 -156
  169. package/dist/demo.html +0 -10
  170. package/dist/img/404-dark.775df5bb.png +0 -0
  171. package/dist/img/completed-dark.4183a8a8.png +0 -0
  172. package/dist/img/error-dark.b80857da.png +0 -0
  173. package/dist/img/network-dark.11a147bb.png +0 -0
  174. package/dist/img/nodata-dark.b0ea0e39.png +0 -0
  175. package/dist/img/wait-dark.6aa28731.png +0 -0
  176. package/dist/locale/ar.js +0 -98
  177. package/dist/locale/en.js +0 -98
  178. package/dist/locale/zh.js +0 -98
  179. package/dist/token.css +0 -2982
  180. package/dist/vdesign-ui.common.js +0 -27204
  181. package/dist/vdesign-ui.css +0 -1
  182. package/dist/vdesign-ui.umd.js +0 -27214
  183. package/dist/vdesign-ui.umd.min.js +0 -32
@@ -1,75 +0,0 @@
1
- <template>
2
- <div class="vd-foot-nav-item" :class="{ 'vd-foot-nav-item--active': active }" @click="onClick">
3
- <vd-icon v-if="icon" :name="icon" :svg="isSvg"></vd-icon>
4
- <vd-badge v-if="dot || badge" :is-dot="dot" :value="badge" :max="99">
5
- <vd-icon :name="iconName" size="large" :svg="isSvg"></vd-icon>
6
- </vd-badge>
7
- <slot></slot>
8
- </div>
9
- </template>
10
-
11
- <script>
12
-
13
- import RouterLink from '../../mixins/router-link';
14
-
15
- export default {
16
- name: 'vd-foot-nav-item',
17
- mixins: [RouterLink],
18
- props: {
19
- iconName: {
20
- type: String,
21
- },
22
- icon: {
23
- type: String,
24
- },
25
- name: {
26
- type: String,
27
- },
28
- text: {
29
- type: String,
30
- },
31
- dot: {
32
- type: Boolean,
33
- },
34
- badge: {
35
- type: [Number, String],
36
- },
37
- isSvg: {
38
- type: Boolean,
39
- },
40
- },
41
- computed: {
42
- // isActive() {
43
- // return this.$parent.active === this.$parent.$children.indexOf(this);
44
- // // return this.activeIndex === this.index;
45
-
46
- // },
47
- },
48
- data() {
49
- return {
50
- active: false
51
- };
52
- },
53
-
54
- beforeCreate() {
55
- this.$parent.items.push(this);
56
- },
57
-
58
- destroyed() {
59
- this.$parent.items.splice(this.$parent.items.indexOf(this), 1);
60
- },
61
- methods: {
62
- onClick(event) {
63
- // this.$parent.updateActive(this.$parent.$children.indexOf(this));
64
- // this.$emit('click', event);
65
- this.$parent.onChange(this.$parent.items.indexOf(this));
66
- this.$emit('click', event);
67
- this.routerLink();
68
- },
69
- }
70
- }
71
- </script>
72
-
73
- <style lang="less">
74
- @import './style.less';
75
- </style>
@@ -1,39 +0,0 @@
1
- @footnav-item-prefix-cls: vd-foot-nav-item;
2
-
3
- .@{footnav-item-prefix-cls} {
4
- flex: 1;
5
- display: flex;
6
- align-items: center;
7
- flex-direction: column;
8
- justify-content: center;
9
- font-size: calc(var(--en-single-f-a-r-fontSize) * 1px);
10
- font-weight: var(--en-single-f-a-r-fontWeight);
11
- color: var(--color-footnav-text-default);
12
-
13
- .vd-iconfont {
14
- margin-bottom: 2px;
15
- font-size: calc(var(--icon-footnav-size) * 1px);
16
- color: var(--text-color-h2);
17
- }
18
-
19
- &:active {
20
- border-color: transparent;
21
- background-color: transparent;
22
- color: var(--color-button-border-text-press);
23
- }
24
-
25
- &--active {
26
- color: var(--color-footnav-text-active);
27
-
28
- .vd-iconfont {
29
- color: var(--color-footnav-text-active);
30
- }
31
- }
32
-
33
- .vd-badge {
34
- .is-fixed {
35
- top: 4px;
36
- right: 4px;
37
- }
38
- }
39
- }
@@ -1,7 +0,0 @@
1
- import FootNav from './index.vue';
2
- import './style.less';
3
- FootNav.install = function(Vue) {
4
- Vue.component(FootNav.name, FootNav)
5
- }
6
-
7
- export default FootNav;
@@ -1,97 +0,0 @@
1
- <template>
2
- <div class="vd-foot-nav--placeholder" :style="{height:height + 'px'}">
3
- <div class="vd-foot-nav" ref="footNav"
4
- :class="{ 'vd-foot-nav--fixed': fixed, 'vd-hairline--top': border, 'vd-foot-nav--unfit': !this.fit }"
5
- :style="style">
6
- <slot></slot>
7
- </div>
8
- </div>
9
- </template>
10
-
11
- <script>
12
- export default {
13
- name: 'vd-foot-nav',
14
- props: {
15
- value: Number,
16
- fixed: {
17
- type: Boolean,
18
- default: true
19
- },
20
- border: {
21
- type: Boolean,
22
- default: true
23
- },
24
- zIndex: [Number, String],
25
- safeAreaInsetBottom: {
26
- type: Boolean,
27
- default: null,
28
- },
29
- placeholder: Boolean,
30
- },
31
- computed: {
32
- fit() {
33
- if (this.safeAreaInsetBottom !== null) {
34
- return this.safeAreaInsetBottom;
35
- }
36
- // enable safe-area-inset-bottom by default when fixed
37
- return this.fixed;
38
- },
39
- style() {
40
- return {
41
- zIndex: this.zIndex
42
- };
43
- }
44
- },
45
- data() {
46
- return {
47
- // active: 0,
48
- items: [],
49
- height: null,
50
- }
51
- },
52
- watch: {
53
- items() {
54
- this.setActiveItem();
55
- },
56
-
57
- value() {
58
- this.setActiveItem();
59
- }
60
- },
61
- methods: {
62
- setActiveItem() {
63
- this.items.forEach((item, index) => {
64
- item.active = index === this.value;
65
- });
66
- },
67
-
68
- onChange(active) {
69
- if (active !== this.value) {
70
- this.$emit('input', active);
71
- this.$emit('change', active);
72
- }
73
- },
74
- // updateActive(index) {
75
- // this.active = index;
76
- // },
77
- // handleClick() {
78
- // this.$emit('click',this.active)
79
- // }
80
- },
81
- mounted() {
82
- if (this.placeholder && this.fixed) {
83
- const setHeight = () => {
84
- this.height = this.$refs.footNav.getBoundingClientRect().height;
85
- };
86
-
87
- setHeight();
88
- setTimeout(setHeight, 100);
89
- }
90
- }
91
-
92
- }
93
- </script>
94
-
95
- <style lang="less">
96
- @import './style.less';
97
- </style>
@@ -1,23 +0,0 @@
1
-
2
- @footnav-prefix-cls: vd-foot-nav;
3
-
4
- .@{footnav-prefix-cls}{
5
- width: 100%;
6
- display: flex;
7
- padding: 4px calc(var(--spacing-footnav-icon-margin_bottom) * 1px);
8
- height: calc(var(--height-footnav-content) * 1px);
9
- background-color: var(--color-footnav-bg);
10
- padding-bottom: constant(safe-area-inset-bottom);
11
- padding-bottom: env(safe-area-inset-bottom);
12
-
13
- &--fixed{
14
- position: fixed;
15
- bottom: 0;
16
- left: 0;
17
- width: 100%;
18
- z-index: 1;
19
- }
20
- &--unfit {
21
- padding-bottom: 0;
22
- }
23
- }
@@ -1,7 +0,0 @@
1
- import Form from './index.vue';
2
- import './style.less';
3
- Form.install = function(Vue) {
4
- Vue.component(Form.name, Form)
5
- }
6
-
7
- export default Form;
@@ -1,12 +0,0 @@
1
- <template>
2
- <div class="vd-form"></div>
3
- </template>
4
-
5
- <script>
6
-
7
- export default {
8
- name: 'vd-form',
9
- }
10
- </script>
11
-
12
- <style lang="less"></style>
@@ -1,7 +0,0 @@
1
- import HeadNav from './index.vue';
2
- import './style.less';
3
- HeadNav.install = function(Vue) {
4
- Vue.component(HeadNav.name, HeadNav)
5
- }
6
-
7
- export default HeadNav;
@@ -1,163 +0,0 @@
1
- <template>
2
- <div class="vd-head-nav--placeholder" :style="{height:height + 'px'}">
3
- <div class="vd-head-nav" :class="wrapClasses" :style="{zIndex:zIndex}" ref="headNav">
4
-
5
- <div v-if="showLeftSection" class="vd-head-nav--left">
6
-
7
- <span v-if="showSidebar" class="vd-head-nav__icon">
8
- <slot name="left-primary">
9
- <vd-icon name="icon_nav_sidebar"></vd-icon>
10
- </slot>
11
- </span>
12
-
13
- <span v-if="$slots['left-secondary']" class="vd-head-nav__icon">
14
- <slot name="left-secondary"></slot>
15
- </span>
16
- <span v-if="leftTitle" class="vd-head-nav__left-title">{{ leftTitle }}</span>
17
- <span v-if="editLeftText" class="vd-head-nav__edit-left-text">{{ editLeftText }}</span>
18
- </div>
19
-
20
- <div v-if="showContentSection" class="vd-head-nav__content" :class="contentClasses">
21
- <div v-if="$slots.selector" class="vd-head-nav__content--selector">
22
- <slot name="selector"></slot>
23
- </div>
24
-
25
- <span v-if="title" class="vd-head-nav__title vd-ellipsis" :class="titleClasses">{{ title }}</span>
26
- <span v-if="description" class="vd-head-nav__description">{{ description }}</span>
27
-
28
- <span class="vd-head-nav__stock" :class="stockColor" v-if="colors">
29
- <slot name="state"></slot>
30
- <span class="vd-head-nav__price--price">{{ price }}</span>
31
- <span class="vd-head-nav__price--chgp">{{ chgp }}</span>
32
- <span class="vd-head-nav__price--chg">{{ chg }}</span>
33
- </span>
34
-
35
- <slot name="selector-bottom"></slot>
36
-
37
- <span v-if="accountIcon || accountType" class="vd-head-nav__icontype">
38
- <vd-icon svg :name="accountIcon" class="vd-head-nav__account-type--icon"></vd-icon>
39
- <span class="vd-head-nav__account-type">{{ accountType }}</span>
40
- </span>
41
- </div>
42
-
43
- <div class="vd-head-nav--right" v-if="showRightSection">
44
- <span v-if="rightSecondary || $slots['right-secondary']" class="vd-head-nav__icon">
45
- <slot name="right-secondary">
46
- <vd-icon name="icon_nav_search" style="transform: scale(1);"></vd-icon>
47
- </slot>
48
- </span>
49
-
50
- <span v-if="rightPrimary || $slots['right-primary']" class="vd-head-nav__icon">
51
- <slot name="right-primary">
52
- <vd-icon name="icon_nav_trade" style="transform: scale(1);"></vd-icon>
53
- </slot>
54
- </span>
55
-
56
- <span class="vd-head-nav__edit-right-text" v-if="editRightText">{{ editRightText }}</span>
57
- <span class="vd-head-nav__account-text" v-if="accountText">{{ accountText }}</span>
58
- </div>
59
-
60
- <div class="vd-head-nav__info" v-if="$slots['stock-time'] || time">
61
- <slot name="stock-time"></slot>
62
- <span v-if="time" class="vd-head-nav__time">{{ time }}</span>
63
- </div>
64
- </div>
65
- </div>
66
- </template>
67
-
68
- <script>
69
-
70
- const prefixCls = 'vd-head-nav';
71
- export default {
72
- name: 'vd-head-nav',
73
- props: {
74
- title: String,
75
- time: String,
76
- type: String,
77
- leftPrimary: Boolean,
78
- rightPrimary: Boolean,
79
- rightSecondary: Boolean,
80
- start: Boolean,
81
- description: String,
82
- price: String,
83
- chg: String,
84
- chgp: String,
85
- colors: String,
86
- leftTitle: String,
87
- editLeftText: String,
88
- editRightText: String,
89
- accountText: String,
90
- accountType: String,
91
- accountIcon: String,
92
- fixed: Boolean,
93
- zIndex: [Number, String],
94
- safeAreaInsetTop: Boolean,
95
- placeholder: Boolean,
96
- },
97
- data() {
98
- return {
99
- height: null,
100
- };
101
- },
102
-
103
- computed: {
104
- wrapClasses() {
105
- return [
106
- {
107
- [`${prefixCls}--${this.type}`]: this.type,
108
- [`${prefixCls}--fixed`]: this.fixed,
109
- [`${prefixCls}--safe-area-inset-top`]: this.safeAreaInsetTop,
110
- }
111
- ]
112
- },
113
- contentClasses() {
114
- return [
115
- {
116
- 'vd-head-nav__content--start': this.start,
117
- }
118
- ];
119
- },
120
- titleClasses() {
121
- return [
122
- {
123
- [`${prefixCls}__title--normal`]: this.type,
124
- }
125
- ]
126
- },
127
- stockColor() {
128
- return [
129
- {
130
- [`${prefixCls}__stock--${this.colors}`]: this.colors,
131
-
132
- }
133
- ]
134
- },
135
- showSidebar() {
136
- return this.leftPrimary || this.$slots['left-primary'];
137
- },
138
- showLeftSection() {
139
- return this.showSidebar || this.$slots['left-secondary'] || this.leftTitle || this.editLeftText;
140
- },
141
- showContentSection() {
142
- return this.title || this.$slots.selector || this.$slots['selector-bottom'] || this.account || this.colors;
143
- },
144
- showRightSection() {
145
- return this.rightPrimary || this.$slots['right-primary'] || this.rightSecondary || this.$slots['right-secondary'] || this.editRightText || this.accountText;
146
- }
147
- },
148
- mounted() {
149
- if (this.placeholder && this.fixed) {
150
- const setHeight = () => {
151
- this.height = this.$refs.headNav.getBoundingClientRect().height;
152
- };
153
-
154
- setHeight();
155
- setTimeout(setHeight, 100);
156
- }
157
- },
158
- }
159
- </script>
160
-
161
- <style lang="less">
162
- @import './style.less';
163
- </style>
@@ -1,245 +0,0 @@
1
- @headnav-prefix-cls: vd-head-nav;
2
-
3
-
4
- .@{headnav-prefix-cls} {
5
- position: relative;
6
- display: flex;
7
- align-items: center;
8
- justify-content: center;
9
- height: calc(var(--height-headnav-primary) * 1px);
10
- padding: 0 calc(var(--spacing-headnav-padding_y) * 1px);
11
-
12
- &--fixed {
13
- top: 0;
14
- left: 0;
15
- width: 100%;
16
- position: fixed;
17
- z-index: 1;
18
- }
19
-
20
- &--safe-area-inset-top {
21
- padding-top: constant(safe-area-inset-top);
22
- padding-top: env(safe-area-inset-top);
23
- }
24
-
25
- &__title {
26
- max-width: 100%;
27
- font-size: calc(var(--en-single-f-f-b-fontSize) * 1px);
28
- font-weight: var(--en-single-f-f-b-fontWeight);
29
- color: var(--color-headnav-title);
30
-
31
- }
32
-
33
- &--left {
34
- position: absolute;
35
- left: calc(var(--spacing-headnav-padding_y) * 1px);
36
- top: 0;
37
- bottom: 0;
38
- display: flex;
39
- justify-content: center;
40
- align-items: center;
41
- gap: calc(var(--spacing-headnav-icon-margin_left) * 1px);
42
- }
43
-
44
- &--right {
45
- position: absolute;
46
- right: calc(var(--spacing-headnav-padding_y) * 1px);
47
- top: 0;
48
- bottom: 0;
49
- display: flex;
50
- justify-content: center;
51
- align-items: center;
52
- gap: calc(var(--spacing-headnav-icon-margin_left) * 1px);
53
-
54
- }
55
-
56
- &--normal {
57
- height: calc(var(--height-headnav-secondary) * 1px);
58
-
59
- .@{headnav-prefix-cls} {
60
-
61
- &__title--normal {
62
- font-size: calc(var(--en-single-f-e-s-fontSize) * 1px);
63
- font-weight: var(--en-single-f-e-s-fontWeight);
64
- color: var(--color-headnav-title);
65
- }
66
- }
67
-
68
- .vd-selector-l__title {
69
- overflow: hidden;
70
- white-space: nowrap;
71
- text-overflow: ellipsis;
72
- font-size: calc(var(--en-single-f-e-s-fontSize) * 1px);
73
- font-weight: var(--en-single-f-e-s-fontWeight);
74
- }
75
-
76
- .vd-selector-s__title {
77
- font-size: calc(var(--en-single-f-c-r-fontSize) * 1px);
78
- font-weight: var(--en-single-f-c-r-fontWeight);
79
- color: var(--color-headnav-title);
80
- }
81
-
82
- }
83
-
84
-
85
- &__content {
86
- flex: 1;
87
- max-width: 60%;
88
- position: relative;
89
- display: flex;
90
- justify-content: center;
91
- flex-direction: column;
92
- align-items: center;
93
- margin: 0 calc(var(--spacing-headnav-title-margin_y) * 1px);
94
-
95
- &--start {
96
- flex: 1;
97
- max-width: 100%;
98
- align-items: flex-start;
99
- padding-inline-end: calc(var(--spacing-headnav-title-margin_right) * 1px);
100
- }
101
-
102
- .vd-selector {
103
-
104
- &-xl__title {
105
- white-space: nowrap;
106
- overflow: hidden;
107
- text-overflow: ellipsis;
108
- }
109
- }
110
-
111
- &--selector {
112
- max-width: 100%;
113
- padding-inline-start: 20px;
114
- }
115
-
116
-
117
-
118
- }
119
-
120
- &__icontype{
121
- display: flex;
122
- }
123
-
124
- &__left-title {
125
- font-size: calc(var(--en-single-f-f-b-fontSize) * 1px);
126
- font-weight: var(--en-single-f-f-b-fontWeight);
127
- color: var(--color-headnav-title);
128
- }
129
-
130
- &__edit-left-text {
131
- font-size: calc(var(--en-single-f-d-r-fontSize) * 1px);
132
- font-weight: var(--en-single-f-d-r-fontWeight);
133
- color: var(--color-headnav-title);
134
- }
135
-
136
- &__edit-right-text {
137
- font-size: calc(var(--en-single-f-d-s-fontSize) * 1px);
138
- font-weight: var(--en-single-f-d-s-fontWeight);
139
- color: var(--primary-color);
140
- }
141
-
142
- &__account-text {
143
- font-size: calc(var(--en-single-f-d-r-fontSize) * 1px);
144
- font-weight: var(--en-single-f-d-r-fontWeight);
145
- color: var(--color-headnav-title);
146
- }
147
-
148
- &__account-type {
149
- font-size: calc(var(--en-single-f-c-r-fontSize) * 1px);
150
- font-weight: var(--en-single-f-c-r-fontWeight);
151
- color: var(--color-headnav-title);
152
-
153
- &--icon {
154
- font-size: calc(var(--icon-selector-s) * 1px);
155
- margin-inline-end: calc(var(--spacing-selector-s-margin_y) * 1px);
156
- }
157
- }
158
-
159
- &__icon {
160
- display: flex;
161
-
162
- .vd-iconfont {
163
- font-size: calc(var(--icon-large) * 1px);
164
- color: var(--color-headnav-icon);
165
- }
166
- }
167
-
168
- // &__space--end {
169
- // margin-inline-end: calc(var(--spacing-headnav-icon-margin_left) * 1px);
170
- // }
171
-
172
- // &__space--start {
173
- // margin-inline-start: calc(var(--spacing-headnav-icon-margin_left) * 1px);
174
- // }
175
-
176
- &__time {
177
- margin-inline-start: calc(var(--spacing-headnav-primary-text-margin_right) * 1px);
178
- font-size: calc(var(--en-single-f-a-r-fontSize) * 1px);
179
- font-weight: var(--en-single-f-a-r-fontWeight);
180
- color: var(--color-headnav-text_delayed);
181
- }
182
-
183
- &__info {
184
- position: absolute;
185
- left: 0;
186
- right: 0;
187
- bottom: 8px;
188
- display: flex;
189
- align-items: center;
190
- justify-content: center;
191
- }
192
-
193
-
194
- &__description {
195
- margin-block-start: calc(var(--spacing-headnav-text_description-margin_top) * 1px);
196
- font-size: calc(var(--en-single-f-c-r-fontSize) * 1px);
197
- font-weight: var(--en-single-f-c-r-fontWeight);
198
- color: var(--color-headnav-text_description);
199
- }
200
-
201
- &__stock {
202
- display: flex;
203
- align-items: center;
204
- font-size: calc(var(--en-single-f-b-r-fontSize) * 1px);
205
- font-weight: var(--en-single-f-b-r-fontWeight);
206
-
207
- &--rise {
208
- color: var(--rise-color);
209
- }
210
-
211
- &--fall {
212
- color: var(--fall-color);
213
-
214
- }
215
-
216
- span {
217
- margin-inline-end: calc(var(--spacing-headnav-primary-dot-margin_right) * 1px);
218
- }
219
- }
220
- }
221
-
222
-
223
-
224
- [lang='ar'] {
225
- .@{headnav-prefix-cls} {
226
- &--left {
227
- position: absolute;
228
- left: auto;
229
- right: calc(var(--spacing-headnav-padding_y) * 1px);
230
-
231
- }
232
-
233
- &--right {
234
- position: absolute;
235
- left: calc(var(--spacing-headnav-padding_y) * 1px);
236
- right: auto;
237
- }
238
- }
239
-
240
- .vd-head-nav__icon {
241
- .vd-icon-icon_nav_back{
242
- transform: scaleX(-1);
243
- }
244
- }
245
- }