geekplus-digital-ui 0.1.41 → 0.2.0
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/components/icons/filter-list-light.vue.d.ts +2 -0
- package/components/index.d.ts +1 -0
- package/components/index.js +13 -11
- package/components/table/index.d.ts +120 -0
- package/components/table/src/table-filter.vue.d.ts +2 -0
- package/components/table/src/table-wrapper.vue.d.ts +7 -0
- package/components/table/src/table.vue.d.ts +54 -0
- package/hooks/index.js +2 -2
- package/index.js +16 -15
- package/locale/index.js +6 -6
- package/locale/lang/en.d.ts +9 -0
- package/locale/lang/ja.d.ts +9 -0
- package/locale/lang/ko.d.ts +9 -0
- package/locale/lang/zh-cn.d.ts +9 -0
- package/locale/lang/zh-tw.d.ts +9 -0
- package/package.json +36 -34
- package/{components → packages/components}/copy/src/copy.js +3 -3
- package/{components → packages/components}/editor/src/code-collapse.js +7 -7
- package/packages/components/editor/src/code-collapse.vue_vue_type_style_index_0_scoped_04a8d31f_lang.css +1 -0
- package/packages/components/editor/src/editor.vue_vue_type_style_index_0_scoped_125d5f42_lang.css +1 -0
- package/{components → packages/components}/editor/src/editor2.js +8 -8
- package/{components → packages/components}/fold-text/src/fold-text.js +8 -8
- package/packages/components/fold-text/src/fold-text.vue_vue_type_style_index_0_scoped_f460d6d5_lang.css +1 -0
- package/{components → packages/components}/icon/src/icon.js +1 -1
- package/{components → packages/components}/icon-tip/src/icon-tip.js +5 -5
- package/packages/components/icon-tip/src/icon-tip.vue_vue_type_style_index_0_scoped_fd7f9264_lang.css +1 -0
- package/{components → packages/components}/icons/angle-down-light.js +1 -1
- package/{components → packages/components}/icons/angle-up-light.js +1 -1
- package/{components → packages/components}/icons/circle-exclamation-solid.js +1 -1
- package/{components → packages/components}/icons/circle-play-light.js +1 -1
- package/{components → packages/components}/icons/circle-xmark-light.js +1 -1
- package/{components → packages/components}/icons/copy-light.js +1 -1
- package/{components → packages/components}/icons/download-light.js +1 -1
- package/{components → packages/components}/icons/eye-light.js +1 -1
- package/{components → packages/components}/icons/file-light.js +1 -1
- package/packages/components/icons/filter-list-light.js +16 -0
- package/{components → packages/components}/icons/image-light.js +1 -1
- package/{components → packages/components}/icons/plus-light.js +1 -1
- package/{components → packages/components}/icons/trash-light.js +1 -1
- package/{components → packages/components}/inline-edit/src/inline-edit.js +5 -5
- package/packages/components/inline-edit/src/inline-edit.vue_vue_type_style_index_0_scoped_b066ddcd_lang.css +1 -0
- package/{components → packages/components}/search-form/src/search-form.js +7 -7
- package/packages/components/search-form/src/search-form.vue_vue_type_style_index_0_scoped_ff9cbf76_lang.css +1 -0
- package/{components → packages/components}/search-item/src/search-item.js +5 -5
- package/packages/components/search-item/src/search-item.vue_vue_type_style_index_0_scoped_a37eaef0_lang.css +1 -0
- package/packages/components/table/index.js +5 -0
- package/packages/components/table/src/table-filter.js +131 -0
- package/packages/components/table/src/table-filter.vue_vue_type_style_index_0_scoped_70a03e33_lang.css +1 -0
- package/packages/components/table/src/table-wrapper.js +53 -0
- package/packages/components/table/src/table.js +166 -0
- package/packages/components/table/src/table.vue_vue_type_style_index_0_scoped_a6c85ac1_lang.css +1 -0
- package/{components → packages/components}/upload/src/upload.js +16 -16
- package/packages/components/upload/src/upload.vue_vue_type_style_index_0_scoped_aef1e5b2_lang.css +1 -0
- package/packages/components/upload/src/upload.vue_vue_type_style_index_1_lang.css +1 -0
- package/{hooks → packages/hooks}/use-locale/index.js +1 -1
- package/{install.js → packages/install.js} +3 -3
- package/{locale → packages/locale}/lang/en.js +8 -0
- package/{locale → packages/locale}/lang/ja.js +8 -0
- package/{locale → packages/locale}/lang/ko.js +8 -0
- package/{locale → packages/locale}/lang/zh-cn.js +8 -0
- package/{locale → packages/locale}/lang/zh-tw.js +8 -0
- package/skills/use-geekplus-digital-ui/SKILL.md +245 -104
- package/components/editor/src/code-collapse.vue_vue_type_style_index_0_scoped_44e188d6_lang.css +0 -1
- package/components/editor/src/editor.vue_vue_type_style_index_0_scoped_9103e51e_lang.css +0 -1
- package/components/fold-text/src/fold-text.vue_vue_type_style_index_0_scoped_cc699234_lang.css +0 -1
- package/components/icon-tip/src/icon-tip.vue_vue_type_style_index_0_scoped_fe982c8e_lang.css +0 -1
- package/components/inline-edit/src/inline-edit.vue_vue_type_style_index_0_scoped_fc1016d4_lang.css +0 -1
- package/components/search-form/src/search-form.vue_vue_type_style_index_0_scoped_cea05b8f_lang.css +0 -1
- package/components/search-item/src/search-item.vue_vue_type_style_index_0_scoped_27c41622_lang.css +0 -1
- package/components/upload/src/upload.vue_vue_type_style_index_0_scoped_c4e16833_lang.css +0 -1
- package/components/upload/src/upload.vue_vue_type_style_index_1_lang.css +0 -1
- /package/{components → packages/components}/copy/index.js +0 -0
- /package/{components → packages/components}/copy/src/copy.vue_vue_type_style_index_0_scoped_80dabae9_lang.css +0 -0
- /package/{components → packages/components}/editor/index.js +0 -0
- /package/{components → packages/components}/editor/src/editor.css +0 -0
- /package/{components → packages/components}/fold-text/index.js +0 -0
- /package/{components → packages/components}/icon/index.js +0 -0
- /package/{components → packages/components}/icon/src/icon.vue_vue_type_style_index_0_scoped_29c845ca_lang.css +0 -0
- /package/{components → packages/components}/icon-tip/index.js +0 -0
- /package/{components → packages/components}/inline-edit/index.js +0 -0
- /package/{components → packages/components}/search-form/index.js +0 -0
- /package/{components → packages/components}/search-item/index.js +0 -0
- /package/{components → packages/components}/upload/index.js +0 -0
- /package/{hooks → packages/hooks}/use-activated/index.js +0 -0
- /package/{locale → packages/locale}/i18n.js +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
2
|
+
export default _default;
|
package/components/index.d.ts
CHANGED
package/components/index.js
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { __exportAll as e } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import t from "
|
|
3
|
-
import n from "
|
|
4
|
-
import r from "
|
|
5
|
-
import i from "
|
|
6
|
-
import a from "
|
|
7
|
-
import o from "
|
|
8
|
-
import s from "
|
|
9
|
-
import c from "
|
|
10
|
-
import l from "
|
|
2
|
+
import t from "../packages/components/copy/index.js";
|
|
3
|
+
import n from "../packages/components/editor/index.js";
|
|
4
|
+
import r from "../packages/components/fold-text/index.js";
|
|
5
|
+
import i from "../packages/components/icon/index.js";
|
|
6
|
+
import a from "../packages/components/icon-tip/index.js";
|
|
7
|
+
import o from "../packages/components/inline-edit/index.js";
|
|
8
|
+
import s from "../packages/components/upload/index.js";
|
|
9
|
+
import c from "../packages/components/search-form/index.js";
|
|
10
|
+
import l from "../packages/components/search-item/index.js";
|
|
11
|
+
import u from "../packages/components/table/index.js";
|
|
11
12
|
//#region packages/components/index.js
|
|
12
|
-
var
|
|
13
|
+
var d = /* @__PURE__ */ e({
|
|
13
14
|
DCopy: () => t,
|
|
14
15
|
DEditor: () => n,
|
|
15
16
|
DFoldText: () => r,
|
|
@@ -18,7 +19,8 @@ var u = /* @__PURE__ */ e({
|
|
|
18
19
|
DInlineEdit: () => o,
|
|
19
20
|
DSearchForm: () => c,
|
|
20
21
|
DSearchItem: () => l,
|
|
22
|
+
DTable: () => u,
|
|
21
23
|
DUpload: () => s
|
|
22
24
|
});
|
|
23
25
|
//#endregion
|
|
24
|
-
export { t as DCopy, n as DEditor, r as DFoldText, i as DIcon, a as DIconTip, o as DInlineEdit, c as DSearchForm, l as DSearchItem, s as DUpload,
|
|
26
|
+
export { t as DCopy, n as DEditor, r as DFoldText, i as DIcon, a as DIconTip, o as DInlineEdit, c as DSearchForm, l as DSearchItem, u as DTable, s as DUpload, d as components_exports };
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
export const DTable: {
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
|
|
3
|
+
tableContext: {
|
|
4
|
+
columnList: import('vue').Ref<never[], never[]>;
|
|
5
|
+
checkedKeys: import('vue').Ref<never[], never[]>;
|
|
6
|
+
columnOrder: import('vue').Ref<never[], never[]>;
|
|
7
|
+
saveConfig: () => void;
|
|
8
|
+
readonly storageKey: string;
|
|
9
|
+
};
|
|
10
|
+
saveConfig: () => void;
|
|
11
|
+
$emit: (event: "page-change", ...args: any[]) => void;
|
|
12
|
+
showTip: boolean;
|
|
13
|
+
filterable: boolean;
|
|
14
|
+
total: number;
|
|
15
|
+
pageSizes: unknown[];
|
|
16
|
+
pageLayout: string;
|
|
17
|
+
showPage: boolean;
|
|
18
|
+
autoHeight: boolean;
|
|
19
|
+
availableHeight: number;
|
|
20
|
+
heightContainer: string;
|
|
21
|
+
storageKey?: string | undefined;
|
|
22
|
+
$props: {
|
|
23
|
+
readonly showTip?: boolean | undefined;
|
|
24
|
+
readonly filterable?: boolean | undefined;
|
|
25
|
+
readonly total?: number | undefined;
|
|
26
|
+
readonly pageSizes?: unknown[] | undefined;
|
|
27
|
+
readonly pageLayout?: string | undefined;
|
|
28
|
+
readonly showPage?: boolean | undefined;
|
|
29
|
+
readonly autoHeight?: boolean | undefined;
|
|
30
|
+
readonly availableHeight?: number | undefined;
|
|
31
|
+
readonly heightContainer?: string | undefined;
|
|
32
|
+
readonly storageKey?: string | undefined;
|
|
33
|
+
};
|
|
34
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
35
|
+
tableAreaRef: HTMLDivElement;
|
|
36
|
+
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
37
|
+
P: {};
|
|
38
|
+
B: {};
|
|
39
|
+
D: {};
|
|
40
|
+
C: {};
|
|
41
|
+
M: {};
|
|
42
|
+
Defaults: {};
|
|
43
|
+
}, Readonly<{}> & Readonly<{}>, {
|
|
44
|
+
tableContext: {
|
|
45
|
+
columnList: import('vue').Ref<never[], never[]>;
|
|
46
|
+
checkedKeys: import('vue').Ref<never[], never[]>;
|
|
47
|
+
columnOrder: import('vue').Ref<never[], never[]>;
|
|
48
|
+
saveConfig: () => void;
|
|
49
|
+
readonly storageKey: string;
|
|
50
|
+
};
|
|
51
|
+
saveConfig: () => void;
|
|
52
|
+
$emit: (event: "page-change", ...args: any[]) => void;
|
|
53
|
+
showTip: boolean;
|
|
54
|
+
filterable: boolean;
|
|
55
|
+
total: number;
|
|
56
|
+
pageSizes: unknown[];
|
|
57
|
+
pageLayout: string;
|
|
58
|
+
showPage: boolean;
|
|
59
|
+
autoHeight: boolean;
|
|
60
|
+
availableHeight: number;
|
|
61
|
+
heightContainer: string;
|
|
62
|
+
storageKey?: string | undefined;
|
|
63
|
+
$props: {
|
|
64
|
+
readonly showTip?: boolean | undefined;
|
|
65
|
+
readonly filterable?: boolean | undefined;
|
|
66
|
+
readonly total?: number | undefined;
|
|
67
|
+
readonly pageSizes?: unknown[] | undefined;
|
|
68
|
+
readonly pageLayout?: string | undefined;
|
|
69
|
+
readonly showPage?: boolean | undefined;
|
|
70
|
+
readonly autoHeight?: boolean | undefined;
|
|
71
|
+
readonly availableHeight?: number | undefined;
|
|
72
|
+
readonly heightContainer?: string | undefined;
|
|
73
|
+
readonly storageKey?: string | undefined;
|
|
74
|
+
};
|
|
75
|
+
}, {}, {}, {}, {}>;
|
|
76
|
+
__isFragment?: never;
|
|
77
|
+
__isTeleport?: never;
|
|
78
|
+
__isSuspense?: never;
|
|
79
|
+
} & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {
|
|
80
|
+
tableContext: {
|
|
81
|
+
columnList: import('vue').Ref<never[], never[]>;
|
|
82
|
+
checkedKeys: import('vue').Ref<never[], never[]>;
|
|
83
|
+
columnOrder: import('vue').Ref<never[], never[]>;
|
|
84
|
+
saveConfig: () => void;
|
|
85
|
+
readonly storageKey: string;
|
|
86
|
+
};
|
|
87
|
+
saveConfig: () => void;
|
|
88
|
+
$emit: (event: "page-change", ...args: any[]) => void;
|
|
89
|
+
showTip: boolean;
|
|
90
|
+
filterable: boolean;
|
|
91
|
+
total: number;
|
|
92
|
+
pageSizes: unknown[];
|
|
93
|
+
pageLayout: string;
|
|
94
|
+
showPage: boolean;
|
|
95
|
+
autoHeight: boolean;
|
|
96
|
+
availableHeight: number;
|
|
97
|
+
heightContainer: string;
|
|
98
|
+
storageKey?: string | undefined;
|
|
99
|
+
$props: {
|
|
100
|
+
readonly showTip?: boolean | undefined;
|
|
101
|
+
readonly filterable?: boolean | undefined;
|
|
102
|
+
readonly total?: number | undefined;
|
|
103
|
+
readonly pageSizes?: unknown[] | undefined;
|
|
104
|
+
readonly pageLayout?: string | undefined;
|
|
105
|
+
readonly showPage?: boolean | undefined;
|
|
106
|
+
readonly autoHeight?: boolean | undefined;
|
|
107
|
+
readonly availableHeight?: number | undefined;
|
|
108
|
+
readonly heightContainer?: string | undefined;
|
|
109
|
+
readonly storageKey?: string | undefined;
|
|
110
|
+
};
|
|
111
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
112
|
+
$slots: {
|
|
113
|
+
toolbar?(_: {}): any;
|
|
114
|
+
default?(_: {
|
|
115
|
+
tableHeight: undefined;
|
|
116
|
+
}): any;
|
|
117
|
+
pagination?(_: {}): any;
|
|
118
|
+
};
|
|
119
|
+
});
|
|
120
|
+
export default DTable;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export function extractColumns(vnodes: any): {
|
|
2
|
+
controllable: any[];
|
|
3
|
+
always: any[];
|
|
4
|
+
};
|
|
5
|
+
export function filterAndSortColumns(controllable: any, checkedKeys: any, columnOrder: any): any;
|
|
6
|
+
declare const _default: import('vue').DefineComponent<{}, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
2
|
+
export default _default;
|
|
3
|
+
type __VLS_WithTemplateSlots<T, S> = T & (new () => {
|
|
4
|
+
$slots: S;
|
|
5
|
+
});
|
|
6
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {
|
|
7
|
+
tableContext: {
|
|
8
|
+
columnList: import('vue').Ref<never[], never[]>;
|
|
9
|
+
checkedKeys: import('vue').Ref<never[], never[]>;
|
|
10
|
+
columnOrder: import('vue').Ref<never[], never[]>;
|
|
11
|
+
saveConfig: () => void;
|
|
12
|
+
readonly storageKey: string;
|
|
13
|
+
};
|
|
14
|
+
saveConfig: () => void;
|
|
15
|
+
$emit: (event: "page-change", ...args: any[]) => void;
|
|
16
|
+
showTip: boolean;
|
|
17
|
+
filterable: boolean;
|
|
18
|
+
total: number;
|
|
19
|
+
pageSizes: unknown[];
|
|
20
|
+
pageLayout: string;
|
|
21
|
+
showPage: boolean;
|
|
22
|
+
autoHeight: boolean;
|
|
23
|
+
availableHeight: number;
|
|
24
|
+
heightContainer: string;
|
|
25
|
+
storageKey?: string | undefined;
|
|
26
|
+
$props: {
|
|
27
|
+
readonly showTip?: boolean | undefined;
|
|
28
|
+
readonly filterable?: boolean | undefined;
|
|
29
|
+
readonly total?: number | undefined;
|
|
30
|
+
readonly pageSizes?: unknown[] | undefined;
|
|
31
|
+
readonly pageLayout?: string | undefined;
|
|
32
|
+
readonly showPage?: boolean | undefined;
|
|
33
|
+
readonly autoHeight?: boolean | undefined;
|
|
34
|
+
readonly availableHeight?: number | undefined;
|
|
35
|
+
readonly heightContainer?: string | undefined;
|
|
36
|
+
readonly storageKey?: string | undefined;
|
|
37
|
+
};
|
|
38
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
39
|
+
tableAreaRef: HTMLDivElement;
|
|
40
|
+
}, HTMLDivElement>;
|
|
41
|
+
type __VLS_TemplateResult = {
|
|
42
|
+
attrs: Partial<{}>;
|
|
43
|
+
slots: {
|
|
44
|
+
toolbar?(_: {}): any;
|
|
45
|
+
default?(_: {
|
|
46
|
+
tableHeight: undefined;
|
|
47
|
+
}): any;
|
|
48
|
+
pagination?(_: {}): any;
|
|
49
|
+
};
|
|
50
|
+
refs: {
|
|
51
|
+
tableAreaRef: HTMLDivElement;
|
|
52
|
+
};
|
|
53
|
+
rootEl: HTMLDivElement;
|
|
54
|
+
};
|
package/hooks/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { useLocale as e } from "
|
|
2
|
-
import { useActivated as t } from "
|
|
1
|
+
import { useLocale as e } from "../packages/hooks/use-locale/index.js";
|
|
2
|
+
import { useActivated as t } from "../packages/hooks/use-activated/index.js";
|
|
3
3
|
export { t as useActivated, e as useLocale };
|
package/index.js
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import { useLocale as e } from "./hooks/use-locale/index.js";
|
|
2
|
-
import { useActivated as t } from "./hooks/use-activated/index.js";
|
|
1
|
+
import { useLocale as e } from "./packages/hooks/use-locale/index.js";
|
|
2
|
+
import { useActivated as t } from "./packages/hooks/use-activated/index.js";
|
|
3
3
|
import "./hooks/index.js";
|
|
4
|
-
import n from "./components/copy/index.js";
|
|
5
|
-
import r from "./components/editor/index.js";
|
|
6
|
-
import i from "./components/fold-text/index.js";
|
|
7
|
-
import a from "./components/icon/index.js";
|
|
8
|
-
import o from "./components/icon-tip/index.js";
|
|
9
|
-
import s from "./components/inline-edit/index.js";
|
|
10
|
-
import c from "./components/upload/index.js";
|
|
11
|
-
import l from "./components/search-form/index.js";
|
|
12
|
-
import u from "./components/search-item/index.js";
|
|
4
|
+
import n from "./packages/components/copy/index.js";
|
|
5
|
+
import r from "./packages/components/editor/index.js";
|
|
6
|
+
import i from "./packages/components/fold-text/index.js";
|
|
7
|
+
import a from "./packages/components/icon/index.js";
|
|
8
|
+
import o from "./packages/components/icon-tip/index.js";
|
|
9
|
+
import s from "./packages/components/inline-edit/index.js";
|
|
10
|
+
import c from "./packages/components/upload/index.js";
|
|
11
|
+
import l from "./packages/components/search-form/index.js";
|
|
12
|
+
import u from "./packages/components/search-item/index.js";
|
|
13
|
+
import d from "./packages/components/table/index.js";
|
|
13
14
|
import "./components/index.js";
|
|
14
|
-
import { setComponentRegistry as
|
|
15
|
-
import { install as
|
|
15
|
+
import { setComponentRegistry as f, setGlobalConfig as p } from "./config/index.js";
|
|
16
|
+
import { install as m } from "./packages/install.js";
|
|
16
17
|
//#region packages/index.js
|
|
17
|
-
var
|
|
18
|
+
var h = { install: m };
|
|
18
19
|
//#endregion
|
|
19
|
-
export { n as DCopy, r as DEditor, i as DFoldText, a as DIcon, o as DIconTip, s as DInlineEdit, l as DSearchForm, u as DSearchItem, c as DUpload,
|
|
20
|
+
export { n as DCopy, r as DEditor, i as DFoldText, a as DIcon, o as DIconTip, s as DInlineEdit, l as DSearchForm, u as DSearchItem, d as DTable, c as DUpload, h as default, m as install, f as setComponentRegistry, p as setGlobalConfig, t as useActivated, e as useLocale };
|
package/locale/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
import t from "
|
|
3
|
-
import n from "
|
|
4
|
-
import r from "
|
|
5
|
-
import i from "
|
|
6
|
-
import { getLocale as a, initI18n as o, setLocale as s, t as c } from "
|
|
1
|
+
import e from "../packages/locale/lang/en.js";
|
|
2
|
+
import t from "../packages/locale/lang/ja.js";
|
|
3
|
+
import n from "../packages/locale/lang/ko.js";
|
|
4
|
+
import r from "../packages/locale/lang/zh-cn.js";
|
|
5
|
+
import i from "../packages/locale/lang/zh-tw.js";
|
|
6
|
+
import { getLocale as a, initI18n as o, setLocale as s, t as c } from "../packages/locale/i18n.js";
|
|
7
7
|
export { e as en, a as getLocale, o as initI18n, t as ja, n as ko, s as setLocale, c as t, r as zhCn, i as zhTw };
|
package/locale/lang/en.d.ts
CHANGED
|
@@ -23,6 +23,15 @@ declare namespace _default {
|
|
|
23
23
|
let collapse_2: string;
|
|
24
24
|
export { collapse_2 as collapse };
|
|
25
25
|
}
|
|
26
|
+
namespace table {
|
|
27
|
+
export let columnSetting: string;
|
|
28
|
+
let reset_1: string;
|
|
29
|
+
export { reset_1 as reset };
|
|
30
|
+
export let fixedLeft: string;
|
|
31
|
+
export let fixedRight: string;
|
|
32
|
+
export let columns: string;
|
|
33
|
+
export let scrollTip: string;
|
|
34
|
+
}
|
|
26
35
|
namespace upload {
|
|
27
36
|
export let lessThan: string;
|
|
28
37
|
export let format: string;
|
package/locale/lang/ja.d.ts
CHANGED
|
@@ -23,6 +23,15 @@ declare namespace _default {
|
|
|
23
23
|
let collapse_2: string;
|
|
24
24
|
export { collapse_2 as collapse };
|
|
25
25
|
}
|
|
26
|
+
namespace table {
|
|
27
|
+
export let columnSetting: string;
|
|
28
|
+
let reset_1: string;
|
|
29
|
+
export { reset_1 as reset };
|
|
30
|
+
export let fixedLeft: string;
|
|
31
|
+
export let fixedRight: string;
|
|
32
|
+
export let columns: string;
|
|
33
|
+
export let scrollTip: string;
|
|
34
|
+
}
|
|
26
35
|
namespace upload {
|
|
27
36
|
export let lessThan: string;
|
|
28
37
|
export let format: string;
|
package/locale/lang/ko.d.ts
CHANGED
|
@@ -23,6 +23,15 @@ declare namespace _default {
|
|
|
23
23
|
let collapse_2: string;
|
|
24
24
|
export { collapse_2 as collapse };
|
|
25
25
|
}
|
|
26
|
+
namespace table {
|
|
27
|
+
export let columnSetting: string;
|
|
28
|
+
let reset_1: string;
|
|
29
|
+
export { reset_1 as reset };
|
|
30
|
+
export let fixedLeft: string;
|
|
31
|
+
export let fixedRight: string;
|
|
32
|
+
export let columns: string;
|
|
33
|
+
export let scrollTip: string;
|
|
34
|
+
}
|
|
26
35
|
namespace upload {
|
|
27
36
|
export let lessThan: string;
|
|
28
37
|
export let format: string;
|
package/locale/lang/zh-cn.d.ts
CHANGED
|
@@ -23,6 +23,15 @@ declare namespace _default {
|
|
|
23
23
|
let collapse_2: string;
|
|
24
24
|
export { collapse_2 as collapse };
|
|
25
25
|
}
|
|
26
|
+
namespace table {
|
|
27
|
+
export let columnSetting: string;
|
|
28
|
+
let reset_1: string;
|
|
29
|
+
export { reset_1 as reset };
|
|
30
|
+
export let fixedLeft: string;
|
|
31
|
+
export let fixedRight: string;
|
|
32
|
+
export let columns: string;
|
|
33
|
+
export let scrollTip: string;
|
|
34
|
+
}
|
|
26
35
|
namespace upload {
|
|
27
36
|
export let lessThan: string;
|
|
28
37
|
export let format: string;
|
package/locale/lang/zh-tw.d.ts
CHANGED
|
@@ -23,6 +23,15 @@ declare namespace _default {
|
|
|
23
23
|
let collapse_2: string;
|
|
24
24
|
export { collapse_2 as collapse };
|
|
25
25
|
}
|
|
26
|
+
namespace table {
|
|
27
|
+
export let columnSetting: string;
|
|
28
|
+
let reset_1: string;
|
|
29
|
+
export { reset_1 as reset };
|
|
30
|
+
export let fixedLeft: string;
|
|
31
|
+
export let fixedRight: string;
|
|
32
|
+
export let columns: string;
|
|
33
|
+
export let scrollTip: string;
|
|
34
|
+
}
|
|
26
35
|
namespace upload {
|
|
27
36
|
export let lessThan: string;
|
|
28
37
|
export let format: string;
|
package/package.json
CHANGED
|
@@ -1,34 +1,36 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "geekplus-digital-ui",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"homepage": "https://ui.geekplus.cc/static/ui/",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "index.js",
|
|
7
|
-
"module": "index.js",
|
|
8
|
-
"types": "index.d.ts",
|
|
9
|
-
"exports": {
|
|
10
|
-
".": {
|
|
11
|
-
"types": "./index.d.ts",
|
|
12
|
-
"import": "./index.js"
|
|
13
|
-
},
|
|
14
|
-
"./*": {
|
|
15
|
-
"types": "./*.d.ts",
|
|
16
|
-
"import": "./*.js"
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
"sideEffects": [
|
|
20
|
-
"**/*.css"
|
|
21
|
-
],
|
|
22
|
-
"dependencies": {
|
|
23
|
-
"@vueuse/core": "^14.2.1",
|
|
24
|
-
"@
|
|
25
|
-
"@wangeditor-next/editor
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "geekplus-digital-ui",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"homepage": "https://ui.geekplus.cc/static/ui/",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "index.js",
|
|
7
|
+
"module": "index.js",
|
|
8
|
+
"types": "index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./index.d.ts",
|
|
12
|
+
"import": "./index.js"
|
|
13
|
+
},
|
|
14
|
+
"./*": {
|
|
15
|
+
"types": "./*.d.ts",
|
|
16
|
+
"import": "./*.js"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"sideEffects": [
|
|
20
|
+
"**/*.css"
|
|
21
|
+
],
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"@vueuse/core": "^14.2.1",
|
|
24
|
+
"@vueuse/integrations": "^14.2.1",
|
|
25
|
+
"@wangeditor-next/editor": "^5.6.56",
|
|
26
|
+
"@wangeditor-next/editor-for-vue": "^5.1.14",
|
|
27
|
+
"file-saver": "^2.0.5",
|
|
28
|
+
"lodash-es": "^4.18.1",
|
|
29
|
+
"sortablejs": "^1.15.7",
|
|
30
|
+
"vue-i18n": "^11.3.0"
|
|
31
|
+
},
|
|
32
|
+
"peerDependencies": {
|
|
33
|
+
"element-plus": "^2.13.0",
|
|
34
|
+
"vue": "^3.5.0"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { useLocale as e } from "../../../hooks/use-locale/index.js";
|
|
2
|
-
import "
|
|
3
|
-
import t from "
|
|
2
|
+
import "../../../../hooks/index.js";
|
|
3
|
+
import t from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
import n from "../../icons/copy-light.js";
|
|
5
5
|
import './copy.vue_vue_type_style_index_0_scoped_80dabae9_lang.css';/* empty css */
|
|
6
6
|
import r from "../../icon/index.js";
|
|
7
|
-
import "
|
|
7
|
+
import "../../../../components/index.js";
|
|
8
8
|
import { computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createVNode as c, normalizeClass as l, normalizeStyle as u, onBeforeUnmount as d, onMounted as f, openBlock as p, ref as m, renderSlot as h, toRef as g, unref as _, useTemplateRef as v, withCtx as y, withModifiers as b } from "vue";
|
|
9
9
|
import { useClipboard as x } from "@vueuse/core";
|
|
10
10
|
import { ElLink as S, ElMessage as C } from "element-plus";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { useLocale as e } from "../../../hooks/use-locale/index.js";
|
|
2
|
-
import "
|
|
3
|
-
import t from "
|
|
2
|
+
import "../../../../hooks/index.js";
|
|
3
|
+
import t from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
import n from "../../icons/angle-down-light.js";
|
|
5
5
|
import r from "../../icons/angle-up-light.js";
|
|
6
|
-
import './code-collapse.
|
|
6
|
+
import './code-collapse.vue_vue_type_style_index_0_scoped_04a8d31f_lang.css';/* empty css */
|
|
7
7
|
import i from "../../icon/index.js";
|
|
8
|
-
import "
|
|
8
|
+
import "../../../../components/index.js";
|
|
9
9
|
import { computed as a, createBlock as o, createElementBlock as s, createElementVNode as c, createVNode as l, openBlock as u, ref as d, toDisplayString as f, unref as p, useTemplateRef as m, withCtx as h } from "vue";
|
|
10
10
|
//#region packages/components/editor/src/code-collapse.vue
|
|
11
11
|
var g = ["open"], _ = /* @__PURE__ */ t({
|
|
@@ -19,7 +19,7 @@ var g = ["open"], _ = /* @__PURE__ */ t({
|
|
|
19
19
|
b.value = e.target.open;
|
|
20
20
|
};
|
|
21
21
|
return _({ contentRef: y }), (e, a) => (u(), s("details", {
|
|
22
|
-
class: "code-collapse",
|
|
22
|
+
class: "d-code-collapse",
|
|
23
23
|
open: t.initialOpen,
|
|
24
24
|
onToggle: C
|
|
25
25
|
}, [c("summary", null, [c("span", null, f(S.value), 1), l(p(i), null, {
|
|
@@ -28,9 +28,9 @@ var g = ["open"], _ = /* @__PURE__ */ t({
|
|
|
28
28
|
})]), c("div", {
|
|
29
29
|
ref_key: "contentRef",
|
|
30
30
|
ref: y,
|
|
31
|
-
class: "code-
|
|
31
|
+
class: "d-code-collapse__content"
|
|
32
32
|
}, null, 512)], 40, g));
|
|
33
33
|
}
|
|
34
|
-
}, [["__scopeId", "data-v-
|
|
34
|
+
}, [["__scopeId", "data-v-04a8d31f"]]);
|
|
35
35
|
//#endregion
|
|
36
36
|
export { _ as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.d-code-collapse[data-v-04a8d31f]{border:1px solid var(--el-border-color);background:var(--el-bg-color-overlay);border-radius:4px;overflow:hidden}.d-code-collapse summary[data-v-04a8d31f]{cursor:pointer;-webkit-user-select:none;user-select:none;color:var(--el-text-color-primary);justify-content:flex-end;align-items:center;gap:4px;padding:8px 12px;line-height:normal;list-style:none;display:flex}.d-code-collapse[data-v-04a8d31f] pre code{border:none;border-radius:0;margin:0}
|
package/packages/components/editor/src/editor.vue_vue_type_style_index_0_scoped_125d5f42_lang.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.d-editor[data-v-125d5f42]{width:100%}.d-editor.w-e-full-screen-container[data-v-125d5f42]{z-index:1000}.d-editor .d-editor__toolbar[data-v-125d5f42]{border-bottom:1px solid var(--el-border-color)}.d-editor .d-editor__toolbar[data-v-125d5f42] .w-e-toolbar{border-radius:4px}.d-editor .d-editor__toolbar[data-v-125d5f42] .w-e-drop-panel{z-index:100}.d-editor .d-editor__content[data-v-125d5f42]{min-height:var(--minHeight);background:var(--el-fill-color-blank);border-radius:4px}.d-editor .d-editor__content[data-v-125d5f42] p[id^=w-e-element-paragraph-]{margin:10px 0}.d-editor .d-editor__content[data-v-125d5f42] .w-e-text-placeholder{font-size:14px;font-style:normal;line-height:normal;top:11px}.d-editor .d-editor__content[data-v-125d5f42] .w-e-image-container{width:500px}.d-editor .d-editor__content[data-v-125d5f42] pre code{text-shadow:none}.d-editor.is-disabled[data-v-125d5f42]:not(.is-border) div[id^=w-e-textarea-]{padding:0}.d-editor.is-disabled[data-v-125d5f42]:not(.is-border) p[id^=w-e-element-paragraph-]:first-child{margin-top:0}.d-editor.is-disabled[data-v-125d5f42]:not(.is-border) p[id^=w-e-element-paragraph-]:last-child{margin-bottom:0}.is-border[data-v-125d5f42]{border:1px solid var(--el-border-color);background:var(--el-bg-color);border-radius:4px;transition:border-color .2s cubic-bezier(.645,.045,.355,1)}.is-border[data-v-125d5f42]:hover{border-color:var(--el-text-color-disabled)}.is-disabled .d-editor__content[data-v-125d5f42] img{cursor:zoom-in}.el-form-item.is-error .is-border[data-v-125d5f42]{border:1px solid var(--el-color-danger)}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useLocale as e } from "../../../hooks/use-locale/index.js";
|
|
2
|
-
import "
|
|
3
|
-
import t from "
|
|
4
|
-
import './editor.
|
|
2
|
+
import "../../../../hooks/index.js";
|
|
3
|
+
import t from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
import './editor.vue_vue_type_style_index_0_scoped_125d5f42_lang.css';import './editor.css';/* empty css */
|
|
5
5
|
import n from "./code-collapse.js";
|
|
6
6
|
/* empty css */
|
|
7
7
|
import { computed as r, createApp as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createVNode as c, nextTick as l, normalizeClass as u, normalizeStyle as d, onBeforeUnmount as f, openBlock as p, ref as m, shallowRef as h, unref as g, vShow as _, watch as v, withDirectives as y } from "vue";
|
|
@@ -139,11 +139,11 @@ var w = "<p><br></p>", T = /* @__PURE__ */ t(/* @__PURE__ */ Object.assign({ nam
|
|
|
139
139
|
}, { immediate: !0 }), f(() => {
|
|
140
140
|
$(), k.value?.destroy?.();
|
|
141
141
|
}), T({ editorRef: k }), (e, n) => (p(), s("div", { class: u(["d-editor", {
|
|
142
|
-
"
|
|
143
|
-
"
|
|
142
|
+
"is-border": t.border,
|
|
143
|
+
"is-disabled": t.disabled
|
|
144
144
|
}]) }, [
|
|
145
145
|
y(c(g(C), {
|
|
146
|
-
class: "
|
|
146
|
+
class: "d-editor__toolbar",
|
|
147
147
|
editor: k.value,
|
|
148
148
|
"default-config": t.toolbarConfig,
|
|
149
149
|
mode: t.mode
|
|
@@ -153,7 +153,7 @@ var w = "<p><br></p>", T = /* @__PURE__ */ t(/* @__PURE__ */ Object.assign({ nam
|
|
|
153
153
|
"mode"
|
|
154
154
|
]), [[_, t.showToolbar && !t.disabled]]),
|
|
155
155
|
c(g(S), {
|
|
156
|
-
class: "
|
|
156
|
+
class: "d-editor__content",
|
|
157
157
|
style: d(se.value),
|
|
158
158
|
"model-value": A.value,
|
|
159
159
|
"default-config": oe.value,
|
|
@@ -177,6 +177,6 @@ var w = "<p><br></p>", T = /* @__PURE__ */ t(/* @__PURE__ */ Object.assign({ nam
|
|
|
177
177
|
}, null, 8, ["url-list", "initial-index"])) : o("", !0)
|
|
178
178
|
], 2));
|
|
179
179
|
}
|
|
180
|
-
}), [["__scopeId", "data-v-
|
|
180
|
+
}), [["__scopeId", "data-v-125d5f42"]]);
|
|
181
181
|
//#endregion
|
|
182
182
|
export { T as default };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { useLocale as e } from "../../../hooks/use-locale/index.js";
|
|
2
|
-
import "
|
|
3
|
-
import t from "
|
|
2
|
+
import "../../../../hooks/index.js";
|
|
3
|
+
import t from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
import n from "../../icons/angle-down-light.js";
|
|
5
5
|
import r from "../../icons/angle-up-light.js";
|
|
6
|
-
import './fold-text.
|
|
6
|
+
import './fold-text.vue_vue_type_style_index_0_scoped_f460d6d5_lang.css';/* empty css */
|
|
7
7
|
import i from "../../icon/index.js";
|
|
8
|
-
import "
|
|
8
|
+
import "../../../../components/index.js";
|
|
9
9
|
import { computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createVNode as u, normalizeClass as d, normalizeStyle as f, onMounted as p, openBlock as m, ref as h, renderSlot as g, toDisplayString as _, unref as v, useTemplateRef as y, withCtx as b } from "vue";
|
|
10
10
|
import { useResizeObserver as x } from "@vueuse/core";
|
|
11
11
|
import { ElLink as S } from "element-plus";
|
|
12
12
|
//#region packages/components/fold-text/src/fold-text.vue
|
|
13
13
|
var C = { class: "d-fold-text" }, w = {
|
|
14
14
|
key: 0,
|
|
15
|
-
class: "
|
|
15
|
+
class: "d-fold-text__link"
|
|
16
16
|
}, T = /* @__PURE__ */ t(/* @__PURE__ */ Object.assign({ name: "DFoldText" }, {
|
|
17
17
|
__name: "fold-text",
|
|
18
18
|
props: {
|
|
@@ -26,7 +26,7 @@ var C = { class: "d-fold-text" }, w = {
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
setup(t) {
|
|
29
|
-
let T = t, E = y("textRef"), D = h(!1), O = h(!1), { t: k } = e(), A = a(() => ({ "
|
|
29
|
+
let T = t, E = y("textRef"), D = h(!1), O = h(!1), { t: k } = e(), A = a(() => ({ "is-clamped": !O.value && T.lineClamp }));
|
|
30
30
|
return p(() => {
|
|
31
31
|
x(E, () => {
|
|
32
32
|
!O.value && E.value && (D.value = E.value.scrollHeight > E.value.clientHeight);
|
|
@@ -34,7 +34,7 @@ var C = { class: "d-fold-text" }, w = {
|
|
|
34
34
|
}), (e, a) => (m(), c("div", C, [l("div", {
|
|
35
35
|
ref_key: "textRef",
|
|
36
36
|
ref: E,
|
|
37
|
-
class: d(["
|
|
37
|
+
class: d(["d-fold-text__content", A.value]),
|
|
38
38
|
style: f({ "-webkit-line-clamp": t.lineClamp })
|
|
39
39
|
}, [g(e.$slots, "default", {}, void 0, !0)], 6), t.showFold && D.value ? (m(), c("div", w, [O.value ? (m(), o(v(S), {
|
|
40
40
|
key: 0,
|
|
@@ -60,6 +60,6 @@ var C = { class: "d-fold-text" }, w = {
|
|
|
60
60
|
_: 1
|
|
61
61
|
}))])) : s("", !0)]));
|
|
62
62
|
}
|
|
63
|
-
}), [["__scopeId", "data-v-
|
|
63
|
+
}), [["__scopeId", "data-v-f460d6d5"]]);
|
|
64
64
|
//#endregion
|
|
65
65
|
export { T as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.d-fold-text[data-v-f460d6d5]{overflow-wrap:break-word;flex-direction:column;display:flex}.d-fold-text .d-fold-text__content[data-v-f460d6d5]{white-space:pre-wrap}.d-fold-text .d-fold-text__content.is-clamped[data-v-f460d6d5]{-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.d-fold-text .d-fold-text__link[data-v-f460d6d5]{display:flex}.d-fold-text .d-fold-text__link[data-v-f460d6d5] .el-link__inner{gap:4px}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e from "
|
|
1
|
+
import e from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
2
2
|
import './icon.vue_vue_type_style_index_0_scoped_29c845ca_lang.css';/* empty css */
|
|
3
3
|
import { createElementBlock as t, openBlock as n, renderSlot as r } from "vue";
|
|
4
4
|
//#region packages/components/icon/src/icon.vue
|