1 Star 0 Fork 0

MagiCodeX/ui-data

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
index.d.ts 2.14 KB
一键复制 编辑 原始数据 按行查看 历史
MagiCodeX 提交于 2023-08-11 22:24 . 发布v1.3.6
/** Declaration file generated by dts-gen */
export class Model {
constructor(baseElement: any, opts: any);
convertExpressionToSelector(expression: any): any;
doGetDataValue(elements: any, skipFn: any): any;
doSetDataValue(elements: any, value: any, notSkipSetIfValueAbsent: any): void;
getBaseElement(): any;
/**
* 获取指定表达式对应元素的数据
* @param {(string|string[])} expression 表达式
* @param {function} [skipFn] 判断是否跳过值,比如 (targetValue) => (targetValue == null)
* @returns {*} 值
*/
getData(expression: any, skipFn: any): any;
getDataHandlerByElement(element: any): any;
groupElementsByName(elements: any): any;
queryElementsBySelector(selector: any): any;
/**
* 设置指定表达式对应元素的数据
* @param {string|string[]} expression 表达式
* @param {*} value 值
* @param {boolean} [notSkipSetIfValueAbsent=false] 是否跳过没有指定值的元素,默认 false 跳过没有指定值的元素
*/
setData(expression: any, value: any, notSkipSetIfValueAbsent: any): void;
static config: {
defaultNameAttributeName: string;
defaultTypeAttributeName: string;
initDataHandlers: {
"checkbox-boolean": {
getValue: any;
setValue: any;
};
default: {
getInputElementValue: any;
getSelectElementValue: any;
getValue: any;
setInputElementValue: any;
setSelectElementValue: any;
setValue: any;
};
};
};
}
export const dataHandlers: {
checkboxBooleanHandler: {
getValue: any;
setValue: any;
};
defaultDataHandler: {
getInputElementValue: any;
getSelectElementValue: any;
getValue: any;
setInputElementValue: any;
setSelectElementValue: any;
setValue: any;
};
};
/**
* 创建数据模型对象并返回
* @param {(Document|Element)} baseElement
* @param {object} [opts]
* @returns {Model}
*/
export function model(baseElement: any, opts: any): Model;
export namespace utils {
function isNullOrUndefined(arg: any): any;
function prefix(obj: any, prefix: any): any;
function unprefix(obj: any, prefix: any): any;
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/magicodex/ui-data.git
[email protected]:magicodex/ui-data.git
magicodex
ui-data
ui-data
main

搜索帮助

0d507c66 1850385 C8b1a773 1850385