n20-common-lib 2.4.82 → 2.4.84

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.4.82",
3
+ "version": "2.4.84",
4
4
  "private": false,
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -111,4 +111,9 @@
111
111
  line-height: 28px;
112
112
  border-bottom: none;
113
113
  }
114
+ }
115
+
116
+ .el-loading-mask {
117
+ z-index: 99999;
118
+ /* 自定义层级值 */
114
119
  }
@@ -39,7 +39,15 @@
39
39
  v-bind="$attrs"
40
40
  @node-click="nodeClick"
41
41
  @check="checkChange"
42
- />
42
+ >
43
+ <div
44
+ slot-scope="{ node, data }"
45
+ :class="data[props.disabled] ? 'cursor-not' : ''"
46
+ :style="{ color: data[props.disabled] ? 'var(--color-text-placeholder) ' : '' }"
47
+ >
48
+ {{ data[props.label] }}
49
+ </div></el-tree
50
+ >
43
51
  </el-select>
44
52
  </template>
45
53
 
@@ -204,7 +212,7 @@ export default {
204
212
  this.filterMethod && this.filterMethod(val)
205
213
  },
206
214
  nodeClick(data) {
207
- if (!this.multiple) {
215
+ if (!this.multiple && !data.disabled) {
208
216
  this.lazy && (this.tCdList = [data])
209
217
 
210
218
  let vK = this.props.value
@@ -213,14 +221,16 @@ export default {
213
221
  this.$refs['select'].blur()
214
222
  }
215
223
  },
224
+
216
225
  checkChange(data, { checkedKeys, checkedNodes }) {
217
226
  this.$emit('input', checkedKeys)
218
227
  this.$emit('change', checkedKeys, checkedNodes)
219
228
  },
220
229
  filterNode(value, data) {
221
230
  if (!value) return true
222
- let lK = this.props.label
223
- return data[lK].indexOf(value) !== -1
231
+ const labal = this.props.label
232
+ const key = this.props.value
233
+ return data[labal].indexOf(value) !== -1 || data[key].indexOf(value) !== -1
224
234
  }
225
235
  }
226
236
  }