From 1eb26d8e58efb3cf4bca2271308ccdc552250665 Mon Sep 17 00:00:00 2001 From: 07akioni <07akioni2@gmail.com> Date: Sat, 19 Sep 2020 11:55:30 +0800 Subject: [PATCH] refactor(code): support vue3 --- src/code/index.js | 2 +- src/code/src/{Code.vue => Code.js} | 34 ++++++++++++++++++------------ 2 files changed, 21 insertions(+), 15 deletions(-) rename src/code/src/{Code.vue => Code.js} (69%) diff --git a/src/code/index.js b/src/code/index.js index d35548c8a..b291bc3bf 100644 --- a/src/code/index.js +++ b/src/code/index.js @@ -1,5 +1,5 @@ /* istanbul ignore file */ -import NCode from './src/Code.vue' +import NCode from './src/Code.js' NCode.install = function (app, naive) { app.component(naive.componentPrefix + NCode.name, NCode) diff --git a/src/code/src/Code.vue b/src/code/src/Code.js similarity index 69% rename from src/code/src/Code.vue rename to src/code/src/Code.js index 6fa4523b0..628ad41fa 100644 --- a/src/code/src/Code.vue +++ b/src/code/src/Code.js @@ -1,9 +1,9 @@ -