@dangojs/digitforce-ui-utils
Advanced tools
+15
-15
@@ -47,18 +47,18 @@ 'use strict'; | ||
| setup(props, context) { | ||
| let { attrs, slots } = context; | ||
| let data = { | ||
| ...attrs | ||
| }; | ||
| if (defaultProps) { | ||
| merge__default(data, defaultProps, attrs); | ||
| } | ||
| let _defaultSlots = {}; | ||
| if (defaultSlots) { | ||
| if (typeof defaultSlots === "function") { | ||
| _defaultSlots = defaultSlots(data, context); | ||
| return () => { | ||
| let { attrs, slots } = context; | ||
| let data = { | ||
| ...attrs | ||
| }; | ||
| if (defaultProps) { | ||
| merge__default(data, defaultProps, attrs); | ||
| } | ||
| } else { | ||
| _defaultSlots = {}; | ||
| } | ||
| return () => { | ||
| let _defaultSlots = {}; | ||
| if (defaultSlots) { | ||
| if (typeof defaultSlots === "function") { | ||
| _defaultSlots = defaultSlots(data, context); | ||
| } | ||
| } else { | ||
| _defaultSlots = {}; | ||
| } | ||
| return vue.h(tag, data, { | ||
@@ -65,0 +65,0 @@ ..._defaultSlots, |
+15
-15
@@ -39,18 +39,18 @@ import { Comment, Fragment, Text, defineComponent, h } from 'vue'; | ||
| setup(props, context) { | ||
| let { attrs, slots } = context; | ||
| let data = { | ||
| ...attrs | ||
| }; | ||
| if (defaultProps) { | ||
| merge(data, defaultProps, attrs); | ||
| } | ||
| let _defaultSlots = {}; | ||
| if (defaultSlots) { | ||
| if (typeof defaultSlots === "function") { | ||
| _defaultSlots = defaultSlots(data, context); | ||
| return () => { | ||
| let { attrs, slots } = context; | ||
| let data = { | ||
| ...attrs | ||
| }; | ||
| if (defaultProps) { | ||
| merge(data, defaultProps, attrs); | ||
| } | ||
| } else { | ||
| _defaultSlots = {}; | ||
| } | ||
| return () => { | ||
| let _defaultSlots = {}; | ||
| if (defaultSlots) { | ||
| if (typeof defaultSlots === "function") { | ||
| _defaultSlots = defaultSlots(data, context); | ||
| } | ||
| } else { | ||
| _defaultSlots = {}; | ||
| } | ||
| return h(tag, data, { | ||
@@ -57,0 +57,0 @@ ..._defaultSlots, |
+1
-1
| { | ||
| "name": "@dangojs/digitforce-ui-utils", | ||
| "type": "module", | ||
| "version": "0.0.7", | ||
| "version": "0.0.8", | ||
| "description": "UI 组件库的一些帮助方法和函数", | ||
@@ -6,0 +6,0 @@ "author": "Digitforce Team", |
6668
0.91%