From 0be738754d793cc0e5907d1179dfc1ae0de26586 Mon Sep 17 00:00:00 2001 From: chuanshuoye <232465450@qq.com> Date: Wed, 4 Apr 2018 12:35:52 +0800 Subject: [PATCH 1/2] Fixed umd vue.extend unknown error --- build/webpack.umd.conf.js | 17 ++++++++++++++--- package.json | 2 +- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/build/webpack.umd.conf.js b/build/webpack.umd.conf.js index e292c8cc..b6aaea91 100644 --- a/build/webpack.umd.conf.js +++ b/build/webpack.umd.conf.js @@ -20,9 +20,20 @@ module.exports = merge(baseWebpackConfig, { entry: { ['zarm-vue.umd.js']: path.join(__dirname, '../src/index.js'), }, - externals: [ - 'vue', - ], + externals: { + 'vue': { + root: 'Vue', + commonjs: 'vue', + commonjs2: 'vue', + amd: 'vue' + }, + 'lodash': { + commonjs: 'lodash', + commonjs2: 'lodash', + amd: 'lodash', + root: '_' + } + }, output: { path: path.resolve(__dirname, '../release'), filename: '[name]', diff --git a/package.json b/package.json index c98c2491..285736c9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "zarm-vue", - "version": "1.1.1", + "version": "1.1.2", "description": "zarm in vue", "author": "zhanwangye <232465450@qq.com>", "tags": [ From 78e0aa495cf6e19ee2ed5435ca73666f20e7a21a Mon Sep 17 00:00:00 2001 From: chuanshuoye <232465450@qq.com> Date: Wed, 4 Apr 2018 15:12:19 +0800 Subject: [PATCH 2/2] Fixed umd vue.extend unknown error --- example/components/accordion.vue | 4 +-- src/accordion/src/accordion.vue | 23 +++++++++----- src/accordion/src/accordionItem.vue | 47 +++++++++++++++++++++-------- 3 files changed, 52 insertions(+), 22 deletions(-) diff --git a/example/components/accordion.vue b/example/components/accordion.vue index f8e4a54b..a045b381 100644 --- a/example/components/accordion.vue +++ b/example/components/accordion.vue @@ -32,7 +32,7 @@ - +
我是50元套餐内容
我是50元套餐内容
@@ -111,7 +111,7 @@ - +
我是50元套餐内容
我是50元套餐内容
我是50元套餐内容
diff --git a/src/accordion/src/accordion.vue b/src/accordion/src/accordion.vue index 1be2cbe8..37d27766 100644 --- a/src/accordion/src/accordion.vue +++ b/src/accordion/src/accordion.vue @@ -7,18 +7,11 @@