spartez / vue-atlaskit Goto Github PK
View Code? Open in Web Editor NEWhttps://spartez.github.io/vue-atlaskit
License: MIT License
https://spartez.github.io/vue-atlaskit
License: MIT License
I am trying to use the package in one of my projects but I can't seem to get it to work. I followed the instructions in the README and installed and included the package like:
...
import atlaskit from '@spartez/vue-atlaskit';
...
Vue.use(atlaskit);
However, while building the application, npm throws this error:
in ./src/main.js
"export 'default' (imported as 'atlaskit') was not found in '@spartez/vue-atlaskit'
Any idea what I might be doing incorrectly?
Hello,
I tried to use this package with Vue 2.6 and I have found that it is not possible due to peer dependency to Vue 2.5.x. Is this intentional because of some real issues between 2.5 and 2.6, or is it possible to update the Vue version?
How about editor?
I have a question, is vue-atlaskit compatible with vue3 and composition API?
for those who struggling with nuxtjs
, here is my solution:
create a plugin at plugins/atlaskit.js
:
import * as atlaskitComponents from '@spartez/vue-atlaskit'
import Vue from 'vue'
export default function () {
Object.entries(atlaskitComponents).forEach(([name, component]) => {
Vue.component(name, component)
})
}
and then reference it in nuxt.config.js
:
{
head: {
link: [
// not forgetting this!
{ rel: 'stylesheet', href: 'https://unpkg.com/@spartez/vue-atlaskit/dist/bundle.css' }
},
plugins: [
{ src: '~plugins/atlaskit.js', mode: 'client' },
],
}
then just use atlaskit without import:
<template lang="pug">
div
Button(appearance="primary" @click="greet") wow
</template>
<script>
export default {
methods: {
greet() {
alert('Greetings from an atlaskit button!')
}
}
}
</script>
Hi there,
I am trying to use just one component and am including it as explained:
import { ProgressBar } from '@spartez/vue-atlaskit'
However, when I build the project it adds ~400kb to vendor.js, so tree shaking does not seem to be working.
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.