"use strict";
const common_vendor = require("../../common/vendor.js");
const _sfc_main = {
  __name: "index",
  props: {
    // 图标名称，对应iconfont中的类名，如'icon-home'
    name: {
      type: String,
      required: true
    },
    // 图标颜色
    color: {
      type: String,
      default: "#000"
    },
    // 图标大小，单位rpx
    size: {
      type: [Number, String],
      default: 32
    }
  },
  emits: ["click"],
  setup(__props, { emit: __emit }) {
    const props = __props;
    const emit = __emit;
    const iconClass = common_vendor.computed(() => {
      return props.name;
    });
    const handleClick = (event) => {
      emit("click", event);
    };
    return (_ctx, _cache) => {
      return {
        a: common_vendor.n(iconClass.value),
        b: __props.color,
        c: __props.size + "rpx",
        d: common_vendor.o(handleClick),
        e: common_vendor.gei(_ctx, "")
      };
    };
  }
};
wx.createComponent(_sfc_main);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/icon/index.js.map
