"use strict";
const common_vendor = require("../../../../common/vendor.js");
const _sfc_main = {
  name: "u-table",
  mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$2],
  props: {
    borderColor: {
      type: String,
      default: "#e4e7ed"
    },
    align: {
      type: String,
      default: "center"
    },
    // td的内边距
    padding: {
      type: String,
      default: "5px 3px"
    },
    // 字体大小
    fontSize: {
      type: [String],
      default: "14px"
    },
    // 字体颜色
    color: {
      type: String,
      default: "#606266"
    },
    // th的自定义样式
    thStyle: {
      type: Object,
      default() {
        return {};
      }
    },
    // table的背景颜色
    bgColor: {
      type: String,
      default: "#ffffff"
    }
  },
  data() {
    return {
      show: true
    };
  },
  watch: {
    align() {
      this.change();
    },
    borderColor() {
      this.change();
    }
  },
  computed: {
    tableStyle() {
      let style = {};
      style.borderLeft = `solid 1px ${this.borderColor}`;
      style.borderTop = `solid 1px ${this.borderColor}`;
      style.backgroundColor = this.bgColor;
      return style;
    }
  },
  methods: {
    change() {
      this.show = false;
      this.$nextTick(() => {
        this.show = true;
      });
    }
  }
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  return common_vendor.e({
    a: $data.show
  }, $data.show ? {} : {}, {
    b: common_vendor.s($options.tableStyle),
    c: common_vendor.gei(_ctx, "")
  });
}
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/node-modules/uview-plus/components/u-table/u-table.js.map
