From 76ccd75ac059cc611441533c3d83429f24b8a0ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B3=B0?= Date: Wed, 18 Oct 2017 14:07:58 +0800 Subject: [PATCH] add icon prefix --- examples/app.js | 3 ++- json-box.vue | 6 ++++-- json-icon.vue | 28 ++++++++++++++++++++++++++++ json-viewer.vue | 26 ++++++++++++++++++++------ types/json-array.vue | 2 +- types/json-object.vue | 6 +++++- 6 files changed, 60 insertions(+), 11 deletions(-) create mode 100644 json-icon.vue diff --git a/examples/app.js b/examples/app.js index 6d37c0c..764c306 100644 --- a/examples/app.js +++ b/examples/app.js @@ -16,7 +16,8 @@ new Vue({ a: 1 } }, - showCopy: true + showCopy: true, + iconPrefix: 'ive-' } }) }) \ No newline at end of file diff --git a/json-box.vue b/json-box.vue index edf1a2f..ce533ca 100644 --- a/json-box.vue +++ b/json-box.vue @@ -1,7 +1,7 @@ diff --git a/json-icon.vue b/json-icon.vue new file mode 100644 index 0000000..70cc0e5 --- /dev/null +++ b/json-icon.vue @@ -0,0 +1,28 @@ + + + \ No newline at end of file diff --git a/json-viewer.vue b/json-viewer.vue index 13b8276..abb7a4a 100644 --- a/json-viewer.vue +++ b/json-viewer.vue @@ -1,21 +1,22 @@ diff --git a/types/json-array.vue b/types/json-array.vue index 80b248f..4217268 100644 --- a/types/json-array.vue +++ b/types/json-array.vue @@ -1,6 +1,6 @@