- Line 38:
inject("wx-i18n")should use stripped keyinject("i18n")— thewx-prefix should be removed per conversion rules.
- Line 12:
inject("wx-i18n")should use stripped keyinject("i18n")— thewx-prefix should be removed per conversion rules.
- Line 36:
inject("wx-i18n")should use stripped keyinject("i18n")— thewx-prefix should be removed per conversion rules.
- Line 5:
inject('wx-i18n')should use stripped keyinject('i18n')— thewx-prefix should be removed per conversion rules.
- Line 18:
<style>block is missingscopedattribute — should be<style scoped>.
- Line 15: Uses
defineEmits(["onnewpage"])andemit("onnewpage", ...)— this follows Vue's emit pattern rather than callback props pattern. For consistency with the rest of the conversion (which uses callback props likeonclick,onchange), consider using a callback proponnewpage: { type: Function }and callingprops.onnewpage?.({...})instead.
- Line 5:
inject('wx-helpers')should use stripped keyinject('helpers')— thewx-prefix should be removed per conversion rules.
- Line 16: Native
@clickevent handler uses inline callback that callsonclickprop directly without optional chaining. Should useonclick?.({...})pattern for safety, e.g.,@click="() => onclick?.({ item: { id: 'toggle-section', key: activeSection ? null : sectionKey } })".