wolfika / vue-playing-card Goto Github PK
View Code? Open in Web Editor NEW๐ Simple Vue component for displaying playing cards from a standard 52-card French deck
License: MIT License
๐ Simple Vue component for displaying playing cards from a standard 52-card French deck
License: MIT License
Hi Mรกtรฉ,
Firstly, thanks for vue-playing-card. It has powered my Covid project which came to some level of maturity. (Had the idea of doing it only during Covid period. Since that period extending I kept building :) ) If you want to have a look check out https://kagitoyna.com/ Not in English but it is not text-rich anyway.
I am looking for ways to optimize this now and the sprite size is the biggest bottleneck I have. Tried reducing it by forking your project but to no avail. Can you provide an option for a smaller sprite or guide me how I can do it?
Hi, I've got the error " Invalid prop: custom validator check failed for prop "width"."
I'm just using
<vue-playing-card class="card" :signature="signature" width="300"></vue-playing-card>
What's the pb please ?
Having some trouble getting the component to render; just added <vue-playing-card cover />
as a first test, and am getting an error out of vue-playing-card.min.js
:
TypeError: e.component is not a function
at n (vue-playing-card.min.js?c183:6)
at resolveAsyncComponent (vue.runtime.esm.js?2b0e:3686)
at createComponent (vue.runtime.esm.js?2b0e:3200)
at _createElement (vue.runtime.esm.js?2b0e:3422)
at createElement (vue.runtime.esm.js?2b0e:3353)
at vm._c (vue.runtime.esm.js?2b0e:3491)
at Proxy.render (eval at ./node_modules/cache-loader/dist/cjs.js?
{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"43ec0d15-vue-loader-template"}!
./node_modules/vue-loader/lib/loaders/templateLoader.js?!
./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!
./src/components/CardFlip.vue?vue&type=template&id=9c661d66& (app.js:986), <anonymous>:8:21)
at VueComponent.Vue._render (vue.runtime.esm.js?2b0e:3548)
at VueComponent.updateComponent (vue.runtime.esm.js?2b0e:4066)
at Watcher.get (vue.runtime.esm.js?2b0e:4479)
Am I doing something weird here? Any help would be appreciated!
<template>
<div>
<vue-playing-card cover />
</div>
</template>
<script>
import VuePlayingCard from 'vue-playing-card';
export default {
components: {
VuePlayingCard,
},
}
</script>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.