1.16.5 • Published 5 months ago

@wwtdev/bsds-components-vue2 v1.16.5

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
5 months ago

BSDS Components for Vue 2

Installation

npm install --save @wwtdev/bsds-components-vue2

Using the Components

Add the following to your main.js file to import and use the component library:

import { ComponentLibrary } from '@wwtdev/bsds-components-vue2'
import '@wwtdev/bsds-components/dist/components/components.css'

Vue.use(ComponentLibrary)

/* ... set up options, other plugins ... */

new Vue(options).$mount('#app')

Now you can use BSDS Components in your code, just like standard Vue components:

<script>
import { BsButton } from '@wwtdev/bsds-components-vue2'

export default {
    components: {
        BsButton,
    }
}
</script>

<template>
  <div>
    <BsButton>Hello World!</BsButton>
  </div>
</template>

Caveats

Currently v-model is not supported in this Vue 2 package. To handle events and form input-binding, you will need to handle the native event as shown in the example below:

<BsCheckbox
  :checked="checkVal"
  label="Checkbox"
  @change="e => checkVal = e.target.checked"
></BsCheckbox>

<BsInputField
  label="Input field"
  :value="inputVal"
  @input="e => inputVal = e.target.value"
></BsInputField>

<BsSelectField
  :data="optionsArr"
  label="Select field"
  :value="selectVal"
  @change="e => inputVal = e.target.value"
></BsSelectField>

<BsSwitch
  :checked="checkVal"
  label="Switch"
  @change="e => checkVal = e.target.checked"
></BsSwitch>

<BsTextareaField
  label="Textarea field"
  :value="textareaVal"
  @input="e => inputVal = e.target.value"
></BsTextareaField>
1.16.5

5 months ago

1.16.4

5 months ago

1.16.3

5 months ago

1.16.2

5 months ago

1.16.1

5 months ago

1.16.0

5 months ago

1.15.15

5 months ago

1.15.14

5 months ago

1.15.12

5 months ago

1.15.13

5 months ago

1.15.0

7 months ago

1.14.1

7 months ago

1.14.0

7 months ago

1.13.1

7 months ago

1.13.0

7 months ago

1.12.0

7 months ago

1.15.4

5 months ago

1.15.3

6 months ago

1.15.2

6 months ago

1.15.1

6 months ago

1.15.10

5 months ago

1.15.8

5 months ago

1.6.4

9 months ago

1.15.11

5 months ago

1.15.7

5 months ago

1.9.0

8 months ago

1.8.1

8 months ago

1.6.3

9 months ago

1.15.6

5 months ago

1.8.0

8 months ago

1.6.2

10 months ago

1.15.5

5 months ago

1.7.0

8 months ago

1.6.1

10 months ago

1.5.2

10 months ago

1.6.0

10 months ago

1.5.1

10 months ago

1.5.0

10 months ago

1.4.0

10 months ago

1.15.9

5 months ago

1.6.5

9 months ago

1.11.0

7 months ago

1.10.0

7 months ago

1.2.0

12 months ago

1.1.0

12 months ago

1.3.0

11 months ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

0.3.0

1 year ago

0.2.0

1 year ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.3

2 years ago