vue2-client 1.8.276 → 1.8.277
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
|
@@ -123,7 +123,7 @@ export default {
|
|
|
123
123
|
this.$emit('onChange', label)
|
|
124
124
|
} else {
|
|
125
125
|
// 如果选中值含'-',代表是由多个数据源组成的树,需要重新组织查询或新增/编辑时的表单
|
|
126
|
-
if ((value
|
|
126
|
+
if ((Array.isArray(value) && value.length > 0 && String(value[0]).indexOf('-') !== -1) || (typeof value === 'string' && value.indexOf('-') !== -1)) {
|
|
127
127
|
const treeDatas = {}
|
|
128
128
|
// 单选情况用于新增.修改表单场景,使用extra.triggerNode获取选中节点信息
|
|
129
129
|
if (!extra.allCheckedNodes) {
|