{"bugs":{"url":"https://github.com/alibaba/rax/issues"},"dist":{"shasum":"54cc3453d658b5d8f8ff90100df713258eae67ed","tarball":"https://registry.npmjs.org/rax-icon/-/rax-icon-1.3.4-beta.0.tgz","fileCount":19,"integrity":"sha512-02tcdmq5WQj8BNDxbbl9ZRqgKXZL67K9S8sqVr/sQsBbWZJHED5++INlaNrR/Fz39NazPZF2KasqcsmTAMHwIw==","signatures":[{"sig":"MEUCIQDjFCg/HVTCdnohPDCto+niJeMuBx6tw9nsep0IE0mBdwIgNUecRCW3M57pyM8f7rlrAXELJaTTC7gN6fRXVPypSRA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":19201,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJez0lhCRA9TVsSAnZWagAAu/gP/Rh21sUNiFPBUInS3RBb\nbKVDFhw1QF6W8fTj49Cn4phwZGE+ulmQgo6E6Fv9i8lhfw7At3J4T2RdtizJ\n3PUfy/F9Lj8Rq5WTyL/J52Rc38b3Q4r8NNXjjHxr3FWQzCj1TF0TOXHjP2BC\nYNNmKB6WdzMXyCtkaf8aQ9RodI054uodJotU/Cv1Nl/rFkwOz7t/0ggrZY/B\nBqb/ErtEV96JU2/KAaf9xMfht2dzvdSC9S2CMa/kVrkIvYz81a+mYZPehMo1\nRx6MvR41SJ0CYUci9xHwuznJtYX0Mtkxt/wTayBAP6h+VZlPH98Hz382kegA\n6H6iUvOLhZbJp+pZRovvSNUCeQcLvcdU4zu+jZgbNITcNvOqCWjzW3qqMPX5\n6UdJ/Rn9MpYY/OacXAfcMha/a96iWspatNf6eGnk8i7xvsUcGRr3WO+r4HSE\nFUYBzhIFo1RD5iH4tM85UlvLt9gOqaeaVJbxqJPGP0aTMRMO6HLFyoFXyrjk\nOYCzU0AqnSjWXNDR0oN9S1pRrnGIKP74qWGXC1g3wR1ZZAawfhgKEJvVt3cq\nirZuDzJsvaLkTe2ZZ9oHB2wWrNcrH0sN0Y3eUtaEpSEXqMXhdSo4GZ0wtPNk\nz1sjQe7+GtTFZHuZmMGT9WxLwJWYcwWCdwzFhIQT4rc6Tx1tqpbgeS+EJj7y\nDNFU\r\n=kZRd\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":{"build":"npm run clean && ../../node_modules/.bin/build-scripts build --config ../../build.json","clean":"rm -rf ./lib && rm -rf ./package-lock.json","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/alibaba/rax#readme","keywords":["Rax","rax-component","react-component"],"repository":{"url":"git+https://github.com/raxjs/rax-components.git","type":"git"},"_npmVersion":"6.4.1","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.11.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","@types/rax":"^1.0.0","mini-types":"^0.1.1","@types/jest":"^24.0.12","driver-weex":"^1.0.0","driver-universal":"^1.0.0","eslint-config-rax":"^0.0.0","rax-test-renderer":"^1.0.0","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.4-beta.0_1590643040952_0.850132703496931","host":"s3://npm-registry-packages"},"_id":"rax-icon@1.3.4-beta.0","version":"1.3.4-beta.0"}