form-driver 0.1.14 → 0.1.15

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "form-driver",
3
- "version": "0.1.14",
3
+ "version": "0.1.15",
4
4
  "description": "An efficient framework for creating forms.",
5
5
  "license": "MIT",
6
6
  "authors": [
@@ -242,6 +242,8 @@ export interface MFieldSchema {
242
242
  decoration?: {
243
243
  subType?: "rich" | "segmentLabel" | "submitBar" | "operations", // 子类型
244
244
  HTML?: string, // html片段
245
+ more?: boolean, // 是否显示更多
246
+ HMTL2?: string, // 更多的 html片段
245
247
  submitLabel?: string, // 提交按钮
246
248
  segmentLabel?: string, // 分段标题
247
249
  operations?: { label: React.ReactNode, handler: (data) => void }[] // 操作
@@ -1,4 +1,11 @@
1
- import { BaseViewer } from 'form-driver';
2
- export declare class RichViewer extends BaseViewer {
1
+ import { Viewer, ViewerState } from 'form-driver';
2
+ import './RichViewer.less';
3
+ interface State extends ViewerState {
4
+ isShow: boolean;
5
+ }
6
+ export declare class RichViewer extends Viewer<State> {
7
+ private options;
8
+ constructor(p: any);
3
9
  element(): JSX.Element;
4
10
  }
11
+ export {};
@@ -184,6 +184,8 @@ export interface MFieldSchema {
184
184
  decoration?: {
185
185
  subType?: "rich" | "segmentLabel" | "submitBar" | "operations";
186
186
  HTML?: string;
187
+ more?: boolean;
188
+ HMTL2?: string;
187
189
  submitLabel?: string;
188
190
  segmentLabel?: string;
189
191
  operations?: {