Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include quasar sources in npm packages #19

Closed
mlenormand opened this issue Aug 17, 2016 · 2 comments
Closed

Include quasar sources in npm packages #19

mlenormand opened this issue Aug 17, 2016 · 2 comments
Milestone

Comments

@mlenormand
Copy link

It would be a good thing to include all the repo files in the npm published package.

Use case : override Quasar components, for example for override the dropdown component :

MyCustomDropdown.vue (redefines the Quasar dropdown component but inherits the same mixin :

<template>

<div class="quasar-dropdown">
    <div class="quasar-dropdown-target" @click="toggle">
        <slot name="target"></slot>
    </div>
    <div v-el:menu class="quasar-dropdown-menu" style="display: none;">
        <slot></slot>
    </div>
</div>

</template>

<script>

import vm from 'quasar-framework/src/vue-components/dropdown/dropdown-common.js'
export default {
    mixins: [vm],
    destroy() {
        document.body.removeEventListener('mousedown', this.close)
    },
    methods: {
        open(event) {
            console.log('open')
        },
        mycustommethod() {

        }
    }
}

</script>

Several open source projects do it, including vue, vue-router, vue-i18n, etc.

@rstoenescu
Copy link
Member

Will do. Scheduled for v0.5.1 in a few days max.

@rstoenescu
Copy link
Member

Will be available in v0.5.1 in a few days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants