[new feature] Search: add right-icon prop

This commit is contained in:
陈嘉涵
2019-05-27 14:55:07 +08:00
parent ac431276f9
commit 613679c2aa
5 changed files with 34 additions and 2 deletions
+3
View File
@@ -14,6 +14,7 @@ export type SearchProps = {
value?: string;
label?: string;
leftIcon: string;
rightIcon?: string;
background: string;
showAction?: boolean;
};
@@ -95,6 +96,7 @@ function Search(
border={false}
value={props.value}
leftIcon={props.leftIcon}
rightIcon={props.rightIcon}
scopedSlots={{ 'left-icon': slots['left-icon'] }}
{...fieldData}
/>
@@ -107,6 +109,7 @@ function Search(
Search.props = {
value: String,
label: String,
rightIcon: String,
showAction: Boolean,
shape: {
type: String,