vue2-client 1.19.21 → 1.19.23

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.19.21",
3
+ "version": "1.19.23",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -458,7 +458,7 @@ export default {
458
458
  // 传递 formGroupContext 给子组件
459
459
  formGroupContext: this.formGroupContext,
460
460
  // 传递外部数据给子组件
461
- _getExternalData: this.getExternalData
461
+ _getExtData: this.getExtData
462
462
  }
463
463
  },
464
464
  watch: {
@@ -547,7 +547,7 @@ export default {
547
547
  title,
548
548
  fixedAddForm = {},
549
549
  getDataParams = {},
550
- externalData = {},
550
+ extData = {},
551
551
  simpleFormJsonData = {},
552
552
  env = 'prod',
553
553
  layout,
@@ -588,7 +588,7 @@ export default {
588
588
  this.businessType = businessType
589
589
  this.title = title
590
590
  this.getDataParams = getDataParams
591
- this.externalData = externalData
591
+ this.extData = extData
592
592
  this.simpleFormJsonData = simpleFormJsonData
593
593
  this.env = env
594
594
  this.btnName = btnName
@@ -644,8 +644,8 @@ export default {
644
644
  }
645
645
  this.loaded = true
646
646
  },
647
- getExternalData() {
648
- return this.externalData
647
+ getExtData() {
648
+ return this.extData
649
649
  },
650
650
  scrollToGroup(index) {
651
651
  const groupElement = this.$refs[`group-title-${index}`][0]
@@ -985,7 +985,7 @@ export default {
985
985
  default: null
986
986
  },
987
987
  // 外部数据(通过 XAddNativeForm 的 provide 传递)
988
- _getExternalData: {
988
+ _getExtData: {
989
989
  default: () => ({})
990
990
  }
991
991
  },
@@ -994,8 +994,8 @@ export default {
994
994
  * 获取外部数据
995
995
  * @returns {Object} 外部扩展数据对象 比如收费表单中俄的 用户信息要参与表单判断
996
996
  */
997
- getExternalData() {
998
- return this._getExternalData() || {}
997
+ getExtData() {
998
+ return this._getExtData() || {}
999
999
  },
1000
1000
  // 处理 queryParams 结果并更新 rowChooseFixedQueryValue
1001
1001
  handleQueryParamsResult(obj) {
@@ -78,7 +78,7 @@ export default {
78
78
  spinning: true,
79
79
  loadingErr: false,
80
80
  activeTab: 0,
81
- externalData: {}
81
+ extData: {}
82
82
  }
83
83
  },
84
84
  mounted() {},
@@ -110,6 +110,7 @@ export default {
110
110
  * @param showLeftTab 是否展示左侧索引页
111
111
  * @param businessType 新增还是修改
112
112
  * @param formShow
113
+ * @param extData 外部传递进来的 扩展属性 用户表单内函数使用外部参数
113
114
  */
114
115
  init({
115
116
  groups,
@@ -119,11 +120,11 @@ export default {
119
120
  showLeftTab = false,
120
121
  businessType = '新增',
121
122
  formShow = {},
122
- externalData = {}
123
+ extData = {}
123
124
  }) {
124
125
  Object.assign(this, { groups, modifyModelData, serviceName, env, showLeftTab, businessType })
125
126
  this.formShow = { ...formShow }
126
- this.externalData = externalData
127
+ this.extData = extData
127
128
  this.initView()
128
129
  this.$nextTick(() => {
129
130
  const formGroupContext = this.$refs.formGroupContext?.$el
@@ -209,7 +210,7 @@ export default {
209
210
  businessType: this.businessType,
210
211
  env: this.env,
211
212
  groupName: res.groupName,
212
- externalData: this.externalData,
213
+ extData: this.extData,
213
214
  ...res
214
215
  }
215
216
  params.showSubmitBtn = false
@@ -15,7 +15,7 @@ export default {
15
15
  this.$refs.xFormGroupDemo.init({
16
16
  ...res,
17
17
  serviceName: 'af-revenue',
18
- externalData: {
18
+ extData: {
19
19
  a:1,
20
20
  v:2
21
21
  }