{"bugs":{"url":"https://github.com/alibaba/rax/issues"},"dist":{"shasum":"355c735142a35752fe12fda568f7e0addee9441d","tarball":"https://registry.npmjs.org/rax-icon/-/rax-icon-1.1.0-3.tgz","fileCount":5,"integrity":"sha512-lHY/bocynLdxHbcYtZImOQEBMMa4ENju9Q5JvfT+pLXDx7LGnQySAhoQz1bTBs+uG5HyhRno4b/Umx4Ltg3KrA==","signatures":[{"sig":"MEQCIAPHuB7cA3OBxFD6U9Lx/ZetPEHA/oabXZEginFajZDfAiAfb0kqdw1awQl+4DZh65rfUOtI904dlUqpRITvbSXVBw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9616,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdncvaCRA9TVsSAnZWagAA988QAIFKi3MlMA1svvEzhe5O\n9M4WhJYZHulOzthuUYVQon51KAxqxdygvWf9hymXSNaAVa3sBnD5vPr/QeVC\n1ZFirolq/NcKDj5cpftNAoh7AFnC851IaOkSb2wBwauswlNtJmP4eObg4m49\nERfp1AN0qKCj3VcBJP5K1rb81YGWVUsl8/Paed9jCzT3JdGtg+tpPiA40D/8\n8oA38R33qH5OLZMLf/5EM8j6TegKBcSyDUbZWF15CyBImNwZWfNAhV0BEfYc\n89EgfAmpDn6SwEnrkJJ6VE0Rb9yV7fobe4uY2pAsbACSkjkywE5a65pLYgKg\nUctic/bZ3DJ4GpDKfnP9mMqu8yENkqc6zpPHiboltcX6pgOTunogdT9q4Qnq\nRi1u7nzUSPDFP9Y/XU3iHb2aNtqb+p//98+3rHog/gHOpSKLNg+fNR7L9j0d\n9A2gAUon1s/Xm0q3u4rQO1sJQnmP9ZtUK6Y3kQ4blOtD3t2g0B4LkEas/BXr\nb5fQDTq3cbWdzNJd1xbjRkU/V25Ix8Nja8IYAE0hs7JThaYgzXCDlQRfNxWn\n08VcY3a332En6bU3GVUsTSzrj11z/TD27j2vCASKDirKqIqbq1Pa7V+de2CV\nL2cs6QseE8+M3oLZy1+6UWHFfVjHWQUOq98viMVREOQ144IvUuIwPq6do37U\nJDTT\r\n=0fcD\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","name":"rax-icon","types":"lib/index.d.ts","readme":"[![npm](https://img.shields.io/npm/v/rax-icon.svg)](https://www.npmjs.com/package/rax-icon)\n\n## 支持\n\nWeb / Weex\n\n## 描述\n\n图标组件，实现了 W3C 标准的 IconFont 接口。\n\n## 安装\n\n```bash\n$ npm install rax-icon --save\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| ----------- | ---------- | ---------- | ------------ | ------------------ | ------------ |\n| source.uri     | `String` | -          |      是        | 图片型icon的url，如果出现，则font和codePoint两个属性失效 | <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\" />  |\n| fontFamily | `String` | -          |     是         | iconfont的字体         | <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\" />     |\n| source.codePoint     | `String` | -          |  是       |    iconfont的码点                     | <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\" />           |   \n\n## 方法\n\n### `IconComponent createIconSet(Object map, String name, String url);`\n\n#### 参数\n| **属性** | **类型** | **默认值** | **必填** | **描述**            | \n| -------- | -------- | ---------- | ------------ | ------------------- |\n| map  | `Object` | -          | 是           | 描述字符集映射，eg：{ hello: '\\ue60f' }            | \n| name | `String` | -       | 是        | 字体名称 | \n| url | `String` | -       | 是       | 字体文件的 URL | \n\n#### 返回\n\n| **属性** | **类型** | **默认值** | **必填** | **描述**            | \n| -------- | -------- | ---------- | ------------ | ------------------- |\n| name  | `String` | -          | 否           | 字符的名称            | \n| codePoint | `String` | -       | 否        | iconfont 的码点 | \n\n## 示例\n```js\nimport { createElement, render, Component } from 'rax';\nimport DU from 'driver-universal';\nimport View from 'rax-view';\nimport Icon, { createIconSet } from '../src/index';\n\nconst IconFont1 = createIconSet({}, 'iconfont', 'https://at.alicdn.com/t/font_pkm0oq8is8fo5hfr.ttf');\nconst IconFont2 = createIconSet({\n  hello: '\\uE60f'\n}, 'iconfont', 'https://at.alicdn.com/t/font_pkm0oq8is8fo5hfr.ttf');\nconst icon = 'https://gw.alicdn.com/tfs/TB1KRRuQXXXXXbwapXXXXXXXXXX-200-200.png';\n\nclass Demo extends Component {\n  render() {\n    return (\n      <View>\n        <Icon source={{uri: icon}}/>\n        <Icon fontFamily=\"iconfont\" source={{uri: 'https://at.alicdn.com/t/font_pkm0oq8is8fo5hfr.ttf', codePoint: '\\uE60f'}}/>\n        <IconFont1 codePoint={'\\uE60f'}/>\n        <IconFont2 name={'hello'}/>\n      </View>\n    );\n  }\n}\n\nrender(<Demo />, document.body, { driver: DU });\n```","engines":{"npm":">=3.0.0"},"gitHead":"854f5fdfce357b687b1f43106828d34579e10f50","license":"BSD-3-Clause","scripts":{"lint":"eslint --ext .js --ext .jsx --ext .ts --ext .tsx ./src --fix","test":"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/alibaba/rax#readme","keywords":["Rax","rax-component","react-component"],"repository":{"url":"git+https://github.com/raxjs/rax-icon.git","type":"git"},"_npmVersion":"6.11.3","description":"icon component for Rax.","directories":{},"maintainers":[{"name":"liangzhi.llz","email":"liangzhi.llz@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":{"rax-text":"^1.1.0-0","rax-image":"^1.0.1","universal-env":"^1.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"rax":"^1.0.0","eslint":"^5.16.0","csstype":"^2.6.4","rax-view":"^1.0.2","@types/jest":"^24.0.12","driver-weex":"^1.0.0","rax-scripts":"^2.0.0","@rax-types/rax":"^1.0.5","@types/ali-app":"^1.0.0","driver-universal":"^1.0.0","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-icon_1.1.0-3_1570622425420_0.9635870826465687","host":"s3://npm-registry-packages"},"_id":"rax-icon@1.1.0-3","version":"1.1.0-3"}