{"bugs":{"url":"https://github.com/raxjs/rax-components/issues"},"dist":{"shasum":"49ef427d48aa493b602592f19c9cd6dd8d3f59b9","tarball":"https://registry.npmjs.org/rax-text/-/rax-text-2.1.0-0.tgz","fileCount":64,"integrity":"sha512-A9qHKkFiKXYs70PS+LBPt3X1m/aBRz/GiXf9es4M38QauR5+WFeBypXWXMj4Yrt5rM9gyfn0lVDZdkb5yFpARA==","signatures":[{"sig":"MEQCIH1OlRDjwXyEd6fQ6gLkuufDbZONNbeotU2JxWkOoy5pAiA3vqB40L7zfcJxp1lAOUDweo4nvIoX5+77u2jIIikp2w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":63306,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgtdeyCRA9TVsSAnZWagAAcu4P/0n87HoAGs5MSbmUDJWw\ncUf2fFrguBNcuL0oyxbBYe9RkomTfgLsqkRhbHqSeK0dQBHPbyNhwIEiw2XG\nbMZ6oSZnLNZR0T6aJS/jiK66tfDLw+w5SENJH0EIKmdaP5WVIRri+fxLNTvc\nehcXQ6SNH4G7WBgb/7YbCZvC+znim31JRNlwlUZnBoXLlW3oKTPS3CcufM33\nqRhttrgJls/8hPre4TmZfCCLeZTiB71MBAd4xY/dyaMFR2gueOvE2wgFYEZt\nif8ArF+2z5MhO5E71ILLxK8ZgO3F/lIHKurN+qta/406N6mwAGwZ4Pd1PJmh\nHdFpmI1mYkDTeXvY44NLqrckqndX7T/ZFcssbpZC/nVnZi5mdpb/U1YNqgyL\n8mQ8L12P1ScMYsRxHypvBenYCbYgd2t39Plp1wF8bDnHoUOc/agr0jl+itPl\nXhkXHoWngFT22eESAGgQhYcJ03EqD7bDyZmZN95SEckK5a5uf6zE8YJjRg7o\njAb9qHvCAHEh+WQBLTgWaiaShuKYf350MJAB9aJYe4GXm5dohiin4cQxDz5b\n9VgCJ0PpWgsz4E+KeAQ2HkmvbOHJyiNaVw/0yh+0Oj1DCJk3qWB3jTqXWkwO\nfDbgewHbeti9D72meRsIDviOG1MYfjJGWhTx3PJ5GENc8FlS+wgXiKytOShh\nUMMF\r\n=9Z51\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","name":"rax-text","types":"lib/index.d.ts","module":"es/index.js","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\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```","exports":{".":{"web":"./es/web/index.js","weex":"./es/weex/index.js","default":"./es/index.js","miniapp":"./es/miniapp/index.js","baidu-smartprogram":"./es/miniapp/index.js","bytedance-microapp":"./es/miniapp/index.js","wechat-miniprogram":"./es/miniapp/index.js","kuaishou-miniprogram":"./es/miniapp/index.js"},"./*":"./*"},"license":"BSD-3-Clause","scripts":{"build":"../../node_modules/.bin/build-scripts build --config ../../build.json --skip-demo","start":"../../node_modules/.bin/build-scripts start --config ../../build.json","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","react-component"],"repository":{"url":"git+https://github.com/raxjs/rax-components.git","type":"git"},"_npmVersion":"7.10.0","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-native/ali-miniapp/index","main:quickapp":"lib/miniapp-native/quickapp/index","main:bytedance":"lib/miniapp-native/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.1.0-0_1622529969499_0.03318657420705251","host":"s3://npm-registry-packages"},"_id":"rax-text@2.1.0-0","version":"2.1.0-0"}