-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9c4750b
commit 587f603
Showing
5 changed files
with
246 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,22 @@ | ||
export default { | ||
shape: 'round', // 搜索框形状 round || square | ||
background: '#f2f2f2', // 搜索框背景颜色(默认#f2f2f2) | ||
background: '#f7f7f7', // 背景颜色(默认#f2f2f2) | ||
clearable: true, // 是否启用清除控件(默认true) | ||
clearTrigger: 'always', // 显示清除图标的时机,always 表示输入框不为空时展示,focus 表示输入框聚焦且不为空时展示 | ||
focus: false, // 是否自动获得焦点(默认false) | ||
placeholder: '', // 占位提示文字 | ||
placeholderStyle: {}, // 指定 placeholder 的样式 | ||
maxlength: null, // 输入的最大字符数 | ||
showAction: true, // 是否在搜索框右侧显示文字 | ||
placeholder: '请输入搜索关键词', // 占位提示文字 | ||
placeholderStyle: 'color: #cccccc;', // 指定 placeholder 的样式 | ||
maxlength: -1, // 输入的最大字符数 | ||
showAction: false, // 是否在搜索框右侧显示文字 | ||
actionText: '取消', // 右侧显示文字 | ||
actionStyle: {}, // 右侧显示文字样式 | ||
inputAlign: 'left', // 'left' || 'center' || 'right' | ||
inputAlign: 'left', // 输入框内容对齐方式,可选值为 left|center|right | ||
searchLabel: '', // 搜索框左侧文本 | ||
searchLabelStyle: {}, // 搜索框左侧文本样式 | ||
searchIcon: 'search', // 输入框左边的图标,可以为icon名称或图片路径 | ||
searchIconColor: '#333333', // 输入框左边的图标颜色 | ||
disabled: false, // 是否禁用输入框 | ||
value: '', // 输入框初始值 | ||
height: '88rpx', // 输入框高度 | ||
inputStyle: {}, // 指定 input 的样式 | ||
height: 58, // 输入框高度,单位默认rpx | ||
color: '#333333' // 输入框颜色 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters