Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuchentong committed Nov 5, 2024
1 parent eaa73bf commit 206e39c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/currency.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ export default defineNuxtPlugin((nuxtApp) => {
}

const result = useCurrency(value, binding.value)
el.innerHTML = result
el.setAttribute('style', 'font-variant-numeric:tabular-nums;')
el.innerText = result
},
updated(el: HTMLElement, binding) {
const text = el.innerText
Expand Down

0 comments on commit 206e39c

Please sign in to comment.