index.js 433 B

123456789101112131415161718192021
  1. import { VantComponent } from '../common/component';
  2. VantComponent({
  3. props: {
  4. size: String,
  5. mark: Boolean,
  6. color: String,
  7. plain: Boolean,
  8. round: Boolean,
  9. textColor: String,
  10. type: {
  11. type: String,
  12. value: 'default',
  13. },
  14. closeable: Boolean,
  15. },
  16. methods: {
  17. onClose() {
  18. this.$emit('close');
  19. },
  20. },
  21. });