@wujies/components 5.6.5 → 5.6.6

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.
Files changed (30) hide show
  1. package/dist/components/KPagination.vue.d.ts +136 -0
  2. package/dist/components/KRightToolbar.vue.d.ts +48 -0
  3. package/dist/components/KTableSiderLayout.vue.d.ts +30 -0
  4. package/dist/index.d.ts +36 -22
  5. package/dist/index.js +737 -89
  6. package/dist/index.js.map +1 -1
  7. package/dist/names.d.ts +15 -5
  8. package/dist/names.js +18 -2
  9. package/dist/names.js.map +1 -1
  10. package/dist/propTypes.d.ts +24 -0
  11. package/dist/style.css +263 -144
  12. package/dist/types.d.ts +11 -0
  13. package/dist/utils/scroll-to.d.ts +6 -0
  14. package/package.json +6 -6
  15. package/dist/host/propTypes.d.ts +0 -29
  16. package/dist/{host/components → components}/ImagePreview.vue.d.ts +0 -0
  17. package/dist/{host/components → components}/KCard.vue.d.ts +0 -0
  18. package/dist/{host/components → components}/KCustomTabs.vue.d.ts +0 -0
  19. package/dist/{host/components → components}/KDictTag.vue.d.ts +1 -1
  20. package/dist/{host/components → components}/KIpSegmentInput.vue.d.ts +0 -0
  21. package/dist/{host/components → components}/KPlainButton.vue.d.ts +0 -0
  22. package/dist/{host/components → components}/KSearchBar.vue.d.ts +2 -2
  23. package/dist/{host/components → components}/KSectionTitle.vue.d.ts +0 -0
  24. package/dist/{host/components → components}/KSegmented.vue.d.ts +0 -0
  25. package/dist/{host/components → components}/KSelectedAlert.vue.d.ts +0 -0
  26. package/dist/{host/components → components}/KSpin.vue.d.ts +1 -1
  27. package/dist/{host/components → components}/KTable.vue.d.ts +1 -1
  28. /package/dist/{host/components → components}/KTableHeader.vue.d.ts +0 -0
  29. /package/dist/{host/components → components}/SettingForm.vue.d.ts +0 -0
  30. /package/dist/{host/components → components}/SettingTabs.vue.d.ts +0 -0
