{"bugs":{"url":"https://github.com/raxjs/rax-components/issues"},"dist":{"shasum":"38e26d7d37662983c3127e0df6a6327bb7c3bba9","tarball":"https://registry.npmjs.org/rax-text/-/rax-text-2.0.5-0.tgz","fileCount":30,"integrity":"sha512-gQDiIbek+4NVJ0Cwl8PT6kTdKBHLaBpyzM0xEh7e23LMaqO2Zrq7HaFHDt8CIKOUYszFt5a6XKEaNUCOOqqeNA==","signatures":[{"sig":"MEYCIQD9F4TCpHmbHzwYppHFcGOAxUjsSh81i5Y/IBOe2SsXfAIhAIaLAi7UFoA/q6NjIiG15UqCAh59BH0+QDNJqaYPd/Df","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25753,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf/mFMCRA9TVsSAnZWagAAxIwP/10q/4eEgC56PLg7DfGC\nBEij9TGaz0kTUX52ijNEiBBQRqoIz6jlNRRtw+WvBFMEqnfKDVh5rWUTdL+j\n02oxcbZoGWfDduABGoT8HdCPZNeulxA4G4ke2q909+dNDuMtIStjRQ8I7Ze3\n7cAUf4am+L0h/5ZMjTNwO2HjYhF+yyvEMs8eVvN963okOFaY9IzZmoqdB1EK\nd3hFP4tClz++7Pg14N5redCP9RiSkxcBSYtbEwBK/I549iby2heIAvgFo+il\nThkmVX0NT4jDTl7p6XCYJkjN+JXxTP1sm9mV+xIFRBzduVSpqS+OxdRKCDn1\nT3Y/t2E/oGm5VA9dDBnbq23FsbBztMqotWELxxuzvVoh37eZ0SeJv1boaju2\nb3rPercIKMcFUdhgVzKxG6txqtXm7RuNQ16MHRunnx4RPB1sOAKA2tJHAvzP\neJMbD3yfDmiIRjBH+69CRUUlKgOdeaVh8jzLgUz5dSIbwbjH7jZzqNOiI1Qs\n4PZjSF5WtnAU02HA922xJJNNfr/NfRzPTf4s/ENC3im5VVGeydXGg1gwadQw\nwkTRXGSXBQr6J643JTmndlpjPLhhBL7uRd05k5nV4EPxHLBPe7W9QW/kuHBr\nXXxaN9nonkIQCq7CqsH1j7H+R2/qzBSvM1risRbATNrWMosIMeL8L3HYg6aw\nyy5F\r\n=JV2V\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"moduleNameMapper":{"^.+\\.css$":"jest-transform-css"}},"main":"lib/index.js","name":"rax-text","types":"lib/index.d.ts","readme":"# rax-text\n\n[![npm](https://img.shields.io/npm/v/rax-text.svg)](https://www.npmjs.com/package/rax-text)\n\n## 支持\nWeb / Weex / 阿里小程序 / 微信小程序 / 字节跳动小程序\n\n## 描述\nText 用于显示文本，在 web 中实际上是一个 span 标签而非 p 标签。 \n## 安装\n\n```bash\n$ npm install rax-text --save\n```\n\n## 属性\n\n| **属性**    | **类型**   | **默认值** | **必填** | **描述**           | **支持** |\n| ----------- | ---------- | ---------- | ------------ | ------------------ | ------------ |\n| numberOfLines     | `number` | 1         |   false           | 行数 | <img alt=\"browser\" src=\"https://gw.alicdn.com/tfs/TB1uYFobGSs3KVjSZPiXXcsiVXa-200-200.svg\" width=\"25px\" height=\"25px\" /><img alt=\"weex\" src=\"https://gw.alicdn.com/tfs/TB1jM0ebMaH3KVjSZFjXXcFWpXa-200-200.svg\" width=\"25px\" height=\"25px\" /><img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" /><img alt=\"quickApp\" src=\"https://gw.alicdn.com/tfs/TB1MP7EwQT2gK0jSZPcXXcKkpXa-200-200.svg\" width=\"25px\" height=\"25px\"> <img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1jFtVzO_1gK0jSZFqXXcpaXXa-200-200.svg\" width=\"25px\" height=\"25px\" /> |\n| selectable     | `boolean` | false         |   false           | 是否可选 | <img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" />   |\n| space     | `string` |         |         false     | 以何种方式显示连续空格 | <img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" />  |\n| decode     | `boolean` |         |   false           | 是否解码。为 true 时表示对文本内容进行解码，可解析的 HTML 实体字符有：&nbsp; &lt; &gt; &amp; &apos; &ensp; &emsp; | <img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" />  |\n## 示例\n```js\nimport {createElement, render, Component} from 'rax';\nimport DU from 'driver-universal';\nimport View from 'rax-view';\nimport Text from 'rax-text';\n\nconst styles = {\n  root: {\n    width: 750,\n    paddingTop: 20,\n  },\n  container: {\n    padding: 20,\n    borderStyle: 'solid',\n    borderColor: '#dddddd',\n    borderWidth: 1,\n    marginLeft: 20,\n    marginRight: 20,\n    marginBottom: 10,\n  },\n  textBlock: {\n    fontWeight: '500',\n    color: 'blue',\n  },\n  logBox: {\n    padding: 20,\n    margin: 10,\n    borderWidth: 1,\n    borderColor: '#f0f0f0',\n    backgroundColor: '#f9f9f9',\n  },\n};\n\nclass App extends Component {\n  render() {\n    return (\n      <View style={styles.root}>\n        <View style={{\n          ...styles.container, ...{\n            flexDirection: 'row',\n            justifyContent: 'flex-start',\n          }\n        }}>\n          <Text>text</Text>\n          <Text style={{\n            color: '#ff4200'\n          }}>Mixing</Text>\n        </View>\n\n        <View style={styles.container}>\n          <Text numberOfLines={1} style={{\n            width: 300,\n            textOverflow: 'ellipsis',\n          }}>Single line of text exceeds truncated text</Text>\n\n          <Text numberOfLines={2} style={{\n            width: 300,\n            textOverflow: 'ellipsis',\n          }}>\n          Multi-line text exceeds truncated text, exceeds truncated text, exceeds truncated text, exceeds truncated text</Text>\n        </View>\n\n        <View style={styles.container}>\n          <Text style={{textDecoration: 'underline'}}>\n          Text underline\n          </Text>\n          <Text style={{textDecorationLine: 'none'}}>\n           no Underlined\n          </Text>\n          <Text style={{textDecoration: 'line-through'}}>\n          Text strikethrough\n          </Text>\n        </View>\n\n        <View style={styles.container}>\n          <Text style={{lineHeight: '120rpx'}}>\n          Line height 120rpx, multi-line text text folding effect Multi-line text text folding effect\n          </Text>\n        </View>\n\n      </View>\n    );\n  }\n}\n\nrender(<App/>, document.body, {driver: DU});\n\n```\n\n\n","engines":{"npm":">=3.0.0"},"license":"BSD-3-Clause","scripts":{"test":"npm run build && build-scripts test","build":"npm run clean && ../../node_modules/.bin/build-scripts build","clean":"rm -rf ./lib && rm -rf ./package-lock.json","start":"../../node_modules/.bin/build-scripts start","prepublishOnly":"npm run build"},"_npmUser":{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},"homepage":"https://github.com/raxjs/rax-components#readme","keywords":["Rax","rax-component"],"repository":{"url":"git+https://github.com/raxjs/rax-components.git","type":"git"},"_npmVersion":"6.13.4","description":"Text component for Rax.","directories":{},"maintainers":[{"name":"zeroling","email":"wssgcg1213@qq.com"},{"name":"yuanyan","email":"yuanyan.cao@gmail.com"},{"name":"fyangstudio","email":"18767120422@163.com"},{"name":"solojiang","email":"feifeishen1996@gmail.com"},{"name":"recover758126","email":"761647716@qq.com"},{"name":"marc.hy","email":"marc.hy@alibaba-inc.com"},{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"}],"_nodeVersion":"12.5.0","dependencies":{"universal-env":"^3.0.0"},"miniappConfig":{"main":"lib/miniapp/index","main:quickapp":"lib/quickapp/index","main:bytedance":"lib/bytedance-microapp/index"},"_hasShrinkwrap":false,"quickappConfig":{"main":"lib/quickapp/index"},"readmeFilename":"README.md","devDependencies":{"rax":"^1.0.0","eslint":"^5.16.0","csstype":"^2.6.4","rax-view":"^1.1.0","@types/rax":"^1.0.0","driver-dom":"^2.0.0","@types/jest":"^24.0.12","driver-weex":"^1.0.0","universal-env":"^3.0.0","@types/ali-app":"^1.0.0","driver-universal":"^3.0.0","eslint-config-rax":"^0.0.0","rax-test-renderer":"^1.0.0","jest-transform-css":"^2.0.0","rax-server-renderer":"^1.1.5","@typescript-eslint/parser":"^1.7.0","@typescript-eslint/eslint-plugin":"^1.7.0"},"peerDependencies":{"rax":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/rax-text_2.0.5-0_1610506572125_0.9229746613196879","host":"s3://npm-registry-packages"},"_id":"rax-text@2.0.5-0","version":"2.0.5-0"}