vdesign-ui 0.1.17 → 0.1.19

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 (192) hide show
  1. package/dist/css/chunk-1952c402.04c2303e.css +1 -0
  2. package/dist/css/chunk-6a5c6104.38021b56.css +1 -0
  3. package/dist/css/chunk-vendors.4ecfba63.css +1 -0
  4. package/dist/css/sites.395ce21f.css +1 -0
  5. package/dist/img/404-dark.775df5bb.png +0 -0
  6. package/dist/img/bg_mobile.5909f667.png +0 -0
  7. package/dist/img/completed-dark.4183a8a8.png +0 -0
  8. package/dist/img/error-dark.b80857da.png +0 -0
  9. package/dist/img/icon.a67073c3.svg +7 -0
  10. package/dist/img/iphoneX.38c8778e.png +0 -0
  11. package/dist/img/logo-white.fad4f907.png +0 -0
  12. package/dist/img/logo.1eda11d6.png +0 -0
  13. package/dist/img/network-dark.11a147bb.png +0 -0
  14. package/dist/img/nodata-dark.b0ea0e39.png +0 -0
  15. package/dist/img/qrcode2.0a9d9044.png +0 -0
  16. package/dist/img/wait-dark.6aa28731.png +0 -0
  17. package/dist/index.html +1 -0
  18. package/dist/js/chunk-1952c402.c58ecfb5.js +1 -0
  19. package/dist/js/chunk-2d2183be.2a64419d.js +1 -0
  20. package/dist/js/chunk-6a5c6104.c8fa5635.js +1 -0
  21. package/dist/js/chunk-vendors.490b7673.js +37 -0
  22. package/dist/js/sites.5a217467.js +1 -0
  23. package/package.json +3 -3
  24. package/dist/components/actionbar/actionbar-cell/index.vue +0 -34
  25. package/dist/components/actionbar/index.js +0 -8
  26. package/dist/components/actionbar/index.vue +0 -39
  27. package/dist/components/actionbar/style.less +0 -48
  28. package/dist/components/actions-cell/actions/index.js +0 -7
  29. package/dist/components/actions-cell/actions/index.vue +0 -68
  30. package/dist/components/actions-cell/actions/style.less +0 -94
  31. package/dist/components/actions-cell/index.js +0 -7
  32. package/dist/components/actions-cell/index.vue +0 -94
  33. package/dist/components/actions-cell/style.less +0 -39
  34. package/dist/components/activityviews/index.js +0 -8
  35. package/dist/components/activityviews/index.vue +0 -107
  36. package/dist/components/activityviews/style.less +0 -152
  37. package/dist/components/badge/index.js +0 -8
  38. package/dist/components/badge/index.vue +0 -49
  39. package/dist/components/badge/style.less +0 -66
  40. package/dist/components/button/index.js +0 -8
  41. package/dist/components/button/index.vue +0 -89
  42. package/dist/components/button/style.less +0 -563
  43. package/dist/components/calendar/end.png +0 -0
  44. package/dist/components/calendar/index-element.vue +0 -84
  45. package/dist/components/calendar/index.js +0 -8
  46. package/dist/components/calendar/index.vue +0 -52
  47. package/dist/components/calendar/start.png +0 -0
  48. package/dist/components/calendar/style.less +0 -167
  49. package/dist/components/checkbox/assist.js +0 -34
  50. package/dist/components/checkbox/checkbox-group/index.js +0 -8
  51. package/dist/components/checkbox/checkbox-group/index.vue +0 -69
  52. package/dist/components/checkbox/index.js +0 -8
  53. package/dist/components/checkbox/index.vue +0 -184
  54. package/dist/components/checkbox/style.less +0 -289
  55. package/dist/components/common/state/index.vue +0 -80
  56. package/dist/components/data-list/index.js +0 -10
  57. package/dist/components/data-list/index.vue +0 -19
  58. package/dist/components/data-list/style.less +0 -624
  59. package/dist/components/datetime-picker/index.js +0 -8
  60. package/dist/components/datetime-picker/index.vue +0 -37
  61. package/dist/components/datetime-picker/style.less +0 -24
  62. package/dist/components/dialog/index copy.vue +0 -112
  63. package/dist/components/dialog/index.js +0 -8
  64. package/dist/components/dialog/index.vue +0 -112
  65. package/dist/components/dialog/style.less +0 -122
  66. package/dist/components/divider/index.js +0 -8
  67. package/dist/components/divider/index.vue +0 -54
  68. package/dist/components/divider/style.less +0 -92
  69. package/dist/components/dropdown/index.js +0 -8
  70. package/dist/components/dropdown/index.vue +0 -210
  71. package/dist/components/dropdown/style.less +0 -402
  72. package/dist/components/empty/empty-404.png +0 -0
  73. package/dist/components/empty/empty-img.png +0 -0
  74. package/dist/components/empty/empty-network.png +0 -0
  75. package/dist/components/empty/index.js +0 -8
  76. package/dist/components/empty/index.vue +0 -65
  77. package/dist/components/empty/style.less +0 -53
  78. package/dist/components/footer/index.js +0 -7
  79. package/dist/components/footer/index.vue +0 -29
  80. package/dist/components/footer/style.less +0 -22
  81. package/dist/components/footnav/footnav-item/index.js +0 -7
  82. package/dist/components/footnav/footnav-item/index.vue +0 -75
  83. package/dist/components/footnav/footnav-item/style.less +0 -39
  84. package/dist/components/footnav/index.js +0 -7
  85. package/dist/components/footnav/index.vue +0 -82
  86. package/dist/components/footnav/style.less +0 -22
  87. package/dist/components/form/index.js +0 -7
  88. package/dist/components/form/index.vue +0 -12
  89. package/dist/components/headnav/index.js +0 -7
  90. package/dist/components/headnav/index.vue +0 -139
  91. package/dist/components/headnav/style.less +0 -232
  92. package/dist/components/icon/font/iconfont.css +0 -817
  93. package/dist/components/icon/font/iconfont.js +0 -2
  94. package/dist/components/icon/index.js +0 -9
  95. package/dist/components/icon/index.vue +0 -46
  96. package/dist/components/icon/style.less +0 -44
  97. package/dist/components/input/calcTextareaHeight.js +0 -266
  98. package/dist/components/input/index.js +0 -8
  99. package/dist/components/input/index.vue +0 -343
  100. package/dist/components/input/password/index.js +0 -8
  101. package/dist/components/input/password/index.vue +0 -60
  102. package/dist/components/input/search/index.js +0 -8
  103. package/dist/components/input/search/index.vue +0 -66
  104. package/dist/components/input/stepper/index.js +0 -8
  105. package/dist/components/input/stepper/index.vue +0 -136
  106. package/dist/components/input/style.less +0 -496
  107. package/dist/components/list/index.js +0 -8
  108. package/dist/components/list/index.vue +0 -159
  109. package/dist/components/list/style.less +0 -292
  110. package/dist/components/loading/index.js +0 -7
  111. package/dist/components/loading/index.vue +0 -53
  112. package/dist/components/loading/loading.png +0 -0
  113. package/dist/components/loading/refresh.png +0 -0
  114. package/dist/components/loading/style.less +0 -48
  115. package/dist/components/mixins/clickoutside.js +0 -81
  116. package/dist/components/mixins/dom.js +0 -41
  117. package/dist/components/mixins/languageMixin.js +0 -38
  118. package/dist/components/mixins/outlineConfigPlugin.js +0 -40
  119. package/dist/components/mixins/router-link.js +0 -23
  120. package/dist/components/noticebar/index.js +0 -8
  121. package/dist/components/noticebar/index.vue +0 -246
  122. package/dist/components/noticebar/style.less +0 -309
  123. package/dist/components/overlay/index.js +0 -8
  124. package/dist/components/overlay/index.vue +0 -161
  125. package/dist/components/overlay/style.less +0 -23
  126. package/dist/components/pagebreak/index.js +0 -7
  127. package/dist/components/pagebreak/index.vue +0 -60
  128. package/dist/components/pagebreak/style.less +0 -43
  129. package/dist/components/popover/index.js +0 -8
  130. package/dist/components/popover/index.vue +0 -99
  131. package/dist/components/popover/style.less +0 -349
  132. package/dist/components/popover/vue-popover.vue +0 -314
  133. package/dist/components/radio/assist.js +0 -34
  134. package/dist/components/radio/index.js +0 -8
  135. package/dist/components/radio/index.vue +0 -159
  136. package/dist/components/radio/radio-group/index.vue +0 -70
  137. package/dist/components/radio/style.less +0 -297
  138. package/dist/components/result/completed.png +0 -0
  139. package/dist/components/result/error.png +0 -0
  140. package/dist/components/result/index.js +0 -8
  141. package/dist/components/result/index.vue +0 -47
  142. package/dist/components/result/style.less +0 -42
  143. package/dist/components/result/wait.png +0 -0
  144. package/dist/components/selector/index.js +0 -8
  145. package/dist/components/selector/index.vue +0 -124
  146. package/dist/components/selector/style.less +0 -474
  147. package/dist/components/skeleton/index.js +0 -7
  148. package/dist/components/skeleton/index.vue +0 -142
  149. package/dist/components/skeleton/style.less +0 -192
  150. package/dist/components/slider/draggable.js +0 -49
  151. package/dist/components/slider/index.js +0 -7
  152. package/dist/components/slider/index.vue +0 -173
  153. package/dist/components/slider/style.less +0 -95
  154. package/dist/components/slider/utils.js +0 -60
  155. package/dist/components/step/index.js +0 -7
  156. package/dist/components/step/index.vue +0 -48
  157. package/dist/components/step/style.less +0 -59
  158. package/dist/components/step-item/index.js +0 -7
  159. package/dist/components/step-item/index.vue +0 -89
  160. package/dist/components/step-item/style.less +0 -361
  161. package/dist/components/style/index.vue +0 -42
  162. package/dist/components/switch/index.js +0 -8
  163. package/dist/components/switch/index.vue +0 -72
  164. package/dist/components/switch/style.less +0 -54
  165. package/dist/components/tabs/index.js +0 -8
  166. package/dist/components/tabs/index.vue +0 -145
  167. package/dist/components/tabs/style.less +0 -383
  168. package/dist/components/tabs/tab/index.vue +0 -56
  169. package/dist/components/tag/index.js +0 -7
  170. package/dist/components/tag/index.vue +0 -50
  171. package/dist/components/tag/style.less +0 -211
  172. package/dist/components/title/index.js +0 -8
  173. package/dist/components/title/index.vue +0 -92
  174. package/dist/components/title/style.less +0 -188
  175. package/dist/components/toast/index.js +0 -80
  176. package/dist/components/toast/index.vue +0 -44
  177. package/dist/components/toast/style.less +0 -55
  178. package/dist/components/transition/index.js +0 -8
  179. package/dist/components/transition/index.vue +0 -13
  180. package/dist/components/transition/style.less +0 -208
  181. package/dist/components/upload/index.js +0 -7
  182. package/dist/components/upload/index.vue +0 -224
  183. package/dist/components/upload/style.less +0 -156
  184. package/dist/demo.html +0 -10
  185. package/dist/locale/ar.js +0 -98
  186. package/dist/locale/en.js +0 -98
  187. package/dist/locale/zh.js +0 -98
  188. package/dist/token.css +0 -2973
  189. package/dist/vdesign-ui.common.js +0 -26919
  190. package/dist/vdesign-ui.css +0 -1
  191. package/dist/vdesign-ui.umd.js +0 -26929
  192. package/dist/vdesign-ui.umd.min.js +0 -32
