修改打包报错问题

This commit is contained in:
2026-01-16 18:42:44 +08:00
65 changed files with 3662 additions and 2967 deletions

View File

@@ -20,10 +20,11 @@
|---------|------|-------|------|---------|
| 主要操作 | `primary` | - | 蓝色实心 | 新增、保存、提交 |
| 查询 | `primary` | - | 蓝色实心 | 查询 |
| 重置 | `primary` | | 蓝色边框 | 重置 |
| 重置 | - | - | 灰色 | 重置 |
| 导出操作 | `warning` | ✓ | 橙色边框 | 导出、下载 |
| 导入操作 | `primary` | ✓ | 蓝色边框 | 导入、上传 |
| 设置操作 | `primary` | ✓ | 蓝色边框 | 设置、配置 |
| 同步操作 | `primary` | ✓ | 蓝色边框 | 同步、连接 |
| 状态锁定 | - | - | 灰色 | 状态锁定、解锁 |
| 危险操作 | `danger` | - | 红色实心 | 删除、清空 |
@@ -39,14 +40,15 @@
```
### 2. Plain按钮边框样式
- **使用场景**:重置、导出、导入、设置等次要操作
- **使用场景**:重置、导出、导入、设置、同步等次要操作
- **代码**`type="primary" plain``type="warning" plain`
```vue
<el-button type="primary" plain icon="Refresh">重置</el-button>
<el-button icon="Refresh">重置</el-button>
<el-button type="warning" plain icon="Download">导出</el-button>
<el-button type="primary" plain icon="UploadFilled">导入</el-button>
<el-button type="primary" plain icon="Setting">设置</el-button>
<el-button type="primary" plain icon="Connection">同步</el-button>
```
### 3. 设置按钮
@@ -57,7 +59,15 @@
<el-button type="primary" plain icon="Setting">设置</el-button>
```
### 4. 默认按钮(灰色)
### 4. 同步按钮
- **使用场景**:同步、连接等操作
- **代码**`type="primary" plain`
```vue
<el-button type="primary" plain icon="Connection">同步</el-button>
```
### 5. 默认按钮(灰色)
- **使用场景**:状态锁定、解锁等中性操作
- **代码**:不设置 `type` 属性
@@ -65,7 +75,7 @@
<el-button icon="Lock">状态锁定</el-button>
```
### 5. 表格操作列按钮link
### 6. 表格操作列按钮link
- **使用场景**:表格操作列,使用 `link` 属性
- **代码**`link` 属性,配合 `type` 使用
- **说明**:表格内的操作按钮统一使用 `link` 样式,节省空间
@@ -100,16 +110,18 @@
| 设置/配置 | `Setting` |
| 锁定/解锁 | `Lock` |
| 用户相关 | `User` |
| 调动/转换 | `Switch`|
| 调动/转换 | `Switch` |
| 同步/连接 | `Connection` |
### 使用示例
```vue
<el-button type="primary" icon="FolderAdd"> </el-button>
<el-button type="primary" icon="Search">查询</el-button>
<el-button type="primary" plain icon="Refresh">重置</el-button>
<el-button icon="Refresh">重置</el-button>
<el-button type="warning" plain icon="Download">导出</el-button>
<el-button type="primary" plain icon="UploadFilled">导入</el-button>
<el-button type="primary" plain icon="Connection">同步</el-button>
```
## 五、间距
@@ -122,6 +134,7 @@
<el-button type="primary" plain icon="Refresh" class="ml10">重置</el-button>
<el-button type="warning" plain icon="Download" class="ml10">导出</el-button>
<el-button type="primary" plain icon="UploadFilled" class="ml10">导入</el-button>
<el-button type="primary" plain icon="Connection" class="ml10">同步</el-button>
```
## 六、完整示例
@@ -149,8 +162,6 @@
<!-- 重置操作 -->
<el-button
type="primary"
plain
icon="Refresh"
class="ml10"
@click="resetQuery">重置
@@ -182,6 +193,15 @@
class="ml10"
@click="handleSetting">设置
</el-button>
<!-- 同步操作 -->
<el-button
type="primary"
plain
icon="Connection"
class="ml10"
@click="handleSync">同步
</el-button>
</div>
</el-row>
```