n20-common-lib 2.22.37 → 2.22.39

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,10 +1,11 @@
1
1
  {
2
2
  "name": "n20-common-lib",
3
- "version": "2.22.37",
3
+ "version": "2.22.39",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
7
7
  "build": "node versionInfo.js && npm run build:css && vue-cli-service build --testTheme",
8
+ "prepublishOnly": "npm run build:css",
8
9
  "test:unit": "vue-cli-service test:unit",
9
10
  "lint": "vue-cli-service lint",
10
11
  "build:Jenkins_1": "vue-cli-service build --serverConfig ./server-config-jenkins.jsonc",
@@ -219,15 +219,6 @@ export default {
219
219
  this.$message.warning(`请填写${item.cfgName}`)
220
220
  return false
221
221
  }
222
- if (
223
- item.cfgHasRemark === '1' &&
224
- !['11', '12'].includes(item.cfgType) &&
225
- !item.cfgRemark &&
226
- item.cfgRemark !== 0
227
- ) {
228
- this.$message.warning(`请填写${item.cfgName}备注`)
229
- return false
230
- }
231
222
  }
232
223
  return true
233
224
  }
@@ -14,9 +14,14 @@ export default {
14
14
  column: {
15
15
  type: Number,
16
16
  default: 2
17
+ },
18
+ autoResize: {
19
+ type: Boolean,
20
+ default: true
17
21
  }
18
22
  },
19
23
  created() {
24
+ if (!this.autoResize) return
20
25
  this.resize()
21
26
  window.addEventListener('resize', this.resize)
22
27
  },