+
+ {item.id}
+
+ {!!dataSourceTypes.find((ds) => ds.type === item.type) && (
+
详情}
+ align="b"
+ alignEdge
+ triggerType="hover"
+ style={{ width: 300 }}
+ >
+ ((acc, cur) => {
+ // @todo 这里的 ts 处理得不好
+ if (_isPlainObject(item.options[cur])) {
+ Object.keys(item?.options?.[cur] || {}).forEach((curInOption) => {
+ acc.push({
+ label: `${cur}.${curInOption}`,
+ value: (item?.options?.[cur] as any)?.[curInOption],
+ });
+ });
+ } else if (!_isNil(item.options[cur])) {
+ // @todo 排除 null
+ acc.push({
+ label: cur,
+ value: item.options[cur],
+ });
+ }
+ return acc;
+ }, []),
+ console.log,
+ )}
+ >
+
+ (
+
+ {deriveTypeFromValue(val)}
+ {val.toString()}
+
+ )}
+ />
+
+
+ )}
+ {!!dataSourceTypes.find((ds) => ds.type === item.type) && (
+
+ )}
+ {!!dataSourceTypes.find((ds) => ds.type === item.type) && (
+
+ )}
+
+