项目原始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.
 
 
 
 

23 rivejä
478 B

  1. import Vue from 'vue';
  2. export default Vue.extend({
  3. name: 'elevatable',
  4. props: {
  5. elevation: [Number, String]
  6. },
  7. computed: {
  8. computedElevation() {
  9. return this.elevation;
  10. },
  11. elevationClasses() {
  12. const elevation = this.computedElevation;
  13. if (elevation == null) return {};
  14. if (isNaN(parseInt(elevation))) return {};
  15. return {
  16. [`elevation-${this.elevation}`]: true
  17. };
  18. }
  19. }
  20. });
  21. //# sourceMappingURL=index.js.map