x-sccba 0.0.6 → 0.0.7

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-sccba",
3
3
  "type": "module",
4
- "version": "0.0.6",
4
+ "version": "0.0.7",
5
5
  "license": "MIT",
6
6
  "homepage": "https://x-sccba.com",
7
7
  "repository": {
@@ -1,16 +1,14 @@
1
- import { SelfAvatarGroupProps } from './types.d.ts';
2
- interface XAvatarGroupProps extends SelfAvatarGroupProps {
3
- }
4
1
  declare function __VLS_template(): {
5
2
  attrs: Partial<{}>;
6
3
  slots: {
7
4
  default?(_: {}): any;
5
+ default?(_: {}): any;
8
6
  };
9
7
  refs: {};
10
8
  rootEl: any;
11
9
  };
12
10
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
- declare const __VLS_component: import('vue').DefineComponent<XAvatarGroupProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<XAvatarGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
11
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
14
12
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
15
13
  export default _default;
16
14
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -4,8 +4,9 @@ import { GlobalComponents } from 'vue';
4
4
  // Avatar组件类型
5
5
  type elAvatarProps = GlobalComponents['ElAvatar']['$props'];
6
6
 
7
- // AvatarGroup组件类型
8
- type elAvatarGroupProps = GlobalComponents['ElAvatarGroup']['$props'];
7
+ // AvatarGroup组件类型(Element Plus 2026年1月 PR #23211 新增)
8
+ // 旧版 EP 不存在该组件,使用 Record<string, any> 作为兼容类型,允许用户传入任意 props
9
+ type elAvatarGroupProps = Record<string, any>;
9
10
 
10
11
  // 自定义属性接口(可根据需要扩展)
11
12
  export interface AvatarProps {}
@@ -15,4 +16,4 @@ export interface AvatarGroupProps {}
15
16
  // 合并类型(仅单层交叉,无复杂逻辑)
16
17
  export type SelfAvatarProps = AvatarProps & Partial<elAvatarProps>;
17
18
 
18
- export type SelfAvatarGroupProps = AvatarGroupProps & Partial<elAvatarGroupProps>;
19
+ export type SelfAvatarGroupProps = AvatarGroupProps & Partial<elAvatarGroupProps>;
@@ -1,22 +0,0 @@
1
- import { defineComponent, createBlock, openBlock, unref, normalizeProps, guardReactiveProps, withCtx, renderSlot } from "vue";
2
- import { ElAvatarGroup } from "element-plus";
3
- import { useForwardProps } from "./es/hooks/useForwardProps.js";
4
- const _sfc_main = /* @__PURE__ */ defineComponent({
5
- ...{ name: "XAvatarGroup", inheritAttrs: false },
6
- __name: "XAvatarGroup",
7
- setup(__props) {
8
- const props = __props;
9
- const forwarded = useForwardProps(props);
10
- return (_ctx, _cache) => {
11
- return openBlock(), createBlock(unref(ElAvatarGroup), normalizeProps(guardReactiveProps({ ...unref(forwarded), ..._ctx.$attrs })), {
12
- default: withCtx(() => [
13
- renderSlot(_ctx.$slots, "default")
14
- ]),
15
- _: 3
16
- }, 16);
17
- };
18
- }
19
- });
20
- export {
21
- _sfc_main as _
22
- };