From 4efc5099c6beab8879b4326b33dfeb8ca7989ab0 Mon Sep 17 00:00:00 2001
From: tangjinzhou <415800467@qq.com>
Date: Mon, 17 Feb 2020 17:59:18 +0800
Subject: [PATCH] feat: update icon
---
build/config.js | 2 +-
.../__snapshots__/index.test.js.snap | 12 +-
components/icon/__tests__/index.test.js | 7 +-
components/icon/demo/index.vue | 4 -
components/icon/demo/two-tone.md | 2 +-
components/icon/index.en-US.md | 22 +-
components/icon/index.js | 120 +++++------
components/icon/index.zh-CN.md | 4 +-
components/icon/utils.js | 25 ++-
.../template/IconDisplay/CopyableIcon.vue | 5 +
site/theme/template/IconDisplay/fields.js | 195 +++---------------
site/theme/template/IconDisplay/index.jsx | 9 +-
tests/shared/mountTest.js | 2 +-
13 files changed, 155 insertions(+), 254 deletions(-)
diff --git a/build/config.js b/build/config.js
index 7ff43da6b..dd8c036d7 100644
--- a/build/config.js
+++ b/build/config.js
@@ -1,5 +1,5 @@
module.exports = {
dev: {
- componentName: 'grid', // dev components
+ componentName: 'icon', // dev components
},
};
diff --git a/components/icon/__tests__/__snapshots__/index.test.js.snap b/components/icon/__tests__/__snapshots__/index.test.js.snap
index 8fc73497d..2be697654 100644
--- a/components/icon/__tests__/__snapshots__/index.test.js.snap
+++ b/components/icon/__tests__/__snapshots__/index.test.js.snap
@@ -2,8 +2,12 @@
exports[`Icon \`component\` prop can access to svg defs if has children 1`] = `
`;
@@ -58,9 +62,9 @@ exports[`Icon should support pass svg paths as children 1`] = `
`;
exports[`Icon should support svg vue component 1`] = `
-