n20-common-lib 2.20.5 → 2.20.7

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": "n20-common-lib",
3
- "version": "2.20.5",
3
+ "version": "2.20.7",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -59,7 +59,7 @@
59
59
  "normalize.css": "^8.0.1",
60
60
  "numerify": "*",
61
61
  "nzh": "^1.0.12",
62
- "panzoom": "*",
62
+ "panzoom": "9.4.2",
63
63
  "qrcode": "*",
64
64
  "resize-detector": "*",
65
65
  "strip-json-comments": "*",
@@ -124,6 +124,9 @@
124
124
  "xlsx": "0.14.1",
125
125
  "xlsx-style": "^0.8.13"
126
126
  },
127
+ "resolutions": {
128
+ "ngraph.events": "1.2.2"
129
+ },
127
130
  "browserslist": [
128
131
  "> 1%",
129
132
  "last 2 versions",
@@ -1,11 +1,10 @@
1
1
  <template>
2
- <el-select v-select-lazy="lazyGet" :value="value" v-bind="attrs" v-on="listeners">
2
+ <el-select v-select-lazy="lazyGet" :value="value" v-bind="computedAttrs" v-on="computedListeners">
3
3
  <slot></slot>
4
4
  </el-select>
5
5
  </template>
6
6
 
7
7
  <script>
8
- import { $lc } from '../../utils/i18n/index'
9
8
  export default {
10
9
  name: 'SelectLazy',
11
10
  directives: {
@@ -32,16 +31,22 @@ export default {
32
31
  filterMethod: {
33
32
  type: Function,
34
33
  default: undefined
34
+ },
35
+ disabled: {
36
+ type: Boolean,
37
+ default: false
35
38
  }
36
39
  },
37
- data() {
38
- this.attrs = Object.assign({ filterable: true, clearable: true, filterMethod: this.filterMethod }, this.$attrs)
39
-
40
- this.listeners = Object.assign({ clear: this.filterMethod }, this.$listeners, {
41
- change: this.change
42
- })
43
-
44
- return {}
40
+ computed: {
41
+ computedAttrs() {
42
+ return Object.assign(
43
+ { filterable: true, clearable: true, filterMethod: this.filterMethod, disabled: this.disabled },
44
+ this.$attrs
45
+ )
46
+ },
47
+ computedListeners() {
48
+ return Object.assign({ clear: this.filterMethod }, this.$listeners, { change: this.change })
49
+ }
45
50
  },
46
51
  methods: {
47
52
  change(val) {