Giter Club home page Giter Club logo

drip-form's Introduction

Drip-Form

简体中文 | English | 官方文档 | 讨论组

Version node yarn document License: MIT All Contributors website

📖 介绍

基于 React 和 JSONSchema 的动态表单解决方案

Drip-Form 使用 JSON 配置文件生成具备数据联动、复杂校验、异步请求及嵌套的表单,可以减少复杂冗余的表单开发工作。

配套可视化表单生成器、Node 校验工具使用,可进一步提升表单开发的效率。

Drip-Form 具有以下五大 ✨ 亮点 ✨:

  • 自动化:可根据表单数据自动生成初始化表单。
  • 语义化:简洁高效的 JSON 协议有助于开发者理解。
  • 校验一体化:依托于 ajv 的标准化校验能力,可实现前后端校验一体化。
  • 可视化:可视化搭建表单及修改表单 Schema
  • 可扩展:支持二次开发,可扩展自定义组件集、校验集。

🔨 如何使用

环境依赖

  • node >=13.14.0
  • yarn >=1.0.0

安装依赖包

npm install @jdfed/drip-form @jdfed/drip-form-theme

简单使用

import React, { memo } from 'react'
// 引入核心包和主题
import DripForm from '@jdfed/drip-form'
import dripTheme from '@jdfed/drip-form-theme'
import '@jdfed/drip-form-theme/dist/index.css'
// 引入配置项
import unitedSchema from './unitedSchema.json'

const Form = memo(() => (
	<DripForm unitedSchema={unitedSchema} uiComponents={{ drip: dripTheme }} />
))

🤔 贡献

此存储库的主要目的是继续不断发展和完善 Drip-Form,使得它的性能更强,功能更稳定,更利于使用。如果您对于 Drip-Form 有建议或者错误修正等需求,欢迎提 issuemerge,我们极力感谢社区促进错误修正和改进。

请确保在提 pull request 之前已经阅读了贡献指南

✨ 贡献者

Thanks goes to these wonderful people

开发路线图

❇️ View the DripForm roadmap

在 DripForm 开发路线图中,您可以了解我们正在开发哪些功能、它们处于什么阶段以及我们希望何时将它们带给您。对路线图上的项目有任何问题或意见吗?通过GitHub discussions反馈讨论分享您的反馈。

🌟 感谢支持

如果 Drip-Form 解决了您的开发痛点,对您有帮助的话,请不要吝惜您的 star 🌟 哦!

📄 许可

MIT License

Copyright (c) 2020 JD.com, Inc.

drip-form's People

Contributors

allcontributors[bot] avatar crazywood007 avatar guojinchao avatar henry129999 avatar kapeter avatar mengshang918 avatar yirenliancheng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

drip-form's Issues

Supports highly customized editing of filedKey

Is your feature request related to a problem? Please describe.

Filedkey needs to be customized and generated more flexibly

Description

We need to be able to confirm filedkey when adding and check the unique value when editing

Describe the solution you'd like

we can use select and api function to solution filedkey

Describe alternatives you've considered

No response

Self-service

  • I'd be willing to contribute this feature to DripForm myself.

[Bug] 时间选择器和日期选择器,开启范围,设置默认时间/占位符不生效

Have you read the Contributing Guidelines on issues?

Prerequisites

  • I'm using the latest version of DripForm、DripFormTheme.
  • I have read the console error message carefully (if applicable).

Description

时间选择器和日期选择器,开启范围,设置默认时间/占位符不生效

image

Steps to reproduce

  1. 时间选择器和日期选择器
  2. 开启范围
  3. 设置默认时间/占位符不生效

Current behavior

设置默认时间/占位符不生效

Expected behavior

设置默认时间/占位符生效

Your environment

  • DripForm version used:
  • DripFormTheme used:
  • DripFormTheme version used:

Reproducible demo

No response

Self-service

  • I'd be willing to fix this bug myself.

[Bug] 修改组件报错

Have you read the Contributing Guidelines on issues?

Prerequisites

  • I'm using the latest version of DripForm、DripFormTheme.
  • I have read the console error message carefully (if applicable).

Description

当fieldKey为'ui:description.type'这种情况,修改组件会报错:Cannot set properties of undefined (setting 'type')

lowcode

Steps to reproduce

当fieldKey为'ui:description.type'这种情况,修改组件会报错:Cannot set properties of undefined (setting 'type')

Current behavior

