1234567891011121314151617181920212223242526272829303132333435 |
- <template>
- <fr-svg @click="onClick" :uuid="`fr-icon-geometric-flowers-${size}${strokeWidth}${theme}${fill}${strokeLinecap}${strokeLinejoin}`" :width="size" :height="size" :isCache="true" :src="iconSvg" />
- </template>
- <script>
- // #ifdef UNI-APP-X
- import icons from "../../mixins/icons.uts";
- // #endif
- // #ifndef UNI-APP-X
- import icons from "../../mixins/icons.js";
- // #endif
- /**
- * @description 《几何花》图标
- * @tutorial https://www.flowerui.com/documents/flower-icons/icons.html
- * @property {Number} size 图标大小
- * @property {Number} strokeWidth 线段粗细
- * @property {String} theme 图标大小
- * @property {Array} fill 图标颜色,["外部描边颜色","外部填充颜色","内部描边颜色","内部填充颜色"]
- * @property {String} strokeLinecap 图标大小
- * @property {String} strokeLinejoin 图标大小
- * @event {Function} click 图标点击事件
- */
- export default {
- mixins: [icons],
- computed: {
- // #ifdef UNI-APP-X
- iconSvg(): string {
- // #endif
- // #ifndef UNI-APP-X
- iconSvg() {
- // #endif
- 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>`
- }
- }
- }
- </script>
|