v0.7.3
This commit is contained in:
Vendored
+17
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* 在(可能嵌套的)选项列表中按 value 查找选项;先在当前层查找,找不到再递归查找各项的子级(depthKey)
|
||||
* @param {Array<Object>} items 选项列表,每项含 `value` 及可选的子级(depthKey)字段
|
||||
* @param {*} value 要查找的选项值
|
||||
* @param {string} [depthKey='children'] 子级选项所在的字段名
|
||||
* @returns {Object} 匹配到的选项;未找到或 items 为空时返回 `{}`
|
||||
*/
|
||||
declare function getOptionItemByValue(items: Array<any>, value: any, depthKey?: string): any;
|
||||
/**
|
||||
* 把部件标识归一化为完整路径;以 `@` 或 `blob:` 开头时视为已是绝对标识,原样返回,否则拼接 widgetPrefix 前缀
|
||||
* @param {string} [widget='Input'] 部件标识
|
||||
* @param {string} [widgetPrefix='@pkg/ff/grid-layout-forms'] widget 非绝对标识时使用的前缀
|
||||
* @returns {string} 归一化后的部件路径
|
||||
*/
|
||||
declare function getNormalizeWidget(widget?: string, widgetPrefix?: string): string;
|
||||
|
||||
export { getNormalizeWidget, getOptionItemByValue };
|
||||
Vendored
+1
-1
@@ -1,5 +1,5 @@
|
||||
import "lodash";
|
||||
import { a as o, g } from "../common/main-DsRa-iMx.js";
|
||||
import { a as o, g } from "../common/main-DahsFEqk.js";
|
||||
export {
|
||||
o as getNormalizeWidget,
|
||||
g as getOptionItemByValue
|
||||
|
||||
Reference in New Issue
Block a user