赞
踩
- :class="[
- 'submit-btn',
- activeCss,
- {
- 'hidden-btn': (fullState == 4 && isEdite),
- },
- ]"
-
-
- <div :class="['tag', activeTag]">
-
-
-
-
-
- computed: {
- activeTag() {
- if (this.fullState == 3) {
- return 'yellow-btn'
- } else {
- return 'gray-btn'
- }
- },
- activeCss() {
- if (this.fullState == 3 && !this.limited && this.audience) {
- return 'yellow-btn'
- } else {
- return 'gray-btn'
- }
- },
- },
-
-
- 然后在css中
- .gray-btn {
- color: #666666;
- background: #ececec;
- }
- .yellow-btn {
- color: #ffffff;
- background: #ffaa1e;
- }
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。