1.18.11 • Published 7 months ago

@sinoform/app-setting v1.18.11

Weekly downloads
-
License
MIT
Repository
-
Last release
7 months ago

app-setting

appSetting 为默认全局配置,其中包括表单配置、流程按钮配置、打印输出配置、仪表盘图表配置以及业务逻辑扩展配置。

模块结构:

packages
|__ app-setting
    |__ src
        |__ print-out-config
        |__ form-config
        |__ flow-config
        |__ dashboard-config
        |__ detail-page-extend-config
        |__ index.tsx

对外导出的 appSetting 数据结构如下:

interface AppSetting {
  /**
   * 表单配置
   */
  formConfig: FormConfig;
  /**
   * 流程配置
   */
  flowConfig: FlowConfig;
  /**
   * 打印输出配置
   */
  printOutConfig: PrintOutSetting;
  /**
   * 图表配置
   */
  dashboardConfig: DashboardConfig;
}

使用方式:

import appSetting from '@sinoform/app-setting';

const { formConfig } = appSetting;

formConfig.addField({...}); // 新增字段配置
formConfig.field('input'); // 获取指定type的字段配置
formConfig.formConfigPanel = React.lazy(()=>import('@sinoform/form-config-panel'));  // 指定表单属性设置面板

使用规则:

form-designer模块外,其他模块使用 appSetting 时,均需要从@sinoform/app-setting中直接引入。

form-designer模块中如果需要使用 conifg 配置,方式如下:

const { formConfig } = useFormDesignerFormConfig();

formConfig.field('input'); // 获取表单字段配置
1.18.9

7 months ago

1.18.11

7 months ago

1.18.1

12 months ago

1.18.0

12 months ago

1.18.3

12 months ago

1.18.2

12 months ago

1.18.7

11 months ago

1.17.2

1 year ago

1.17.1

1 year ago

1.18.0-alpha.1

1 year ago

1.18.0-alpha.2

1 year ago

1.18.0-alpha.6

1 year ago

1.17.0

1 year ago

1.15.5

2 years ago

1.14.17

2 years ago

1.14.18

2 years ago

1.14.19

2 years ago

1.14.16

2 years ago

1.16.1

2 years ago

1.16.0

2 years ago

1.15.0

2 years ago

1.15.0-alpha.52

2 years ago

1.15.0-alpha.51

2 years ago

1.15.0-alpha.47

2 years ago

1.15.0-alpha.48

2 years ago

1.15.0-alpha.29

2 years ago

1.15.0-alpha.28

2 years ago

1.15.0-alpha.36

2 years ago

1.15.0-alpha.35

2 years ago

1.15.0-alpha.38

2 years ago

1.15.0-alpha.37

2 years ago

1.15.0-alpha.32

2 years ago

1.15.0-alpha.31

2 years ago

1.15.0-alpha.34

2 years ago

1.15.0-alpha.33

2 years ago

1.15.0-alpha.30

2 years ago

1.15.0-alpha.25

2 years ago

1.15.0-alpha.24

2 years ago

1.15.0-alpha.27

2 years ago

1.15.0-alpha.26

2 years ago

1.15.0-alpha.23

2 years ago

1.14.12

2 years ago

1.14.13

2 years ago

1.14.14

2 years ago

1.14.15

2 years ago

1.15.0-alpha.39

2 years ago

1.15.0-alpha.46

2 years ago

1.15.0-alpha.43

2 years ago

1.15.0-alpha.42

2 years ago

1.15.0-alpha.45

2 years ago

1.15.0-alpha.44

2 years ago

1.15.0-alpha.41

2 years ago

1.15.0-alpha.40

2 years ago

1.14.5

2 years ago

1.14.4

2 years ago

1.14.9

2 years ago

1.14.6

2 years ago

1.15.0-alpha.18

2 years ago

1.15.0-alpha.17

2 years ago

1.15.0-alpha.19

2 years ago

1.15.0-alpha.21

2 years ago

1.15.0-alpha.20

2 years ago

1.12.14

2 years ago

1.15.0-alpha.22

2 years ago

1.15.0-alpha.14

2 years ago

1.15.0-alpha.13

2 years ago

1.15.0-alpha.16

2 years ago

1.15.0-alpha.15

2 years ago

1.15.0-alpha.10

2 years ago

1.15.0-alpha.12

2 years ago

1.14.11

2 years ago

1.15.0-alpha.2

2 years ago

1.15.0-alpha.4

2 years ago

1.15.0-alpha.5

2 years ago

1.15.0-alpha.6

2 years ago

1.15.0-alpha.7

2 years ago

1.15.0-alpha.0

2 years ago

1.15.0-alpha.1

2 years ago

1.14.1

2 years ago

1.14.0

2 years ago

1.13.13

2 years ago

1.13.14

2 years ago

1.14.0-alpha.2

2 years ago

1.12.5

2 years ago

1.14.0-alpha.0

2 years ago

1.14.0-alpha.1

2 years ago

1.12.10

2 years ago

1.12.12

2 years ago

1.12.11

2 years ago

1.12.13

2 years ago

1.13.2

2 years ago

1.13.0

2 years ago

1.13.6

2 years ago

1.13.5

2 years ago

1.13.4

2 years ago

1.13.3

2 years ago

1.13.9

2 years ago

1.13.11

2 years ago

1.13.8

2 years ago

1.13.10

2 years ago

1.13.12

2 years ago

1.12.3

2 years ago

1.12.2

2 years ago

1.12.4

2 years ago

1.13.0-beta.4

2 years ago

1.13.0-beta.3

2 years ago

1.13.0-beta.2

2 years ago

1.13.0-beta.1

2 years ago

1.13.0-alpha.2

2 years ago

1.13.0-beta.0

2 years ago

1.13.0-alpha.3

2 years ago

1.13.0-alpha.0

2 years ago

1.13.0-alpha.1

2 years ago

1.13.0-alpha.6

2 years ago

1.13.0-alpha.7

2 years ago

1.13.0-alpha.4

2 years ago

1.13.0-alpha.8

2 years ago

1.12.1

3 years ago

1.12.0

3 years ago

1.12.0-alpha.2

3 years ago

1.12.0-alpha.5

3 years ago

1.12.0-alpha.1

3 years ago

1.12.0-alpha.0

3 years ago

1.11.8

3 years ago

1.11.7

3 years ago

1.11.6

3 years ago

1.11.5

3 years ago

1.11.4

3 years ago

1.11.3

3 years ago

1.11.2

3 years ago

1.11.1

3 years ago

1.11.0-beta.4

3 years ago

1.11.0-beta.3

3 years ago

1.11.0-beta.2

3 years ago

1.11.0-beta.1

3 years ago