| | |
| | | provinceOptions: [],
|
| | | props: {
|
| | | lazy: true, // 开启动态加载
|
| | | expandTrigger: "hover",
|
| | | lazyLoad: async (node, resolve) => {
|
| | | // 设置加载数据源方法 默认执行一次
|
| | | // node 为当前点击的节点
|
| | |
| | | };
|
| | | });
|
| | | resolve(this.provinceOptions);
|
| | | console.log(node.level);
|
| | | }
|
| | |
|
| | | if (node.level == 1) {
|
| | |
| | | leaf: true, // 是否为末尾
|
| | | };
|
| | | });
|
| | | console.log(arr);
|
| | | resolve(arr);
|
| | | } else {
|
| | | console.log(node);
|
| | | resolve();
|
| | | return false;
|
| | | }
|
| | | },
|
| | | },
|
| | |
| | | border-color: rgba(255, 255, 2555, 0.1);
|
| | | }
|
| | |
|
| | | .el-cascader-node:hover,
|
| | | .in-active-path,
|
| | | .is-active,
|
| | | .el-cascader-node {
|
| | | background-color: rgb(101, 93, 126) !important;
|
| | | background-color: rgb(77, 72, 111);
|
| | | }
|
| | |
|
| | | .in-active-path {
|
| | | background-color: rgb(98, 87, 125) !important;
|
| | | }
|
| | |
|
| | | .el-cascader-node:hover {
|
| | | background-color: rgb(98, 87, 125) !important;
|
| | | }
|
| | |
|
| | | .el-scrollbar__view {
|
| | | padding: 0;
|
| | | }
|
| | |
|
| | | .popper__arrow::after,
|