@@ -1,53 +0,0 @@
1
- @empty-prefix-cls: vd-empty;
2
-
3
- .@{empty-prefix-cls}{
4
- height: 100%;
5
- margin: 0 auto;
6
- text-align: center;
7
- padding: 0 20px;
8
- display: flex;
9
- flex-direction: column;
10
- justify-content: center;
11
-
12
- &-txt{
13
- margin-block-start: calc(var(--spacing-empty-large-text-margin_top) * 1px);
14
- font-size: calc(var(--en-single-f-d-r-fontSize) * 1px);
15
- font-weight: var(--en-single-f-d-r-fontWeight);
16
- color:var(--color-empty-text);
17
- }
18
- &-footer{
19
- display: flex;
20
- justify-content: center;
21
- margin-block-start: calc(var(--spacing-empty-large-text-margin_bottom) * 1px);
22
- }
23
- &-small
24
- {
25
- &-txt{
26
- margin-block-start: calc(var(--spacing-empty-small-text-margin_top) * 1px);
27
- }
28
- &-footer{
29
- margin-block-start: calc(var(--spacing-empty-small-text-margin_bottom) * 1px);
30
- }
31
- }
32
-
33
- &-card{
34
- height: calc(var(--height-empty-card) * 1px);
35
-
36
- .@{empty-prefix-cls}{
37
- &-img{
38
- display: none;
39
- }
40
-
41
- &-footer{
42
- display: none;
43
- }
44
- }
45
-
46
- &-txt{
47
- margin-block-start: 0;
48
- font-size: calc(var(--en-single-f-c-r-fontSize) * 1px);
49
- font-weight: var(--en-single-f-c-r-fontWeight);
50
- }
51
- }
52
-
53
- }
@@ -1,7 +0,0 @@
1
- import Footer from './index.vue';
2
- import './style.less';
3
- Footer.install = function(Vue) {
4
- Vue.component(Footer.name, Footer)
5
- }
6
-
7
- export default Footer;
@@ -1,29 +0,0 @@
1
- <template>
2
- <div class="vd-footer">
3
- <div class="vd-footer__link" v-if="$slots.default">
4
- <slot>
5
- </slot>
6
- </div>
7
- <p class="vd-footer__text" v-html="text"></p>
8
- </div>
9
- </template>
10
-
11
- <script>
12
- export default {
13
- name: 'vd-footer',
14
- props: {
15
- text: {
16
- type: String,
17
- default: ''
18
- }
19
-
20
- },
21
- computed: {
22
-
23
- }
24
- }
25
- </script>
26
-
27
- <style lang="less">
28
- @import './style.less';
29
- </style>
@@ -1,22 +0,0 @@
1
- @footer-prefix-cls: vd-footer;
2
-
3
-
4
- .@{footer-prefix-cls}{
5
- display: flex;
6
- align-items: center;
7
- flex-direction: column;
8
- justify-content: center;
9
- padding: calc(var(--spacing-footer-padding_top) * 1px) 0 calc(var(--spacing-footer-padding_bottom) * 1px);
10
-
11
- &__link{
12
- display: flex;
13
- align-items: center;
14
- margin-block-end: calc(var(--spacing-footer-link-margin_bottom) * 1px);
15
- }
16
-
17
- &__text{
18
- font-size: calc(var(--en-single-f-b-r-fontSize) * 1px);
19
- font-weight: var(--en-single-f-b-r-fontWeight);
20
- color: var(--text-color-h2);
21
- }
22
- }
@@ -1,7 +0,0 @@
1
- import FootNavItem from './index.vue';
2
- import './style.less';
3
- FootNavItem.install = function(Vue) {
4
- Vue.component(FootNavItem.name, FootNavItem)
5
- }
6
-
7
- export default FootNavItem;
@@ -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,82 +0,0 @@
1
- <template>
2
- <div class="vd-foot-nav"
3
- :class="{ 'vd-foot-nav--fixed': fixed, 'vd-hairline--top': border, 'vd-foot-nav--unfit': !this.fit }"
4
- :style="style">
5
- <slot></slot>
6
- </div>
7
- </template>
8
-
9
- <script>
10
- export default {
11
- name: 'vd-foot-nav',
12
- props: {
13
- value: Number,
14
- fixed: {
15
- type: Boolean,
16
- default: true
17
- },
18
- border: {
19
- type: Boolean,
20
- default: true
21
- },
22
- zIndex: [Number, String],
23
- safeAreaInsetBottom: {
24
- type: Boolean,
25
- default: null,
26
- },
27
- },
28
- computed: {
29
- fit() {
30
- if (this.safeAreaInsetBottom !== null) {
31
- return this.safeAreaInsetBottom;
32
- }
33
- // enable safe-area-inset-bottom by default when fixed
34
- return this.fixed;
35
- },
36
- style() {
37
- return {
38
- zIndex: this.zIndex
39
- };
40
- }
41
- },
42
- data() {
43
- return {
44
- // active: 0,
45
- items: []
46
- }
47
- },
48
- watch: {
49
- items() {
50
- this.setActiveItem();
51
- },
52
-
53
- value() {
54
- this.setActiveItem();
55
- }
56
- },
57
- methods: {
58
- setActiveItem() {
59
- this.items.forEach((item, index) => {
60
- item.active = index === this.value;
61
- });
62
- },
63
-
64
- onChange(active) {
65
- if (active !== this.value) {
66
- this.$emit('input', active);
67
- this.$emit('change', active);
68
- }
69
- },
70
- // updateActive(index) {
71
- // this.active = index;
72
- // },
73
- // handleClick() {
74
- // this.$emit('click',this.active)
75
- // }
76
- }
77
- }
78
- </script>
79
-
80
- <style lang="less">
81
- @import './style.less';
82
- </style>
@@ -1,22 +0,0 @@
1
-
2
- @footnav-prefix-cls: vd-foot-nav;
3
-
4
- .@{footnav-prefix-cls}{
5
- width: 100%;
6
- z-index: 1;
7
- display: flex;
8
- padding: 4px calc(var(--spacing-footnav-icon-margin_bottom) * 1px);
9
- height: calc(var(--height-footnav-content) * 1px);
10
- background-color: var(--color-footnav-bg);
11
- padding-bottom: constant(safe-area-inset-bottom);
12
- padding-bottom: env(safe-area-inset-bottom);
13
-
14
- &--fixed{
15
- position: fixed;
16
- bottom: 0;
17
- left: 0;
18
- }
19
- &--unfit {
20
- padding-bottom: 0;
21
- }
22
- }
@@ -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,139 +0,0 @@
1
- <template>
2
- <div class="vd-head-nav" :class="wrapClasses">
3
-
4
- <div v-if="showLeftSection" class="vd-head-nav--left">
5
-
6
- <span v-if="showSidebar" class="vd-head-nav__icon">
7
- <slot name="left-primary">
8
- <vd-icon name="icon_nav_sidebar"></vd-icon>
9
- </slot>
10
- </span>
11
-
12
- <span v-if="$slots['left-secondary']" class="vd-head-nav__icon">
13
- <slot name="left-secondary"></slot>
14
- </span>
15
- <span v-if="leftTitle" class="vd-head-nav__left-title">{{ leftTitle }}</span>
16
- <span v-if="editLeftText" class="vd-head-nav__edit-left-text">{{ editLeftText }}</span>
17
- </div>
18
-
19
- <div v-if="showContentSection" class="vd-head-nav__content" :class="contentClasses">
20
- <div v-if="$slots.selector" class="vd-head-nav__content--selector">
21
- <slot name="selector"></slot>
22
- </div>
23
-
24
- <span v-if="title" class="vd-head-nav__title vd-ellipsis" :class="titleClasses">{{ title }}</span>
25
- <span v-if="description" class="vd-head-nav__description">{{ description }}</span>
26
-
27
- <span class="vd-head-nav__stock" :class="stockColor" v-if="colors">
28
- <slot name="state"></slot>
29
- <span class="vd-head-nav__price--price">{{ price }}</span>
30
- <span class="vd-head-nav__price--chgp">{{ chgp }}</span>
31
- <span class="vd-head-nav__price--chg">{{ chg }}</span>
32
- </span>
33
-
34
- <slot name="selector-bottom"></slot>
35
-
36
- <span v-if="accountIcon || accountType" class="vd-head-nav__icontype">
37
- <vd-icon svg :name="accountIcon" class="vd-head-nav__account-type--icon"></vd-icon>
38
- <span class="vd-head-nav__account-type">{{ accountType }}</span>
39
- </span>
40
- </div>
41
-
42
- <div class="vd-head-nav--right" v-if="showRightSection">
43
- <span v-if="rightSecondary || $slots['right-secondary']" class="vd-head-nav__icon">
44
- <slot name="right-secondary">
45
- <vd-icon name="icon_nav_search" style="transform: scale(1);"></vd-icon>
46
- </slot>
47
- </span>
48
-
49
- <span v-if="rightPrimary || $slots['right-primary']" class="vd-head-nav__icon">
50
- <slot name="right-primary">
51
- <vd-icon name="icon_nav_trade" style="transform: scale(1);"></vd-icon>
52
- </slot>
53
- </span>
54
-
55
- <span class="vd-head-nav__edit-right-text" v-if="editRightText">{{ editRightText }}</span>
56
- <span class="vd-head-nav__account-text" v-if="accountText">{{ accountText }}</span>
57
- </div>
58
-
59
- <div class="vd-head-nav__info" v-if="$slots['stock-time'] || time">
60
- <slot name="stock-time"></slot>
61
- <span v-if="time" class="vd-head-nav__time">{{ time }}</span>
62
- </div>
63
- </div>
64
- </template>
65
-
66
- <script>
67
-
68
- const prefixCls = 'vd-head-nav';
69
- export default {
70
- name: 'vd-head-nav',
71
- props: {
72
- title: String,
73
- time: String,
74
- type: String,
75
- leftPrimary: Boolean,
76
- rightPrimary: Boolean,
77
- rightSecondary: Boolean,
78
- start: Boolean,
79
- description: String,
80
- price: String,
81
- chg: String,
82
- chgp: String,
83
- colors: String,
84
- leftTitle: String,
85
- editLeftText: String,
86
- editRightText: String,
87
- accountText: String,
88
- accountType: String,
89
- accountIcon: String,
90
- },
91
- computed: {
92
- wrapClasses() {
93
- return [
94
- {
95
- [`${prefixCls}--${this.type}`]: this.type,
96
- }
97
- ]
98
- },
99
- contentClasses() {
100
- return [
101
- {
102
- 'vd-head-nav__content--start': this.start,
103
- }
104
- ];
105
- },
106
- titleClasses() {
107
- return [
108
- {
109
- [`${prefixCls}__title--normal`]: this.type,
110
- }
111
- ]
112
- },
113
- stockColor() {
114
- return [
115
- {
116
- [`${prefixCls}__stock--${this.colors}`]: this.colors,
117
-
118
- }
119
- ]
120
- },
121
- showSidebar() {
122
- return this.leftPrimary || this.$slots['left-primary'];
123
- },
124
- showLeftSection() {
125
- return this.showSidebar || this.$slots['left-secondary'] || this.leftTitle || this.editLeftText;
126
- },
127
- showContentSection() {
128
- return this.title || this.$slots.selector || this.$slots['selector-bottom'] || this.account || this.colors;
129
- },
130
- showRightSection() {
131
- return this.rightPrimary || this.$slots['right-primary'] || this.rightSecondary || this.$slots['right-secondary'] || this.editRightText || this.accountText;
132
- }
133
- }
134
- }
135
- </script>
136
-
137
- <style lang="less">
138
- @import './style.less';
139
- </style>