Skip to content

Commit

Permalink
fix: 修改pi-search注释
Browse files Browse the repository at this point in the history
  • Loading branch information
Jau-work committed Mar 30, 2021
1 parent fcd257d commit 3b205e9
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions components/pi-search/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export default {
return search.customClass
}
},
// 搜索框形状,可选值为 `square` `round` |`String`| `false` | `round`
// 搜索框形状,可选值为 `'square'` `'round'`
shape: {
type: String,
// `'round'`
Expand All @@ -120,7 +120,7 @@ export default {
// 背景颜色
background: {
type: String,
// ``#f5f5f5``
// `'#f5f5f5'`
default: search.background
},
// 是否启用清除控件
Expand All @@ -146,13 +146,13 @@ export default {
// 占位提示文字
placeholder: {
type: String,
// `请输入搜索关键词`
// `'请输入搜索关键词'`
default: search.placeholder
},
// 指定 placeholder 的样式
placeholderStyle: {
type: String,
// `color: #cccccc;`
// `'color: #cccccc;'`
default() {
return search.placeholderStyle
}
Expand All @@ -172,7 +172,7 @@ export default {
// 右侧显示文字
actionText: {
type: String,
// `取消`
// `'取消'`
default: search.actionText
},
// 指定右侧显示文字样式
Expand All @@ -183,10 +183,10 @@ export default {
return search.actionStyle
}
},
// 输入框内容对齐方式,可选值 `left` `center` `right` |`String`| `false`
// 输入框内容对齐方式,可选值 `'left'` `'center'` `'right'`
inputAlign: {
type: String,
// `left`
// `'left'`
default: search.inputAlign
},
// 搜索框左侧文本
Expand All @@ -212,13 +212,13 @@ export default {
// 输入框的图标,可以为icon名称或图片路径
searchIcon: {
type: String,
// `search`
// `'search'`
default: search.searchIcon
},
// 输入框左边的图标颜色(当传入searchIcon为name的时候)
searchIconColor: {
type: String,
// `#333333`
// `'#333333'`
default: search.searchIconColor
},
// 输入框左侧的图标自定义样式
Expand All @@ -229,9 +229,8 @@ export default {
return search.searchIconStyle
}
},
// 搜索icon的位置
// 搜索icon的位置, 可选值为`'left'` `'right'`
searchIconPosition: {
// `'left'` `'right'`
type: String,
// `'left'`
default: search.searchIconPosition,
Expand Down Expand Up @@ -262,7 +261,7 @@ export default {
// 输入文本颜色
color: {
type: String,
// `#333333`
// `'#333333'`
default: search.color
}
},
Expand Down

0 comments on commit 3b205e9

Please sign in to comment.