vue3-signature icon indicating copy to clipboard operation
vue3-signature copied to clipboard

Built version does not expose anything by `ref`

Open lifecoderua opened this issue 2 years ago • 1 comments

Setup

"vue": "^3.2.33" "vue3-signature": "0.1.17" "vite": "^2.9.9"

<vue3-signature
  ref="signature"
  class="signature"
/>
...
const signature = ref(null);

watch(() => signature.value, (newSignature: any, oldValue: any) => {
  console.log('newSignature', newSignature); // => ref(undefined)
});

Should be a build issue, with the component source copied into the project — works as expected.

lifecoderua avatar Jun 14 '22 07:06 lifecoderua

hi, Alex @lifecoderua I try it at v0.1.20, there are no reproduction issue. can you try this at 0.1.20 please? thx

WangShayne avatar Jul 14 '22 01:07 WangShayne