vue2-client 1.15.36 → 1.15.38

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.36",
3
+ "version": "1.15.38",
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
  // 是否显示详情抽屉
@@ -569,17 +569,6 @@ export default {
569
569
  },
570
570
  mounted () {
571
571
  window.addEventListener('resize', this.handleResize)
572
- // 监听 DOM 变化,更实时地响应布局变化
573
- this.resizeObserver = new ResizeObserver(() => {
574
- this.handleResize()
575
- })
576
- if (this.$refs.table) {
577
- this.resizeObserver.observe(this.$refs.table)
578
- }
579
- // 监听父容器变化
580
- if (this.$el && this.$el.parentElement) {
581
- this.resizeObserver.observe(this.$el.parentElement)
582
- }
583
572
  // 初始化时如果有外部选中值,等待 table 准备好后设置
584
573
  if (this.externalSelectedRowKeys && this.externalSelectedRowKeys.length > 0) {
585
574
  this.$nextTick(() => {
@@ -593,9 +582,6 @@ export default {
593
582
  clearInterval(this.queryTimer)
594
583
  }
595
584
  window.removeEventListener('resize', this.handleResize)
596
- if (this.resizeObserver) {
597
- this.resizeObserver.disconnect()
598
- }
599
585
  },
600
586
  methods: {
601
587
  showTempData () {
@@ -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
  }),
@@ -1,7 +1,7 @@
1
1
  const client = require('webpack-theme-color-replacer/client')
2
- const { theme } = require('../config')
2
+ const { theme } = require('@vue2-client/config')
3
3
  const { getMenuColors, getAntdColors, getThemeToggleColors, getFunctionalColors } = require('../utils/colors')
4
- const { ANTD } = require('../config/default')
4
+ const { ANTD } = require('@vue2-client/config/default')
5
5
 
6
6
  function getThemeColors (color, $theme) {
7
7
  const _color = color || theme.color