当fieldKey为'ui:description.type'这种情况,修改组件会报错:Cannot set properties of undefined (setting 'type')

Expected behavior

当fieldKey为'ui:description.type'这种情况,修改组件会报错:Cannot set properties of undefined (setting 'type')

Your environment

  • DripForm version used:
  • DripFormTheme used:
  • DripFormTheme version used:

Reproducible demo

No response

Self-service

  • I'd be willing to fix this bug myself.

contributors

People are giving themselves and their free time to contribute to open source projects in so many ways, so we believe everyone should be praised for their contributions (code or not).

Drip form follows all-contributors specification.

Write a comment on an issue or pull request to recognise their contribution.
@all-contributors please add @<username> for <contributions>

For example:
@all-contributors please add @mengshang918 for code ✨

For more information, please see all-contributors contributions

在可视区,选择一个控件之后,在右侧属性配置那边填入标题名称之后,如果我再在可视区选择其他控件准备配置的时候,刚被点击的这个控件的标题就也变了,感觉在切换控件时,右侧的属性面板上一次的值带到了下一次[Bug] <title>

Have you read the Contributing Guidelines on issues?

Prerequisites

  • I'm using the latest version of DripForm、DripFormTheme.
  • I have read the console error message carefully (if applicable).

Description

在可视区,选择一个控件之后,在右侧属性配置那边填入标题名称之后,如果我再在可视区选择其他控件准备配置的时候,刚被点击的这个控件的标题就也变了,感觉在切换控件时,右侧的属性面板上一次的值带到了下一次

Steps to reproduce

在可视区,选择一个控件之后,在右侧属性配置那边填入标题名称之后,如果我再在可视区选择其他控件准备配置的时候,刚被点击的这个控件的标题就也变了,感觉在切换控件时,右侧的属性面板上一次的值带到了下一次

Current behavior

在可视区,选择一个控件之后,在右侧属性配置那边填入标题名称之后,如果我再在可视区选择其他控件准备配置的时候,刚被点击的这个控件的标题就也变了,感觉在切换控件时,右侧的属性面板上一次的值带到了下一次

Expected behavior

1

Your environment

1

Reproducible demo

No response

Self-service

  • I'd be willing to fix this bug myself.

自定义组件的属性配置内【提示】属性在选择提示方式为图标悬浮时,不展示在组件内,等于是没效果的

Have you read the Contributing Guidelines on issues?

Prerequisites

  • I'm using the latest version of DripForm、DripFormTheme.
  • I have read the console error message carefully (if applicable).

Description

自定义组件的属性配置内【提示】属性在选择提示方式为图标悬浮时,不展示在组件内,等于是没效果的

Steps to reproduce

提示文案在提示方式是下方的时候是可以展示的,但是选择图标悬浮的时候,现在是不展示的

Current behavior

自定义组件的属性配置内【提示】属性在选择提示方式为图标悬浮时,不展示在组件内,等于是没效果的

Expected behavior

自定义组件的属性配置内【提示】属性在选择提示方式为图标悬浮时,不展示在组件内,等于是没效果的

Your environment

  • DripForm version used:
  • DripFormTheme used:
  • DripFormTheme version used:

Reproducible demo

No response

Self-service

  • I'd be willing to fix this bug myself.

当unitedSchema全局validateTIme为submit或click时,表单校验字段不显示

Have you read the Contributing Guidelines on issues?

Prerequisites

  • I'm using the latest version of DripForm、DripFormTheme.
  • I have read the console error message carefully (if applicable).

Description

  • 当全局validateTime设置为 submit或click时,表单校验时的错误字段不显示。
  • DripForm组件中的onSubmit属性怎么使用?document中没有对应的说明。(文档中缺失的内容还挺多的)DripForm组件validatetime是submit时如何触发?
  • 表单项校验为click时,点击一次之后如果有错误字段返回,该按钮就不可用了,返回空字符串是正常的。

Steps to reproduce

  1. 同上

Current behavior

同上

Expected behavior

  • 当全局的validateTime设置为 submit或click时,表单校验时的错误字段不显示,比如必输或者错误校验字段。
  • 预期为 submit时表单自带提交按钮或者回车可自动提交。
  • 表单项校验为click时,点击一次之后异步校验函数中如果有错误字段返回,该按钮变为disable。此处应该为当 表单内容变更后重新恢复可点击

Your environment

  • DripForm version used:0.7.0
  • DripFormTheme used:0.7.0
  • DripFormTheme version used:0.7.0

Reproducible demo

No response

Self-service

  • I'd be willing to fix this bug myself.

左侧组件区能否设置成可以拉动的,目前如果组件的名称稍微长一点,比如6个汉字的话,样式就很奇怪了,这个看能否修复下

Is your feature request related to a problem? Please describe.

左侧组件区能否设置成可以拉动的,目前如果组件的名称稍微长一点,比如6个汉字的话,样式就很奇怪了,这个看能否修复下

Description

左侧组件区能否设置成可以拉动的,目前如果组件的名称稍微长一点,比如6个汉字的话,样式就很奇怪了,这个看能否修复下

Describe the solution you'd like

左侧组件区能否设置成可以拉动的,目前如果组件的名称稍微长一点,比如6个汉字的话,样式就很奇怪了,这个看能否修复下

Describe alternatives you've considered

No response

Self-service

  • I'd be willing to contribute this feature to DripForm myself.

[Bug] <title>formData 初始化时和提交时的数据错误

Have you read the Contributing Guidelines on issues?

Prerequisites

  • I'm using the latest version of DripForm、DripFormTheme.
  • I have read the console error message carefully (if applicable).

Description

复现步骤:

  1. 当前dripForm 配置了两个字段name和erp
  2. 在初始化时formData的值为 {jdName:"xxx", jdErp:"xxx"}
  3. 点击保存时我获取到的formData为{jdName:"xxx", jdErp:"xxx", name: "xxx", erp: "xxx"}

当前表单没有jdName和jdErp的输入框 所以在获取时也不应该返回这两个值

期望返回formData的值为: {name: "xxx", erp: "xxx"}

Steps to reproduce

复现步骤:

  1. 当前dripForm 配置了两个字段name和erp
  2. 在初始化时formData的值为 {jdName:"xxx", jdErp:"xxx"}
  3. 点击保存时我获取到的formData为{jdName:"xxx", jdErp:"xxx", name: "xxx", erp: "xxx"}

Current behavior

导致我初始化时传入的formData会在 提交表单时带上 一直叠加formData的值

Expected behavior

期望返回formData的值只根据配置的表单返回即可, 多余的值并不需要

Your environment

  • DripForm version used:
  • DripFormTheme used:
  • DripFormTheme version used:

Reproducible demo

No response

Self-service

  • I'd be willing to fix this bug myself.

[Bug] 可视区日期选择器占位符修改后,切换到时间选择框显示的是同一个占位符

Have you read the Contributing Guidelines on issues?

Prerequisites

  • I'm using the latest version of DripForm、DripFormTheme.
  • I have read the console error message carefully (if applicable).

Description

可视区日期选择器占位符修改后,切换到时间选择框显示的是同一个占位符

image

Steps to reproduce

  1. 修改日期选择器占位符
  2. 切换到时间选择器
  3. 再切回日期选择器
  4. 再返回时间选择器
  5. 时间选择器占位符也被修改

Current behavior

时间选择器占位符受日期选择器占位符影响。

Expected behavior

时间选择器 占位符 不受 日期选择器 影响。

Your environment

  • DripForm version used: latest version
  • DripFormTheme used:
  • DripFormTheme version used:

Reproducible demo

No response

Self-service

  • I'd be willing to fix this bug myself.

输入框使用问题

Is your feature request related to a problem? Please describe.

Description

输入框清空时返回字段值为undefined

Describe the solution you'd like

建议返回空字符串,便于后续逻辑处理

Describe alternatives you've considered

No response

Self-service

  • I'd be willing to contribute this feature to DripForm myself.

[Bug] changeFieldKey报错

Have you read the Contributing Guidelines on issues?

Prerequisites

  • I'm using the latest version of DripForm、DripFormTheme.
  • I have read the console error message carefully (if applicable).

Description

修改fieldKey报错、失效

Steps to reproduce

  1. 修改fieldKey

  2. 编辑json

  3. 保存、推出

  4. 修改fieldkey

  5. 编辑属性or编辑校验

  6. 保存or导出

Current behavior

修改未生效、报错

Expected behavior

稳定修改fieldKey

Your environment

  • DripForm version used: latest
  • DripFormTheme used: latest
  • DripFormTheme version used: latest

Reproducible demo

No response

Self-service

  • #194

取消onCancel事件

Is your feature request related to a problem? Please describe.

