1234567891011121314151617181920212223242526272829303132333435 |
- <template>
- <fr-svg @click="onClick" :uuid="`fr-icon-spider-man-${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="M33 23.9995C36.5 26.9995 37.6128 32.4456 35.8821 36.4839C34.1514 40.5222 30.1131 43.9836 25.498 44.5605C20.8828 45.1374 16.2676 41.676 15.1138 40.5222C14.6703 40.0788 14.2979 39.6176 14.0092 39.2154C13.5842 38.6231 13.6367 37.8375 14.1267 37.2978C14.992 36.3444 16.4951 35.0295 17.9983 35.3301C20.8828 35.907 21.9663 36.908 24.3442 35.907C26.5 34.9995 27.2286 33.0225 27.2286 31.2919C27.2286 29.5612 26.0748 27.8305 23.7673 27.2536C21.4597 26.6767 19.1521 27.8305 18.5752 29.5612C17.9983 31.2919 18.5752 32.4457 16.8445 33.5994C16.2574 33.9908 15.4421 34.3615 14.6977 34.6586C13.6689 35.0692 12.5487 34.4604 12.4644 33.3559C12.2869 31.0325 12.7115 27.6915 15.1138 24.946C16.3596 23.5221 17.5251 22.5536 18.5752 21.895" stroke="${this.colors(0)}" stroke-width="${this.strokeWidth}" stroke-linecap="${this.strokeLinecap}" stroke-linejoin="${this.strokeLinejoin}"/><path d="M33 23.9998L23.1278 4.24016C22.898 3.78013 22.3519 3.56306 21.906 3.81927C20.8651 4.41745 19.6469 5.54195 20.0427 7.28675C20.5532 9.53717 23.5802 20.0483 24.999 22.9998" stroke="${this.colors(0)}" stroke-width="${this.strokeWidth}" stroke-linecap="${this.strokeLinecap}" stroke-linejoin="${this.strokeLinejoin}"/><path d="M22.499 16.9995L15.6298 10.4797C15.2688 10.1371 14.7044 10.1073 14.3647 10.4711C13.5429 11.3514 12.6906 12.8039 13.6013 14.3662C14.7635 16.3598 17.7611 20.6098 20 22.9995" stroke="${this.colors(0)}" stroke-width="${this.strokeWidth}" stroke-linecap="${this.strokeLinecap}" stroke-linejoin="${this.strokeLinejoin}"/></svg>`
- }
- }
- }
- </script>
|