| | |
| | | onTreeSelect, |
| | | handleUpdate, |
| | | handleDelete, |
| | | handleUpload, |
| | | handleReset, |
| | | handleRole, |
| | | handleSizeChange, |
| | |
| | | |
| | | <template> |
| | | <div :class="['flex', 'justify-between', deviceDetection() && 'flex-wrap']"> |
| | | <tree |
| | | <!-- <tree |
| | | ref="treeRef" |
| | | :class="['mr-2', deviceDetection() ? 'w-full' : 'min-w-[200px]']" |
| | | :treeData="treeData" |
| | | :treeLoading="treeLoading" |
| | | @tree-select="onTreeSelect" |
| | | /> |
| | | <div |
| | | :class="[deviceDetection() ? ['w-full', 'mt-2'] : 'w-[calc(100%-200px)]']" |
| | | > |
| | | /> --> |
| | | <div class="w-full mt-2"> |
| | | <el-form |
| | | ref="formRef" |
| | | :inline="true" |
| | |
| | | </el-form-item> |
| | | </el-form> |
| | | |
| | | <PureTableBar |
| | | title="用户管理(仅演示,操作后不生效)" |
| | | :columns="columns" |
| | | @refresh="onSearch" |
| | | > |
| | | <PureTableBar title="" :columns="columns" @refresh="onSearch"> |
| | | <template #buttons> |
| | | <el-button |
| | | type="primary" |
| | |
| | | :size="size" |
| | | :data="dataList" |
| | | :columns="dynamicColumns" |
| | | :pagination="{ ...pagination, size }" |
| | | :header-cell-style="{ |
| | | background: 'var(--el-fill-color-light)', |
| | | color: 'var(--el-text-color-primary)' |