vue2-client 1.8.73 → 1.8.74

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Change Log
2
2
  > 所有关于本项目的变化都在该文档里。
3
3
 
4
- **1.8.66 - 1.8.73 -2024-3-5 @江超**
4
+ **1.8.66 - 1.8.74 -2024-3-5 @江超**
5
5
  - 完善`XTable`在开发环境下的查询效果
6
6
 
7
7
  **1.8.65 -2024-3-5 @张振宇**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.8.73",
3
+ "version": "1.8.74",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -1,20 +1,27 @@
1
1
  <template>
2
- <!-- 树形选择框 -->
3
- <a-form-model-item v-if="loaded" :ref="model" :label="name" :prop="model">
4
- <a-tree-select
5
- v-model="value"
6
- :disabled="disabled"
7
- :tree-data="getTreeData()"
8
- :tree-checkable="mode === '查询' && queryType !== 'RIGHT_LIKE'"
9
- :placeholder="'请选择' + name"
10
- :dropdown-style="{ maxHeight: '400px' }"
11
- tree-node-filter-prop="label"
12
- :show-checked-strategy="queryType === 'RIGHT_LIKE' ? 'SHOW_ALL' : undefined"
13
- allow-clear
14
- class="tree-select"
15
- @change="onTreeSelectChange">
16
- </a-tree-select>
17
- </a-form-model-item>
2
+ <div>
3
+ <template v-if="loaded">
4
+ <!-- 树形选择框 -->
5
+ <a-form-model-item v-if="loaded" :ref="model" :label="name" :prop="model">
6
+ <a-tree-select
7
+ v-model="value"
8
+ :disabled="disabled"
9
+ :tree-data="getTreeData()"
10
+ :tree-checkable="mode === '查询' && queryType !== 'RIGHT_LIKE'"
11
+ :placeholder="'请选择' + name"
12
+ :dropdown-style="{ maxHeight: '400px' }"
13
+ tree-node-filter-prop="label"
14
+ :show-checked-strategy="queryType === 'RIGHT_LIKE' ? 'SHOW_ALL' : undefined"
15
+ allow-clear
16
+ class="tree-select"
17
+ @change="onTreeSelectChange">
18
+ </a-tree-select>
19
+ </a-form-model-item>
20
+ </template>
21
+ <template v-else>
22
+ <a-skeleton active />
23
+ </template>
24
+ </div>
18
25
  </template>
19
26
  <script>
20
27
  import XFormCol from '@vue2-client/base-client/components/common/XFormCol'
@@ -7,8 +7,8 @@
7
7
  ref="xAddForm"
8
8
  @afterSubmit="onAddOrEditSubmitAfterSubmit"
9
9
  />
10
- <div v-if="title" class="crud_title">
11
- {{ title }}
10
+ <div v-if="crudTitle" class="crud_title">
11
+ {{ crudTitle }}
12
12
  </div>
13
13
  <x-form
14
14
  ref="xForm"
@@ -96,6 +96,11 @@ export default {
96
96
  type: String,
97
97
  default: ''
98
98
  },
99
+ // 卡片标题
100
+ crudTitle: {
101
+ type: String,
102
+ default: null
103
+ },
99
104
  // 查询配置文件名
100
105
  queryParamsName: {
101
106
  type: String,
@@ -251,13 +251,14 @@ export default {
251
251
  this.env = env
252
252
  this.rowKey = this.tableColumns[0].dataIndex
253
253
  let totalWidth = 0
254
- // 设置表格宽度
255
254
  for (let i = 0; i < this.tableColumns.length; i++) {
256
255
  const item = this.tableColumns[i]
256
+ // 设置操作列
257
257
  if (item.slotType === 'action') {
258
258
  item.fixed = 'right'
259
259
  item.width = 70
260
260
  }
261
+ // 设置表格宽度
261
262
  if (item.width) {
262
263
  totalWidth = totalWidth + item.width
263
264
  } else {
@@ -512,8 +513,12 @@ export default {
512
513
  :deep(.ant-table-thead > tr > th) {
513
514
  font-weight: 600;
514
515
  }
515
- :deep(.ant-table-pagination.ant-pagination){
516
+
517
+ :deep(.ant-table-pagination.ant-pagination) {
516
518
  margin-bottom: 0;
517
519
  }
518
- :deep(.ant-table td) { white-space: nowrap; }
520
+
521
+ :deep(.ant-table td) {
522
+ white-space: nowrap;
523
+ }
519
524
  </style>