onCancel事件我无法获取到

Description

我使用弹窗渲染了dripFormJson 但是没有办法获取到它的取消事件, 我需要在取消事件里面做一些其他的操作

Describe the solution you'd like

可以暴露出来一个取消事件就好了

Describe alternatives you've considered

No response

Self-service

  • I'd be willing to contribute this feature to DripForm myself.

我在一个组件内设置了默认值之后,我点击空白处的时候,就会给全局赋值,这会导致在渲染时,默认的数据等无法显示

Have you read the Contributing Guidelines on issues?

Prerequisites

  • I'm using the latest version of DripForm、DripFormTheme.
  • I have read the console error message carefully (if applicable).

Description

我在一个组件内设置了默认值之后,我点击空白处的时候,就会给全局赋值,这会导致在渲染时,默认的数据等无法显示

Steps to reproduce

我在一个组件内设置了默认值之后,我点击空白处的时候,就会给全局赋值,这会导致在渲染时,默认的数据等无法显示

Current behavior

我在一个组件内设置了默认值之后,我点击空白处的时候,就会给全局赋值,这会导致在渲染时,默认的数据等无法显示

Expected behavior

我在一个组件内设置了默认值之后,我点击空白处的时候,就会给全局赋值,这会导致在渲染时,默认的数据等无法显示

Your environment

  • DripForm version used:
  • DripFormTheme used:
  • DripFormTheme version used:

Reproducible demo

No response

Self-service

  • I'd be willing to fix this bug myself.

[generator]A trash bin is needed to discard the wrong components I have dragged

Is your feature request related to a problem? Please describe.

N

Description

When I dragged a wrong components, I have to put it down and then delete it. I want to disgard it directly.

Describe the solution you'd like

When a component is dragged up, place a trash bin somewhere, so that I can put the component into it to discard this dragging action.

Describe alternatives you've considered

N

Self-service

  • I'd be willing to contribute this feature to DripForm myself.

drip-form渲染表单数组时录入的数据项过多导致查看不方便问题

Is your feature request related to a problem? Please describe.

Description

image
数据项过多时, 需要滚动页面较久, 希望可以折叠数据项

Describe the solution you'd like

希望可以折叠数组项

Describe alternatives you've considered

No response

Self-service

  • I'd be willing to contribute this feature to DripForm myself.

[Bug] 日期选择器,默认占位符文案不匹配

Have you read the Contributing Guidelines on issues?

Prerequisites

  • I'm using the latest version of DripForm、DripFormTheme.
  • I have read the console error message carefully (if applicable).

Description

日期选择器,默认文案不匹配
image

Steps to reproduce

  1. 打开日期选择器
  2. 选择样式
  3. 查看文案

Current behavior

一个是选择时间,一个是选择日期

Expected behavior

统一文案

Your environment

  • DripForm version used: latest version

Reproducible demo

No response

Self-service

  • I'd be willing to fix this bug myself.

生成器未携带自定义组件

Describe the bug

自定义组件内含有自定义属性,
新建该自定义组件,生成的schema中未携带该自定义属性。

Form version:
drip-form:0.1.0
form-generator:0.1.0

[Bug] 选择器组件,占位符设置未生效

Have you read the Contributing Guidelines on issues?

Prerequisites

  • I'm using the latest version of DripForm、DripFormTheme.
  • I have read the console error message carefully (if applicable).

Description

【选择器组件】设置占位符,或者在 schema 中编辑 palceholder 无效。

Steps to reproduce

  1. 添加 选择器组件
  2. 样式 -> 占位符,填写占位符
  3. 或者在 JSON 编辑中填写 schema -> ui -> placeholder
  4. 点击预览,占位符未生效

Current behavior

选择器组件占位符未生效

Expected behavior

选择器组件占位符生效

Your environment

版本:"@jdfed/form-generator": "^0.1.0"

Reproducible demo

No response

Self-service

  • I'd be willing to fix this bug myself.

自定义组件内设置$:type后,在渲染时报错 strict mode: unknown keyword: "$:type"

Have you read the Contributing Guidelines on issues?

Prerequisites

  • I'm using the latest version of DripForm、DripFormTheme.
  • I have read the console error message carefully (if applicable).

Description

自定义组件内设置$:type后,在渲染时报错 strict mode: unknown keyword: "$:type"

Steps to reproduce

自定义组件内设置$:type后,在渲染时报错 strict mode: unknown keyword: "$:type"

