3.0.5 • Published 4 years ago

wl-range-vue v3.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

Wl/vue

Wl Vue.js specific building blocks on top of wl-range components.

To get started simply install wl-range-vue with npm into your project and then register wl-range-vue as a plugin to your vue application.

import { createApp, defineComponent } from 'vue';

import Wl from 'wl-range-vue';

const Home = defineComponent({
  template: `
        <div>
      <wl-range color="danger" @wl-change="handleSeek" :value="percentPlayed">
        <div slot="start">
          0
        </div>
        <div slot="end">
          100
        </div>
      </wl-range>
    </div>
    `,
  data() {
    return {
      percentPlayed: 0,
    };
  },
  methods: {
    handleSeek(value: number) {
      if (value !== this.percentPlayed) {
        this.percentPlayed = value;
      }
    },
  },
});

const app = createApp(Home);

app.use(Wl);
app.render('#app');

Related

License

  • MIT
3.0.5

4 years ago

3.0.4

4 years ago

3.0.3

4 years ago

3.0.2

4 years ago

3.0.1

4 years ago

3.0.0

4 years ago

2.0.0

4 years ago

1.0.0

4 years ago