@dangojs/digitforce-ui-utils
Advanced tools
+2
-4
@@ -47,8 +47,6 @@ 'use strict'; | ||
| if (typeof defaultSlots === "function") { | ||
| slots = lodashEs.merge(defaultSlots(data, context), slots); | ||
| } else { | ||
| slots = lodashEs.merge(defaultSlots, slots); | ||
| defaultSlots(data, context); | ||
| } | ||
| } | ||
| return vue.h(tag, data, slots); | ||
| return vue.h(tag, data, { ...slots, ...defaultSlots }); | ||
| }; | ||
@@ -55,0 +53,0 @@ } |
+2
-2
| import * as vue from 'vue'; | ||
| import { VNode, Plugin } from 'vue'; | ||
| import { VNode, Plugin, Component } from 'vue'; | ||
@@ -13,4 +13,4 @@ declare function isEmptyElement(c: VNode): boolean; | ||
| declare const transformComponent: <T extends Record<string, any>>(tag: any, defaultProps?: Partial<T> | undefined, defaultSlots?: any) => any; | ||
| declare const transformComponent: <T extends Record<string, any>>(tag: any, defaultProps?: Partial<T> | undefined, defaultSlots?: any) => Component<T, any, any, vue.ComputedOptions, vue.MethodOptions>; | ||
| export { filterEmpty, isEmptyElement, transformComponent, withInstall }; |
+2
-4
@@ -43,8 +43,6 @@ import { Comment, Fragment, Text, defineComponent, h } from 'vue'; | ||
| if (typeof defaultSlots === "function") { | ||
| slots = merge(defaultSlots(data, context), slots); | ||
| } else { | ||
| slots = merge(defaultSlots, slots); | ||
| defaultSlots(data, context); | ||
| } | ||
| } | ||
| return h(tag, data, slots); | ||
| return h(tag, data, { ...slots, ...defaultSlots }); | ||
| }; | ||
@@ -51,0 +49,0 @@ } |
+2
-2
| { | ||
| "name": "@dangojs/digitforce-ui-utils", | ||
| "type": "module", | ||
| "version": "0.0.2", | ||
| "version": "0.0.3", | ||
| "description": "UI 组件库的一些帮助方法和函数", | ||
@@ -40,3 +40,3 @@ "author": "Digitforce Team", | ||
| "prepublishOnly": "nr build", | ||
| "release": "bumpp --tag=false && npm publish", | ||
| "release": "bumpp --no-tag && npm publish", | ||
| "start": "esno src/index.ts", | ||
@@ -43,0 +43,0 @@ "test": "vitest", |
5138
-1.53%112
-3.45%