types: use CSSProperties for style

This commit is contained in:
chenjiahan
2020-10-09 19:41:03 +08:00
parent 59fb1d4dfc
commit ed753ac97d
3 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
import { computed } from 'vue';
import { computed, CSSProperties } from 'vue';
import { createNamespace, isDef } from '../utils';
import Badge from '../badge';
@@ -21,7 +21,7 @@ export default createComponent({
setup(props) {
const style = computed(() => {
const style: Record<string, string> = {};
const style: CSSProperties = {};
const {
type,
color,