tag.js 696 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. Component({
  2. externalClasses: ['tui-tag-class'], //自定义样式
  3. properties: {
  4. // primary, white, danger, warning, green, gray,light-blue,light-brownish,light-orange,light-green
  5. type: {
  6. type: String,
  7. value: 'primary',
  8. },
  9. // '', small
  10. size: {
  11. type: String,
  12. value: '',
  13. },
  14. // circle, square,circleLeft,circleRight
  15. shape: {
  16. type: String,
  17. value: 'square'
  18. },
  19. //是否空心
  20. plain: {
  21. type: Boolean,
  22. value: false
  23. },
  24. //是否可见
  25. visible: {
  26. type: Boolean,
  27. value: true
  28. }
  29. },
  30. data: {
  31. },
  32. methods: {
  33. handleClick() {
  34. this.triggerEvent('click', {});
  35. }
  36. }
  37. })