@sdata/web-vue 4.4.2 → 4.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/es/empty/empty.vue.d.ts
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
2
4
|
description?: string;
|
|
3
5
|
imgSrc?: string;
|
|
4
6
|
inConfigProvider?: boolean;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
8
|
+
description?: string;
|
|
9
|
+
imgSrc?: string;
|
|
10
|
+
inConfigProvider?: boolean;
|
|
11
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
7
12
|
default?: () => unknown;
|
|
8
13
|
image?: () => unknown;
|
|
9
|
-
}
|
|
10
|
-
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
12
|
-
declare const _default: typeof __VLS_export;
|
|
13
|
-
export default _default;
|
|
14
|
+
}>;
|
|
14
15
|
type __VLS_WithSlots<T, S> = T & {
|
|
15
16
|
new (): {
|
|
16
17
|
$slots: S;
|
|
@@ -3,9 +3,11 @@ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.146.0/helpers/es
|
|
|
3
3
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
4
4
|
import { useI18n } from "../locale/index.js";
|
|
5
5
|
import IconEmpty from "../icon/icon-empty/index.js";
|
|
6
|
-
import { createBlock, createElementBlock, createElementVNode, createTextVNode, defineComponent, inject, mergeProps, normalizeClass, openBlock, renderSlot,
|
|
6
|
+
import { createBlock, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, inject, mergeProps, normalizeClass, normalizeProps, openBlock, renderSlot, toDisplayString, unref, useSlots } from "vue";
|
|
7
7
|
//#region components/empty/empty.vue?vue&type=script&setup=true&lang.ts
|
|
8
8
|
var _hoisted_1 = ["src", "alt"];
|
|
9
|
+
var CustomEmptyRenderer = (props) => props.vnode;
|
|
10
|
+
CustomEmptyRenderer.props = ["vnode"];
|
|
9
11
|
var empty_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent(_objectSpread2(_objectSpread2({}, {
|
|
10
12
|
name: "Empty",
|
|
11
13
|
inheritAttrs: false
|
|
@@ -24,9 +26,13 @@ var empty_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
24
26
|
const prefixCls = getPrefixCls("empty");
|
|
25
27
|
const { t } = useI18n();
|
|
26
28
|
const configCtx = inject(configProviderInjectionKey, void 0);
|
|
27
|
-
const getCustomEmpty = () =>
|
|
29
|
+
const getCustomEmpty = () => {
|
|
30
|
+
const slot = configCtx === null || configCtx === void 0 ? void 0 : configCtx.slots.empty;
|
|
31
|
+
const vnode = slot ? slot({ component: "empty" }) : void 0;
|
|
32
|
+
if (vnode && typeof vnode === "object") return vnode;
|
|
33
|
+
};
|
|
28
34
|
return (_ctx, _cache) => {
|
|
29
|
-
return !__props.inConfigProvider && getCustomEmpty() && !slots.image && !__props.imgSrc && !__props.description ? (openBlock(),
|
|
35
|
+
return !__props.inConfigProvider && getCustomEmpty() && !slots.image && !__props.imgSrc && !__props.description ? (openBlock(), createElementBlock("div", normalizeProps(mergeProps({ key: 0 }, _ctx.$attrs)), [createVNode(CustomEmptyRenderer, { vnode: getCustomEmpty() }, null, 8, ["vnode"])], 16)) : (openBlock(), createElementBlock("div", mergeProps({
|
|
30
36
|
key: 1,
|
|
31
37
|
class: unref(prefixCls)
|
|
32
38
|
}, _ctx.$attrs), [createElementVNode("div", { class: normalizeClass(`${unref(prefixCls)}-image`) }, [renderSlot(_ctx.$slots, "image", {}, () => [__props.imgSrc ? (openBlock(), createElementBlock("img", {
|
package/json/web-types.json
CHANGED