umicro / uView

uView UI,是uni-app生态最优秀的UI框架,全面的组件和便捷的工具会让您信手拈来,如鱼得水
MIT License
4.05k stars 767 forks source link

u-dropdown-item 组件在支付宝存在问题 #828

Open NidhoggDJoking opened 3 years ago

NidhoggDJoking commented 3 years ago

image

官方 文档的代码在支付宝小程序跑报错 代码一字未改 版本 "version": "1.7.8",

Lyra Version: 2.24.10
af-appx.worker.min.js:26 ap/SDKVersion: 1.24.10
vendor.js:4334 [Vue warn]: Error in render: "TypeError: Cannot read property 'default' of undefined"

found in

---> <UDropdownItem> at uview-ui/components/u-dropdown-item/u-dropdown-item.vue
       <UDropdown> at uview-ui/components/u-dropdown/u-dropdown.vue
         <USticky> at uview-ui/components/u-sticky/u-sticky.vue
           pages/index/new.vue
warn @ vendor.js:4334
Vue.config.errorHandler @ vendor.js:9526
globalHandleError @ vendor.js:5597
handleError @ vendor.js:5566
Vue._render @ vendor.js:7275
updateComponent @ vendor.js:9410
get @ vendor.js:8133
run @ vendor.js:8208
flushSchedulerQueue @ vendor.js:7964
(anonymous) @ vendor.js:5703
flushCallbacks @ vendor.js:5631
Promise.then (async)
timerFunc @ vendor.js:5658
nextTick @ vendor.js:5713
queueWatcher @ vendor.js:8056
update @ vendor.js:8198
notify @ vendor.js:4448
reactiveSetter @ vendor.js:4784
proxySetter @ vendor.js:8285
init @ u-dropdown-item.js:266
mounted @ u-dropdown-item.js:293
invokeWithErrorHandling @ vendor.js:5581
Vue.__call_hook @ vendor.js:9583
_vue.default.__call_hook @ vendor.js:2305
(anonymous) @ vendor.js:2154
initChildVues @ vendor.js:2129
onReady @ vendor.js:2401
(anonymous) @ af-appx.worker.min.js:26
$n @ af-appx.worker.min.js:26
(anonymous) @ af-appx.worker.min.js:26
batchedUpdates @ af-appx.worker.min.js:26
executeUserFunction @ af-appx.worker.min.js:26
firePageEvent @ af-appx.worker.min.js:26
fireLegacyEvent @ af-appx.worker.min.js:26
(anonymous) @ af-appx.worker.min.js:26
runBatch @ af-appx.worker.min.js:26
batchedUpdates @ af-appx.worker.min.js:26
ready @ af-appx.worker.min.js:26
processData @ af-appx.worker.min.js:26
onData @ af-appx.worker.min.js:26
onMessage @ af-appx.worker.min.js:26
e.handleMessageFromRender4MessagePort @ VM75 vendors.bundle.js:66
e.handleMessageFromRender @ VM75 vendors.bundle.js:66
t.postMessage2Host @ VM75 vendors.bundle.js:79
e.postMessage2Host @ VM75 vendors.bundle.js:79
e.handleAPI4PostMessage @ VM75 vendors.bundle.js:79
e.bridgeCall @ VM75 vendors.bundle.js:79
e.callBridgePluginAsyncInternal @ VM75 vendors.bundle.js:79
(anonymous) @ VM75 vendors.bundle.js:79
setTimeout (async)
e.bridgeCall @ VM75 vendors.bundle.js:79
t.invokeBridgeAsync @ VM75 vendors.bundle.js:66
call @ VM75 vendors.bundle.js:51
a.onmessage @ VM3670 af-appx.min.js:13
vendor.js:9527 TypeError: Cannot read property 'default' of undefined
    at Proxy.render (u-dropdown-item.js:94)
    at VueComponent.Vue._render (vendor.js:7273)
    at VueComponent.updateComponent (vendor.js:9410)
    at Watcher.get (vendor.js:8133)
    at Watcher.run (vendor.js:8208)
    at flushSchedulerQueue (vendor.js:7964)
    at Array.<anonymous> (vendor.js:5703)
    at flushCallbacks (vendor.js:5631)
shilianmalaxiangguo commented 3 years ago

同问,想知道为什么

taozhiyuzhuo commented 3 years ago

这个问题解决了么?

NidhoggDJoking commented 3 years ago

这个问题解决了么?

这个估计是没人维护了所有问题都没人回答和解决

taozhiyuzhuo commented 3 years ago

这个问题解决了么?

这个估计是没人维护了所有问题都没人回答和解决

这... 不会吧...那么多人在用呢

NidhoggDJoking commented 3 years ago

这个问题解决了么?

这个估计是没人维护了所有问题都没人回答和解决

这... 不会吧...那么多人在用呢

自己在他们的基础上重写吧