提交 5e39268d 编写于 作者: K kezhenxu94 提交者: Jason Song

Allow config value to be empty. fixes #1882 (#1883)

allow config value to be empty. #1882
上级 96441c0d
...@@ -75,11 +75,6 @@ application_module.config(function (valdrProvider) { ...@@ -75,11 +75,6 @@ application_module.config(function (valdrProvider) {
'required': { 'required': {
'message': 'Key不能为空' 'message': 'Key不能为空'
} }
},
'value': {
'required': {
'message': 'value不能为空'
}
}, },
'comment': { 'comment': {
'size': { 'size': {
......
...@@ -26,13 +26,10 @@ ...@@ -26,13 +26,10 @@
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-2 control-label"> <label class="col-sm-2 control-label">Value</label>
<apollorequiredfield></apollorequiredfield>
Value
</label>
<div class="col-sm-10" valdr-form-group> <div class="col-sm-10" valdr-form-group>
<textarea id="valueEditor" name="value" class="form-control" rows="6" tabindex="2" <textarea id="valueEditor" name="value" class="form-control" rows="6" tabindex="2"
ng-required="true" ng-required="false"
ng-model="item.value"> ng-model="item.value">
</textarea> </textarea>
注意: 隐藏字符(空格、换行符、制表符Tab)容易导致配置出错,如果需要检测Value中隐藏字符请点击 <a ng-click="showHiddenChars()">检测隐藏字符</a> 注意: 隐藏字符(空格、换行符、制表符Tab)容易导致配置出错,如果需要检测Value中隐藏字符请点击 <a ng-click="showHiddenChars()">检测隐藏字符</a>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册