{"bugs":{"url":"https://github.com/raxjs/rax-components/issues"},"dist":{"shasum":"91312cab4838a7156097628b722c61a8ea69e4aa","tarball":"https://registry.npmjs.org/rax-text/-/rax-text-1.1.1-beta.1.tgz","fileCount":32,"integrity":"sha512-Ll4sJzaH7PExOBGZ1o6VTWuQT+A7yTo0DIn8J0NeoB2UvgzUjl6lz2ieqHvdPB4SjjaVrcjtDc2aDCGeoIqsgg==","signatures":[{"sig":"MEUCIQC02EAEC+kHIz91CQMqwdqdiV+H2mlL8nLb7HrlUG4oZAIgTTJMzYN5nvdGdldOCkSBK2OGttM4QuovL0lkWmeBm6c=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":19517,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdsqoCCRA9TVsSAnZWagAADAUQAIcAKquqy8ZWB5EzSAZS\nwdJ2d+e8whYx18ngmhflOJ/BsLs1o6bospapZfJem220LTKYUL0vixpv/1DT\ngH9KvwlqJds+fcvBLW4XdXwMwxrLea2JsatsVJRak70+iq8fQQSdFBIzqLUI\nAnfM971bGm0z+sGBntDaFGrL6v37tcE2ekaAGyNgLywp64AOqq9W/SWsC/H+\nS7zsQT5z098g+LUHTA23B++pzE3IYHj+epW3YjgZ1zRca14xjITpnU0PoRkE\nYSxqGC/Pe+xYSelMfATBQyrzYCQGZvzwyqHPWMEfgZ+DPvtXc2hrPOb1H7Of\nwpkgGYBWjesbJiCFxzHKT0+s45Jg0Un/OHkhYq08P4OTKqkXaztGyhMBydx0\n1FtcM9KboSid2v6McDCU5ToqdwmArItD1G0ZanaFwdbcIpDYGgSD+X9ekB7q\nJ29l69A1Ujm5d2yu7AfirAeDH3PqwHzBjgI5Fwhc8/QlpFX7DK5lrHfcO7uI\nAyqGAdO19WrlevC1OTeWCpLUySxZZyTJk2dG0yQsCgyB4XmOZ7UNWYERJhUS\nJ3kujlczvDHe+7kr8VIikK2/Ub6gIUAASh7jZ5vltmZXpTnHIqVrN15kXd35\nbvP9Ac65K3UKz6i2iHoLbZoVtNrFOA1+qQ44VjLVnZUwSyYSqHPZ6JuMExPl\n1jK+\r\n=AZVH\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## 安装\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"},"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":"solojiang","email":"feifeishen1996@gmail.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.10.3","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":"solojiang","email":"feifeishen1996@gmail.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":{"universal-env":"^1.0.0"},"miniappConfig":{"main":"lib/miniapp/index","main:wechat":"lib/miniapp-wechat/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","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.1-beta.1_1571990018423_0.844866073013695","host":"s3://npm-registry-packages"},"_id":"rax-text@1.1.1-beta.1","version":"1.1.1-beta.1"}