vkd-components
v1.3.4
Published
vkd typeCode
Downloads
13
Maintainers
Readme
vkd-components
Install vkd-components
Using npm:
npm install vkd-components --save
Using a script tag for global use:
<script type="text/javascript" src="vkd-components.min.js"></script>
<link rel="stylesheet" href="dist/styles/vkd-components.css">
Usage 局部
<template>
<staff-management :typeCode="typeCode"></staff-management>
</template>
<script>
import { StaffManagement } from 'vkd-components'
export default {
data () {
return {
typeCode: 4
}
},
components: {
StaffManagement
}
}
</script>
Usage 全局
import Vue from 'vue';
import VkdComponents from 'vkd-components';
Vue.use(VkdComponents);
-----------------------------
<template>
<vkd-staff-management :typeCode="typeCode"></vkd-staff-management>
</template>
<script>
export default {
data () {
return {
typeCode: 4
}
}
}
</script>
Using css via import
:
import 'vkd-components/dist/styles/vkd-components.css';