"use strict"; const common_vendor = require("../../common/vendor.js"); const _sfc_main = { props: { align: String }, data() { return { thBorder: "1", borderColor: "#d0dee5", fontSize: "14", color: "#555c60", tdAlign: "center" }; }, inject: ["table", "tr"], created() { this.thBorder = this.table.border; this.borderColor = this.table.borderColor; this.fontSize = this.tr.fontSize; this.color = this.tr.color; if (this.align) { this.tdAlign = this.align; } else { this.tdAlign = this.tr.align; } }, computed: { tdAlignCpd() { let nameAlign = ""; switch (this.tdAlign) { case "left": nameAlign = "flex-start"; break; case "center": nameAlign = "center"; break; case "right": nameAlign = "flex-end"; break; default: nameAlign = "center"; break; } return nameAlign; } } }; function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { return { a: $data.thBorder + "px", b: $data.borderColor, c: $data.fontSize + "px", d: $data.color, e: $options.tdAlignCpd }; } const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "E:/psy_web_share/components/t-table/t-td.vue"]]); tt.createComponent(Component);