Current behavior

自定义组件内设置$:type后,在渲染时报错 strict mode: unknown keyword: "$:type"

Expected behavior

自定义组件内设置$:type后,在渲染时报错 strict mode: unknown keyword: "$:type"

Your environment

  • DripForm version used:
  • DripFormTheme used:
  • DripFormTheme version used:

Reproducible demo

No response

Self-service

  • I'd be willing to fix this bug myself.

[Bug]uploader preview error

Have you read the Contributing Guidelines on issues?

Prerequisites

  • I'm using the latest version of DripForm、DripFormTheme.
  • I have read the console error message carefully (if applicable).

Description

After uploading the picture successfully, the thumbUrl is not displayed, and reports an error

Steps to reproduce

  1. setting listType='picture-card'
  2. uploaded

Current behavior

WX20211229-181025@2x

Expected behavior

uoloaded sussessfully

Your environment

  • DripForm version used:
  • DripFormTheme used:
  • DripFormTheme version used:

Reproducible demo

No response

Self-service

  • I'd be willing to fix this bug myself.

【数组容器】数组容器的添加一行这里是不是文案可以定制

Is your feature request related to a problem? Please describe.

【数组容器】数组容器的添加一行这里是不是文案可以定制

Description

【数组容器】数组容器的添加一行这里是不是文案可以定制

Describe the solution you'd like

文案可定制

Describe alternatives you've considered

No response

Self-service

  • I'd be willing to contribute this feature to DripForm myself.

[Bug] 组件是否展示标题选择不展示,再次进入组件标题配置时,展示仍然被勾选

Have you read the Contributing Guidelines on issues?

Prerequisites

  • I'm using the latest version of DripForm、DripFormTheme.
  • I have read the console error message carefully (if applicable).

Description

组件是否展示标题选择不展示,再次进入组件标题配置时,展示仍然被勾选

Steps to reproduce

  1. 将组件是否展示标题设置为不展示;
  2. 退出该组件编辑
  3. 再次进入该组件编辑,点击标题配置,展示选项仍然被勾选

image

Current behavior

组件是否展示标题选择不展示,再次进入组件标题配置时,展示仍然被勾选

Expected behavior

组件是否展示标题选择不展示,再次进入组件标题配置时,展示不被勾选

Your environment

  • DripForm version used: latest version

Reproducible demo

No response

Self-service

  • I'd be willing to fix this bug myself.

[Bug] 日期选择器,开启范围,占位符填写不生效

Have you read the Contributing Guidelines on issues?

Prerequisites

  • I'm using the latest version of DripForm、DripFormTheme.
  • I have read the console error message carefully (if applicable).

Description

日期选择器,开启范围,占位符填写不生效

image

Steps to reproduce

日期选择器,开启范围,占位符填写不生效

Current behavior

日期选择器,开启范围,占位符填写不生效

Expected behavior

日期选择器,开启范围,占位符填写生效

Your environment

  • DripForm version used:
  • DripFormTheme used:
  • DripFormTheme version used:

Reproducible demo

No response

Self-service

  • I'd be willing to fix this bug myself.

Document needs to be completed

Have you read the Contributing Guidelines on issues?

Description

文档中缺少一些配置项的说明,需要补全。
The description of some configuration items is missing in the document and needs to be completed.

Self-service

  • I'd be willing to address this documentation request myself.

[Bug] 引入的主题包中组件悬浮提示没有效果

Have you read the Contributing Guidelines on issues?

Prerequisites

  • I'm using the latest version of DripForm、DripFormTheme.
  • I have read the console error message carefully (if applicable).

Description

引入的主题包中组件悬浮提示没有效果

Steps to reproduce

通过插件下载到工作台的主题包 悬浮提示没有效果

Current behavior

image

Expected behavior

正常展示悬浮提示

Your environment

  • DripForm version used:
  • DripFormTheme used:
  • DripFormTheme version used:

Reproducible demo

No response

Self-service

  • I'd be willing to fix this bug myself.

【feature】图片上传后拿到的是对象、目前我们在代码里处理获取上传的url, 是否可以直接输出url

Is your feature request related to a problem? Please describe.

图片上传后拿到的是对象、目前我们在代码里处理获取上传的url, 是否可以直接输出url

Description

图片上传后拿到的是对象、目前我们在代码里处理获取上传的url, 是否可以直接输出url

Describe the solution you'd like

