52 lines
1.3 KiB
JavaScript
52 lines
1.3 KiB
JavaScript
import {
|
|
getConfig,
|
|
index_esm_default,
|
|
require_xe_utils
|
|
} from "./chunk-YJNUXQVJ.js";
|
|
import {
|
|
__toESM
|
|
} from "./chunk-V4OQ3NZ2.js";
|
|
|
|
// ../node_modules/.pnpm/vxe-pc-ui@4.10.22_vue@3.5.24_typescript@5.9.3_/node_modules/vxe-pc-ui/es/ui/src/utils.js
|
|
var import_xe_utils = __toESM(require_xe_utils());
|
|
function isEnableConf(conf) {
|
|
return conf && conf.enabled !== false;
|
|
}
|
|
function nextZIndex() {
|
|
return index_esm_default.getNext();
|
|
}
|
|
function getLastZIndex() {
|
|
return index_esm_default.getCurrent();
|
|
}
|
|
function nextSubZIndex() {
|
|
return index_esm_default.getSubNext();
|
|
}
|
|
function getSubLastZIndex() {
|
|
return index_esm_default.getSubCurrent();
|
|
}
|
|
function getFuncText(content, args) {
|
|
if (import_xe_utils.default.eqNull(content)) {
|
|
return "";
|
|
}
|
|
const translate = getConfig().translate;
|
|
return `${translate ? translate("" + content, args) : content}`;
|
|
}
|
|
function eqEmptyValue(cellValue) {
|
|
return cellValue === null || cellValue === void 0 || cellValue === "";
|
|
}
|
|
function handleBooleanDefaultValue(value) {
|
|
return import_xe_utils.default.isBoolean(value) ? value : null;
|
|
}
|
|
|
|
export {
|
|
isEnableConf,
|
|
nextZIndex,
|
|
getLastZIndex,
|
|
nextSubZIndex,
|
|
getSubLastZIndex,
|
|
getFuncText,
|
|
eqEmptyValue,
|
|
handleBooleanDefaultValue
|
|
};
|
|
//# sourceMappingURL=chunk-REHJGRQO.js.map
|