{"code":"import { defineComponent } from \"vue\";\nimport { fontData } from './uniicons_file';\n/**\n * Icons 图标\n * @description 用于展示 icon 图标\n * @tutorial https://ext.dcloud.net.cn/plugin?id=28\n * @property {Number,String} size 图标大小\n * @property {String} type 图标图案，参考示例\n * @property {String} color 图标颜色\n * @property {String} customPrefix 自定义图标\n * @event {Function} click 点击 Icon 触发事件\n */\nexport default defineComponent({\n    name: \"uni-icons\",\n    props: {\n        type: {\n            type: String,\n            default: ''\n        },\n        color: {\n            type: String,\n            default: '#333333'\n        },\n        size: {\n            type: [Number, String],\n            default: 16\n        },\n        fontFamily: {\n            type: String,\n            default: ''\n        }\n    },\n    data() {\n        return {};\n    },\n    computed: {\n        unicode() {\n            let codes = UTS.arrayFind(fontData, (item) => { return item.font_class == this.type; });\n            if (codes !== null) {\n                return codes.unicode;\n            }\n            return '';\n        },\n        iconSize() {\n            const size = this.size;\n            if (typeof size == 'string') {\n                const reg = /^[0-9]*$/g;\n                return reg.test(size) ? '' + size + 'px' : '' + size;\n                // return '' + this.size\n            }\n            return this.getFontSize(size);\n        },\n        styleObj() {\n            if (this.fontFamily !== '') {\n                return new UTSJSONObject({ color: this.color, fontSize: this.iconSize, fontFamily: this.fontFamily });\n            }\n            return new UTSJSONObject({ color: this.color, fontSize: this.iconSize });\n        }\n    },\n    created() { },\n    methods: {\n        /**\n         * 字体大小\n         */\n        getFontSize(size) {\n            return size + 'px';\n        },\n    },\n});\n//# sourceMappingURL=C:/Users/lj/Desktop/121/contract-front/111/uni_modules/uni-icons/components/uni-icons/uni-icons.uvue?vue&type=script&lang.uts.js.map","references":["C:/Users/lj/Desktop/121/contract-front/111/uni_modules/uni-icons/components/uni-icons/uniicons_file.ts"],"uniExtApis":[],"map":"{\"version\":3,\"file\":\"uni-icons.uvue?vue&type=script&lang.uts.js\",\"sourceRoot\":\"\",\"sources\":[\"uni-icons.uvue?vue&type=script&lang.uts\"],\"names\":[],\"mappings\":\";AACE,OAAO,EAAE,QAAQ,EAAiB,MA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