"use strict"; const common_vendor = require("../../common/vendor.js"); const _sfc_main = { props: { fontSize: String, color: String, align: String }, inject: ["table"], provide() { return { tr: this }; }, data() { return { isCheck: false, checkboxData: { value: 0, checked: false }, checked: false, thBorder: "1", borderColor: "#d0dee5" }; }, created() { this.thBorder = this.table.border; this.borderColor = this.table.borderColor; this.table.childrens.push(this); this.checkboxData.value = this.table.index++; this.isCheck = this.table.isCheck; }, methods: { checkboxChange(e) { this.checkboxData.checked = !this.checkboxData.checked; this.table.childrens[this.checkboxData.value] = this; this.table.fire(e.detail.value[0] ? true : false, this.checkboxData.value, this.table.index); } } }; function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { return common_vendor.e({ a: $data.isCheck }, $data.isCheck ? { b: $data.checkboxData.value + "", c: $data.checkboxData.checked, d: common_vendor.o((...args) => $options.checkboxChange && $options.checkboxChange(...args)), e: $data.thBorder + "px", f: $data.borderColor } : {}); } const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "E:/psy_web_share/components/t-table/t-tr.vue"]]); tt.createComponent(Component);