¶Ô±ÈÐÂÎļþ |
| | |
| | | export default { |
| | | props: { |
| | | // å¾çå°å |
| | | src: { |
| | | type: String, |
| | | default: uni.$u.props.image.src |
| | | }, |
| | | // è£åªæ¨¡å¼ |
| | | mode: { |
| | | type: String, |
| | | default: uni.$u.props.image.mode |
| | | }, |
| | | // 宽度ï¼åä½ä»»æ |
| | | width: { |
| | | type: [String, Number], |
| | | default: uni.$u.props.image.width |
| | | }, |
| | | // é«åº¦ï¼åä½ä»»æ |
| | | height: { |
| | | type: [String, Number], |
| | | default: uni.$u.props.image.height |
| | | }, |
| | | // å¾çå½¢ç¶ï¼circle-åå½¢ï¼square-æ¹å½¢ |
| | | shape: { |
| | | type: String, |
| | | default: uni.$u.props.image.shape |
| | | }, |
| | | // åè§ï¼åä½ä»»æ |
| | | radius: { |
| | | type: [String, Number], |
| | | default: uni.$u.props.image.radius |
| | | }, |
| | | // æ¯å¦æå è½½ï¼å¾®ä¿¡å°ç¨åºãAppãç¾åº¦å°ç¨åºãåèè·³å¨å°ç¨åº |
| | | lazyLoad: { |
| | | type: Boolean, |
| | | default: uni.$u.props.image.lazyLoad |
| | | }, |
| | | // å¼å¯é¿æå¾çæ¾ç¤ºè¯å«å¾®ä¿¡å°ç¨åºç èå |
| | | showMenuByLongpress: { |
| | | type: Boolean, |
| | | default: uni.$u.props.image.showMenuByLongpress |
| | | }, |
| | | // å è½½ä¸ç徿 ï¼æè
å°å¾ç |
| | | loadingIcon: { |
| | | type: String, |
| | | default: uni.$u.props.image.loadingIcon |
| | | }, |
| | | // å 载失败ç徿 ï¼æè
å°å¾ç |
| | | errorIcon: { |
| | | type: String, |
| | | default: uni.$u.props.image.errorIcon |
| | | }, |
| | | // æ¯å¦æ¾ç¤ºå è½½ä¸ç徿 æè
èªå®ä¹çslot |
| | | showLoading: { |
| | | type: Boolean, |
| | | default: uni.$u.props.image.showLoading |
| | | }, |
| | | // æ¯å¦æ¾ç¤ºå è½½é误ç徿 æè
èªå®ä¹çslot |
| | | showError: { |
| | | type: Boolean, |
| | | default: uni.$u.props.image.showError |
| | | }, |
| | | // æ¯å¦éè¦æ·¡å
¥ææ |
| | | fade: { |
| | | type: Boolean, |
| | | default: uni.$u.props.image.fade |
| | | }, |
| | | // åªæ¯æç½ç»èµæºï¼åªå¯¹å¾®ä¿¡å°ç¨åºææ |
| | | webp: { |
| | | type: Boolean, |
| | | default: uni.$u.props.image.webp |
| | | }, |
| | | // è¿æ¸¡æ¶é´ï¼åä½ms |
| | | duration: { |
| | | type: [String, Number], |
| | | default: uni.$u.props.image.duration |
| | | }, |
| | | // èæ¯é¢è²ï¼ç¨äºæ·±è²é¡µé¢å è½½å¾çæ¶ï¼ä¸ºäºåèæ¯è²èå |
| | | bgColor: { |
| | | type: String, |
| | | default: uni.$u.props.image.bgColor |
| | | } |
| | | } |
| | | } |