From ceeb9361fd0cf3fbd4130688c52594acd842948f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E7=81=8F?= Date: Mon, 25 Dec 2017 10:26:54 +0800 Subject: [PATCH] fixed Table bug in Vue 2.5.13 --- build/webpack.base.config.js | 2 +- build/webpack.dev.config.js | 4 +- examples/routers/table.vue | 934 ++-------------------------- src/components/table/table-head.vue | 2 +- 4 files changed, 52 insertions(+), 890 deletions(-) diff --git a/build/webpack.base.config.js b/build/webpack.base.config.js index 87944bc8..5cb1b428 100644 --- a/build/webpack.base.config.js +++ b/build/webpack.base.config.js @@ -63,7 +63,7 @@ module.exports = { resolve: { extensions: ['.js', '.vue'], alias: { - 'vue': 'vue/dist/vue.esm.js', + 'vue': 'vue/dist/vue.runtime.js', '@': resolve('src') } }, diff --git a/build/webpack.dev.config.js b/build/webpack.dev.config.js index d9ff4a46..16fcbb19 100644 --- a/build/webpack.dev.config.js +++ b/build/webpack.dev.config.js @@ -27,8 +27,8 @@ module.exports = merge(webpackBaseConfig, { resolve: { alias: { iview: '../../src/index', - vue: 'vue/dist/vue.esm.js' - // vue: 'vue/dist/vue.runtime.js' + // vue: 'vue/dist/vue.esm.js' + vue: 'vue/dist/vue.runtime.js' } }, plugins: [ diff --git a/examples/routers/table.vue b/examples/routers/table.vue index 1a17c4a6..c9364534 100644 --- a/examples/routers/table.vue +++ b/examples/routers/table.vue @@ -1,928 +1,90 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/components/table/table-head.vue b/src/components/table/table-head.vue index 0809ecee..c259e4e2 100644 --- a/src/components/table/table-head.vue +++ b/src/components/table/table-head.vue @@ -30,7 +30,7 @@
- {{ item.label }} + {{ item.label }}