diff --git a/src/components/RenderTable/component/bodySlot/index.vue b/src/components/RenderTable/component/bodySlot/index.vue index 0f208af..c5b141d 100644 --- a/src/components/RenderTable/component/bodySlot/index.vue +++ b/src/components/RenderTable/component/bodySlot/index.vue @@ -18,8 +18,8 @@ const RenderSlot = { { props: { placement: 'bottom-end', - content: first[0].data.props.title, - effect: 'light' + content: first[0].data.props.title + // effect: 'light' } }, first @@ -76,12 +76,16 @@ const RenderSlot = { content.children = [renderTooltip(first), renderPopver(other)] return content } else { - const first = contentDiv.splice(0, 1) - first[0].data.class = 'normal-button' - first[0].data.props.type = null - first[0].data.props.size = null - content.children = [renderTooltip(first)] + // const first = contentDiv.splice(0, contentDiv) + contentDiv = contentDiv.map(item => { + console.log(item) + item.data.class = 'normal-button' + item.data.props.type = null + item.data.props.size = null + return renderTooltip([item]) + }) + content.children = contentDiv return content } // let div = diff --git a/src/views/knowledge/detail/components/split/CustomSplitDialog.vue b/src/views/knowledge/detail/components/split/CustomSplitDialog.vue index 3a0f842..20d74b0 100644 --- a/src/views/knowledge/detail/components/split/CustomSplitDialog.vue +++ b/src/views/knowledge/detail/components/split/CustomSplitDialog.vue @@ -112,36 +112,33 @@ export default { prop: 'knowledgeDesc', width: '150px', align: 'center', + isRedraw: true, render: (h, params) => { return h('span', {}, [ - h( - 'el-button', - { - class: 'floatSpan', - props: { - type: 'primary', - size: 'medium' - }, - on: { - click: () => this.handleEdit(params.row) - } + h('el-button', { + class: 'floatSpan', + props: { + type: 'primary', + size: 'medium', + title: '修改', + icon: 'el-icon-edit-outline' }, - '修改' - ), - h( - 'el-button', - { - class: 'floatSpan', - props: { - type: 'primary', - size: 'medium' - }, - on: { - click: () => this.handlePreview(params.row) - } + on: { + click: () => this.handleEdit(params.row) + } + }), + h('el-button', { + class: 'floatSpan', + props: { + type: 'primary', + size: 'medium', + title: '预览', + icon: 'el-icon-view' }, - '预览' - ) + on: { + click: () => this.handlePreview(params.row) + } + }) ]) } } diff --git a/src/views/knowledge/detail/components/words/CustomWords.vue b/src/views/knowledge/detail/components/words/CustomWords.vue index e57e44b..968b029 100644 --- a/src/views/knowledge/detail/components/words/CustomWords.vue +++ b/src/views/knowledge/detail/components/words/CustomWords.vue @@ -118,36 +118,33 @@ export default { prop: 'knowledgeDesc', width: '150px', align: 'center', + isRedraw: true, render: (h, params) => { return h('span', {}, [ - h( - 'el-button', - { - class: 'floatSpan', - props: { - type: 'primary', - size: 'medium' - }, - on: { - click: () => this.handleEdit(params.row) - } + h('el-button', { + class: 'floatSpan', + props: { + type: 'primary', + size: 'medium', + title: '修改', + icon: 'el-icon-edit-outline' }, - '修改' - ), - h( - 'el-button', - { - class: 'floatSpan', - props: { - type: 'primary', - size: 'medium' - }, - on: { - click: () => this.handlePreview(params.row) - } + on: { + click: () => this.handleEdit(params.row) + } + }), + h('el-button', { + class: 'floatSpan', + props: { + type: 'primary', + size: 'medium', + title: '预览', + icon: 'el-icon-view' }, - '预览' - ) + on: { + click: () => this.handlePreview(params.row) + } + }) ]) } } diff --git a/src/views/knowledge/detail/index.vue b/src/views/knowledge/detail/index.vue index fe56db9..1370174 100644 --- a/src/views/knowledge/detail/index.vue +++ b/src/views/knowledge/detail/index.vue @@ -390,7 +390,7 @@ export default { type: 'primary', size: 'mini', disabled: true, - icon: 'el-icon-edit', + icon: 'el-icon-edit-outline', title: '编辑' }, on: {} diff --git a/src/views/knowledge/index.vue b/src/views/knowledge/index.vue index 755023e..31ac158 100644 --- a/src/views/knowledge/index.vue +++ b/src/views/knowledge/index.vue @@ -2,7 +2,7 @@
- +