¶Ô±ÈÐÂÎļþ |
| | |
| | | export default { |
| | | props: { |
| | | // 主é¢é¢è² |
| | | type: { |
| | | type: String, |
| | | default: uni.$u.props.text.type |
| | | }, |
| | | // æ¯å¦æ¾ç¤º |
| | | show: { |
| | | type: Boolean, |
| | | default: uni.$u.props.text.show |
| | | }, |
| | | // æ¾ç¤ºçå¼ |
| | | text: { |
| | | type: [String, Number], |
| | | default: uni.$u.props.text.text |
| | | }, |
| | | // åç½®å¾æ |
| | | prefixIcon: { |
| | | type: String, |
| | | default: uni.$u.props.text.prefixIcon |
| | | }, |
| | | // åç½®å¾æ |
| | | suffixIcon: { |
| | | type: String, |
| | | default: uni.$u.props.text.suffixIcon |
| | | }, |
| | | // ææ¬å¤ççå¹é
æ¨¡å¼ |
| | | // text-æ®éææ¬ï¼price-ä»·æ ¼ï¼phone-ææºå·ï¼name-å§åï¼date-æ¥æï¼link-è¶
龿¥ |
| | | mode: { |
| | | type: String, |
| | | default: uni.$u.props.text.mode |
| | | }, |
| | | // mode=linkä¸ï¼é
ç½®ç龿¥ |
| | | href: { |
| | | type: String, |
| | | default: uni.$u.props.text.href |
| | | }, |
| | | // æ ¼å¼åè§å |
| | | format: { |
| | | type: [String, Function], |
| | | default: uni.$u.props.text.format |
| | | }, |
| | | // mode=phoneæ¶ï¼ç¹å»ææ¬æ¯å¦æ¨æçµè¯ |
| | | call: { |
| | | type: Boolean, |
| | | default: uni.$u.props.text.call |
| | | }, |
| | | // å°ç¨åºçæå¼æ¹å¼ |
| | | openType: { |
| | | type: String, |
| | | default: uni.$u.props.text.openType |
| | | }, |
| | | // æ¯å¦ç²ä½ï¼é»è®¤normal |
| | | bold: { |
| | | type: Boolean, |
| | | default: uni.$u.props.text.bold |
| | | }, |
| | | // æ¯å¦åç¶ |
| | | block: { |
| | | type: Boolean, |
| | | default: uni.$u.props.text.block |
| | | }, |
| | | // ææ¬æ¾ç¤ºçè¡æ°ï¼å¦æè®¾ç½®ï¼è¶
åºæ¤è¡æ°ï¼å°ä¼æ¾ç¤ºçç¥å· |
| | | lines: { |
| | | type: [String, Number], |
| | | default: uni.$u.props.text.lines |
| | | }, |
| | | // ææ¬é¢è² |
| | | color: { |
| | | type: String, |
| | | default: uni.$u.props.text.color |
| | | }, |
| | | // åä½å¤§å° |
| | | size: { |
| | | type: [String, Number], |
| | | default: uni.$u.props.text.size |
| | | }, |
| | | // 徿 çæ ·å¼ |
| | | iconStyle: { |
| | | type: [Object, String], |
| | | default: uni.$u.props.text.iconStyle |
| | | }, |
| | | // æåè£
饰ï¼ä¸å线ï¼ä¸å线çï¼å¯éå¼ none|underline|line-through |
| | | decoration: { |
| | | type: String, |
| | | default: uni.$u.props.text.decoration |
| | | }, |
| | | // å¤è¾¹è·ï¼å¯¹è±¡ãåç¬¦ä¸²ï¼æ°å¼å½¢å¼åå¯ |
| | | margin: { |
| | | type: [Object, String, Number], |
| | | default: uni.$u.props.text.margin |
| | | }, |
| | | // ææ¬è¡é« |
| | | lineHeight: { |
| | | type: [String, Number], |
| | | default: uni.$u.props.text.lineHeight |
| | | }, |
| | | // ææ¬å¯¹é½æ¹å¼ï¼å¯éå¼left|center|right |
| | | align: { |
| | | type: String, |
| | | default: uni.$u.props.text.align |
| | | }, |
| | | // æåæ¢è¡ï¼å¯éå¼break-word|normal|anywhere |
| | | wordWrap: { |
| | | type: String, |
| | | default: uni.$u.props.text.wordWrap |
| | | } |
| | | } |
| | | } |