w-ui-v1 1.1.37 → 1.1.39

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": "w-ui-v1",
3
- "version": "1.1.37",
3
+ "version": "1.1.39",
4
4
  "description": "w-ui",
5
5
  "author": "wgxshh",
6
6
  "license": "ISC",
package/w-add/w-add.vue CHANGED
@@ -121,8 +121,12 @@ watch(checkboxvalue, (value) => {
121
121
 
122
122
  onBeforeUpdate(()=>{
123
123
  console.log('ssss')
124
- mainCode.value=props.mainCode
125
- sourceId.value = props.sourceId
124
+ if(props.mainCode){
125
+ mainCode.value=props.mainCode
126
+ }
127
+ if(props.sourceId){
128
+ sourceId.value = props.sourceId
129
+ }
126
130
  })
127
131
 
128
132
  onUnload(() => {
package/w-tree/w-tree.vue CHANGED
@@ -109,10 +109,10 @@
109
109
  }
110
110
  // 格式化方法
111
111
  const displayFormat = (selectedItems: Record<string, any>[]) => {
112
- if(selectedItems.length){
112
+ if(selectedItems.length>1){
113
113
  return selectedItems[selectedItems.length - 2].label + '/' + selectedItems[selectedItems.length - 1].label
114
114
  }else{
115
-
115
+ return selectedItems[selectedItems.length - 1].label
116
116
  }
117
117
  }
118
118
  </script>