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

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

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