1234567891011121314151617181920212223242526272829303132333435 |
- <template>
- <fr-svg @click="onClick" :uuid="`fr-icon-disabled-picture-${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="M44 23.999C44 22.8945 43.1046 21.999 42 21.999C40.8954 21.999 40 22.8945 40 23.999H44ZM24 7.99902C25.1046 7.99902 26 7.10359 26 5.99902C26 4.89445 25.1046 3.99902 24 3.99902V7.99902ZM39 39.999H9V43.999H39V39.999ZM8 38.999V8.99902H4V38.999H8ZM40 23.999V38.999H44V23.999H40ZM9 7.99902H24V3.99902H9V7.99902ZM9 39.999C8.44772 39.999 8 39.5513 8 38.999H4C4 41.7604 6.23857 43.999 9 43.999V39.999ZM39 43.999C41.7614 43.999 44 41.7604 44 38.999H40C40 39.5513 39.5523 39.999 39 39.999V43.999ZM8 8.99902C8 8.44674 8.44771 7.99902 9 7.99902V3.99902C6.23858 3.99902 4 6.2376 4 8.99902H8Z" fill="${this.colors(0)}"/><path d="M6 35L16.6931 25.198C17.4389 24.5143 18.5779 24.4953 19.3461 25.1538L32 36" stroke="${this.colors(0)}" stroke-width="${this.strokeWidth}" stroke-linecap="${this.strokeLinecap}" stroke-linejoin="${this.strokeLinejoin}"/><path d="M28 31L32.7735 26.2265C33.4772 25.5228 34.5914 25.4436 35.3877 26.0408L42 31" stroke="${this.colors(0)}" stroke-width="${this.strokeWidth}" stroke-linecap="${this.strokeLinecap}" stroke-linejoin="${this.strokeLinejoin}"/><circle cx="36" cy="12" r="6" stroke="${this.colors(0)}" stroke-width="${this.strokeWidth}"/><path d="M32 8L40 16" stroke="${this.colors(0)}" stroke-width="${this.strokeWidth}" stroke-linecap="${this.strokeLinecap}" stroke-linejoin="${this.strokeLinejoin}"/></svg>`
- }
- }
- }
- </script>
|