80 lines
2.1 KiB
JavaScript
80 lines
2.1 KiB
JavaScript
import {
|
|
table_default
|
|
} from "./chunk-KZYYK2Y7.js";
|
|
import "./chunk-W4BZ55WN.js";
|
|
import "./chunk-GPQQMF6N.js";
|
|
import "./chunk-Z4MEN7AG.js";
|
|
import {
|
|
VxeUI,
|
|
require_xe_utils
|
|
} from "./chunk-YJNUXQVJ.js";
|
|
import "./chunk-VAL2CHZC.js";
|
|
import {
|
|
computed
|
|
} from "./chunk-AAHVYXXY.js";
|
|
import "./chunk-OWZYVOTZ.js";
|
|
import {
|
|
__toESM
|
|
} from "./chunk-V4OQ3NZ2.js";
|
|
|
|
// ../node_modules/.pnpm/vxe-table@4.17.14_vue@3.5.24_typescript@5.9.3_/node_modules/vxe-table/es/table/src/use/cell-view.js
|
|
var import_xe_utils = __toESM(require_xe_utils());
|
|
function useCellView(props) {
|
|
const currColumn = computed(() => {
|
|
const { renderParams } = props;
|
|
return renderParams.column;
|
|
});
|
|
const currRow = computed(() => {
|
|
const { renderParams } = props;
|
|
return renderParams.row;
|
|
});
|
|
const cellOptions = computed(() => {
|
|
const { renderOpts } = props;
|
|
return renderOpts.props || {};
|
|
});
|
|
const cellModel = computed({
|
|
get() {
|
|
const { renderParams } = props;
|
|
const { row, column } = renderParams;
|
|
return import_xe_utils.default.get(row, column.field);
|
|
},
|
|
set(value) {
|
|
const { renderParams } = props;
|
|
const { row, column } = renderParams;
|
|
return import_xe_utils.default.set(row, column.field, value);
|
|
}
|
|
});
|
|
return {
|
|
currColumn,
|
|
currRow,
|
|
cellModel,
|
|
cellOptions
|
|
};
|
|
}
|
|
|
|
// ../node_modules/.pnpm/vxe-table@4.17.14_vue@3.5.24_typescript@5.9.3_/node_modules/vxe-table/es/table/index.js
|
|
var VxeTable = Object.assign({}, table_default, {
|
|
install(app) {
|
|
app.component(table_default.name, table_default);
|
|
}
|
|
});
|
|
var tableHandle = {
|
|
useCellView
|
|
};
|
|
if (VxeUI.dynamicApp) {
|
|
VxeUI.dynamicApp.component(table_default.name, table_default);
|
|
}
|
|
VxeUI.component(table_default);
|
|
VxeUI.tableHandle = tableHandle;
|
|
var Table = VxeTable;
|
|
var table_default2 = VxeTable;
|
|
|
|
// ../node_modules/.pnpm/vxe-table@4.17.14_vue@3.5.24_typescript@5.9.3_/node_modules/vxe-table/es/vxe-table/index.js
|
|
var vxe_table_default = table_default2;
|
|
export {
|
|
Table,
|
|
VxeTable,
|
|
vxe_table_default as default
|
|
};
|
|
//# sourceMappingURL=vxe-table_es_vxe-table_index__js.js.map
|