File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change 1313
1414## 使用
1515
16+ ### 方式1: 通过 script 标签引入 (适用于前后不分离项目)
17+
18+ > 在dist目录下找到一个css和一个js文件, 然后在页面上假如如下两行代码
19+
20+ 其中` js ` 文件记得要放在引入vue的script后面
21+
22+ ``` html
23+ <link rel =" stylesheet" href =" ./dist/search-tree@2.2.3.css" >
24+ ...
25+ <script src =" ./dist/search-tree@2.2.3.min.js" ></script >
26+ ```
27+
28+ <br />
29+
30+ ### 方式2: 通过 import 方式引入
31+
1632> 先找到` main.js ` 引入插件并` use `
1733
1834``` js
@@ -43,7 +59,7 @@ Vue.use(SearchTree)
4359| check-on-click-node | 点击节点时是否选中节点 | Boolean | false
4460| default-expanded-keys | 默认展开节点的keys | Array | [ ]
4561| default-checked-keys | 默认选中节点的keys | Array | [ ]
46- | filter-node | 过滤显示的节点 (父节点全选时会选中隐藏的节点 ) | Function | -
62+ | filter-node | 过滤显示的节点 (该方法得到的是引用节点 ) | Function | -
4763| props | 配置选项,请看下表 | Object |
4864
4965<br />
You can’t perform that action at this time.
0 commit comments