vue2-client 1.12.70 → 1.12.72

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.12.70",
3
+ "version": "1.12.72",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -10,6 +10,7 @@
10
10
  :show-arrow="false"
11
11
  >
12
12
  <template #header>
13
+ <a-button @click="handleClick">666</a-button>
13
14
  <div class="header-content">
14
15
  <span
15
16
  class="header-text"
@@ -60,6 +61,7 @@
60
61
  :show-img-in-cell="true"
61
62
  :display-only="true"
62
63
  :edit-mode="false"
64
+ :parentContext="parentContext"
63
65
  :show-save-button="false"
64
66
  :no-padding="true"
65
67
  :dont-format="true">
@@ -79,12 +81,14 @@ export default {
79
81
  components: {
80
82
  XReport
81
83
  },
84
+ inject: ['getConfigByName', 'getComponentByName'],
82
85
  data () {
83
86
  return {
84
87
  activeKey: [],
85
88
  config: {},
86
89
  configName: '',
87
- searchText: {}
90
+ searchText: {},
91
+ parentContext: null
88
92
  }
89
93
  },
90
94
  props: {
@@ -113,12 +117,11 @@ export default {
113
117
  beforeDestroy () {
114
118
  window.removeEventListener('setItem', this.handleStorageChange)
115
119
  },
116
- provide () {
117
- return {
118
- getComponentByName: this.getComponentByName
119
- }
120
- },
121
120
  methods: {
121
+ handleClick () {
122
+ console.log('xc按钮被点击了!')
123
+ console.warn(this.getComponentByName)
124
+ },
122
125
  handleStorageChange (e) {
123
126
  console.log('监听到sessionStorage的变化:', e)
124
127
  if (e.key === 'klcf_id') {