Skip to content

Commit

Permalink
docs(CONFIG.md): icon to iconCls
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-dx committed Dec 24, 2018
1 parent 03f8013 commit aec80bc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CONFIG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
help: { // 帮助信息
show: true, // 是否显示,默认不显示
content: '', // 帮助信息
icon: '', // 帮助图标
iconCls: '', // 帮助图标样式名
text: '' // 帮助文字
},
itemClass: '', // 给表单项添加的样式名
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

{{renderSchema.ui.label}}<!-- 标签信息 -->

<a v-if="renderSchema.ui.help.show === true" href="#"><span :class="renderSchema.ui.help.icon">{{renderSchema.ui.help.text}}</span></a>
<a v-if="renderSchema.ui.help.show === true" href="#"><span :class="renderSchema.ui.help.iconCls">{{renderSchema.ui.help.text}}</span></a>

<!-- 说明信息 -->
<small v-if="renderSchema.ui.description" class="form-text text-muted" v-html="_analyzeVal(renderSchema.ui.description)">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

<!-- TODO daniel: 提示信息组件未加 -->
<!-- 提示信息 -->
<a v-if="fieldSchema.ui.help.show === true" href="#"><span :class="fieldSchema.ui.help.icon">{{fieldSchema.ui.help.text}}</span></a>
<a v-if="fieldSchema.ui.help.show === true" href="#"><span :class="fieldSchema.ui.help.iconCls">{{fieldSchema.ui.help.text}}</span></a>
</label>

<slot :name="field"></slot>
Expand All @@ -45,7 +45,7 @@
{{fieldSchema.ui.label}}
<!-- TODO daniel: 提示信息组件未加 -->
<!-- 提示信息 -->
<a v-if="fieldSchema.ui.help.show === true" href="#"><span :class="fieldSchema.ui.help.icon">{{fieldSchema.ui.help.text}}</span></a>
<a v-if="fieldSchema.ui.help.show === true" href="#"><span :class="fieldSchema.ui.help.iconCls">{{fieldSchema.ui.help.text}}</span></a>
:
</label>
<div :style="{'margin-left': !isNormalObjSchema(fieldSchema) && !fieldSchema.ui.noLabelSpace ? mergeConfig.labelWidth + ';' : '0px;'}" :class="{'col-md-9': !isNormalObjSchema(fieldSchema) && !fieldSchema.ui.noLabelSpace, 'col-md-12': !(!isNormalObjSchema(fieldSchema) && !fieldSchema.ui.noLabelSpace)}">
Expand Down

0 comments on commit aec80bc

Please sign in to comment.