{"dist":{"shasum":"992057ed3aa00de859af9b283df82f7fd6546012","tarball":"https://registry.npmjs.org/rax-text/-/rax-text-1.1.0-0.tgz","fileCount":39,"integrity":"sha512-Iegdi23z7G8hYq8KtIkIvZJgFcDp6PusW3RAGkQUqn/VRzNDgkdbRlxEny97gNZHQu4NtOA7/fxfUKTzotu40w==","signatures":[{"sig":"MEUCIC4TQQrGdILkI8aWLVckuZ7lWPK+CV2aZzPkDziTXbpRAiEAl+woScNX53WGC71vfDvn5ggqKnnZBQulU/yYQ4Bz/y8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":32974,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJddJ+oCRA9TVsSAnZWagAAoMQP/ixOSzG35PFhG0PR/vr5\n0TYqnT9PUenObr9YxUxWA4vOXlJM4JAULQUVCrHdMl8skFsExqYQiSTo6bwr\nkalsTTw8MO5cSHXMYekGC43r+XC4Af9+yOdAV/OQGUuqlwJRiEgPFoYcn6hI\nTOy5/C9lmLDdDIhBV9GC8KnM6X+rYvZoljtXRSoOO9WHe8ib0DY8CNUh5TJk\nUVniXPxFhjNVmr5ApbQB5dKMVmdQe07MWwCoHtnnfz6cuagowmBPrtsg697n\nwZ4vsncc/0/Thy4vvFxvzN1xrgIXChf18c9EDBMSIsIvkc3ftaPl+qhCgdn4\n9XVJq6kgnZoJ5ehjxAFS/ayQ9K3yxDAxeXVzWCbILWWiVVzPCyoxY19bOgi3\ntLBS8vCVdmlV/F3bUKw6msRqMPEQ8D1DkAAOz+Ctgy3qewTzqb1EwwBM+YE6\nxggG3HuYk+5e1yTBsclhVTVpM8FM7lyvLdtcJbOfXOAlnMbOgblXMc0BRqw7\nVd6bo0hgpXcvck8mJi22K5sfcgWabqpOVSUhCHXOy8Dv3Nfp/zmY3gp5XmZz\nWY2lPGdQ5PtSHvpo2duTjpn46uLGr5XzMT6qAHeoUpc+LjsJdWGyZUjbg0pm\n9Ie3OqRr9AmSLFvi44a5PZhnWC0KLpRRo9IbG72OwDr4n6/Lrva9OIvA9/Bx\n6xF5\r\n=tPe1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","name":"rax-text","husky":{"hooks":{"pre-commit":"lint-staged"}},"types":"lib/index.d.ts","readme":"[![npm](https://img.shields.io/npm/v/rax-text.svg)](https://www.npmjs.com/package/rax-text)\n\n**描述：**\nText 用于显示文本，在 web 中实际上是一个 span 标签而非 p 标签。 \n\nText 标签默认展现样式会占满一行，如果有富文本的需求可以 Text 嵌套使用。\n## 安装\n\n```bash\n$ npm install rax-text --save\n```\n## 引用\n\n```jsx\nimport Text from 'rax-text';\n```\n\n## 属性\n注：\n1、**支持**列表中的 <img alt=\"browser\" src=\"https://gw.alicdn.com/tfs/TB1uYFobGSs3KVjSZPiXXcsiVXa-200-200.svg\" width=\"25px\" height=\"25px\" />代表h5 <img alt=\"weex\" src=\"https://gw.alicdn.com/tfs/TB1jM0ebMaH3KVjSZFjXXcFWpXa-200-200.svg\" width=\"25px\" height=\"25px\" />代表weex  <img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" />代表小程序\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\" />  |\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"},"gitHead":"b685c55de93342937c5570935ef0671c27bcd37b","license":"BSD-3-Clause","scripts":{"lint":"eslint --ext .js --ext .jsx --ext .ts --ext .tsx ./src","test":"npm run build && rax-scripts test","build":"npm run clean && rax-scripts build","clean":"rm -rf ./lib && rm -rf ./package-lock.json","start":"rax-scripts start","prepublishOnly":"npm run build"},"_npmUser":{"name":"recover758126","email":"761647716@qq.com"},"keywords":["Rax","rax-component"],"_npmVersion":"6.9.0","description":"Text component for Rax.","directories":{},"lint-staged":{"*.{js,jsx,ts,tsx}":["eslint --fix","git add"]},"maintainers":[{"name":"amdgigabyte","email":"amdgigabyte@gmail.com"},{"name":"liangzhi.llz","email":"liangzhi.llz@alibaba-inc.com"},{"name":"marc.hy","email":"marc.hy@alibaba-inc.com"},{"name":"recover758126","email":"761647716@qq.com"},{"name":"wintercn","email":"csf178@gmail.com"},{"name":"yacheng","email":"narutosun2@163.com"},{"name":"yuanyan","email":"yuanyan.cao@gmail.com"},{"name":"zeroling","email":"wssgcg1213@qq.com"}],"_nodeVersion":"10.16.0","dependencies":{"classnames":"^2.2.6","universal-env":"^1.0.0"},"miniappConfig":{"main":"lib/miniapp/index"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"rax":"^1.0.0","husky":"^3.0.5","eslint":"^5.16.0","csstype":"^2.6.4","rax-view":"^1.0.1-beta.11","driver-dom":"^1.0.0","@types/jest":"^24.0.12","driver-weex":"^1.0.0","lint-staged":"^9.2.5","rax-scripts":"^2.0.0","@rax-types/rax":"^1.0.5","@types/ali-app":"^1.0.0","driver-universal":"^1.0.1","@types/classnames":"^2.2.9","eslint-config-rax":"^0.0.0","rax-test-renderer":"^1.0.0","rax-plugin-component":"^0.1.9","@typescript-eslint/parser":"^1.7.0","@typescript-eslint/eslint-plugin":"^1.7.0"},"peerDependencies":{"rax":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/rax-text_1.1.0-0_1567924135937_0.08778831408535637","host":"s3://npm-registry-packages"},"_id":"rax-text@1.1.0-0","version":"1.1.0-0"}