bi-sdk-react 0.0.59 → 0.0.61

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,6 +8,7 @@ export declare const TablePlugin: PluginType;
8
8
  export declare const ListPlugin: PluginType;
9
9
  export declare const HtmlPlugin: PluginType;
10
10
  export declare const EchartsPlugin: PluginType;
11
+ export declare const AnchorPlugin: PluginType;
11
12
  export declare const InputPlugin: PluginType;
12
13
  export declare const InputNumberPlugin: PluginType;
13
14
  export declare const SelectPlugin: PluginType;
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { AnchorRenderProps } from "../items/AnchorRender";
3
+ import type { PropEditorProps } from "./types";
4
+ export declare const AnchorProps: React.FC<PropEditorProps<AnchorRenderProps>>;
@@ -19,3 +19,4 @@ export { ColProps } from './ColProps';
19
19
  export { ModalProps } from './ModalProps';
20
20
  export { SpaceProps } from './SpaceProps';
21
21
  export { DrawerProps } from './DrawerProps';
22
+ export { AnchorProps } from './AnchorProps';
@@ -0,0 +1,33 @@
1
+ import React from "react";
2
+ import { HtmlBaseProps } from "../../../typing";
3
+ export type AnchorItem = {
4
+ key?: string;
5
+ href: string;
6
+ title: string;
7
+ };
8
+ export type AnchorRenderProps = {
9
+ id?: string;
10
+ item: any;
11
+ items?: AnchorItem[];
12
+ style?: React.CSSProperties;
13
+ linePosition?: number;
14
+ lineColor?: string;
15
+ lineWidth?: number;
16
+ gap?: number;
17
+ itemClassNames?: string[];
18
+ itemTitleClassNames?: string[];
19
+ indicatorClassNames?: string[];
20
+ classNames?: string[];
21
+ } & HtmlBaseProps;
22
+ /**
23
+ * AnchorRender 组件
24
+ * 用途:渲染自定义 HTML 模板,支持数据源变量插值
25
+ * 参数:
26
+ * - id:组件唯一标识
27
+ * - template:HTML 模板字符串,支持 {{ expr }} 插值
28
+ * - item:当前元素数据(含 datasource)
29
+ * - style:样式
30
+ * - className:类名
31
+ * - ref:转发到 div 的引用(HTMLDivElement)
32
+ */
33
+ export declare const AnchorRender: React.FC<AnchorRenderProps>;
@@ -19,3 +19,4 @@ export { DatePickerRender } from './DatePickerRender';
19
19
  export { SwitchRender } from './SwitchRender';
20
20
  export { ModalRender } from './ModalRender';
21
21
  export { DrawerRender } from './DrawerRender';
22
+ export { AnchorRender } from './AnchorRender';