{"bugs":{"url":"https://github.com/raxjs/rax-components/issues"},"dist":{"shasum":"c46fe32ba7fca1fbcd3ed9cbaf8b295db4f866d3","tarball":"https://registry.npmjs.org/rax-text/-/rax-text-1.1.2-1.tgz","fileCount":52,"integrity":"sha512-ZDp0a5z50fKen/kgo/P7RHRgrpGbpG1dHK3lUpQP4wp8wVaI+mRz/0TIS11q76+mrskAWUwpjPBnfQN2rddwgA==","signatures":[{"sig":"MEUCIA6v/rMutt8MS1ToTOTkAJ6d72GGMivWFsfZgclEtEbSAiEA+twp9Bk7/soy3xOGzmxq1xg1/S4/EqK1R8zE41t4zRA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":26459,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd1iCMCRA9TVsSAnZWagAAqOIQAI7nGjAD4ksSJBwxTV88\nrYQrKlX3sjX+vrVCROnWSmZQCNKdAXIDtEzgAhlj/o68F3c5hxk35GEPXaOx\nIAQyg9AunJ7np9pSuMeaY0qBWZWdHpeqQ+Z5MxCqgv5pY3ajzBfsSMf/+ccd\nRagjz4XF2AB4Rs3TVh9f9s/toXZuS1g1u26uljQMS4lcmEDKKm6WkWUt1HFn\nb4wZ0EyaCrZR9qjhBM4SFugb1uhiPsSFsMQ8Gl+y5ury7chSRUaqvQ7ylZg4\nxnlnWjjtH7KHSrI0522eCug89tofq/qxUE7Tnk8mg6vuezrNlK1YQNl/n/fd\npRldJK5wb9SKGebmiTe8zJCKmSSlg275aZn1urWcKgTtjHugAaEmbyu2vK+Z\nLPLHXRkWXxhU8A6fwPN8ezmI5XisDZM0ozY5Q5MX39DKI27l+tEMOm8RFiqU\nyBkDwt3TNBDxJbwBQV8srLWrdirk57JThhS73uiVcCPqMuwMP2np/5l82TNy\ntw1c2QD6jEnNP0QlKrsn7374lvl4Fe1eEAUnXZbpqbxahroONPov7ooBorS6\nMuNSMGX7/xg2ivuDmlGY2VW1V3XvgtDhnP8xkag+nNrk9FnN0Ny8l1wMy9xs\n/HMZB+b/skkK8h6dnQ1OvJ5GpVDAh8ldtCBG0yFudpo6uqztpx4bCls7yYHD\nOafi\r\n=yydE\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":"recover758126","email":"761647716@qq.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.11.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.2-1_1574314123854_0.15974266657215308","host":"s3://npm-registry-packages"},"_id":"rax-text@1.1.2-1","version":"1.1.2-1"}