Example for adding existing Vue components from Ant Design Vue #238
bigfatwhale
started this conversation in
General
Replies: 1 comment 3 replies
-
Hi, Thank you for experimenting with JustPy. You would need something similar for ant components. Also, please take a look at: https://justpy.io/tutorial/advanced_components/ |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I'm relatively new to justpy but i'm really excited about its capabilities!
I've been trying to add Ant Design Vue components to the justpy framework. Specifically I wanted to just test convert the drawer component here.
The following is what I intend to do,
Create antd.html with a single line
<script src="https://unpkg.com/[email protected]/dist/antd.js"></script>
in my templates directory (a duplicate of the justpy default) and add it to the jinja template file main.html.Write the new component's python class that looks something like this,
However, I'm not quite sure how do I proceed given that the draw is already a Vue component. Do i write the .js code for it as well?
I took a look at quasarcomponents.py and I guess there's some leg-work to do for antdv similar to quasar.
Could you let me know if i'm going in the right direction? Even better if you kindly take me throw a quick example of how to do this for one antd component.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions