@wujies/components 5.6.3 → 5.6.5
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/dist/host/components/KCustomTabs.vue.d.ts +27 -0
- package/dist/host/components/KDictTag.vue.d.ts +1 -1
- package/dist/host/components/KIpSegmentInput.vue.d.ts +16 -0
- package/dist/host/components/KSectionTitle.vue.d.ts +15 -0
- package/dist/host/components/KSegmented.vue.d.ts +61 -0
- package/dist/host/components/KSpin.vue.d.ts +27 -0
- package/dist/index.d.ts +10 -5
- package/dist/index.js +387 -1507
- package/dist/index.js.map +1 -1
- package/dist/names.d.ts +3 -3
- package/dist/names.js +7 -5
- package/dist/names.js.map +1 -1
- package/dist/style.css +244 -203
- package/package.json +10 -11
- package/dist/host/api/config.d.ts +0 -2
- package/dist/host/api/oss.d.ts +0 -2
- package/dist/host/api/types.d.ts +0 -11
- package/dist/host/api/user.d.ts +0 -1
- package/dist/host/components/ImageUpload.vue.d.ts +0 -129
- package/dist/host/components/ModuleBusinessSettings.vue.d.ts +0 -7
- package/dist/host/components/ModuleWebsiteSettings.vue.d.ts +0 -7
- package/dist/host/components/UserDetail.vue.d.ts +0 -10
- package/dist/host/contact.d.ts +0 -5
- package/dist/host/request.d.ts +0 -4
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
interface Tab {
|
|
2
|
+
name: string;
|
|
3
|
+
label: string;
|
|
4
|
+
icon: any;
|
|
5
|
+
}
|
|
6
|
+
interface Props {
|
|
7
|
+
modelValue: string;
|
|
8
|
+
tabs: Tab[];
|
|
9
|
+
}
|
|
10
|
+
declare var __VLS_21: {};
|
|
11
|
+
type __VLS_Slots = {} & {
|
|
12
|
+
default?: (props: typeof __VLS_21) => any;
|
|
13
|
+
};
|
|
14
|
+
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
|
+
"update:modelValue": (...args: any[]) => void;
|
|
16
|
+
"tab-click": (...args: any[]) => void;
|
|
17
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
18
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
19
|
+
"onTab-click"?: (...args: any[]) => any;
|
|
20
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
24
|
+
new (): {
|
|
25
|
+
$slots: S;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -12,12 +12,12 @@ interface Props {
|
|
|
12
12
|
fallbackType?: ElTagType;
|
|
13
13
|
}
|
|
14
14
|
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
15
|
-
size: "" | "large" | "default" | "small";
|
|
16
15
|
showValue: boolean;
|
|
17
16
|
separator: string;
|
|
18
17
|
round: boolean;
|
|
19
18
|
wrap: boolean;
|
|
20
19
|
gap: number | string;
|
|
20
|
+
size: "" | "large" | "default" | "small";
|
|
21
21
|
theme: DictTagTheme;
|
|
22
22
|
fallbackType: ElTagType;
|
|
23
23
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
modelValue: string;
|
|
3
|
+
prefix?: string;
|
|
4
|
+
segmentCount?: number;
|
|
5
|
+
}
|
|
6
|
+
declare const _default: import("vue").DefineComponent<Props, {
|
|
7
|
+
focus: () => void;
|
|
8
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
"update:modelValue": (...args: any[]) => void;
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
11
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
12
|
+
}>, {
|
|
13
|
+
prefix: string;
|
|
14
|
+
segmentCount: number;
|
|
15
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
title?: string;
|
|
3
|
+
};
|
|
4
|
+
declare var __VLS_1: {};
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
6
|
+
default?: (props: typeof __VLS_1) => any;
|
|
7
|
+
};
|
|
8
|
+
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>;
|
|
9
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
10
|
+
export default _default;
|
|
11
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
12
|
+
new (): {
|
|
13
|
+
$slots: S;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
type SegmentedValue = string | number | boolean;
|
|
3
|
+
type SegmentedOption = SegmentedValue | {
|
|
4
|
+
label: string;
|
|
5
|
+
value: SegmentedValue;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
|
|
9
|
+
modelValue: {
|
|
10
|
+
type: PropType<SegmentedValue>;
|
|
11
|
+
required: true;
|
|
12
|
+
};
|
|
13
|
+
options: {
|
|
14
|
+
type: PropType<SegmentedOption[]>;
|
|
15
|
+
required: true;
|
|
16
|
+
};
|
|
17
|
+
size: {
|
|
18
|
+
type: PropType<"large" | "default" | "small">;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
block: {
|
|
22
|
+
type: BooleanConstructor;
|
|
23
|
+
default: boolean;
|
|
24
|
+
};
|
|
25
|
+
disabled: {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
default: boolean;
|
|
28
|
+
};
|
|
29
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
30
|
+
"update:modelValue": (value: SegmentedValue) => any;
|
|
31
|
+
change: (value: SegmentedValue) => any;
|
|
32
|
+
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
33
|
+
modelValue: {
|
|
34
|
+
type: PropType<SegmentedValue>;
|
|
35
|
+
required: true;
|
|
36
|
+
};
|
|
37
|
+
options: {
|
|
38
|
+
type: PropType<SegmentedOption[]>;
|
|
39
|
+
required: true;
|
|
40
|
+
};
|
|
41
|
+
size: {
|
|
42
|
+
type: PropType<"large" | "default" | "small">;
|
|
43
|
+
default: string;
|
|
44
|
+
};
|
|
45
|
+
block: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
default: boolean;
|
|
48
|
+
};
|
|
49
|
+
disabled: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
default: boolean;
|
|
52
|
+
};
|
|
53
|
+
}>> & Readonly<{
|
|
54
|
+
"onUpdate:modelValue"?: (value: SegmentedValue) => any;
|
|
55
|
+
onChange?: (value: SegmentedValue) => any;
|
|
56
|
+
}>, {
|
|
57
|
+
size: "default" | "small" | "large";
|
|
58
|
+
disabled: boolean;
|
|
59
|
+
block: boolean;
|
|
60
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
61
|
+
export default _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
show?: boolean;
|
|
3
|
+
size?: number;
|
|
4
|
+
description?: string;
|
|
5
|
+
background?: string;
|
|
6
|
+
contentClass?: string;
|
|
7
|
+
};
|
|
8
|
+
declare var __VLS_1: {}, __VLS_7: {};
|
|
9
|
+
type __VLS_Slots = {} & {
|
|
10
|
+
default?: (props: typeof __VLS_1) => any;
|
|
11
|
+
} & {
|
|
12
|
+
spin?: (props: typeof __VLS_7) => any;
|
|
13
|
+
};
|
|
14
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
15
|
+
size: number;
|
|
16
|
+
show: boolean;
|
|
17
|
+
description: string;
|
|
18
|
+
background: string;
|
|
19
|
+
contentClass: string;
|
|
20
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
21
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
24
|
+
new (): {
|
|
25
|
+
$slots: S;
|
|
26
|
+
};
|
|
27
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,23 +1,28 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* 真实组件库入口 —— 通用 UI kit。
|
|
3
3
|
*
|
|
4
4
|
* 源码由 `pnpm sync:host` 从宿主 plus-ui 同步(见 scripts/sync-host-components.mjs),
|
|
5
5
|
* 构建后是可直接 import 的 Vue 组件。宿主运行时仍通过 Import Map 指向自己的那份实例,
|
|
6
6
|
* 所以插件与宿主共享同一个 Vue / Element Plus,不会出现双实例。
|
|
7
|
+
*
|
|
8
|
+
* 这里只放**不依赖宿主业务的通用组件**;业务组件(ImageUpload / UserDetail /
|
|
9
|
+
* Module*Settings / 各类 Select)留在宿主与 app,不进公共 SDK。
|
|
7
10
|
*/
|
|
8
11
|
export { default as ImagePreview } from './host/components/ImagePreview.vue';
|
|
9
|
-
export { default as ImageUpload } from './host/components/ImageUpload.vue';
|
|
10
12
|
export { default as KCard } from './host/components/KCard.vue';
|
|
13
|
+
export { default as KCustomTabs } from './host/components/KCustomTabs.vue';
|
|
11
14
|
export { default as KDictTag } from './host/components/KDictTag.vue';
|
|
15
|
+
export { default as KIpSegmentInput } from './host/components/KIpSegmentInput.vue';
|
|
12
16
|
export { default as KPlainButton } from './host/components/KPlainButton.vue';
|
|
13
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';
|
|
14
20
|
export { default as KSelectedAlert } from './host/components/KSelectedAlert.vue';
|
|
21
|
+
export { default as KSpin } from './host/components/KSpin.vue';
|
|
15
22
|
export { default as KTable } from './host/components/KTable.vue';
|
|
16
23
|
export { default as KTableHeader } from './host/components/KTableHeader.vue';
|
|
17
|
-
export { default as
|
|
18
|
-
export { default as ModuleWebsiteSettings } from './host/components/ModuleWebsiteSettings.vue';
|
|
24
|
+
export { default as SettingForm } from './host/components/SettingForm.vue';
|
|
19
25
|
export { default as SettingTabs } from './host/components/SettingTabs.vue';
|
|
20
|
-
export { default as UserDetail } from './host/components/UserDetail.vue';
|
|
21
26
|
export { WUJIES_COMPONENT_NAMES } from './names';
|
|
22
27
|
export type { WujiesComponentName } from './names';
|
|
23
28
|
export type { KSearchBarItem, KSearchBarOption, KTableColumn, WujiesComponent } from './types';
|