| ¶Ô±ÈÐÂÎļþ |
| | |
| | | export default { |
| | | props: { |
| | | // æç´¢æ¡å½¢ç¶ï¼round-åå½¢ï¼square-æ¹å½¢ |
| | | shape: { |
| | | type: String, |
| | | default: uni.$u.props.search.shape |
| | | }, |
| | | // æç´¢æ¡èæ¯è²ï¼é»è®¤å¼#f2f2f2 |
| | | bgColor: { |
| | | type: String, |
| | | default: uni.$u.props.search.bgColor |
| | | }, |
| | | // å ä½æç¤ºæå |
| | | placeholder: { |
| | | type: String, |
| | | default: uni.$u.props.search.placeholder |
| | | }, |
| | | // æ¯å¦å¯ç¨æ¸
餿§ä»¶ |
| | | clearabled: { |
| | | type: Boolean, |
| | | default: uni.$u.props.search.clearabled |
| | | }, |
| | | // æ¯å¦èªå¨èç¦ |
| | | focus: { |
| | | type: Boolean, |
| | | default: uni.$u.props.search.focus |
| | | }, |
| | | // æ¯å¦å¨æç´¢æ¡å³ä¾§æ¾ç¤ºåæ¶æé® |
| | | showAction: { |
| | | type: Boolean, |
| | | default: uni.$u.props.search.showAction |
| | | }, |
| | | // å³è¾¹æ§ä»¶çæ ·å¼ |
| | | actionStyle: { |
| | | type: Object, |
| | | default: uni.$u.props.search.actionStyle |
| | | }, |
| | | // åæ¶æé®æå |
| | | actionText: { |
| | | type: String, |
| | | default: uni.$u.props.search.actionText |
| | | }, |
| | | // è¾å
¥æ¡å
容坹齿¹å¼ï¼å¯éå¼ä¸º left|center|right |
| | | inputAlign: { |
| | | type: String, |
| | | default: uni.$u.props.search.inputAlign |
| | | }, |
| | | // inputè¾å
¥æ¡çæ ·å¼ï¼å¯ä»¥å®ä¹æåé¢è²ï¼å¤§å°çï¼å¯¹è±¡å½¢å¼ |
| | | inputStyle: { |
| | | type: Object, |
| | | default: uni.$u.props.search.inputStyle |
| | | }, |
| | | // æ¯å¦å¯ç¨è¾å
¥æ¡ |
| | | disabled: { |
| | | type: Boolean, |
| | | default: uni.$u.props.search.disabled |
| | | }, |
| | | // è¾¹æ¡é¢è² |
| | | borderColor: { |
| | | type: String, |
| | | default: uni.$u.props.search.borderColor |
| | | }, |
| | | // æç´¢å¾æ çé¢è²ï¼é»è®¤åè¾å
¥æ¡åä½é¢è² |
| | | searchIconColor: { |
| | | type: String, |
| | | default: uni.$u.props.search.searchIconColor |
| | | }, |
| | | // è¾å
¥æ¡åä½é¢è² |
| | | color: { |
| | | type: String, |
| | | default: uni.$u.props.search.color |
| | | }, |
| | | // placeholderçé¢è² |
| | | placeholderColor: { |
| | | type: String, |
| | | default: uni.$u.props.search.placeholderColor |
| | | }, |
| | | // 左边è¾å
¥æ¡ç徿 ï¼å¯ä»¥ä¸ºuView徿 åç§°æå¾çè·¯å¾ |
| | | searchIcon: { |
| | | type: String, |
| | | default: uni.$u.props.search.searchIcon |
| | | }, |
| | | searchIconSize: { |
| | | type: [Number, String], |
| | | default: uni.$u.props.search.searchIconSize |
| | | }, |
| | | // ç»ä»¶ä¸å
¶ä»ä¸ä¸å·¦å³å
ç´ ä¹é´çè·ç¦»ï¼å¸¦åä½çå符串形å¼ï¼å¦"30px"ã"30px 20px"çåæ³ |
| | | margin: { |
| | | type: String, |
| | | default: uni.$u.props.search.margin |
| | | }, |
| | | // å¼å¯showActionæ¶ï¼æ¯å¦å¨inputè·åç¦ç¹æ¶ææ¾ç¤º |
| | | animation: { |
| | | type: Boolean, |
| | | default: uni.$u.props.search.animation |
| | | }, |
| | | // è¾å
¥æ¡çåå§åå
容 |
| | | value: { |
| | | type: String, |
| | | default: uni.$u.props.search.value |
| | | }, |
| | | // è¾å
¥æ¡æå¤§è½è¾å
¥çé¿åº¦ï¼-1为ä¸éå¶é¿åº¦(æ¥èªuniappææ¡£) |
| | | maxlength: { |
| | | type: [String, Number], |
| | | default: uni.$u.props.search.maxlength |
| | | }, |
| | | // æç´¢æ¡é«åº¦ï¼åä½px |
| | | height: { |
| | | type: [String, Number], |
| | | default: uni.$u.props.search.height |
| | | }, |
| | | // æç´¢æ¡å·¦ä¾§ææ¬ |
| | | label: { |
| | | type: [String, Number, null], |
| | | default: uni.$u.props.search.label |
| | | } |
| | | } |
| | | } |