n20-common-lib 1.2.3 → 1.2.4
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/README.md
CHANGED
|
@@ -1,27 +1,3 @@
|
|
|
1
|
-
#
|
|
1
|
+
# n20-common-lib
|
|
2
2
|
|
|
3
|
-
##
|
|
4
|
-
```
|
|
5
|
-
npm install
|
|
6
|
-
```
|
|
7
|
-
|
|
8
|
-
### Compiles and hot-reloads for development
|
|
9
|
-
```
|
|
10
|
-
npm run serve
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
### Compiles and minifies for production
|
|
14
|
-
```
|
|
15
|
-
npm run build
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
### Lints and
|
|
19
|
-
|
|
20
|
-
### Customize configuration
|
|
21
|
-
See [Configuration Reference](https://cli.vuejs.org/config/).
|
|
22
|
-
|
|
23
|
-
[element-ui](/node_modules/element-ui/src)
|
|
24
|
-
|
|
25
|
-
[element-ui/packages](/node_modules/element-ui/packages)
|
|
26
|
-
|
|
27
|
-
[element-ui/lib](/node_modules/element-ui/lib)
|
|
3
|
+
## nstc web pc
|
package/package.json
CHANGED
|
@@ -130,21 +130,18 @@ export default {
|
|
|
130
130
|
if (!val && !this.multiple) {
|
|
131
131
|
this.wCdList = []
|
|
132
132
|
this.$refs['tree']?.setCurrentKey(null)
|
|
133
|
-
this.$emit('change', val, undefined)
|
|
134
133
|
return
|
|
135
134
|
}
|
|
136
135
|
if (!this.multiple) {
|
|
137
136
|
if (val === undefined || val === null) {
|
|
138
137
|
this.wCdList = []
|
|
139
138
|
this.$refs['tree']?.setCurrentKey(null)
|
|
140
|
-
this.$emit('change', val, undefined)
|
|
141
139
|
return
|
|
142
140
|
}
|
|
143
141
|
} else {
|
|
144
142
|
if (val.length === 0) {
|
|
145
143
|
this.wCdList = []
|
|
146
144
|
this.$refs['tree']?.setCurrentKey(null)
|
|
147
|
-
this.$emit('change', val, undefined)
|
|
148
145
|
return
|
|
149
146
|
}
|
|
150
147
|
}
|
|
@@ -156,13 +153,11 @@ export default {
|
|
|
156
153
|
let valueObj = dataList.find((d) => d[this.props.value] === val)
|
|
157
154
|
this.wCdList = valueObj ? [valueObj] : []
|
|
158
155
|
this.$refs['tree']?.setCurrentKey(val)
|
|
159
|
-
this.$emit('change', val, valueObj)
|
|
160
156
|
} else {
|
|
161
157
|
this.wCdList = dataList.filter((d) =>
|
|
162
158
|
val.includes(d[this.props.value])
|
|
163
159
|
)
|
|
164
160
|
this.$refs['tree']?.setCheckedKeys(val)
|
|
165
|
-
this.$emit('change', val, this.wCdList)
|
|
166
161
|
}
|
|
167
162
|
},
|
|
168
163
|
immediate: true
|
|
@@ -192,11 +187,13 @@ export default {
|
|
|
192
187
|
|
|
193
188
|
let vK = this.props.value
|
|
194
189
|
this.$emit('input', data[vK])
|
|
190
|
+
this.$emit('change', data[vK], data)
|
|
195
191
|
this.$refs['select'].blur()
|
|
196
192
|
}
|
|
197
193
|
},
|
|
198
194
|
checkChange(data, { checkedKeys, checkedNodes }) {
|
|
199
195
|
this.$emit('input', checkedKeys)
|
|
196
|
+
this.$emit('change', checkedKeys, checkedNodes)
|
|
200
197
|
},
|
|
201
198
|
filterNode(value, data) {
|
|
202
199
|
if (!value) return true
|