图片上传后拿到的是对象、目前我们在代码里处理获取上传的url, 是否可以直接输出url

Describe alternatives you've considered

No response

Self-service

  • I'd be willing to contribute this feature to DripForm myself.

[Bug] 首个组件删除按钮部分被遮挡,样式需要优化一下

Have you read the Contributing Guidelines on issues?

Prerequisites

  • I'm using the latest version of DripForm、DripFormTheme.
  • I have read the console error message carefully (if applicable).

Description

首个组件删除按钮部分被遮挡,样式需要优化一下,提高易用性和美观性

Steps to reproduce

新增第一个组件,第一个组件的删除按钮被部分遮挡

image

Current behavior

首个组件删除按钮部分被遮挡

Expected behavior

首个组件删除按钮完整展示

Your environment

  • DripForm version used: latest version

Reproducible demo

No response

Self-service

  • I'd be willing to fix this bug myself.

feature(form): support common event callback

Is your feature request related to a problem? Please describe.

Some components maybe have common actions like sent a request, pop up a message and so on.
I want to fire a event and do some actions in the event callback.

Description

A Event callback mechanism, support async and await at the same time.

Describe the solution you'd like

Custom components can use fireEvent to throw a event and I can do actions in the event callback named onEvent to process it.

Describe alternatives you've considered

No response

Self-service

  • I'd be willing to contribute this feature to DripForm myself.

[Bug] 图片组件 maxiumn 不能配置的问题

Have you read the Contributing Guidelines on issues?

Prerequisites

  • I'm using the latest version of DripForm、DripFormTheme.
  • I have read the console error message carefully (if applicable).

Description

图片组件 maxiumn 不能加,加了就没有图片预览效果了。

Steps to reproduce

  1. 图片上传组件添加了 maxium属性

Current behavior

不能预览

Expected behavior

可以预览

Your environment

  • DripForm version used:
  • DripFormTheme used:
  • DripFormTheme version used:

Reproducible demo

No response

Self-service

  • I'd be willing to fix this bug myself.

[Bug] Not work when a `fieldKey` is `type`

Have you read the Contributing Guidelines on issues?

Prerequisites

  • I'm using the latest version of DripForm、DripFormTheme.
  • I have read the console error message carefully (if applicable).

Description

When I set a fieldKey to type, the form item can't change value.

Steps to reproduce

  1. Open https://jdfed.github.io/drip-form/generator_demo/ .
  2. Choose a Text component.
  3. Click JSON Edit and set the fieldKey to type.
  4. Click Form Preview.
  5. Try to type some words.

Current behavior

No response to my input.

Expected behavior

It works fine.

Your environment

Reproducible demo

No response

Self-service

  • I'd be willing to fix this bug myself.

[Bug] 日期选择器,开启范围,占位符默认值与展示值不匹配

Have you read the Contributing Guidelines on issues?

Prerequisites

  • I'm using the latest version of DripForm、DripFormTheme.
  • I have read the console error message carefully (if applicable).

Description

日期选择器,开启范围,占位符默认值与展示值不匹配

image

Steps to reproduce

日期选择器,开启范围,占位符默认值与展示值不匹配

Current behavior

日期选择器,开启范围,占位符默认值与展示值不匹配

Expected behavior

日期选择器,开启范围,占位符默认值与展示值匹配

Your environment

  • DripForm version used: latest version
  • DripFormTheme used:
  • DripFormTheme version used:

Reproducible demo

No response

Self-service

  • I'd be willing to fix this bug myself.

form-generator 使用编译器添加组建时新增的表单总会出现在最上面

Is your feature request related to a problem? Please describe.

在我使用form-generator时 每次新增的表单项在最上面出现, 我需要再重新拖动, 并不友好

Description

在我使用form-generator时 每次新增的表单项在最上面出现, 我需要再重新拖动, 并不友好

Describe the solution you'd like

是否可以按照我添加的顺序依次往下排列

Describe alternatives you've considered

No response

Self-service

  • I'd be willing to contribute this feature to DripForm myself.

希望右侧属性配置区域的组件类型和fieldKey 可以支持设置disabled,在编辑时组件类型和fieldKey 不支持修改

Is your feature request related to a problem? Please describe.

希望右侧属性配置区域的组件类型和fieldKey 可以支持设置disabled,在编辑时组件类型和fieldKey 不支持修改

Description

希望右侧属性配置区域的组件类型和fieldKey 可以支持设置disabled,在编辑时组件类型和fieldKey 不支持修改

Describe the solution you'd like

希望右侧属性配置区域的组件类型和fieldKey 可以支持设置disabled,在编辑时组件类型和fieldKey 不支持修改

Describe alternatives you've considered

No response

Self-service

  • I'd be willing to contribute this feature to DripForm myself.

parse和transformApi可以更加灵活

Is your feature request related to a problem? Please describe.

parse和transformApi不够灵活,只能定义在外部。不方便使用

Description

parse和transformApi可以更加灵活,以便于去编辑和保存它

Describe the solution you'd like

parse和transformApi可以更加灵活,每个表单项可以独立配置

Describe alternatives you've considered

No response

Self-service

  • I'd be willing to contribute this feature to DripForm myself.

[Bug] <title> monaco-editor init error

Have you read the Contributing Guidelines on issues?

Prerequisites

  • I'm using the latest version of DripForm、DripFormTheme.
  • I have read the console error message carefully (if applicable).

Description

When the editor initializes, it initializes the wrong initialization, monaco-editor init error

Steps to reproduce

1、open project
2、click preview error

Current behavior

none

Expected behavior

none

Your environment

  • DripForm version used: 0.2.0-alpha.1
  • DripFormTheme used: 0.2.0-alpha.1
  • DripFormTheme version used: 0.2.0-alpha.1

Reproducible demo

No response

Self-service

  • I'd be willing to fix this bug myself.

属性和校验配置 设置必填之后,在没有填写的情况下也能提交成功,没有展示必填的文案

Have you read the Contributing Guidelines on issues?

Prerequisites

  • I'm using the latest version of DripForm、DripFormTheme.
  • I have read the console error message carefully (if applicable).

Description

属性和校验配置 设置必填之后,在没有填写的情况下也能提交成功,没有展示必填的文案

Steps to reproduce

属性和校验配置 设置必填之后,在没有填写的情况下也能提交成功,没有展示必填的文案

Current behavior

属性和校验配置 设置必填之后,在没有填写的情况下也能提交成功,没有展示必填的文案

Expected behavior

属性和校验配置 设置必填之后,在没有填写的情况下也能提交成功,没有展示必填的文案

Your environment

  • DripForm version used:
  • DripFormTheme used:
  • DripFormTheme version used:

Reproducible demo

No response

Self-service

  • I'd be willing to fix this bug myself.

feat: 自定义ajv配置

Is your feature request related to a problem? Please describe.

#137

Description

用户可以自定义ajv配置。对ajv进行定制

Describe the solution you'd like

添加ajvConfig prop来定制ajv。

const ajv = new Ajv(ajvConfig)

Describe alternatives you've considered

No response

Self-service

  • I'd be willing to contribute this feature to DripForm myself.

drip-form录入数据后,删除数据不友好问题

Is your feature request related to a problem? Please describe.

Description

image
鼠标移入才会展示删除按钮,

Describe the solution you'd like

希望删除按钮可以常驻

Describe alternatives you've considered

No response

Self-service

  • I'd be willing to contribute this feature to DripForm myself.

[Bug] 滑动输入条,选择步数,和默认值,预览数目展示有问题

Have you read the Contributing Guidelines on issues?

Prerequisites

  • I'm using the latest version of DripForm、DripFormTheme.
  • I have read the console error message carefully (if applicable).

Description

滑动输入条,选择步数,和默认值,预览数目展示有问题

image

Steps to reproduce

滑动输入条,选择步数,和默认值,预览数目展示有问题

Current behavior

滑动输入条,选择步数,和默认值,预览数目展示有问题

Expected behavior

滑动输入条,选择步数,和默认值,预览数目展示有问题

Your environment

  • DripForm version used:
  • DripFormTheme used:
  • DripFormTheme version used:

Reproducible demo

No response

Self-service

  • I'd be willing to fix this bug myself.

[Bug] 设置一个表单模块有多选框和数字输入框,点击数字输入框组件设置默认值后在切换到多选框报错

Have you read the Contributing Guidelines on issues?

Prerequisites

  • I'm using the latest version of DripForm、DripFormTheme.
  • I have read the console error message carefully (if applicable).

Description

设置一个表单模块有多选框和数字输入框,点击数字输入框组件设置默认值后在切换到多选框报错

image

Steps to reproduce

  1. 设置一个表单模块有多选框和数字输入框
  2. 点击数字输入框组件设置默认值
  3. 切换到多选框报错