@@ -0,0 +1,136 @@
1
+ declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
2
+ total: {
3
+ type: NumberConstructor;
4
+ default?: number;
5
+ def: (value?: number) => {
6
+ type: NumberConstructor;
7
+ default: number;
8
+ };
9
+ };
10
+ page: {
11
+ type: NumberConstructor;
12
+ default: number;
13
+ };
14
+ limit: {
15
+ type: NumberConstructor;
16
+ default: number;
17
+ };
18
+ pageSizes: {
19
+ type: {
20
+ (arrayLength: number): number[];
21
+ (...items: number[]): number[];
22
+ new (arrayLength: number): number[];
23
+ new (...items: number[]): number[];
24
+ isArray(arg: any): arg is any[];
25
+ readonly prototype: any[];
26
+ from<T>(arrayLike: ArrayLike<T>): T[];
27
+ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
28
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
29
+ from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
30
+ of<T>(...items: T[]): T[];
31
+ readonly [Symbol.species]: ArrayConstructor;
32
+ };
33
+ default: () => number[];
34
+ };
35
+ pagerCount: {
36
+ type: NumberConstructor;
37
+ default: number;
38
+ };
39
+ layout: {
40
+ type: StringConstructor;
41
+ default: string;
42
+ };
43
+ background: {
44
+ type: BooleanConstructor;
45
+ default: boolean;
46
+ };
47
+ autoScroll: {
48
+ type: BooleanConstructor;
49
+ default: boolean;
50
+ };
51
+ hidden: {
52
+ type: BooleanConstructor;
53
+ default: boolean;
54
+ };
55
+ float: {
56
+ type: StringConstructor;
57
+ default: string;
58
+ };
59
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
60
+ "update:page": (...args: any[]) => void;
61
+ "update:limit": (...args: any[]) => void;
62
+ pagination: (...args: any[]) => void;
63
+ }, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
64
+ total: {
65
+ type: NumberConstructor;
66
+ default?: number;
67
+ def: (value?: number) => {
68
+ type: NumberConstructor;
69
+ default: number;
70
+ };
71
+ };
72
+ page: {
73
+ type: NumberConstructor;
74
+ default: number;
75
+ };
76
+ limit: {
77
+ type: NumberConstructor;
78
+ default: number;
79
+ };
80
+ pageSizes: {
81
+ type: {
82
+ (arrayLength: number): number[];
83
+ (...items: number[]): number[];
84
+ new (arrayLength: number): number[];
85
+ new (...items: number[]): number[];
86
+ isArray(arg: any): arg is any[];
87
+ readonly prototype: any[];
88
+ from<T>(arrayLike: ArrayLike<T>): T[];
89
+ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
90
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
91
+ from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
92
+ of<T>(...items: T[]): T[];
93
+ readonly [Symbol.species]: ArrayConstructor;
94
+ };
95
+ default: () => number[];
96
+ };
97
+ pagerCount: {
98
+ type: NumberConstructor;
99
+ default: number;
100
+ };
101
+ layout: {
102
+ type: StringConstructor;
103
+ default: string;
104
+ };
105
+ background: {
106
+ type: BooleanConstructor;
107
+ default: boolean;
108
+ };
109
+ autoScroll: {
110
+ type: BooleanConstructor;
111
+ default: boolean;
112
+ };
113
+ hidden: {
114
+ type: BooleanConstructor;
115
+ default: boolean;
116
+ };
117
+ float: {
118
+ type: StringConstructor;
119
+ default: string;
120
+ };
121
+ }>> & Readonly<{
122
+ "onUpdate:page"?: (...args: any[]) => any;
123
+ "onUpdate:limit"?: (...args: any[]) => any;
124
+ onPagination?: (...args: any[]) => any;
125
+ }>, {
126
+ hidden: boolean;
127
+ page: number;
128
+ limit: number;
129
+ pageSizes: number[];
130
+ pagerCount: number;
131
+ layout: string;
132
+ background: boolean;
133
+ autoScroll: boolean;
134
+ float: string;
135
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
136
+ export default _default;
@@ -0,0 +1,48 @@
1
+ import type { PropType } from 'vue';
2
+ declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
3
+ showSearch: {
4
+ type: BooleanConstructor;
5
+ default: boolean;
6
+ };
7
+ columns: {
8
+ type: PropType<FieldOption[]>;
9
+ default: any;
10
+ };
11
+ search: {
12
+ type: BooleanConstructor;
13
+ default: boolean;
14
+ };
15
+ gutter: {
16
+ type: NumberConstructor;
17
+ default: number;
18
+ };
19
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
20
+ "update:showSearch": (...args: any[]) => void;
21
+ queryTable: (...args: any[]) => void;
22
+ }, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
23
+ showSearch: {
24
+ type: BooleanConstructor;
25
+ default: boolean;
26
+ };
27
+ columns: {
28
+ type: PropType<FieldOption[]>;
29
+ default: any;
30
+ };
31
+ search: {
32
+ type: BooleanConstructor;
33
+ default: boolean;
34
+ };
35
+ gutter: {
36
+ type: NumberConstructor;
37
+ default: number;
38
+ };
39
+ }>> & Readonly<{
40
+ "onUpdate:showSearch"?: (...args: any[]) => any;
41
+ onQueryTable?: (...args: any[]) => any;
42
+ }>, {
43
+ search: boolean;
44
+ showSearch: boolean;
45
+ columns: FieldOption[];
46
+ gutter: number;
47
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
48
+ export default _default;
@@ -0,0 +1,30 @@
1
+ type __VLS_Props = {
2
+ siderTitle?: string;
3
+ defaultExpanded?: boolean;
4
+ };
5
+ declare var __VLS_12: {}, __VLS_14: {}, __VLS_16: {}, __VLS_18: {}, __VLS_23: {}, __VLS_25: {}, __VLS_27: {}, __VLS_45: {};
6
+ type __VLS_Slots = {} & {
7
+ header?: (props: typeof __VLS_12) => any;
8
+ } & {
9
+ 'header-extra'?: (props: typeof __VLS_14) => any;
10
+ } & {
11
+ sider?: (props: typeof __VLS_16) => any;
12
+ } & {
13
+ default?: (props: typeof __VLS_18) => any;
14
+ } & {
15
+ header?: (props: typeof __VLS_23) => any;
16
+ } & {
17
+ 'header-extra'?: (props: typeof __VLS_25) => any;
18
+ } & {
19
+ sider?: (props: typeof __VLS_27) => any;
20
+ } & {
21
+ default?: (props: typeof __VLS_45) => any;
22
+ };
23
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
24
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
25
+ export default _default;
26
+ type __VLS_WithSlots<T, S> = T & {
27
+ new (): {
28
+ $slots: S;
29
+ };
30
+ };
package/dist/index.d.ts CHANGED
@@ -1,28 +1,42 @@
1
1
  /**
2
- * 真实组件库入口 —— 通用 UI kit。
2
+ * 真实组件库入口 —— 平台共享组件。
3
3
  *
4
- * 源码由 `pnpm sync:host` 从宿主 plus-ui 同步(见 scripts/sync-host-components.mjs),
5
- * 构建后是可直接 import 的 Vue 组件。宿主运行时仍通过 Import Map 指向自己的那份实例,
4
+ * 本包是组件的事实源:源码直接在这里维护,构建后是可直接 import 的 Vue 组件。
5
+ * 宿主运行时通过 Import Map 把 `@wujies/components` 指到自己的那份实例,
6
6
  * 所以插件与宿主共享同一个 Vue / Element Plus,不会出现双实例。
7
7
  *
8
- * 这里只放**不依赖宿主业务的通用组件**;业务组件(ImageUpload / UserDetail /
9
- * Module*Settings / 各类 Select)留在宿主与 app,不进公共 SDK。
8
+ * 两类导出:
9
+ * - **通用 UI kit**:包内带真实构件(不依赖宿主接口 / store);
10
+ * - **宿主业务组件**(ImageUpload / UserDetail / Module*Settings):它们内部要调宿主接口、
11
+ * 读宿主 store,包内**不放实现**,只声明同名占位 —— 插件构建时该说明符是 external,
12
+ * 运行期由宿主 `components` 槽给出真实例。占位一旦被真正渲染(说明外部化没生效、
13
+ * 把包打进了产物)会立刻抛错,而不是安静地渲染成空白。
14
+ *
15
+ * 名字清单见 ./names.ts。
10
16
  */
11
- export { default as ImagePreview } from './host/components/ImagePreview.vue';
12
- export { default as KCard } from './host/components/KCard.vue';
13
- export { default as KCustomTabs } from './host/components/KCustomTabs.vue';
14
- export { default as KDictTag } from './host/components/KDictTag.vue';
15
- export { default as KIpSegmentInput } from './host/components/KIpSegmentInput.vue';
16
- export { default as KPlainButton } from './host/components/KPlainButton.vue';
17
- export { default as KSearchBar } from './host/components/KSearchBar.vue';
18
- export { default as KSectionTitle } from './host/components/KSectionTitle.vue';
19
- export { default as KSegmented } from './host/components/KSegmented.vue';
20
- export { default as KSelectedAlert } from './host/components/KSelectedAlert.vue';
21
- export { default as KSpin } from './host/components/KSpin.vue';
22
- export { default as KTable } from './host/components/KTable.vue';
23
- export { default as KTableHeader } from './host/components/KTableHeader.vue';
24
- export { default as SettingForm } from './host/components/SettingForm.vue';
25
- export { default as SettingTabs } from './host/components/SettingTabs.vue';
26
- export { WUJIES_COMPONENT_NAMES } from './names';
17
+ import type { WujiesComponent } from './types';
18
+ export { default as ImagePreview } from './components/ImagePreview.vue';
19
+ export { default as KCard } from './components/KCard.vue';
20
+ export { default as KCustomTabs } from './components/KCustomTabs.vue';
21
+ export { default as KDictTag } from './components/KDictTag.vue';
22
+ export { default as KIpSegmentInput } from './components/KIpSegmentInput.vue';
23
+ export { default as KPagination } from './components/KPagination.vue';
24
+ export { default as KPlainButton } from './components/KPlainButton.vue';
25
+ export { default as KRightToolbar } from './components/KRightToolbar.vue';
26
+ export { default as KSearchBar } from './components/KSearchBar.vue';
27
+ export { default as KSectionTitle } from './components/KSectionTitle.vue';
28
+ export { default as KSegmented } from './components/KSegmented.vue';
29
+ export { default as KSelectedAlert } from './components/KSelectedAlert.vue';
30
+ export { default as KSpin } from './components/KSpin.vue';
31
+ export { default as KTable } from './components/KTable.vue';
32
+ export { default as KTableHeader } from './components/KTableHeader.vue';
33
+ export { default as KTableSiderLayout } from './components/KTableSiderLayout.vue';
34
+ export { default as SettingForm } from './components/SettingForm.vue';
35
+ export { default as SettingTabs } from './components/SettingTabs.vue';
36
+ export declare const ImageUpload: WujiesComponent;
37
+ export declare const ModuleBusinessSettings: WujiesComponent;
38
+ export declare const ModuleWebsiteSettings: WujiesComponent;
39
+ export declare const UserDetail: WujiesComponent;
40
+ export { WUJIES_COMPONENT_NAMES, WUJIES_HOST_ONLY_COMPONENT_NAMES } from './names';
27
41
  export type { WujiesComponentName } from './names';
28
- export type { KSearchBarItem, KSearchBarOption, KTableColumn, WujiesComponent } from './types';
42
+ export type { KSearchBarItem, KSearchBarOption, KTableColumn, KTableHeaderColumn, WujiesComponent } from './types';