UNPKG

song-ui-u

Version:

vue3 + js的PC前端组件库

51 lines (42 loc) 1.69 kB
'use strict'; var vue = require('vue'); var index$1 = require('../../../hook/use-namespace/index.cjs'); var index = require('../../../hook/use-style/index.cjs'); require('../../../hook/use-zindex/index.cjs'); var _pluginVue_exportHelper = require('../../../_virtual/_plugin-vue_export-helper.cjs'); const __default__ = { name: "x-icon" }; const _sfc_main = /*#__PURE__*/Object.assign(__default__, { props: { size: { type: String, default: "", }, color: { type: String, default: "", }, }, setup(__props, { expose: __expose }) { __expose(); const ns = index$1.useNamespace("icon"); const uStyle = index.useStyle(); /** props */ const props = __props; const styleSize = vue.computed(() => uStyle.fontSize(props.size)); const styleColor = vue.computed(() => uStyle.color(props.color)); const __returned__ = { ns, uStyle, props, styleSize, styleColor, computed: vue.computed, get useNamespace() { return index$1.useNamespace }, get useStyle() { return index.useStyle } }; Object.defineProperty(__returned__, '__isScriptSetup', { enumerable: false, value: true }); return __returned__ } }); function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { return (vue.openBlock(), vue.createElementBlock("i", { class: vue.normalizeClass([$setup.ns.b()]), style: vue.normalizeStyle([$setup.styleSize, $setup.styleColor]) }, [ vue.renderSlot(_ctx.$slots, "default") ], 6 /* CLASS, STYLE */)) } var Icon = /*#__PURE__*/_pluginVue_exportHelper(_sfc_main, [['render',_sfc_render],['__file',"E:\\code\\my-code\\song-ui-ultra\\packages\\components\\icon\\src\\index.vue"]]); module.exports = Icon; //# sourceMappingURL=index.vue.cjs.map