fr-icon-geometric-flowers.vue 2.6 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <template>
  2. <fr-svg @click="onClick" :uuid="`fr-icon-geometric-flowers-${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="M28.3117 27.8317C31.6858 24.4575 29.5584 16.8596 23.5599 10.8611C17.5615 4.86265 9.96351 2.73522 6.58938 6.10935C3.21525 9.48348 5.34269 17.0815 11.3411 23.0799C17.3396 29.0784 24.9376 31.2058 28.3117 27.8317Z" stroke="${this.colors(0)}" stroke-width="${this.strokeWidth}" stroke-linecap="${this.strokeLinecap}" stroke-linejoin="${this.strokeLinejoin}"/><path d="M28.3117 19.2621C31.6858 22.6362 29.5584 30.2342 23.56 36.2326C17.5615 42.2311 9.96352 44.3585 6.58938 40.9844C3.21525 37.6103 5.34269 30.0123 11.3411 24.0138C17.3396 18.0154 24.9376 15.8879 28.3117 19.2621Z" stroke="${this.colors(0)}" stroke-width="${this.strokeWidth}" stroke-linecap="${this.strokeLinecap}" stroke-linejoin="${this.strokeLinejoin}"/><path d="M19.6883 27.8317C16.3142 24.4575 18.4416 16.8596 24.44 10.8611C30.4385 4.86265 38.0365 2.73522 41.4106 6.10935C44.7847 9.48348 42.6573 17.0815 36.6589 23.0799C30.6604 29.0784 23.0624 31.2058 19.6883 27.8317Z" stroke="${this.colors(0)}" stroke-width="${this.strokeWidth}" stroke-linecap="${this.strokeLinecap}" stroke-linejoin="${this.strokeLinejoin}"/><path d="M19.6883 19.2621C16.3142 22.6362 18.4416 30.2342 24.4401 36.2326C30.4385 42.2311 38.0365 44.3585 41.4106 40.9844C44.7847 37.6103 42.6573 30.0123 36.6589 24.0138C30.6604 18.0154 23.0624 15.888 19.6883 19.2621Z" stroke="${this.colors(0)}" stroke-width="${this.strokeWidth}" stroke-linecap="${this.strokeLinecap}" stroke-linejoin="${this.strokeLinejoin}"/></svg>`
  32. }
  33. }
  34. }
  35. </script>