vue2-client 1.15.35 → 1.15.37

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.15.35",
3
+ "version": "1.15.37",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -8,7 +8,7 @@
8
8
  @action="action"
9
9
  @selectRow="selectRow"
10
10
  @columnClick="columnClick"
11
- serviceName="af-revenue"
11
+ serviceName="af-liuli"
12
12
  ref="xFormTable">
13
13
  </x-form-table>
14
14
  </a-card>
@@ -26,7 +26,7 @@ export default {
26
26
  data () {
27
27
  return {
28
28
  // 查询配置文件名
29
- queryParamsName: 'ceshiCRUD',
29
+ queryParamsName: 'crud_namespace_manage',
30
30
  // 新增表单固定值
31
31
  fixedAddForm: {},
32
32
  // 是否显示详情抽屉
@@ -691,9 +691,7 @@ export default {
691
691
  this.$forceUpdate()
692
692
  },
693
693
  handleResize () {
694
- debounce(() => {
695
- this.setScrollYHeight({})
696
- }, 100)()
694
+ this.setScrollYHeight({})
697
695
  },
698
696
  isInAModal () {
699
697
  let parent = this.$parent
@@ -1130,7 +1128,7 @@ export default {
1130
1128
  },
1131
1129
  setScrollYHeight ({ extraHeight = this.extraHeight, id = this.uniqueId, type = '' }) {
1132
1130
  this.$nextTick(() => {
1133
- setTimeout(() => {
1131
+ debounce(() => {
1134
1132
  const curDocument = window?.rawDocument || document
1135
1133
  const innerHeight = window?.rawWindow?.innerHeight || window.innerHeight || 0
1136
1134
  if (typeof extraHeight == 'undefined') {
@@ -1146,7 +1144,8 @@ export default {
1146
1144
  // 表格内容距离顶部的距离
1147
1145
  let tHeaderBottom = 0
1148
1146
  if (tHeader) {
1149
- tHeaderBottom = tHeader.getBoundingClientRect().bottom
1147
+ // 8px是分页器marginTop
1148
+ tHeaderBottom = tHeader.getBoundingClientRect().bottom + 8
1150
1149
  }
1151
1150
  if (tHeaderBottom === 0) {
1152
1151
  this.scrollYHeight = 'calc(100vh - 31rem)'
@@ -1177,7 +1176,7 @@ export default {
1177
1176
  // 窗体高度-表格内容顶部的高度-表格内容底部的高度
1178
1177
  // this.scrollYHeight = document.body.clientHeight - tHeaderBottom - extraHeight
1179
1178
  this.scrollYHeight = `calc(100vh - ${tHeaderBottom + extraHeight}px)`
1180
- }, 60)
1179
+ }, 100)()
1181
1180
  })
1182
1181
  },
1183
1182
  /**
@@ -104,7 +104,7 @@ export default {
104
104
  },
105
105
  // 行样式函数,用于控制每行的样式类型
106
106
  rowStyleFunction: {
107
- type: Function,
107
+ type: [Function, String],
108
108
  default: null
109
109
  }
110
110
  }),
@@ -145,6 +145,7 @@ export default {
145
145
  }
146
146
  }
147
147
  .admin-layout-main{
148
+ height: 100%;
148
149
  .admin-header{
149
150
  top: 0;
150
151
  right: 0;
@@ -157,8 +158,9 @@ export default {
157
158
  }
158
159
  .admin-layout-content{
159
160
  padding: 24px;
160
- /*overflow-x: hidden;*/
161
- min-height: calc(100vh - 64px - 1px);
161
+ display: flex;
162
+ flex-direction: column;
163
+ min-height: auto;
162
164
  }
163
165
  .setting{
164
166
  background-color: @primary-color;
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div id="TabsView">
3
- <admin-layout>
3
+ <admin-layout style="height: 100%;">
4
4
  <contextmenu :itemList="menuItemList" :visible.sync="menuVisible" @select="onMenuSelect" />
5
5
  <tabs-head
6
6
  v-if="multiPage"
@@ -365,6 +365,7 @@ export default {
365
365
 
366
366
  <style lang="less">
367
367
  #TabsView {
368
+ height: 100%;
368
369
  .tabs-view {
369
370
  margin: -16px auto 8px;
370
371
  &.head.fixed {
@@ -377,13 +378,6 @@ export default {
377
378
  width: 100%;
378
379
  margin: 0 auto;
379
380
  }
380
- > div > div > .ant-card:first-of-type > .ant-card-body {
381
- max-height: calc(100vh - 64px - 48px - 24px);
382
- overflow-y: auto;
383
- &::-webkit-scrollbar {
384
- display: none;
385
- }
386
- }
387
381
  }
388
382
  }
389
383
  </style>
@@ -54,14 +54,13 @@ routerResource.example = {
54
54
  path: 'example',
55
55
  name: '示例主页面',
56
56
  // component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo2.vue'),
57
- component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo3.vue'),
58
57
  // component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
59
58
  // component: () => import('@vue2-client/pages/addressSelect/addressDemo.vue'),
60
59
  // component: () => import('@vue2-client/base-client/components/common/XDescriptions/demo.vue'),
61
60
  // component: () => import('@vue2-client/base-client/components/common/XAddNativeForm/demo.vue'),
62
61
  // component: () => import('@vue2-client/base-client/components/common/XFormGroup/demo.vue'),
63
62
  // component: () => import('@vue2-client/base-client/components/common/XReport/XReportDemo.vue'),
64
- // component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue'),
63
+ component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue'),
65
64
  // component: () => import('@vue2-client/base-client/components/common/XDatePicker/demo.vue'),
66
65
  // component: () => import('@vue2-client/base-client/components/common/XTab/XTabDemo.vue'),
67
66
  // component: () => import('@vue2-client/base-client/components/common/XRate/demo.vue'),