diff --git a/iconfont.json b/iconfont.json
index 86cb06b..33de02e 100644
--- a/iconfont.json
+++ b/iconfont.json
@@ -2,7 +2,7 @@
"symbol_url": "//at.alicdn.com/t/c/font_3619513_mrvpsyqxmzr.js",
"save_dir": "./src/components/iconfont",
"use_typescript": false,
- "platforms": "*",
+ "platforms": ["weapp","h5"],
"use_rpx": true,
"trim_icon_prefix": "",
"default_icon_size": 18,
diff --git a/package.json b/package.json
index 5464206..6900c26 100644
--- a/package.json
+++ b/package.json
@@ -9,7 +9,7 @@
"css": "sass"
},
"scripts": {
- "build:weapp": "taro build --type weapp",
+ "build:weapp": "npx iconfont-taro && taro build --type weapp",
"build:swan": "taro build --type swan",
"build:alipay": "taro build --type alipay",
"build:tt": "taro build --type tt",
@@ -18,7 +18,7 @@
"build:qq": "taro build --type qq",
"build:jd": "taro build --type jd",
"build:quickapp": "taro build --type quickapp",
- "dev:weapp": "npm run build:weapp -- --watch",
+ "dev:weapp": "npx iconfont-taro && npm run build:weapp -- --watch",
"dev:swan": "npm run build:swan -- --watch",
"dev:alipay": "npm run build:alipay -- --watch",
"dev:tt": "npm run build:tt -- --watch",
@@ -27,8 +27,8 @@
"dev:qq": "npm run build:qq -- --watch",
"dev:jd": "npm run build:jd -- --watch",
"dev:quickapp": "npm run build:quickapp -- --watch",
- "build:weapp:pre": "cross-env NODE_ENV=pre taro build --type weapp",
- "dev:weapp:pre": "cross-env NODE_ENV=pre npm run build:weapp -- --watch"
+ "build:weapp:pre": "npx iconfont-taro && cross-env NODE_ENV=pre taro build --type weapp",
+ "dev:weapp:pre": "npx iconfont-taro && cross-env NODE_ENV=pre npm run build:weapp -- --watch"
},
"browserslist": [
"last 3 versions",
diff --git a/src/components/iconfont/alipay/alipay.acss b/src/components/iconfont/alipay/alipay.acss
deleted file mode 100644
index 9f68d1a..0000000
--- a/src/components/iconfont/alipay/alipay.acss
+++ /dev/null
@@ -1,3 +0,0 @@
-.icon {
- background-repeat: no-repeat;
-}
diff --git a/src/components/iconfont/alipay/alipay.axml b/src/components/iconfont/alipay/alipay.axml
deleted file mode 100644
index b684879..0000000
--- a/src/components/iconfont/alipay/alipay.axml
+++ /dev/null
@@ -1,77 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/components/iconfont/alipay/alipay.js b/src/components/iconfont/alipay/alipay.js
deleted file mode 100644
index ba7a316..0000000
--- a/src/components/iconfont/alipay/alipay.js
+++ /dev/null
@@ -1,77 +0,0 @@
-Component({
- props: {
- // icon-wodekefu | icon-dizhi | icon-shouhouzhongxin | icon-wodeshoucang | icon-shoukuanliebiao | icon-madanguanli | icon-qusechazhao | icon-pandiansaoma | icon-yaoqingma | icon-duizhang | icon-tihuoliebiao | icon-yangpinduibi | icon-yansequyang | icon-fahuoliebiao | icon-yuncangkucun | icon-xiaoshou | icon-qianzhicangkucun | icon-lingquseka | icon-gouwu1 | icon-dingdan1 | icon-gerenzhongxin1 | icon-shouye1 | icon-gerenzhongxin | icon-dingdan | icon-shouye | icon-gouwu
- name: null,
- // string | string[]
- color: '',
- size: 18,
- },
- data: {
- colors: '',
- quot: '"',
- svgSize: 18,
- isStr: true,
- },
- didMount() {
- const size = this.props.size;
- const color = this.props.color;
-
- this.setData({
- colors: this.fixColor(color),
- isStr: typeof color === 'string',
- });
-
- if (size !== this.data.svgSize) {
- this.setData({
- svgSize: size / 750 * my.getSystemInfoSync().windowWidth,
- });
- }
- },
- disUpdate(prevProps) {
- const size = this.props.size;
- const color = this.props.color;
-
- if (color !== prevProps.color) {
- this.setData({
- colors: this.fixColor(color),
- isStr: typeof color === 'string',
- });
- }
-
- if (size !== prevProps.size) {
- this.setData({
- svgSize: size / 750 * my.getSystemInfoSync().windowWidth,
- });
- }
- },
- methods: {
- fixColor: function() {
- var color = this.props.color;
- var hex2rgb = this.hex2rgb;
-
- if (typeof color === 'string') {
- return color.indexOf('#') === 0 ? hex2rgb(color) : color;
- }
-
- return color.map(function (item) {
- return item.indexOf('#') === 0 ? hex2rgb(item) : item;
- });
- },
- hex2rgb: function(hex) {
- var rgb = [];
-
- hex = hex.substr(1);
-
- if (hex.length === 3) {
- hex = hex.replace(/(.)/g, '$1$1');
- }
-
- hex.replace(/../g, function(color) {
- rgb.push(parseInt(color, 0x10));
- return color;
- });
-
- return 'rgb(' + rgb.join(',') + ')';
- }
- }
-});
diff --git a/src/components/iconfont/alipay/alipay.json b/src/components/iconfont/alipay/alipay.json
deleted file mode 100644
index 467ce29..0000000
--- a/src/components/iconfont/alipay/alipay.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/src/components/iconfont/index.alipay.js b/src/components/iconfont/index.alipay.js
deleted file mode 100644
index 731305b..0000000
--- a/src/components/iconfont/index.alipay.js
+++ /dev/null
@@ -1,16 +0,0 @@
-/* eslint-disable */
-
-import React from 'react';
-import Taro from '@tarojs/taro';
-
-const IconFont = (props) => {
- const { name, size, color, style } = props;
-
- return ;
-};
-
-IconFont.defaultProps = {
- size: 18,
-};
-
-export default IconFont;
diff --git a/src/components/iconfont/index.qq.js b/src/components/iconfont/index.qq.js
deleted file mode 100644
index 731305b..0000000
--- a/src/components/iconfont/index.qq.js
+++ /dev/null
@@ -1,16 +0,0 @@
-/* eslint-disable */
-
-import React from 'react';
-import Taro from '@tarojs/taro';
-
-const IconFont = (props) => {
- const { name, size, color, style } = props;
-
- return ;
-};
-
-IconFont.defaultProps = {
- size: 18,
-};
-
-export default IconFont;
diff --git a/src/components/iconfont/index.rn.js b/src/components/iconfont/index.rn.js
deleted file mode 100644
index 5375b4a..0000000
--- a/src/components/iconfont/index.rn.js
+++ /dev/null
@@ -1,17 +0,0 @@
-/* eslint-disable */
-
-import React from 'react';
-import Taro from '@tarojs/taro';
-import Icon from './rn';
-
-const IconFont = (props) => {
- const { name, size, color, style } = props;
-
- return ;
-};
-
-IconFont.defaultProps = {
- size: 18,
-};
-
-export default IconFont;
diff --git a/src/components/iconfont/index.swan.js b/src/components/iconfont/index.swan.js
deleted file mode 100644
index 731305b..0000000
--- a/src/components/iconfont/index.swan.js
+++ /dev/null
@@ -1,16 +0,0 @@
-/* eslint-disable */
-
-import React from 'react';
-import Taro from '@tarojs/taro';
-
-const IconFont = (props) => {
- const { name, size, color, style } = props;
-
- return ;
-};
-
-IconFont.defaultProps = {
- size: 18,
-};
-
-export default IconFont;
diff --git a/src/components/iconfont/index.tt.js b/src/components/iconfont/index.tt.js
deleted file mode 100644
index 731305b..0000000
--- a/src/components/iconfont/index.tt.js
+++ /dev/null
@@ -1,16 +0,0 @@
-/* eslint-disable */
-
-import React from 'react';
-import Taro from '@tarojs/taro';
-
-const IconFont = (props) => {
- const { name, size, color, style } = props;
-
- return ;
-};
-
-IconFont.defaultProps = {
- size: 18,
-};
-
-export default IconFont;
diff --git a/src/components/iconfont/qq/qq.js b/src/components/iconfont/qq/qq.js
deleted file mode 100644
index e614032..0000000
--- a/src/components/iconfont/qq/qq.js
+++ /dev/null
@@ -1,31 +0,0 @@
-Component({
- properties: {
- // icon-wodekefu | icon-dizhi | icon-shouhouzhongxin | icon-wodeshoucang | icon-shoukuanliebiao | icon-madanguanli | icon-qusechazhao | icon-pandiansaoma | icon-yaoqingma | icon-duizhang | icon-tihuoliebiao | icon-yangpinduibi | icon-yansequyang | icon-fahuoliebiao | icon-yuncangkucun | icon-xiaoshou | icon-qianzhicangkucun | icon-lingquseka | icon-gouwu1 | icon-dingdan1 | icon-gerenzhongxin1 | icon-shouye1 | icon-gerenzhongxin | icon-dingdan | icon-shouye | icon-gouwu
- name: {
- type: String,
- },
- // string | string[]
- color: {
- type: null,
- observer: function(color) {
- this.setData({
- isStr: typeof color === 'string',
- });
- }
- },
- size: {
- type: Number,
- value: 18,
- observer: function(size) {
- this.setData({
- svgSize: size / 750 * qq.getSystemInfoSync().windowWidth,
- });
- },
- },
- },
- data: {
- svgSize: 18 / 750 * qq.getSystemInfoSync().windowWidth,
- quot: '"',
- isStr: true,
- },
-});
diff --git a/src/components/iconfont/qq/qq.json b/src/components/iconfont/qq/qq.json
deleted file mode 100644
index a89ef4d..0000000
--- a/src/components/iconfont/qq/qq.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "component": true,
- "usingComponents": {}
-}
diff --git a/src/components/iconfont/qq/qq.qml b/src/components/iconfont/qq/qq.qml
deleted file mode 100644
index 4931e1e..0000000
--- a/src/components/iconfont/qq/qq.qml
+++ /dev/null
@@ -1,77 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/components/iconfont/qq/qq.qss b/src/components/iconfont/qq/qq.qss
deleted file mode 100644
index 9f68d1a..0000000
--- a/src/components/iconfont/qq/qq.qss
+++ /dev/null
@@ -1,3 +0,0 @@
-.icon {
- background-repeat: no-repeat;
-}
diff --git a/src/components/iconfont/rn/IconDingdan.js b/src/components/iconfont/rn/IconDingdan.js
deleted file mode 100644
index 28998fd..0000000
--- a/src/components/iconfont/rn/IconDingdan.js
+++ /dev/null
@@ -1,24 +0,0 @@
-/* eslint-disable */
-
-import React from 'react';
-import { Svg, Path } from 'react-native-svg';
-import { getIconColor } from './helper';
-
-let IconDingdan = ({ size, color, ...rest }) => {
- return (
-
- );
-};
-
-IconDingdan.defaultProps = {
- size: 18,
-};
-
-IconDingdan = React.memo ? React.memo(IconDingdan) : IconDingdan;
-
-export default IconDingdan;
diff --git a/src/components/iconfont/rn/IconDingdan1.js b/src/components/iconfont/rn/IconDingdan1.js
deleted file mode 100644
index 98be064..0000000
--- a/src/components/iconfont/rn/IconDingdan1.js
+++ /dev/null
@@ -1,24 +0,0 @@
-/* eslint-disable */
-
-import React from 'react';
-import { Svg, Path } from 'react-native-svg';
-import { getIconColor } from './helper';
-
-let IconDingdan1 = ({ size, color, ...rest }) => {
- return (
-
- );
-};
-
-IconDingdan1.defaultProps = {
- size: 18,
-};
-
-IconDingdan1 = React.memo ? React.memo(IconDingdan1) : IconDingdan1;
-
-export default IconDingdan1;
diff --git a/src/components/iconfont/rn/IconDizhi.js b/src/components/iconfont/rn/IconDizhi.js
deleted file mode 100644
index 5f8e1b2..0000000
--- a/src/components/iconfont/rn/IconDizhi.js
+++ /dev/null
@@ -1,29 +0,0 @@
-/* eslint-disable */
-
-import React from 'react';
-import { Svg, Path } from 'react-native-svg';
-import { getIconColor } from './helper';
-
-let IconDizhi = ({ size, color, ...rest }) => {
- return (
-
- );
-};
-
-IconDizhi.defaultProps = {
- size: 18,
-};
-
-IconDizhi = React.memo ? React.memo(IconDizhi) : IconDizhi;
-
-export default IconDizhi;
diff --git a/src/components/iconfont/rn/IconDuizhang.js b/src/components/iconfont/rn/IconDuizhang.js
deleted file mode 100644
index 5691cb6..0000000
--- a/src/components/iconfont/rn/IconDuizhang.js
+++ /dev/null
@@ -1,29 +0,0 @@
-/* eslint-disable */
-
-import React from 'react';
-import { Svg, Path } from 'react-native-svg';
-import { getIconColor } from './helper';
-
-let IconDuizhang = ({ size, color, ...rest }) => {
- return (
-
- );
-};
-
-IconDuizhang.defaultProps = {
- size: 18,
-};
-
-IconDuizhang = React.memo ? React.memo(IconDuizhang) : IconDuizhang;
-
-export default IconDuizhang;
diff --git a/src/components/iconfont/rn/IconFahuoliebiao.js b/src/components/iconfont/rn/IconFahuoliebiao.js
deleted file mode 100644
index a72bce1..0000000
--- a/src/components/iconfont/rn/IconFahuoliebiao.js
+++ /dev/null
@@ -1,29 +0,0 @@
-/* eslint-disable */
-
-import React from 'react';
-import { Svg, Path } from 'react-native-svg';
-import { getIconColor } from './helper';
-
-let IconFahuoliebiao = ({ size, color, ...rest }) => {
- return (
-
- );
-};
-
-IconFahuoliebiao.defaultProps = {
- size: 18,
-};
-
-IconFahuoliebiao = React.memo ? React.memo(IconFahuoliebiao) : IconFahuoliebiao;
-
-export default IconFahuoliebiao;
diff --git a/src/components/iconfont/rn/IconGerenzhongxin.js b/src/components/iconfont/rn/IconGerenzhongxin.js
deleted file mode 100644
index f2e1b32..0000000
--- a/src/components/iconfont/rn/IconGerenzhongxin.js
+++ /dev/null
@@ -1,24 +0,0 @@
-/* eslint-disable */
-
-import React from 'react';
-import { Svg, Path } from 'react-native-svg';
-import { getIconColor } from './helper';
-
-let IconGerenzhongxin = ({ size, color, ...rest }) => {
- return (
-
- );
-};
-
-IconGerenzhongxin.defaultProps = {
- size: 18,
-};
-
-IconGerenzhongxin = React.memo ? React.memo(IconGerenzhongxin) : IconGerenzhongxin;
-
-export default IconGerenzhongxin;
diff --git a/src/components/iconfont/rn/IconGerenzhongxin1.js b/src/components/iconfont/rn/IconGerenzhongxin1.js
deleted file mode 100644
index 8679204..0000000
--- a/src/components/iconfont/rn/IconGerenzhongxin1.js
+++ /dev/null
@@ -1,24 +0,0 @@
-/* eslint-disable */
-
-import React from 'react';
-import { Svg, Path } from 'react-native-svg';
-import { getIconColor } from './helper';
-
-let IconGerenzhongxin1 = ({ size, color, ...rest }) => {
- return (
-
- );
-};
-
-IconGerenzhongxin1.defaultProps = {
- size: 18,
-};
-
-IconGerenzhongxin1 = React.memo ? React.memo(IconGerenzhongxin1) : IconGerenzhongxin1;
-
-export default IconGerenzhongxin1;
diff --git a/src/components/iconfont/rn/IconGouwu.js b/src/components/iconfont/rn/IconGouwu.js
deleted file mode 100644
index 2eb69f2..0000000
--- a/src/components/iconfont/rn/IconGouwu.js
+++ /dev/null
@@ -1,24 +0,0 @@
-/* eslint-disable */
-
-import React from 'react';
-import { Svg, Path } from 'react-native-svg';
-import { getIconColor } from './helper';
-
-let IconGouwu = ({ size, color, ...rest }) => {
- return (
-
- );
-};
-
-IconGouwu.defaultProps = {
- size: 18,
-};
-
-IconGouwu = React.memo ? React.memo(IconGouwu) : IconGouwu;
-
-export default IconGouwu;
diff --git a/src/components/iconfont/rn/IconGouwu1.js b/src/components/iconfont/rn/IconGouwu1.js
deleted file mode 100644
index db0f795..0000000
--- a/src/components/iconfont/rn/IconGouwu1.js
+++ /dev/null
@@ -1,24 +0,0 @@
-/* eslint-disable */
-
-import React from 'react';
-import { Svg, Path } from 'react-native-svg';
-import { getIconColor } from './helper';
-
-let IconGouwu1 = ({ size, color, ...rest }) => {
- return (
-
- );
-};
-
-IconGouwu1.defaultProps = {
- size: 18,
-};
-
-IconGouwu1 = React.memo ? React.memo(IconGouwu1) : IconGouwu1;
-
-export default IconGouwu1;
diff --git a/src/components/iconfont/rn/IconLingquseka.js b/src/components/iconfont/rn/IconLingquseka.js
deleted file mode 100644
index 268b6eb..0000000
--- a/src/components/iconfont/rn/IconLingquseka.js
+++ /dev/null
@@ -1,34 +0,0 @@
-/* eslint-disable */
-
-import React from 'react';
-import { Svg, Path } from 'react-native-svg';
-import { getIconColor } from './helper';
-
-let IconLingquseka = ({ size, color, ...rest }) => {
- return (
-
- );
-};
-
-IconLingquseka.defaultProps = {
- size: 18,
-};
-
-IconLingquseka = React.memo ? React.memo(IconLingquseka) : IconLingquseka;
-
-export default IconLingquseka;
diff --git a/src/components/iconfont/rn/IconMadanguanli.js b/src/components/iconfont/rn/IconMadanguanli.js
deleted file mode 100644
index c89af2d..0000000
--- a/src/components/iconfont/rn/IconMadanguanli.js
+++ /dev/null
@@ -1,42 +0,0 @@
-/* eslint-disable */
-
-import React from 'react';
-import { Svg, Path } from 'react-native-svg';
-import { getIconColor } from './helper';
-
-let IconMadanguanli = ({ size, color, ...rest }) => {
- return (
-
- );
-};
-
-IconMadanguanli.defaultProps = {
- size: 18,
-};
-
-IconMadanguanli = React.memo ? React.memo(IconMadanguanli) : IconMadanguanli;
-
-export default IconMadanguanli;
diff --git a/src/components/iconfont/rn/IconPandiansaoma.js b/src/components/iconfont/rn/IconPandiansaoma.js
deleted file mode 100644
index 307b85d..0000000
--- a/src/components/iconfont/rn/IconPandiansaoma.js
+++ /dev/null
@@ -1,29 +0,0 @@
-/* eslint-disable */
-
-import React from 'react';
-import { Svg, Path } from 'react-native-svg';
-import { getIconColor } from './helper';
-
-let IconPandiansaoma = ({ size, color, ...rest }) => {
- return (
-
- );
-};
-
-IconPandiansaoma.defaultProps = {
- size: 18,
-};
-
-IconPandiansaoma = React.memo ? React.memo(IconPandiansaoma) : IconPandiansaoma;
-
-export default IconPandiansaoma;
diff --git a/src/components/iconfont/rn/IconQianzhicangkucun.js b/src/components/iconfont/rn/IconQianzhicangkucun.js
deleted file mode 100644
index 658ea97..0000000
--- a/src/components/iconfont/rn/IconQianzhicangkucun.js
+++ /dev/null
@@ -1,29 +0,0 @@
-/* eslint-disable */
-
-import React from 'react';
-import { Svg, Path } from 'react-native-svg';
-import { getIconColor } from './helper';
-
-let IconQianzhicangkucun = ({ size, color, ...rest }) => {
- return (
-
- );
-};
-
-IconQianzhicangkucun.defaultProps = {
- size: 18,
-};
-
-IconQianzhicangkucun = React.memo ? React.memo(IconQianzhicangkucun) : IconQianzhicangkucun;
-
-export default IconQianzhicangkucun;
diff --git a/src/components/iconfont/rn/IconQusechazhao.js b/src/components/iconfont/rn/IconQusechazhao.js
deleted file mode 100644
index 0d0bd23..0000000
--- a/src/components/iconfont/rn/IconQusechazhao.js
+++ /dev/null
@@ -1,29 +0,0 @@
-/* eslint-disable */
-
-import React from 'react';
-import { Svg, Path } from 'react-native-svg';
-import { getIconColor } from './helper';
-
-let IconQusechazhao = ({ size, color, ...rest }) => {
- return (
-
- );
-};
-
-IconQusechazhao.defaultProps = {
- size: 18,
-};
-
-IconQusechazhao = React.memo ? React.memo(IconQusechazhao) : IconQusechazhao;
-
-export default IconQusechazhao;
diff --git a/src/components/iconfont/rn/IconShouhouzhongxin.js b/src/components/iconfont/rn/IconShouhouzhongxin.js
deleted file mode 100644
index 49e8f23..0000000
--- a/src/components/iconfont/rn/IconShouhouzhongxin.js
+++ /dev/null
@@ -1,29 +0,0 @@
-/* eslint-disable */
-
-import React from 'react';
-import { Svg, Path } from 'react-native-svg';
-import { getIconColor } from './helper';
-
-let IconShouhouzhongxin = ({ size, color, ...rest }) => {
- return (
-
- );
-};
-
-IconShouhouzhongxin.defaultProps = {
- size: 18,
-};
-
-IconShouhouzhongxin = React.memo ? React.memo(IconShouhouzhongxin) : IconShouhouzhongxin;
-
-export default IconShouhouzhongxin;
diff --git a/src/components/iconfont/rn/IconShoukuanliebiao.js b/src/components/iconfont/rn/IconShoukuanliebiao.js
deleted file mode 100644
index 52dbda4..0000000
--- a/src/components/iconfont/rn/IconShoukuanliebiao.js
+++ /dev/null
@@ -1,29 +0,0 @@
-/* eslint-disable */
-
-import React from 'react';
-import { Svg, Path } from 'react-native-svg';
-import { getIconColor } from './helper';
-
-let IconShoukuanliebiao = ({ size, color, ...rest }) => {
- return (
-
- );
-};
-
-IconShoukuanliebiao.defaultProps = {
- size: 18,
-};
-
-IconShoukuanliebiao = React.memo ? React.memo(IconShoukuanliebiao) : IconShoukuanliebiao;
-
-export default IconShoukuanliebiao;
diff --git a/src/components/iconfont/rn/IconShouye.js b/src/components/iconfont/rn/IconShouye.js
deleted file mode 100644
index 18c0ee1..0000000
--- a/src/components/iconfont/rn/IconShouye.js
+++ /dev/null
@@ -1,24 +0,0 @@
-/* eslint-disable */
-
-import React from 'react';
-import { Svg, Path } from 'react-native-svg';
-import { getIconColor } from './helper';
-
-let IconShouye = ({ size, color, ...rest }) => {
- return (
-
- );
-};
-
-IconShouye.defaultProps = {
- size: 18,
-};
-
-IconShouye = React.memo ? React.memo(IconShouye) : IconShouye;
-
-export default IconShouye;
diff --git a/src/components/iconfont/rn/IconShouye1.js b/src/components/iconfont/rn/IconShouye1.js
deleted file mode 100644
index 019fe55..0000000
--- a/src/components/iconfont/rn/IconShouye1.js
+++ /dev/null
@@ -1,24 +0,0 @@
-/* eslint-disable */
-
-import React from 'react';
-import { Svg, Path } from 'react-native-svg';
-import { getIconColor } from './helper';
-
-let IconShouye1 = ({ size, color, ...rest }) => {
- return (
-
- );
-};
-
-IconShouye1.defaultProps = {
- size: 18,
-};
-
-IconShouye1 = React.memo ? React.memo(IconShouye1) : IconShouye1;
-
-export default IconShouye1;
diff --git a/src/components/iconfont/rn/IconTihuoliebiao.js b/src/components/iconfont/rn/IconTihuoliebiao.js
deleted file mode 100644
index 9dda212..0000000
--- a/src/components/iconfont/rn/IconTihuoliebiao.js
+++ /dev/null
@@ -1,29 +0,0 @@
-/* eslint-disable */
-
-import React from 'react';
-import { Svg, Path } from 'react-native-svg';
-import { getIconColor } from './helper';
-
-let IconTihuoliebiao = ({ size, color, ...rest }) => {
- return (
-
- );
-};
-
-IconTihuoliebiao.defaultProps = {
- size: 18,
-};
-
-IconTihuoliebiao = React.memo ? React.memo(IconTihuoliebiao) : IconTihuoliebiao;
-
-export default IconTihuoliebiao;
diff --git a/src/components/iconfont/rn/IconWodekefu.js b/src/components/iconfont/rn/IconWodekefu.js
deleted file mode 100644
index af01d12..0000000
--- a/src/components/iconfont/rn/IconWodekefu.js
+++ /dev/null
@@ -1,29 +0,0 @@
-/* eslint-disable */
-
-import React from 'react';
-import { Svg, Path } from 'react-native-svg';
-import { getIconColor } from './helper';
-
-let IconWodekefu = ({ size, color, ...rest }) => {
- return (
-
- );
-};
-
-IconWodekefu.defaultProps = {
- size: 18,
-};
-
-IconWodekefu = React.memo ? React.memo(IconWodekefu) : IconWodekefu;
-
-export default IconWodekefu;
diff --git a/src/components/iconfont/rn/IconWodeshoucang.js b/src/components/iconfont/rn/IconWodeshoucang.js
deleted file mode 100644
index 71492c6..0000000
--- a/src/components/iconfont/rn/IconWodeshoucang.js
+++ /dev/null
@@ -1,29 +0,0 @@
-/* eslint-disable */
-
-import React from 'react';
-import { Svg, Path } from 'react-native-svg';
-import { getIconColor } from './helper';
-
-let IconWodeshoucang = ({ size, color, ...rest }) => {
- return (
-
- );
-};
-
-IconWodeshoucang.defaultProps = {
- size: 18,
-};
-
-IconWodeshoucang = React.memo ? React.memo(IconWodeshoucang) : IconWodeshoucang;
-
-export default IconWodeshoucang;
diff --git a/src/components/iconfont/rn/IconXiaoshou.js b/src/components/iconfont/rn/IconXiaoshou.js
deleted file mode 100644
index 677d6ec..0000000
--- a/src/components/iconfont/rn/IconXiaoshou.js
+++ /dev/null
@@ -1,29 +0,0 @@
-/* eslint-disable */
-
-import React from 'react';
-import { Svg, Path } from 'react-native-svg';
-import { getIconColor } from './helper';
-
-let IconXiaoshou = ({ size, color, ...rest }) => {
- return (
-
- );
-};
-
-IconXiaoshou.defaultProps = {
- size: 18,
-};
-
-IconXiaoshou = React.memo ? React.memo(IconXiaoshou) : IconXiaoshou;
-
-export default IconXiaoshou;
diff --git a/src/components/iconfont/rn/IconYangpinduibi.js b/src/components/iconfont/rn/IconYangpinduibi.js
deleted file mode 100644
index 24019a2..0000000
--- a/src/components/iconfont/rn/IconYangpinduibi.js
+++ /dev/null
@@ -1,29 +0,0 @@
-/* eslint-disable */
-
-import React from 'react';
-import { Svg, Path } from 'react-native-svg';
-import { getIconColor } from './helper';
-
-let IconYangpinduibi = ({ size, color, ...rest }) => {
- return (
-
- );
-};
-
-IconYangpinduibi.defaultProps = {
- size: 18,
-};
-
-IconYangpinduibi = React.memo ? React.memo(IconYangpinduibi) : IconYangpinduibi;
-
-export default IconYangpinduibi;
diff --git a/src/components/iconfont/rn/IconYansequyang.js b/src/components/iconfont/rn/IconYansequyang.js
deleted file mode 100644
index f18a5f3..0000000
--- a/src/components/iconfont/rn/IconYansequyang.js
+++ /dev/null
@@ -1,29 +0,0 @@
-/* eslint-disable */
-
-import React from 'react';
-import { Svg, Path } from 'react-native-svg';
-import { getIconColor } from './helper';
-
-let IconYansequyang = ({ size, color, ...rest }) => {
- return (
-
- );
-};
-
-IconYansequyang.defaultProps = {
- size: 18,
-};
-
-IconYansequyang = React.memo ? React.memo(IconYansequyang) : IconYansequyang;
-
-export default IconYansequyang;
diff --git a/src/components/iconfont/rn/IconYaoqingma.js b/src/components/iconfont/rn/IconYaoqingma.js
deleted file mode 100644
index afcc8c9..0000000
--- a/src/components/iconfont/rn/IconYaoqingma.js
+++ /dev/null
@@ -1,29 +0,0 @@
-/* eslint-disable */
-
-import React from 'react';
-import { Svg, Path } from 'react-native-svg';
-import { getIconColor } from './helper';
-
-let IconYaoqingma = ({ size, color, ...rest }) => {
- return (
-
- );
-};
-
-IconYaoqingma.defaultProps = {
- size: 18,
-};
-
-IconYaoqingma = React.memo ? React.memo(IconYaoqingma) : IconYaoqingma;
-
-export default IconYaoqingma;
diff --git a/src/components/iconfont/rn/IconYuncangkucun.js b/src/components/iconfont/rn/IconYuncangkucun.js
deleted file mode 100644
index 429f875..0000000
--- a/src/components/iconfont/rn/IconYuncangkucun.js
+++ /dev/null
@@ -1,29 +0,0 @@
-/* eslint-disable */
-
-import React from 'react';
-import { Svg, Path } from 'react-native-svg';
-import { getIconColor } from './helper';
-
-let IconYuncangkucun = ({ size, color, ...rest }) => {
- return (
-
- );
-};
-
-IconYuncangkucun.defaultProps = {
- size: 18,
-};
-
-IconYuncangkucun = React.memo ? React.memo(IconYuncangkucun) : IconYuncangkucun;
-
-export default IconYuncangkucun;
diff --git a/src/components/iconfont/rn/helper.js b/src/components/iconfont/rn/helper.js
deleted file mode 100644
index b566c4c..0000000
--- a/src/components/iconfont/rn/helper.js
+++ /dev/null
@@ -1,17 +0,0 @@
-/* eslint-disable */
-
-/**
- * @param {string | string[] | undefined} color
- * @param {number} index
- * @param {string} defaultColor
- * @return {string}
- */
-export const getIconColor = (color, index, defaultColor) => {
- return color
- ? (
- typeof color === 'string'
- ? color
- : color[index] || defaultColor
- )
- : defaultColor;
-};
diff --git a/src/components/iconfont/rn/index.js b/src/components/iconfont/rn/index.js
deleted file mode 100644
index 393fff9..0000000
--- a/src/components/iconfont/rn/index.js
+++ /dev/null
@@ -1,119 +0,0 @@
-/* eslint-disable */
-
-import React from 'react';
-
-import IconWodekefu from './IconWodekefu';
-import IconDizhi from './IconDizhi';
-import IconShouhouzhongxin from './IconShouhouzhongxin';
-import IconWodeshoucang from './IconWodeshoucang';
-import IconShoukuanliebiao from './IconShoukuanliebiao';
-import IconMadanguanli from './IconMadanguanli';
-import IconQusechazhao from './IconQusechazhao';
-import IconPandiansaoma from './IconPandiansaoma';
-import IconYaoqingma from './IconYaoqingma';
-import IconDuizhang from './IconDuizhang';
-import IconTihuoliebiao from './IconTihuoliebiao';
-import IconYangpinduibi from './IconYangpinduibi';
-import IconYansequyang from './IconYansequyang';
-import IconFahuoliebiao from './IconFahuoliebiao';
-import IconYuncangkucun from './IconYuncangkucun';
-import IconXiaoshou from './IconXiaoshou';
-import IconQianzhicangkucun from './IconQianzhicangkucun';
-import IconLingquseka from './IconLingquseka';
-import IconGouwu1 from './IconGouwu1';
-import IconDingdan1 from './IconDingdan1';
-import IconGerenzhongxin1 from './IconGerenzhongxin1';
-import IconShouye1 from './IconShouye1';
-import IconGerenzhongxin from './IconGerenzhongxin';
-import IconDingdan from './IconDingdan';
-import IconShouye from './IconShouye';
-import IconGouwu from './IconGouwu';
-export { default as IconWodekefu } from './IconWodekefu';
-export { default as IconDizhi } from './IconDizhi';
-export { default as IconShouhouzhongxin } from './IconShouhouzhongxin';
-export { default as IconWodeshoucang } from './IconWodeshoucang';
-export { default as IconShoukuanliebiao } from './IconShoukuanliebiao';
-export { default as IconMadanguanli } from './IconMadanguanli';
-export { default as IconQusechazhao } from './IconQusechazhao';
-export { default as IconPandiansaoma } from './IconPandiansaoma';
-export { default as IconYaoqingma } from './IconYaoqingma';
-export { default as IconDuizhang } from './IconDuizhang';
-export { default as IconTihuoliebiao } from './IconTihuoliebiao';
-export { default as IconYangpinduibi } from './IconYangpinduibi';
-export { default as IconYansequyang } from './IconYansequyang';
-export { default as IconFahuoliebiao } from './IconFahuoliebiao';
-export { default as IconYuncangkucun } from './IconYuncangkucun';
-export { default as IconXiaoshou } from './IconXiaoshou';
-export { default as IconQianzhicangkucun } from './IconQianzhicangkucun';
-export { default as IconLingquseka } from './IconLingquseka';
-export { default as IconGouwu1 } from './IconGouwu1';
-export { default as IconDingdan1 } from './IconDingdan1';
-export { default as IconGerenzhongxin1 } from './IconGerenzhongxin1';
-export { default as IconShouye1 } from './IconShouye1';
-export { default as IconGerenzhongxin } from './IconGerenzhongxin';
-export { default as IconDingdan } from './IconDingdan';
-export { default as IconShouye } from './IconShouye';
-export { default as IconGouwu } from './IconGouwu';
-
-let IconFont = ({ name, ...rest }) => {
- switch (name) {
- case 'icon-wodekefu':
- return ;
- case 'icon-dizhi':
- return ;
- case 'icon-shouhouzhongxin':
- return ;
- case 'icon-wodeshoucang':
- return ;
- case 'icon-shoukuanliebiao':
- return ;
- case 'icon-madanguanli':
- return ;
- case 'icon-qusechazhao':
- return ;
- case 'icon-pandiansaoma':
- return ;
- case 'icon-yaoqingma':
- return ;
- case 'icon-duizhang':
- return ;
- case 'icon-tihuoliebiao':
- return ;
- case 'icon-yangpinduibi':
- return ;
- case 'icon-yansequyang':
- return ;
- case 'icon-fahuoliebiao':
- return ;
- case 'icon-yuncangkucun':
- return ;
- case 'icon-xiaoshou':
- return ;
- case 'icon-qianzhicangkucun':
- return ;
- case 'icon-lingquseka':
- return ;
- case 'icon-gouwu1':
- return ;
- case 'icon-dingdan1':
- return ;
- case 'icon-gerenzhongxin1':
- return ;
- case 'icon-shouye1':
- return ;
- case 'icon-gerenzhongxin':
- return ;
- case 'icon-dingdan':
- return ;
- case 'icon-shouye':
- return ;
- case 'icon-gouwu':
- return ;
- }
-
- return null;
-};
-
-IconFont = React.memo ? React.memo(IconFont) : IconFont;
-
-export default IconFont;
diff --git a/src/components/iconfont/swan/swan.css b/src/components/iconfont/swan/swan.css
deleted file mode 100644
index 9f68d1a..0000000
--- a/src/components/iconfont/swan/swan.css
+++ /dev/null
@@ -1,3 +0,0 @@
-.icon {
- background-repeat: no-repeat;
-}
diff --git a/src/components/iconfont/swan/swan.js b/src/components/iconfont/swan/swan.js
deleted file mode 100644
index 75a01f1..0000000
--- a/src/components/iconfont/swan/swan.js
+++ /dev/null
@@ -1,64 +0,0 @@
-Component({
- properties: {
- // icon-wodekefu | icon-dizhi | icon-shouhouzhongxin | icon-wodeshoucang | icon-shoukuanliebiao | icon-madanguanli | icon-qusechazhao | icon-pandiansaoma | icon-yaoqingma | icon-duizhang | icon-tihuoliebiao | icon-yangpinduibi | icon-yansequyang | icon-fahuoliebiao | icon-yuncangkucun | icon-xiaoshou | icon-qianzhicangkucun | icon-lingquseka | icon-gouwu1 | icon-dingdan1 | icon-gerenzhongxin1 | icon-shouye1 | icon-gerenzhongxin | icon-dingdan | icon-shouye | icon-gouwu
- name: {
- type: String,
- },
- // string | string[]
- color: {
- type: null,
- value: '',
- observer: function(color) {
- this.setData({
- colors: this.fixColor(color),
- isStr: typeof color === 'string',
- });
- }
- },
- size: {
- type: Number,
- value: 18,
- observer: function(size) {
- this.setData({
- svgSize: size / 750 * swan.getSystemInfoSync().windowWidth,
- });
- },
- },
- },
- data: {
- colors: '',
- svgSize: 18 / 750 * swan.getSystemInfoSync().windowWidth,
- quot: '"',
- isStr: true,
- },
- methods: {
- fixColor: function() {
- var color = this.data.color;
- var hex2rgb = this.hex2rgb;
-
- if (typeof color === 'string') {
- return color.indexOf('#') === 0 ? hex2rgb(color) : color;
- }
-
- return color.map(function (item) {
- return item.indexOf('#') === 0 ? hex2rgb(item) : item;
- });
- },
- hex2rgb: function(hex) {
- var rgb = [];
-
- hex = hex.substr(1);
-
- if (hex.length === 3) {
- hex = hex.replace(/(.)/g, '$1$1');
- }
-
- hex.replace(/../g, function(color) {
- rgb.push(parseInt(color, 0x10));
- return color;
- });
-
- return 'rgb(' + rgb.join(',') + ')';
- }
- }
-});
diff --git a/src/components/iconfont/swan/swan.json b/src/components/iconfont/swan/swan.json
deleted file mode 100644
index a89ef4d..0000000
--- a/src/components/iconfont/swan/swan.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "component": true,
- "usingComponents": {}
-}
diff --git a/src/components/iconfont/swan/swan.swan b/src/components/iconfont/swan/swan.swan
deleted file mode 100644
index 02f4681..0000000
--- a/src/components/iconfont/swan/swan.swan
+++ /dev/null
@@ -1,77 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/components/iconfont/tt/tt.js b/src/components/iconfont/tt/tt.js
deleted file mode 100644
index 29fea52..0000000
--- a/src/components/iconfont/tt/tt.js
+++ /dev/null
@@ -1,64 +0,0 @@
-Component({
- properties: {
- // icon-wodekefu | icon-dizhi | icon-shouhouzhongxin | icon-wodeshoucang | icon-shoukuanliebiao | icon-madanguanli | icon-qusechazhao | icon-pandiansaoma | icon-yaoqingma | icon-duizhang | icon-tihuoliebiao | icon-yangpinduibi | icon-yansequyang | icon-fahuoliebiao | icon-yuncangkucun | icon-xiaoshou | icon-qianzhicangkucun | icon-lingquseka | icon-gouwu1 | icon-dingdan1 | icon-gerenzhongxin1 | icon-shouye1 | icon-gerenzhongxin | icon-dingdan | icon-shouye | icon-gouwu
- name: {
- type: String,
- },
- // string | string[]
- color: {
- type: null,
- value: '',
- observer: function(color) {
- this.setData({
- colors: this.fixColor(),
- isStr: typeof color === 'string',
- });
- }
- },
- size: {
- type: Number,
- value: 18,
- observer: function(size) {
- this.setData({
- svgSize: size / 750 * tt.getSystemInfoSync().windowWidth,
- });
- },
- },
- },
- data: {
- colors: '',
- svgSize: 18 / 750 * tt.getSystemInfoSync().windowWidth,
- quot: '"',
- isStr: true,
- },
- methods: {
- fixColor: function() {
- var color = this.data.color;
- var hex2rgb = this.hex2rgb;
-
- if (typeof color === 'string') {
- return color.indexOf('#') === 0 ? hex2rgb(color) : color;
- }
-
- return color.map(function (item) {
- return item.indexOf('#') === 0 ? hex2rgb(item) : item;
- });
- },
- hex2rgb: function(hex) {
- var rgb = [];
-
- hex = hex.substr(1);
-
- if (hex.length === 3) {
- hex = hex.replace(/(.)/g, '$1$1');
- }
-
- hex.replace(/../g, function(color) {
- rgb.push(parseInt(color, 0x10));
- return color;
- });
-
- return 'rgb(' + rgb.join(',') + ')';
- }
- }
-});
diff --git a/src/components/iconfont/tt/tt.json b/src/components/iconfont/tt/tt.json
deleted file mode 100644
index 467ce29..0000000
--- a/src/components/iconfont/tt/tt.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/src/components/iconfont/tt/tt.ttml b/src/components/iconfont/tt/tt.ttml
deleted file mode 100644
index ff0d6cf..0000000
--- a/src/components/iconfont/tt/tt.ttml
+++ /dev/null
@@ -1,77 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/components/iconfont/tt/tt.ttss b/src/components/iconfont/tt/tt.ttss
deleted file mode 100644
index 9f68d1a..0000000
--- a/src/components/iconfont/tt/tt.ttss
+++ /dev/null
@@ -1,3 +0,0 @@
-.icon {
- background-repeat: no-repeat;
-}