ocpview-plus 1.3.17 → 1.3.20

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": "ocpview-plus",
3
- "version": "1.3.17",
3
+ "version": "1.3.20",
4
4
  "title": "ocpviewPlus",
5
5
  "description": "A high quality Service UI components Library with Vue.js",
6
6
  "homepage": "",
@@ -65,12 +65,15 @@
65
65
  "viewerjs": "^1.11.6",
66
66
  "vue-draggable-plus": "^0.5.0",
67
67
  "vuex": "^4.0.2",
68
- "xlsx": "^0.18.5",
69
- "xlsx-style-vite": "^0.0.2",
70
68
  "vxe-table": "4.6.20",
71
- "xe-utils": "^3.5.32"
69
+ "xe-utils": "^3.5.32",
70
+ "xlsx": "^0.18.5",
71
+ "xlsx-style-vite": "^0.0.2"
72
72
  },
73
73
  "devDependencies": {
74
+ "@babel/core": "^7.29.0",
75
+ "@babel/plugin-proposal-optional-chaining": "^7.21.0",
76
+ "@babel/preset-env": "^7.29.2",
74
77
  "@vitejs/plugin-vue": "^1.9.3",
75
78
  "@vue/cli-plugin-babel": "~4.5.0",
76
79
  "@vue/cli-plugin-eslint": "~4.5.0",
@@ -78,10 +81,8 @@
78
81
  "@vue/compiler-sfc": "^3.0.0",
79
82
  "autoprefixer-loader": "^3.2.0",
80
83
  "babel-cli": "^6.26.0",
81
- "babel-core": "^6.26.0",
82
84
  "babel-eslint": "^10.1.0",
83
85
  "babel-helper-vue-jsx-merge-props": "^2.0.3",
84
- "babel-loader": "^7.1.5",
85
86
  "babel-plugin-dynamic-import-node": "^1.2.0",
86
87
  "babel-plugin-import": "^1.13.3",
87
88
  "babel-plugin-syntax-jsx": "^6.18.0",
@@ -90,9 +91,6 @@
90
91
  "babel-plugin-transform-object-rest-spread": "^6.26.0",
91
92
  "babel-plugin-transform-runtime": "^6.23.0",
92
93
  "babel-plugin-transform-vue-jsx": "^3.7.0",
93
- "babel-preset-env": "^1.6.1",
94
- "babel-preset-stage-3": "^6.24.1",
95
- "babel-runtime": "^6.26.0",
96
94
  "chai": "^4.2.0",
97
95
  "compression-webpack-plugin": "^1.1.12",
98
96
  "copy-webpack-plugin": "^6.4.1",
@@ -315,6 +315,13 @@ export default {
315
315
  }
316
316
  }
317
317
  },
318
+ onSubmitBefore() {
319
+ let flag = true;
320
+ if (this.$parent && typeof this.$parent.onSubmitBefore === 'function') {
321
+ flag = this.$parent.onSubmitBefore();
322
+ }
323
+ return flag;
324
+ },
318
325
  },
319
326
  mounted() {
320
327
  // console.log("我继承覆写了");
@@ -312,6 +312,13 @@ export default {
312
312
  }
313
313
  }
314
314
  },
315
+ onSubmitBefore() {
316
+ let flag = true;
317
+ if (this.$parent && typeof this.$parent.onSubmitBefore === 'function') {
318
+ flag = this.$parent.onSubmitBefore();
319
+ }
320
+ return flag;
321
+ },
315
322
  },
316
323
  mounted() {},
317
324
  };
@@ -318,7 +318,7 @@ export default {
318
318
  },
319
319
  onSubmitBefore() {
320
320
  let flag = true;
321
- if (this.$parent.onSubmitBefore() !== undefined) {
321
+ if (this.$parent && typeof this.$parent.onSubmitBefore === 'function') {
322
322
  flag = this.$parent.onSubmitBefore();
323
323
  }
324
324
  return flag;
@@ -297,7 +297,7 @@ export default {
297
297
  methods: {
298
298
  onSubmit() {
299
299
  let flag = true;
300
- if (this.$parent.onSubmitBefore() !== undefined) {
300
+ if (this.$parent && typeof this.$parent.onSubmitBefore === 'function') {
301
301
  flag = this.$parent.onSubmitBefore();
302
302
  }
303
303
  if (flag) {