1.1.1 • Published 4 years ago

vue-formulate-extended v1.1.1

Weekly downloads
126
License
MIT
Repository
-
Last release
4 years ago
yarn add vue-formulate-extended

# don't forget to have the peer dependencies installed
yarn add @braid/vue-formulate@2.4.3

# install only if you want to use text-mask feature
yarn add imask
// main.js
import VueFormulateExtended from 'vue-formulate-extended'

Vue.use(VueFormulate, {
  plugins: [
    VueFormulateExtended({
      features: {
        formEvents: true, // by-default
        textMask: false, // by-default
        enforceNumber: false, // by-default
      },
    }),
  ],
})

Added functionalities

  1. Fix for FormulateForm v-model (see https://github.com/wearebraid/vue-formulate/pull/164)
  2. Hooks strategy to easily add features (see /features folder for examples)
  3. Allow standalone FormulateInput (won't register within a FormulateForm) using `
  4. Allow to use component in slotProps to pass on custom props from FormulateInput to the component itself

(Feel free to check out how I extend the Form, Input and Schema components in /components)

Activable features

Events propagation

Events propagation from schema inputs with events: [] in FormulateForm up to the top via @events
Check a live example
Check the tests

Text mask

Text mask on a FormulateInput with vfe-mask attribute (works in a FormulateForm schema too)
Check a live example
Check the tests

Enforce Number

Force number value on a FormulateInput number type with vfe-number attribute (works in a FormulateForm schema too)
Check a live example
Check the tests

Q&A / Issues

Feel free to open an issue for any question, request or bug.

Tests

yarn test:unit

Build

yarn build

Note: IIFE bundle is way too big. Need some work.

1.1.1

4 years ago

1.1.0

4 years ago

1.0.5

4 years ago

1.0.44

4 years ago

1.0.43

4 years ago

1.0.4

4 years ago

1.0.42

4 years ago

1.0.41

4 years ago

1.0.2

4 years ago

1.0.19

4 years ago

1.0.18

4 years ago

1.0.17

4 years ago

1.0.3

4 years ago

1.0.22

4 years ago

1.0.21

4 years ago

1.0.23

4 years ago

1.0.16

4 years ago

1.0.15

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago