Coder Social home page Coder Social logo

soft4ti / vue-select-sides Goto Github PK

View Code? Open in Web Editor NEW
69.0 69.0 19.0 2.91 MB

A component for Vue.js to select double-sided data.

Home Page: https://juliorosseti.github.io/vue-select-sides/demo.html?v=20201113113940

JavaScript 3.88% Vue 90.44% Shell 0.06% SCSS 5.62%

vue-select-sides's Issues

SASS variables problems with bootstrap.

Bootstrap v3 also uses varaible: $font-size-base in px

so when included css from this compoennt throws an error
Incompatible units rem and px. font-size: $font-size-base + 0.4rem;

Maybe is a good idea to prefix variables.

vue-i18n Conflict

I have got this error when I use this in my project which has vue-i18n already installed.

vue.runtime.esm.js?2b0e:1888 TypeError: Cannot read properties of undefined (reading '_t') at VueComponent.Vue.$t (vueSelectSides.umd.js?ab22:584) at VueComponent.t (utils.js?3f05:12) at Proxy.render (VerticalNavMenuLink.vue?a770:29) at eval (vue-composition-api.mjs?ed09:1645) at activateCurrentInstance (vue-composition-api.mjs?ed09:1601) at Proxy.$options.render (vue-composition-api.mjs?ed09:1645) 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) at new Watcher (vue.runtime.esm.js?2b0e:4468)

Refresh list

The list is updated but not reflected in the component

Change default list key name

It is possible to change default keys in source array

value: "sul",
label: "Sul",

For Example:

key: "sul",
name: "Sul",

Global usage is not working /Lazyload

When Component registred globally:

import Vue from 'vue'
import vueSelectSides from "vue-select-sides";
Vue.use(vueSelectSides, {
	locale: "en_US"
});

Throws an error:
<vue-select-sides> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

So you need always to Import Vue and in all child components.

Also Lazyload is not working:

components: {
        vueSelectSides: () => import("vue-select-sides")
},

Error:
"TypeError: Cannot read property 'orderBy' of undefined"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.