first commit
This commit is contained in:
43
node_modules/element-plus/lib/components/table/src/table-footer/mapState-helper.js
generated
vendored
Normal file
43
node_modules/element-plus/lib/components/table/src/table-footer/mapState-helper.js
generated
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
var vue = require('vue');
|
||||
var tokens = require('../tokens.js');
|
||||
|
||||
function useMapState() {
|
||||
var _a;
|
||||
const table = vue.inject(tokens.TABLE_INJECTION_KEY);
|
||||
const store = table == null ? void 0 : table.store;
|
||||
const leftFixedLeafCount = vue.computed(() => {
|
||||
var _a2;
|
||||
return (_a2 = store == null ? void 0 : store.states.fixedLeafColumnsLength.value) != null ? _a2 : 0;
|
||||
});
|
||||
const rightFixedLeafCount = vue.computed(() => {
|
||||
var _a2;
|
||||
return (_a2 = store == null ? void 0 : store.states.rightFixedColumns.value.length) != null ? _a2 : 0;
|
||||
});
|
||||
const columnsCount = vue.computed(() => {
|
||||
var _a2;
|
||||
return (_a2 = store == null ? void 0 : store.states.columns.value.length) != null ? _a2 : 0;
|
||||
});
|
||||
const leftFixedCount = vue.computed(() => {
|
||||
var _a2;
|
||||
return (_a2 = store == null ? void 0 : store.states.fixedColumns.value.length) != null ? _a2 : 0;
|
||||
});
|
||||
const rightFixedCount = vue.computed(() => {
|
||||
var _a2;
|
||||
return (_a2 = store == null ? void 0 : store.states.rightFixedColumns.value.length) != null ? _a2 : 0;
|
||||
});
|
||||
return {
|
||||
leftFixedLeafCount,
|
||||
rightFixedLeafCount,
|
||||
columnsCount,
|
||||
leftFixedCount,
|
||||
rightFixedCount,
|
||||
columns: (_a = store == null ? void 0 : store.states.columns) != null ? _a : []
|
||||
};
|
||||
}
|
||||
|
||||
exports["default"] = useMapState;
|
||||
//# sourceMappingURL=mapState-helper.js.map
|
||||
Reference in New Issue
Block a user