"use strict";
const common_vendor = require("../../../../common/vendor.js");
const _sfc_main = {
  name: "u-th",
  mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props],
  props: {
    // 宽度，百分比或者具体带单位的值，如30%， 200rpx等，一般使用百分比
    width: {
      type: [String],
      default: ""
    }
  },
  data() {
    return {
      thStyle: {}
    };
  },
  created() {
    this.parent = false;
  },
  mounted() {
    this.parent = common_vendor.$parent.call(this, "u-table");
    if (this.parent) {
      let style = {};
      if (this.width)
        style.flex = `0 0 ${this.width}`;
      style.textAlign = this.parent.align;
      style.padding = this.parent.padding;
      style.borderBottom = `solid 1px ${this.parent.borderColor}`;
      style.borderRight = `solid 1px ${this.parent.borderColor}`;
      Object.assign(style, this.parent.thStyle);
      this.thStyle = style;
    }
  }
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  return {
    a: common_vendor.s($data.thStyle),
    b: common_vendor.gei(_ctx, "")
  };
}
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-834ef5b3"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/node-modules/uview-plus/components/u-th/u-th.js.map
