项目原始demo,不改动
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

123456789101112131415161718192021222324252627
  1. import Vue from 'vue';
  2. export default Vue.extend({
  3. name: 'sizeable',
  4. props: {
  5. large: Boolean,
  6. small: Boolean,
  7. xLarge: Boolean,
  8. xSmall: Boolean
  9. },
  10. computed: {
  11. medium() {
  12. return Boolean(!this.xSmall && !this.small && !this.large && !this.xLarge);
  13. },
  14. sizeableClasses() {
  15. return {
  16. 'v-size--x-small': this.xSmall,
  17. 'v-size--small': this.small,
  18. 'v-size--default': this.medium,
  19. 'v-size--large': this.large,
  20. 'v-size--x-large': this.xLarge
  21. };
  22. }
  23. }
  24. });
  25. //# sourceMappingURL=index.js.map