diff --git a/src/components/SearchForm/index.vue b/src/components/SearchForm/index.vue new file mode 100644 index 00000000..52f5bca7 --- /dev/null +++ b/src/components/SearchForm/index.vue @@ -0,0 +1,89 @@ + + + + diff --git a/src/components/XdTable/index.vue b/src/components/XdTable/index.vue new file mode 100644 index 00000000..ce367ccf --- /dev/null +++ b/src/components/XdTable/index.vue @@ -0,0 +1,349 @@ + + + + + diff --git a/src/components/XdTable/table.jsx b/src/components/XdTable/table.jsx new file mode 100644 index 00000000..f8d8951f --- /dev/null +++ b/src/components/XdTable/table.jsx @@ -0,0 +1,25 @@ +export default { + name: 'OrigTable', + props: { + config: { + type: Object, + default: () => ({}) + } + }, + render(h) { + const scopedSlots = {} + Object.keys(this.$parent.$scopedSlots).forEach(key => { + if (key !== 'default') { + scopedSlots[key] = this.$parent.$scopedSlots[key] + } + }) + return h('el-table', { + ref: 'elTable', + key: this.config.key || '', + attrs: { ...this.config.attrs }, + on: { ...this.config.listeners }, + scopedSlots + }, this.config.children) + } +} +