0.2.14 • Published 1 year ago

editformfordnd v0.2.14

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

璞育云——表单引擎

ui:antd

表单设计器(pages/design)

基于react-dnd实现拖拽功能

表单编辑器(pages/edit)

表单编辑模块(components/FormEidt)

umi-library 打包

peerDependencies 必安装的modules "peerDependencies": { "antd": "^4.22.8", "braft-editor": "^2.3.9", // 富文本编辑器 "lodash": "^4.17.21", "react": "17.x", "react-dom": "17.x", "uuid": "^8.3.2" } 需引入 antd 样式 antd/dist/antd.css

安装第三方控件 vuera (可以在vue中使用react组件)

FormEidt组件API data 字段列表 Array value 字段值 object readOnly 只读 boolean params 配置项 object myRef form对象 { current: null }

配置项params request 请求接口方法 function

params参考 ` let params = { SELECT_SINGLE: { request: (params) => { return getCommonDictData({ ...params }); }, }, SELECT_MULTI: { request: (params) => { return getCommonDictData({ ...params }); }, }, AREA: { request: (params) => { / 地区编码传code / return getAreaList({ ...params }); }, }, ADDRESS: { request: (params) => { // 同area return getAreaList({ ...params }); }, }, MEMBER: { request: (params) => { return queryMemberListByDeptIds({ ...params }); }, }, DEPARTMENT: { request: (params) => { return showDeptTree({ ...params }); }, }, RICH_TEXT: { fileUpload: async (params) => { const { file, success } = params; const formData = new FormData(); formData.append('formId', formId); formData.append('file', file); const data = await fileUpload(formData, { onUploadProgress: (event) => { // 进度条 params.progress((event.loaded / event.total) * 100); }, });

    const { fileId, fileSource, previewPath } = data;
    success({
      url:
        process.env.NODE_ENV === 'development'
          ? `http://47.100.45.133:8994/business/file/imageDownload/${fileId}`
          : previewPath,
      meta: {
        id: fileId,
        title: fileSource,
        alt: fileSource,
      },
    });
  },
  fileRemove: (params) => {
    fileDelete({ ...params });
  },
},

} `

0.2.14

1 year ago

0.2.13

1 year ago

0.2.12

1 year ago

0.2.11

1 year ago

0.2.10

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

0.2.7

1 year ago

0.2.6

1 year ago

0.2.9

1 year ago

0.2.8

1 year ago

0.2.3

1 year ago

0.2.2

1 year ago

0.2.5

1 year ago

0.2.4

1 year ago

0.1.40

2 years ago

0.1.39

2 years ago

0.1.38

2 years ago

0.1.30

2 years ago

0.1.31

2 years ago

0.1.32

2 years ago

0.1.33

2 years ago

0.1.34

2 years ago

0.1.35

2 years ago

0.1.36

2 years ago

0.1.37

2 years ago

0.1.27

2 years ago

0.1.28

2 years ago

0.1.29

2 years ago

0.1.20

2 years ago

0.1.21

2 years ago

0.1.22

2 years ago

0.1.23

2 years ago

0.1.24

2 years ago

0.1.25

2 years ago

0.1.26

2 years ago

0.1.16

2 years ago

0.1.17

2 years ago

0.1.18

2 years ago

0.1.19

2 years ago

0.1.10

2 years ago

0.1.11

2 years ago

0.1.12

2 years ago

0.1.13

2 years ago

0.1.14

2 years ago

0.1.15

2 years ago

0.1.0

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.9

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.0.69

2 years ago

0.0.68

2 years ago

0.0.67

2 years ago

0.0.66

2 years ago

0.0.65

2 years ago

0.0.64

2 years ago

0.0.63

2 years ago

0.0.62

2 years ago

0.0.61

2 years ago

0.0.60

2 years ago

0.0.59

2 years ago

0.0.58

2 years ago

0.0.57

2 years ago

0.0.56

2 years ago

0.0.55

2 years ago

0.0.54

2 years ago

0.0.53

2 years ago

0.0.52

2 years ago

0.0.51

2 years ago

0.0.50

2 years ago

0.0.49

2 years ago

0.0.48

2 years ago

0.0.47

2 years ago

0.0.46

2 years ago

0.0.45

2 years ago

0.0.44

2 years ago

0.0.43

2 years ago

0.0.42

2 years ago

0.0.41

2 years ago

0.0.40

2 years ago

0.0.39

2 years ago

0.0.38

2 years ago

0.0.37

2 years ago

0.0.36

2 years ago

0.0.34

2 years ago

0.0.33

2 years ago

0.0.32

2 years ago

0.0.31

2 years ago

0.0.30

2 years ago

0.0.29

2 years ago

0.0.28

2 years ago

0.0.27

2 years ago

0.0.26

2 years ago

0.0.25

2 years ago

0.0.24

2 years ago

0.0.23

2 years ago

0.0.22

2 years ago

0.0.21

2 years ago

0.0.20

2 years ago

0.0.19

2 years ago

0.0.18

2 years ago

0.0.17

2 years ago

0.0.16

2 years ago

0.0.15

2 years ago

0.0.14

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago