| | |
| | | :props="defaultProps" |
| | | default-expand-all |
| | | :filter-node-method="filterNode" |
| | | :render-content="renderContent" |
| | | @node-click="nodeClick" |
| | | /> |
| | | </div> |
| | |
| | | await updateSpeState({ id: this.rowId, |
| | | spe_state: '0' }) |
| | | this.dialogFormVisible5 = false |
| | | }, |
| | | renderContent(h, { node, data, store }) { |
| | | // console.log('data', data) |
| | | // console.log('node', node) |
| | | // 判断是否是父节点或文件夹 |
| | | const isFolder = ('children') in data |
| | | return ( |
| | | <span> |
| | | {isFolder ? ( |
| | | <i |
| | | class={node.expanded ? 'el-icon-folder-opened blue-folder' : 'el-icon-folder blue-folder'} |
| | | ></i> |
| | | ) : ( |
| | | <i class='el-icon-document blue-folder'></i> |
| | | )} |
| | | <span> {data.label}</span> |
| | | </span> |
| | | ) |
| | | } |
| | | } |
| | | } |
| | |
| | | margin-right: 12px; |
| | | .el-tree { |
| | | // margin-top: 12px; |
| | | ::v-deep .el-tree-node__content{ |
| | | height: 24px !important; |
| | | font-size: 16px; |
| | | display: inline-block !important; |
| | | padding: 2px; |
| | | color: #333; |
| | | .blue-folder{ |
| | | color: rgb(64, 158, 255) |
| | | } |
| | | } |
| | | } |
| | | // .el-tree { |
| | | // margin-top: 12px; |