vdesign-ui 0.1.8 → 0.1.10

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 (165) hide show
  1. package/dist/components/actionbar/actionbar-cell/index.vue +34 -0
  2. package/dist/components/actionbar/index.js +8 -0
  3. package/dist/components/actionbar/index.vue +39 -0
  4. package/dist/components/actionbar/style.less +48 -0
  5. package/dist/components/actions-cell/actions/index.js +7 -0
  6. package/dist/components/actions-cell/actions/index.vue +67 -0
  7. package/dist/components/actions-cell/actions/style.less +75 -0
  8. package/dist/components/actions-cell/index.js +7 -0
  9. package/dist/components/actions-cell/index.vue +94 -0
  10. package/dist/components/actions-cell/style.less +39 -0
  11. package/dist/components/activityviews/index.js +8 -0
  12. package/dist/components/activityviews/index.vue +110 -0
  13. package/dist/components/activityviews/style.less +146 -0
  14. package/dist/components/badge/index.js +8 -0
  15. package/dist/components/badge/index.vue +49 -0
  16. package/dist/components/badge/style.less +66 -0
  17. package/dist/components/button/index.js +8 -0
  18. package/dist/components/button/index.vue +89 -0
  19. package/dist/components/button/style.less +563 -0
  20. package/dist/components/calendar/end.png +0 -0
  21. package/dist/components/calendar/index-element.vue +84 -0
  22. package/dist/components/calendar/index.js +8 -0
  23. package/dist/components/calendar/index.vue +52 -0
  24. package/dist/components/calendar/start.png +0 -0
  25. package/dist/components/calendar/style.less +167 -0
  26. package/dist/components/checkbox/assist.js +34 -0
  27. package/dist/components/checkbox/checkbox-group/index.js +8 -0
  28. package/dist/components/checkbox/checkbox-group/index.vue +69 -0
  29. package/dist/components/checkbox/index.js +8 -0
  30. package/dist/components/checkbox/index.vue +184 -0
  31. package/dist/components/checkbox/style.less +289 -0
  32. package/dist/components/common/state/index.vue +80 -0
  33. package/dist/components/data-list/index.js +10 -0
  34. package/dist/components/data-list/index.vue +19 -0
  35. package/dist/components/data-list/style.less +624 -0
  36. package/dist/components/datetime-picker/index.js +8 -0
  37. package/dist/components/datetime-picker/index.vue +37 -0
  38. package/dist/components/datetime-picker/style.less +25 -0
  39. package/dist/components/dialog/index copy.vue +112 -0
  40. package/dist/components/dialog/index.js +8 -0
  41. package/dist/components/dialog/index.vue +111 -0
  42. package/dist/components/dialog/style.less +122 -0
  43. package/dist/components/divider/index.js +8 -0
  44. package/dist/components/divider/index.vue +54 -0
  45. package/dist/components/divider/style.less +92 -0
  46. package/dist/components/dropdown/index.js +8 -0
  47. package/dist/components/dropdown/index.vue +210 -0
  48. package/dist/components/dropdown/style.less +402 -0
  49. package/dist/components/empty/empty-404.png +0 -0
  50. package/dist/components/empty/empty-img.png +0 -0
  51. package/dist/components/empty/empty-network.png +0 -0
  52. package/dist/components/empty/index.js +8 -0
  53. package/dist/components/empty/index.vue +65 -0
  54. package/dist/components/empty/style.less +53 -0
  55. package/dist/components/footer/index.js +7 -0
  56. package/dist/components/footer/index.vue +29 -0
  57. package/dist/components/footer/style.less +22 -0
  58. package/dist/components/footnav/footnav-item/index.js +7 -0
  59. package/dist/components/footnav/footnav-item/index.vue +75 -0
  60. package/dist/components/footnav/footnav-item/style.less +38 -0
  61. package/dist/components/footnav/index.js +7 -0
  62. package/dist/components/footnav/index.vue +82 -0
  63. package/dist/components/footnav/style.less +22 -0
  64. package/dist/components/form/index.js +7 -0
  65. package/dist/components/form/index.vue +12 -0
  66. package/dist/components/headnav/index.js +7 -0
  67. package/dist/components/headnav/index.vue +139 -0
  68. package/dist/components/headnav/style.less +232 -0
  69. package/dist/components/icon/font/iconfont.css +817 -0
  70. package/dist/components/icon/font/iconfont.js +2 -0
  71. package/dist/components/icon/index.js +9 -0
  72. package/dist/components/icon/index.vue +46 -0
  73. package/dist/components/icon/style.less +44 -0
  74. package/dist/components/input/calcTextareaHeight.js +266 -0
  75. package/dist/components/input/index.js +8 -0
  76. package/dist/components/input/index.vue +338 -0
  77. package/dist/components/input/password/index.js +8 -0
  78. package/dist/components/input/password/index.vue +60 -0
  79. package/dist/components/input/search/index.js +8 -0
  80. package/dist/components/input/search/index.vue +64 -0
  81. package/dist/components/input/stepper/index.js +8 -0
  82. package/dist/components/input/stepper/index.vue +136 -0
  83. package/dist/components/input/style.less +482 -0
  84. package/dist/components/list/index.js +8 -0
  85. package/dist/components/list/index.vue +159 -0
  86. package/dist/components/list/style.less +290 -0
  87. package/dist/components/loading/index.js +7 -0
  88. package/dist/components/loading/index.vue +53 -0
  89. package/dist/components/loading/loading.png +0 -0
  90. package/dist/components/loading/refresh.png +0 -0
  91. package/dist/components/loading/style.less +48 -0
  92. package/dist/components/mixins/clickoutside.js +81 -0
  93. package/dist/components/mixins/dom.js +41 -0
  94. package/dist/components/mixins/languageMixin.js +38 -0
  95. package/dist/components/mixins/outlineConfigPlugin.js +40 -0
  96. package/dist/components/mixins/router-link.js +23 -0
  97. package/dist/components/noticebar/index.js +8 -0
  98. package/dist/components/noticebar/index.vue +246 -0
  99. package/dist/components/noticebar/style.less +309 -0
  100. package/dist/components/overlay/index.js +8 -0
  101. package/dist/components/overlay/index.vue +161 -0
  102. package/dist/components/overlay/style.less +23 -0
  103. package/dist/components/pagebreak/index.js +7 -0
  104. package/dist/components/pagebreak/index.vue +60 -0
  105. package/dist/components/pagebreak/style.less +43 -0
  106. package/dist/components/popover/index.js +8 -0
  107. package/dist/components/popover/index.vue +99 -0
  108. package/dist/components/popover/style.less +349 -0
  109. package/dist/components/popover/vue-popover.vue +314 -0
  110. package/dist/components/radio/assist.js +34 -0
  111. package/dist/components/radio/index.js +8 -0
  112. package/dist/components/radio/index.vue +159 -0
  113. package/dist/components/radio/radio-group/index.vue +70 -0
  114. package/dist/components/radio/style.less +297 -0
  115. package/dist/components/result/completed.png +0 -0
  116. package/dist/components/result/error.png +0 -0
  117. package/dist/components/result/index.js +8 -0
  118. package/dist/components/result/index.vue +47 -0
  119. package/dist/components/result/style.less +42 -0
  120. package/dist/components/result/wait.png +0 -0
  121. package/dist/components/selector/index.js +8 -0
  122. package/dist/components/selector/index.vue +124 -0
  123. package/dist/components/selector/style.less +474 -0
  124. package/dist/components/skeleton/index.js +7 -0
  125. package/dist/components/skeleton/index.vue +134 -0
  126. package/dist/components/skeleton/style.less +192 -0
  127. package/dist/components/slider/draggable.js +49 -0
  128. package/dist/components/slider/index.js +7 -0
  129. package/dist/components/slider/index.vue +173 -0
  130. package/dist/components/slider/style.less +95 -0
  131. package/dist/components/slider/utils.js +60 -0
  132. package/dist/components/step/index.js +7 -0
  133. package/dist/components/step/index.vue +48 -0
  134. package/dist/components/step/style.less +59 -0
  135. package/dist/components/step-item/index.js +7 -0
  136. package/dist/components/step-item/index.vue +89 -0
  137. package/dist/components/step-item/style.less +361 -0
  138. package/dist/components/style/index.vue +42 -0
  139. package/dist/components/switch/index.js +8 -0
  140. package/dist/components/switch/index.vue +72 -0
  141. package/dist/components/switch/style.less +54 -0
  142. package/dist/components/tabs/index.js +8 -0
  143. package/dist/components/tabs/index.vue +185 -0
  144. package/dist/components/tabs/style.less +383 -0
  145. package/dist/components/tabs/tab/index.vue +52 -0
  146. package/dist/components/tag/index.js +7 -0
  147. package/dist/components/tag/index.vue +50 -0
  148. package/dist/components/tag/style.less +211 -0
  149. package/dist/components/title/index.js +8 -0
  150. package/dist/components/title/index.vue +92 -0
  151. package/dist/components/title/style.less +188 -0
  152. package/dist/components/toast/index.js +80 -0
  153. package/dist/components/toast/index.vue +44 -0
  154. package/dist/components/toast/style.less +55 -0
  155. package/dist/components/transition/index.js +8 -0
  156. package/dist/components/transition/index.vue +13 -0
  157. package/dist/components/transition/style.less +208 -0
  158. package/dist/components/upload/index.js +7 -0
  159. package/dist/components/upload/index.vue +224 -0
  160. package/dist/components/upload/style.less +156 -0
  161. package/dist/vdesign-ui.common.js +214 -268
  162. package/dist/vdesign-ui.css +1 -1
  163. package/dist/vdesign-ui.umd.js +214 -268
  164. package/dist/vdesign-ui.umd.min.js +3 -3
  165. package/package.json +1 -1
@@ -0,0 +1,53 @@
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
+ }
@@ -0,0 +1,7 @@
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;
@@ -0,0 +1,29 @@
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>
@@ -0,0 +1,22 @@
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-h3);
21
+ }
22
+ }
@@ -0,0 +1,7 @@
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;
@@ -0,0 +1,75 @@
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>
@@ -0,0 +1,38 @@
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
+ }
17
+
18
+ &:active {
19
+ border-color: transparent;
20
+ background-color: transparent;
21
+ color: var(--color-button-border-text-press);
22
+ }
23
+
24
+ &--active {
25
+ color: var(--color-footnav-text-active);
26
+
27
+ .vd-iconfont {
28
+ color: var(--color-footnav-text-active);
29
+ }
30
+ }
31
+
32
+ .vd-badge {
33
+ .is-fixed {
34
+ top: 4px;
35
+ right: 4px;
36
+ }
37
+ }
38
+ }
@@ -0,0 +1,7 @@
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;
@@ -0,0 +1,82 @@
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>
@@ -0,0 +1,22 @@
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
+ }
@@ -0,0 +1,7 @@
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;
@@ -0,0 +1,12 @@
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>
@@ -0,0 +1,7 @@
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;
@@ -0,0 +1,139 @@
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>