Closed xiao-xiaozi closed 1 month ago
补充第二点问题的期望:应该是删除后再抛出delete事件吧。
你好,这么做是为了与unicloud数据结构对齐,如果对你造成问题可以尝试在使用前验证
你好,这么做是为了与unicloud数据结构对齐,如果对你造成问题可以尝试在使用前验证
请问是不是可以理解为这个uni-file-picker组件只能在使用unicloud的情况下使用
你好,这么做是为了与unicloud数据结构对齐,如果对你造成问题可以尝试在使用前验证
请问是不是可以理解为这个uni-file-picker组件只能在使用unicloud的情况下使用
不是的,这只是放回时的数据不同而已
回显时的数据结构:
触发一次删除后的数据结构
查看组件源码发现是触发
delete
事件时,执行setEmit
方法,触发backObject
导致的数据结构变化部分源码:
这里的数据结构改变会导致原存放在回显数据里面的业务字段丢失,例如此次回显数据的
id
字段。两个问题
$emit('delete)
,这里会导致在父组件在响应删除事件时拿到的数据时删除前的