47 lines
1.2 KiB
JavaScript
47 lines
1.2 KiB
JavaScript
const InputMaskProps = [
|
|
{
|
|
name: 'modelValue',
|
|
type: 'any',
|
|
default: 'null',
|
|
description: 'Value of the component.'
|
|
},
|
|
{
|
|
name: 'mask',
|
|
type: 'string',
|
|
default: 'null',
|
|
description: 'Mask pattern.'
|
|
},
|
|
{
|
|
name: 'slotChar',
|
|
type: 'string',
|
|
default: '-',
|
|
description: 'Placeholder character in mask, default is underscore.'
|
|
},
|
|
{
|
|
name: 'autoClear',
|
|
type: 'boolean',
|
|
default: 'true',
|
|
description: 'Clears the incomplete value on blur.'
|
|
},
|
|
{
|
|
name: 'unmask',
|
|
type: 'boolean',
|
|
default: 'false',
|
|
description: 'Defines if model sets the raw unmasked value to bound value or the formatted mask value.'
|
|
},
|
|
{
|
|
name: 'pt',
|
|
type: 'any',
|
|
default: 'null',
|
|
description: 'Uses to pass attributes to DOM elements inside the component.'
|
|
}
|
|
];
|
|
|
|
module.exports = {
|
|
inputmask: {
|
|
name: 'InputMask',
|
|
description: 'InputMask component is used to enter input in a certain format such as numeric, date, currency, email and phone.',
|
|
props: InputMaskProps
|
|
}
|
|
};
|