Current behavior

报错

Expected behavior

不报错

Your environment

  • DripForm version used:
  • DripFormTheme used:
  • DripFormTheme version used:

Reproducible demo

No response

Self-service

  • I'd be willing to fix this bug myself.

[Bug] <title>form-generator 在使用object嵌套object时页面报错了

Have you read the Contributing Guidelines on issues?

Prerequisites

  • I'm using the latest version of DripForm、DripFormTheme.
  • I have read the console error message carefully (if applicable).

Description

我在可视化区域使用了object对象组, 在对象组内嵌套一个对象组时,页面报错变成了白页

Steps to reproduce

  1. 使用drip-form编译器
  2. 拖拽对象组
  3. 拖拽新的对象组到原对象组内

Current behavior

可能是object内处理复杂的结构出现了问题

Expected behavior

我想在编译器内可以嵌套使用深层结构

Your environment

  • DripForm version used:
  • DripFormTheme used:
  • DripFormTheme version used:

Reproducible demo

No response

Self-service

  • I'd be willing to fix this bug myself.

[feature] generator 数组容器支持配置点击增加按钮文案

{
  "validateTime": "change",
  "type": "object",
  "ui": {},
  "theme": "antd",
  "schema": [
    {
      "validateTime": "submit",
      "type": "array",
      "title": "数组容器",
      "ui": {
        "type": "array",
        "mode": "add",
        "addTitle": "新增一行"
      },
      "fieldKey": "array_pEK2BH"
    }
  ]
}

drip-form 已经支持该功能。ui中配置addTitle
generator需要支持配置该文案

Originally posted by @mengshang918 in #51 (comment)

[Bug] 数组组件中删除第一个数据会把第二个数据删除

Have you read the Contributing Guidelines on issues?

Prerequisites

  • I'm using the latest version of DripForm、DripFormTheme.
  • I have read the console error message carefully (if applicable).

Description

数组组件中删除第一个数据会把第二个数据删除

Steps to reproduce

数组组件中删除第一个数据会把第二个数据删除

Current behavior

数组组件中删除第一个数据会把第二个数据删除

Expected behavior

数组组件中删除第一个数据会把第一个数据删除

Your environment

  • DripForm version used:
  • DripFormTheme used:
  • DripFormTheme version used:

Reproducible demo

No response

Self-service

  • I'd be willing to fix this bug myself.

Feature:图片上传,没有校验

Is your feature request related to a problem? Please describe.

need

Description

图片上传,尺寸校验,图片大小校验没有

Describe the solution you'd like

--

Describe alternatives you've considered

No response

Self-service

  • I'd be willing to contribute this feature to DripForm myself.

[Bug] 开发环境下,form渲染组件,控制台有 containerStyle warning提示,比较影响日志调试

Have you read the Contributing Guidelines on issues?

Prerequisites

  • I'm using the latest version of DripForm、DripFormTheme.
  • I have read the console error message carefully (if applicable).

Description

开发环境下,控制台有 containerStyle warning提示,比较影响日志调试
image

Steps to reproduce

  1. 使用form渲染组件
  2. 在开发环境下
  3. 控制台containerStyle warning报错

Current behavior

控制台containerStyle warning报错

Expected behavior

控制台没有 containerStyle warning 报错

Your environment

  • DripForm version used: 0.8.2-alpha.0
  • DripFormTheme used: 0.8.2-alpha.0
  • DripFormTheme version used: 0.8.2-alpha.0

Reproducible demo

No response

Self-service

  • I'd be willing to fix this bug myself.

[Bug] 添加两个时间选择器,12小时制设置,相互影响

Have you read the Contributing Guidelines on issues?

Prerequisites

  • I'm using the latest version of DripForm、DripFormTheme.
  • I have read the console error message carefully (if applicable).

Description

添加两个时间选择器,12小时制设置,相互影响

image

Steps to reproduce

  1. 添加两个时间选择器
  2. 给其中一个设置12小时制
  3. 来回切换几次,两个都被设置成了12小时制

Current behavior

添加两个时间选择器,12小时制设置,相互影响

Expected behavior

添加两个时间选择器,12小时制设置,不相互影响

Your environment

  • DripForm version used:
  • DripFormTheme used:
  • DripFormTheme version used:

Reproducible demo

No response

Self-service

  • I'd be willing to fix this bug myself.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.