fr-icon-gastrointestinal.vue 2.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <template>
  2. <fr-svg @click="onClick" :uuid="`fr-icon-gastrointestinal-${size}${strokeWidth}${theme}${fill}${strokeLinecap}${strokeLinejoin}`" :width="size" :height="size" :isCache="true" :src="iconSvg" />
  3. </template>
  4. <script>
  5. // #ifdef UNI-APP-X
  6. import icons from "../../mixins/icons.uts";
  7. // #endif
  8. // #ifndef UNI-APP-X
  9. import icons from "../../mixins/icons.js";
  10. // #endif
  11. /**
  12. * @description 《肠胃》图标
  13. * @tutorial https://www.flowerui.com/documents/flower-icons/icons.html
  14. * @property {Number} size 图标大小
  15. * @property {Number} strokeWidth 线段粗细
  16. * @property {String} theme 图标大小
  17. * @property {Array} fill 图标颜色,["外部描边颜色","外部填充颜色","内部描边颜色","内部填充颜色"]
  18. * @property {String} strokeLinecap 图标大小
  19. * @property {String} strokeLinejoin 图标大小
  20. * @event {Function} click 图标点击事件
  21. */
  22. export default {
  23. mixins: [icons],
  24. computed: {
  25. // #ifdef UNI-APP-X
  26. iconSvg(): string {
  27. // #endif
  28. // #ifndef UNI-APP-X
  29. iconSvg() {
  30. // #endif
  31. return `<?xml version="1.0" encoding="UTF-8"?><svg width="${this.size}" height="${this.size}" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M22.9999 5C21.8537 9.46023 21.8537 12.7727 22.9999 14.9375C24.719 18.1847 28.7 19.9804 23.5741 24.3115C18.4482 28.6427 13.2512 25.0083 10.0425 25.0083C6.83388 25.0083 4.02246 28.6213 4.02246 34C4.02246 37.5858 4.68159 40.5858 5.99986 43" stroke="${this.colors(0)}" stroke-width="${this.strokeWidth}" stroke-linecap="${this.strokeLinecap}" stroke-linejoin="${this.strokeLinejoin}"/><path d="M29.9842 5C28.5428 10.329 28.8711 13.7087 30.9694 15.1393C34.1168 17.2851 34.358 12.8036 40.141 15.4699C45.924 18.1363 44.4204 27.4311 41.0941 32.2156C37.7677 37 30.6675 41.8347 24.0084 41C17.3493 40.1653 14.8733 32.0201 14.0161 32.0201C13.159 32.0201 11.3479 32.0455 10.9943 35.4172C10.7585 37.6649 11.4287 40.1926 13.0048 43" stroke="${this.colors(0)}" stroke-width="${this.strokeWidth}" stroke-linecap="${this.strokeLinecap}" stroke-linejoin="${this.strokeLinejoin}"/><path d="M35.6447 28.29C35.0666 30.0018 34.09 31.3384 32.7148 32.3C31.3397 33.2615 29.5942 33.8283 27.4785 34.0002" stroke="${this.colors(0)}" stroke-width="${this.strokeWidth}" stroke-linecap="${this.strokeLinecap}"/></svg>`
  32. }
  33. }
  34. }
  35. </script>