{"bugs":{"url":"https://github.com/alibaba/rax/issues"},"dist":{"shasum":"8d1637c223d25dffb3fa979021a13017a0c0ff17","tarball":"https://registry.npmjs.org/rax-icon/-/rax-icon-1.3.2-2.tgz","fileCount":19,"integrity":"sha512-LElCiUx+DcKWrh83G9ORc972ox/KbtrrXnY1LfxIFhQalNuyVH6V17v7zb5iJrKLYwO9lYOLt9O3mJDBWReGHg==","signatures":[{"sig":"MEQCICEvYIoc3QWGzOh8caxjuRvvWYWfonZPlFfHQ9kusO7vAiB8D1FIStyENf0rEXk3OAUK05cWPqVRX1Fh9fUou+QhiQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18891,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJevf+3CRA9TVsSAnZWagAATncP/iPVFatD/zcm9+Z5OR7g\n8xk/gMMreL6hYE24rL7H4yAkwqxh+Q6zQ0vyP8toeKtqG82xJng+pInaJLeM\nIyNEegy9iyIUyFqXj3qBRpIoMok2pCs01vdgNP8+yu5CZWsB9zX+/D5nFNqz\ncfPMnr4qHb1wtkn3gZ84cQYnDkFzNIDm48tnsg6y5eHaT1xGCSycsjke3iHL\n74itDuZ0XbIMR5sbI4uu+URSevvsF3OiBWLbYDbOvqREwvXNG+VA26dxMiY+\nzB1DEwLU+Jp+As5UNbyviWrLi9tlGdrUyncEwQkzobda1Gttl/37ah6pY64x\n7MjQv4jCszYbGsll4OVl4/fdzUT0xPvtbtg0kjv0oXZOUttprfJyxUycOJmG\noy8435r66F4+z/nBseXe/qBq6hhI7NUwAxuEsDgU9cq0XdDiSyBPqzUPETCZ\nsfeFGGBj6E+eO12qmPQtdKuB1paKaHwGOX/9hkJroz9apo012G40hPzuEoJl\nWD/hIg8VpoFCtej7KBQ4Pj20cCkMezMAxG/49MqQpa7/lzEhn3Oppf7eCUSs\nGbqFfHnezCgIOZDwj0bSRLn6jOyanZdvKDCd5xnAe1EHGu7hRfmSMExUvKZk\nUXkysq4BoXp0Gv4HGGfSfMNrvhyZCIMqRhWX7RiFZrEZO7XSXTP+jb3siXCD\nzAnN\r\n=EWmz\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\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\" />代表小程序  <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\">微信小程序  <img alt=\"quickApp\" src=\"https://gw.alicdn.com/tfs/TB1MP7EwQT2gK0jSZPcXXcKkpXa-200-200.svg\" width=\"25px\" height=\"25px\">代表快应用 \n2. 小程序存在两种构建模式：编译时和运行时。如无说明，该属性支持小程序即指两种构建模式均支持\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\" /> <img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" /> <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\"> <img alt=\"quickApp\" src=\"https://gw.alicdn.com/tfs/TB1MP7EwQT2gK0jSZPcXXcKkpXa-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\" /> <img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" /> <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\"> <img alt=\"quickApp\" src=\"https://gw.alicdn.com/tfs/TB1MP7EwQT2gK0jSZPcXXcKkpXa-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\" /> <img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" /> <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\"> <img alt=\"quickApp\" src=\"https://gw.alicdn.com/tfs/TB1MP7EwQT2gK0jSZPcXXcKkpXa-200-200.svg\" width=\"25px\" height=\"25px\">         |   \n\n## 方法\n\n### `IconComponent createIconSet(Object map, String name, String url);`\n\n#### 支持\n<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=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" /> \n**(小程序编译时模式不支持)**\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```\n","engines":{"npm":">=3.0.0"},"license":"BSD-3-Clause","scripts":{"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":"rax-publisher","email":"rax-public@alibaba-inc.com"},"homepage":"https://github.com/alibaba/rax#readme","keywords":["Rax","rax-component","react-component"],"repository":{"url":"git+https://github.com/raxjs/rax-components.git","type":"git"},"_npmVersion":"6.14.4","description":"icon component for Rax.","directories":{},"maintainers":[{"name":"rax-publisher","email":"rax-publisher@zeroling.com"},{"name":"recover758126","email":"761647716@qq.com"},{"name":"wintercn","email":"csf178@gmail.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":"^3.0.0"},"miniappConfig":{"main":"lib/miniapp/index","main:wechat":"lib/miniapp-wechat/index","main:quickapp":"lib/quickapp/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.0.2","mini-types":"^0.1.1","@types/jest":"^24.0.12","driver-weex":"^1.0.0","rax-scripts":"^2.0.0","@rax-types/rax":"^1.0.5","driver-universal":"^1.0.0","eslint-config-rax":"^0.0.0","rax-test-renderer":"^1.0.0","rax-plugin-component":"^0.1.9","miniprogram-api-typings":"^2.10.1","@typescript-eslint/parser":"^1.7.0","@typescript-eslint/eslint-plugin":"^1.7.0"},"peerDependencies":{"rax":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/rax-icon_1.3.2-2_1589510071076_0.6018753878463889","host":"s3://npm-registry-packages"},"_id":"rax-icon@1.3.2-2","version":"1.3.2-2"}