I want to use an npm module which is based on Vue:
Persian Date & Time Picker For Vue.js
because I'm not familiar with node.js, I used wzrd.in to get a Iterable
object:
https://wzrd.in/standalone/vue-persian-datetime-picker@latest
I used it in my code(I only include contents of my body tag):
$query = [
'page' => $page,
'username' => $user,
// ...
];
$url = 'http://...?'.http_build_query($query);
but I cannot use it and get the following error:
[Vue warn]: Failed to mount component: template or render function not defined.
答案 0 :(得分:1)
我查看了vuePersianDatetimePicker
对象的内容并找到了解决方案。
我应该使用vuePersianDatetimePicker.default
代替vuePersianDatetimePicker