qtsk-vue3 0.0.49 → 0.0.50

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.
@@ -88,34 +88,9 @@ const getCheckedKeys = () => {
88
88
  //当复选框被点击的时候触发, 用于获取所有的选中数据
89
89
  const checkChange = () => {
90
90
  console.log('treeRef.value.getCheckedKeys()', treeRef.value.getCheckedKeys())
91
- // modelValue.value = treeRef.value.getCheckedKeys()
92
91
  }
93
92
  const handleCheck = (currentNode, {checkedKeys}) => {
94
- console.log('currentNode', currentNode)
95
- console.log('checkedKeys', checkedKeys)
96
93
  modelValue.value = checkedKeys
97
- // treeRef.value.setCheckedKeys(checkedKeys)
98
- /* const values = modelValue.value
99
- let keys = []
100
- if (checkedKeys.length) {
101
- // 选中时,将当前节点设为唯一选中
102
- keys = [currentNode[props.nodeKey]];
103
- } else {
104
- // 取消选中时,清空所有选中(可选,根据需求决定是否允许取消)
105
- keys = [];
106
- }
107
- modelValue.value = keys */
108
-
109
- /* let keys = []
110
- if (checkedKeys.length) {
111
- // 选中时,将当前节点设为唯一选中
112
- keys = [currentNode[props.nodeKey]];
113
- } else {
114
- // 取消选中时,清空所有选中(可选,根据需求决定是否允许取消)
115
- keys = [];
116
- }
117
- modelValue.value = keys
118
- treeRef.value.setCheckedKeys(keys); */
119
94
  }
120
95
  const handleOperations = (data, type) => {
121
96
  emits('handleTree', data, type)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qtsk-vue3",
3
- "version": "0.0.49",
3
+ "version": "0.0.50",
4
4
  "description": "vue3版组件库",
5
5
  "main": "./package/index.js",
6
6
  "scripts": {