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 +1 -1
- package/src/assets/css/cl-dialog.scss +5 -0
- package/src/components/SelectTree/index.vue +14 -4
- package/style/index.css +1 -1
- package/style/index.css.map +1 -1
- package/theme/blue.css +1 -1
- package/theme/cctcRed.css +1 -1
- package/theme/green.css +1 -1
- package/theme/lightBlue.css +1 -1
- package/theme/orange.css +1 -1
- package/theme/purple.css +1 -1
- package/theme/red.css +1 -1
- package/theme/yellow.css +1 -1
package/package.json
CHANGED
|
@@ -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
|
-
|
|
223
|
-
|
|
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
|
}
|