@segma/segma-directives
v1.2.4
Published
``` npm install segma-directives --save ```
Downloads
2
Readme
segma-directives
安装依赖
npm install @segma/segma-directives --save
配置
src/plugins/directives/index.js
import { onlyNumber, segmaLoading } from '@segma/segma-directives';
const directives = [
{
name: 'segma-loading',
directive: segmaLoading
},
{
name: 'number',
directive: onlyNumber
}
];
export default {
install(Vue) {
directives.forEach(directive => {
Vue.directive(directive.name, directive.directive);
});
}
};