{"bugs":{"url":"https://github.com/alibaba/rax/issues"},"dist":{"shasum":"0bd01b98589203f10a8ca14475e5fc50884ac88d","tarball":"https://registry.npmjs.org/rax-icon/-/rax-icon-1.1.0-1.tgz","fileCount":5,"integrity":"sha512-T/mKsBA73GBvnvGduV/mn1gyMvZ2rJfmPn70Zi8Zb9iiUvvxpPzq/GGNu2zeIEXdsc/VKe6lmGaU/mXg8SByFQ==","signatures":[{"sig":"MEQCIA9VHz0N913xinssdCPXL3z+rdjYt7jzI9z5prXKBYpVAiB+oJsiK+9tqOhuUlXppseHFnAJV/EghaGX/fjcfKGldQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9628,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdfQRJCRA9TVsSAnZWagAAuO8P/iQ5K7ETb/fFQ2nZ6iis\ni/2uj5Du1vOEAUfNtZ0EbBrbMNbnfHsNZ1eOjebxJHGDxQUsXHBTJWakpJaC\nwHojKgvbNLJ77qOd6x+3LNIb9aGojtqQA2Zq8UdCq6zVgrQDNrubJokALzZf\nr2p/JqBXO0bYah6uWBQjhrTwQ8yXjatTLJ9Br9IRcqvQadtgoGnIO0ZIiPl0\nkC0kObvaEAfihDTVvu56ZzrTg9kYGUbKBPWabUaS4OmXUYEvGK47jePLAyuF\nAFCbgryipFN0ZQqNdPvPZl2zQNL1ncVahXNwoWbV/fq6EHSXgXZI/vbHQ9Va\nSvEhp7nG/jGMmF2kh0XlAmls5vUtwsULNAHFpsZkNIKdALe2oBkvU5rlZhvD\nFKaVPeO8S0S/XhFucWZWWGe1vYtamOHGUmMuqYkeXk2K3NSv3n6Xp3VD3emn\n9tJAEn0JMUrs3BHFmWEmYDYaZJE+9cDt7Qa5tN/JllVJsxw9Z/NO2TfVdwfR\nFggbaVOQm37wgyDp7/f6QQIHSb6n7D7MEI/zn2Th2Gc/lDs0yrZNWEGEnDI2\n1LZ4beIufxoXdzK9cdHAdhMk2hTaYGfpNWoruQpL3rphvYaCSOsjAmlG2Y1I\nzbNPZafB3pV5eUESFsIdR05Vfv6GAVuXO5mmh0r4BVEMs4tVcJLGxBUj8iMT\nUaY6\r\n=KdN0\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":"2c5b0d51fdafccc3d2ae2f9173eb56d0fb3da837","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.0.1","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-1_1568474185131_0.11739240459498013","host":"s3://npm-registry-packages"},"_id":"rax-icon@1.1.0-1","version":"1.1.0-1"}