diff --git a/demo/documentation/components/advancedTable/enUS/seniorUsage.md b/demo/documentation/components/advancedTable/enUS/seniorUsage.md index 772497f5a..bb2e6c94b 100644 --- a/demo/documentation/components/advancedTable/enUS/seniorUsage.md +++ b/demo/documentation/components/advancedTable/enUS/seniorUsage.md @@ -3,7 +3,7 @@ * @Company: Tusimple * @Date: 2019-10-23 15:59:41 * @LastEditors: Jiwen.bai - * @LastEditTime: 2019-10-23 16:34:30 + * @LastEditTime: 2019-10-25 18:58:58 --> # Senior Usage @@ -18,6 +18,7 @@ :search="search" :pagination="{total:data.length,limit:10,custom:true}" @on-change="onChange" + max-width="420px" >
diff --git a/packages/common/AdvanceTable/TableStore/index.js b/packages/common/AdvanceTable/TableStore/index.js deleted file mode 100644 index 61c7b8395..000000000 --- a/packages/common/AdvanceTable/TableStore/index.js +++ /dev/null @@ -1,13 +0,0 @@ -/* - * @Author: Volankey@gmail.com - * @Company: Tusimple - * @Date: 2019-10-24 14:26:24 - * @LastEditors: Jiwen.bai - * @LastEditTime: 2019-10-24 14:36:59 - */ -import { Store, install, storeMixin } from './store' -export default { - Store, - install, - storeMixin -} diff --git a/packages/common/AdvanceTable/TableStore/store.js b/packages/common/AdvanceTable/TableStore/store.js deleted file mode 100644 index 69227b54f..000000000 --- a/packages/common/AdvanceTable/TableStore/store.js +++ /dev/null @@ -1,63 +0,0 @@ -/* - * @Author: Volankey@gmail.com - * @Company: Tusimple - * @Date: 2019-10-24 14:26:37 - * @LastEditors: Jiwen.bai - * @LastEditTime: 2019-10-24 14:50:03 - */ -let Vue = null -export class Store { - constructor (options = {}) { - const store = this - store._vm = new Vue({ - data: { - $$state: { - currentHoverRow: null - } - } - }) - } - get state () { - return this._vm._data.$$state - } - commit (type, payload) { - Vue.set(this._vm._data.$$state, type, payload) - } -} - -export function install (_Vue) { - if (Vue && _Vue === Vue) { - if (process.env.NODE_ENV !== 'production') { - console.error( - '[vuex] already installed. Vue.use(Vuex) should be called only once.' - ) - } - return - } - Vue = _Vue - // applyMixin(Vue) -} - -// function applyMixin (Vue) { -// const version = Number(Vue.version.split('.')[0]) - -// if (version >= 2) { -// Vue.mixin({ beforeCreate: vuexInit }) -// } - -// /** -// * Vuex init hook, injected into each instances init hooks list. -// */ - -// function vuexInit () { -// const options = this.$options -// // store injection -// if (options.store) { -// this.$store = -// typeof options.store === 'function' ? options.store() : options.store -// } -// // else if (options.parent && options.parent.$store) { -// // this.$store = options.parent.$store -// // } -// } -// } diff --git a/packages/common/AdvanceTable/body/body.vue b/packages/common/AdvanceTable/body/body.vue index 637b23858..825032969 100644 --- a/packages/common/AdvanceTable/body/body.vue +++ b/packages/common/AdvanceTable/body/body.vue @@ -3,7 +3,7 @@ * @Company: Tusimple * @Date: 2019-10-23 16:06:59 * @LastEditors: Jiwen.bai - * @LastEditTime: 2019-10-24 15:55:27 + * @LastEditTime: 2019-10-25 16:28:53 -->