didi / epage

一款基于schema的低代码可视化页面配置工具
http://epage.didichuxing.com
MIT License
460 stars 94 forks source link

希望一些widget能够支持缺省值,比如输入框,日期等 #3

Closed wqr2016 closed 4 years ago

wqr2016 commented 4 years ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

tt-ghost commented 4 years ago

没有理解你说的意思 @wqr2016

wqr2016 commented 4 years ago

没有理解你说的意思 @wqr2016

  1. 比如年龄缺省值需要设置成30,这个就需要widget需要一个类似default的值。"default": 30,
  2. 比如省市地区下拉列表框中,需要指定一个缺省值为“北京“。性别下拉列表框,缺省值可以设置为”男”。 "default": "M"

可以参照下面项目中的default: https://json-editor.github.io/json-editor/

tt-ghost commented 4 years ago

没有理解你说的意思 @wqr2016

  1. 比如年龄缺省值需要设置成30,这个就需要widget需要一个类似default的值。"default": 30,
  2. 比如省市地区下拉列表框中,需要指定一个缺省值为“北京“。性别下拉列表框,缺省值可以设置为”男”。 "default": "M"

可以参照下面项目中的default: https://json-editor.github.io/json-editor/

好的,这个问题我们先记下了,会在后续版本中更新,谢谢在问题中还附带了示例