You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
__DEV__&&warn(`useCSSModule must be called inside setup()`)
returnEMPTY_OBJ
}
constmod=(instanceasany)[name]
if(!mod){
__DEV__&&
warn(`Current instance does not have CSS module named "${name}".`)
returnEMPTY_OBJ
}
returnmodasRecord<string,string>
}
exportconstuseCSSModule=(name='$style'): Record<string,string>=>{constinstance=getCurrentInstance()if(!instance){__DEV__&&warn(`useCSSModule must be called inside setup()`)returnEMPTY_OBJ}constmod=(instanceasany)[name]//Hereif(!mod){__DEV__&&warn(`Current instance does not have CSS module named "${name}".`)returnEMPTY_OBJ}returnmodasRecord<string,string>}
The text was updated successfully, but these errors were encountered:
vue version: 2.6.12
@vuejs/composition-api version: 1.0.0-beta.22
beta22, the
useCssModule
did'nt adapt the change ofgetCurrentInstance
.composition-api/src/apis/useCssModule.ts
Lines 8 to 23 in 4b2f1ab
The text was updated successfully, but these errors were encountered: