twcpt 0.0.2 → 0.0.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/README.md +33 -4
- package/dist/charts.cjs.js +1 -1
- package/dist/charts.es.js +1 -1
- package/dist/components/j-tw-btn/index.d.ts +43 -6
- package/dist/components/j-tw-btn/types.d.ts +19 -4
- package/dist/components/j-tw-date-picker/index.d.ts +1590 -0
- package/dist/components/j-tw-date-picker/types.d.ts +147 -0
- package/dist/components/j-tw-dropdown-btn/index.d.ts +3 -0
- package/dist/components/j-tw-dropdown-btn/types.d.ts +69 -0
- package/dist/components/j-tw-tree-select-btn/index.d.ts +1356 -0
- package/dist/components/j-tw-tree-select-btn/types.d.ts +99 -0
- package/dist/global.d.ts +30 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +8 -5
- package/dist/twcpt-styles.css +1 -1
- package/dist/twcpt.cjs.js +8 -1
- package/dist/twcpt.es.js +2598 -1451
- package/dist/utils/init.d.ts +19 -0
- package/dist/utils/tool.d.ts +1 -1
- package/package.json +4 -2
- package/dist/charts.css +0 -1
- package/dist/utils/website-config.d.ts +0 -15
- /package/dist/{charts-CKv8I1ye.js → charts-BRqaKjiE.js} +0 -0
- /package/dist/{charts-DIdINgA4.cjs → charts-lTMiYKQB.cjs} +0 -0
package/dist/utils/init.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export interface TWcptInitOptions {
|
|
|
11
11
|
i18n?: any;
|
|
12
12
|
pagePermissionIds?: Ref<string[]> | string[];
|
|
13
13
|
pageActionPermissionIds?: Ref<string[]> | string[];
|
|
14
|
+
projectPermissionId?: string;
|
|
14
15
|
defaultLanguage?: Locale;
|
|
15
16
|
colors?: ColorConfig;
|
|
16
17
|
disableBFCache?: boolean;
|
|
@@ -33,3 +34,21 @@ export interface TWcptInitOptions {
|
|
|
33
34
|
* ```
|
|
34
35
|
*/
|
|
35
36
|
export declare function twcptInit(options: TWcptInitOptions): void;
|
|
37
|
+
/**
|
|
38
|
+
* 获取当前配置的颜色
|
|
39
|
+
* @returns 当前的颜色配置
|
|
40
|
+
*/
|
|
41
|
+
export declare function getTwcptColors(): ColorConfig | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* 获取项目权限 ID
|
|
44
|
+
* @returns 项目权限 ID
|
|
45
|
+
*/
|
|
46
|
+
export declare function getProjectPermissionId(): string | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* 获取完整的全局配置
|
|
49
|
+
* @returns 全局配置对象
|
|
50
|
+
*/
|
|
51
|
+
export declare function getTwcptConfig(): {
|
|
52
|
+
colors?: ColorConfig;
|
|
53
|
+
projectPermissionId?: string;
|
|
54
|
+
};
|
package/dist/utils/tool.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "twcpt",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "A Vue 3 component library built with Vite and TypeScript, featuring components integrated with Element-plus.",
|
|
5
5
|
"main": "dist/twcpt.umd.js",
|
|
6
6
|
"module": "dist/twcpt.es.js",
|
|
@@ -54,10 +54,12 @@
|
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@vitejs/plugin-vue": "^5.2.1",
|
|
57
|
+
"autoprefixer": "^10.4.27",
|
|
57
58
|
"chart.js": "^4.4.7",
|
|
59
|
+
"cssnano": "^7.1.3",
|
|
58
60
|
"debug": "^4.4.3",
|
|
59
|
-
"prettier": "^2.5.1",
|
|
60
61
|
"element-plus": "^2.5.5",
|
|
62
|
+
"prettier": "^2.5.1",
|
|
61
63
|
"resolve": "^1.22.11",
|
|
62
64
|
"sass": "^1.94.2",
|
|
63
65
|
"typescript": "^5.9.3",
|
package/dist/charts.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@charset "UTF-8";
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 根据域名修改网页的标签栏logo
|
|
3
|
-
*/
|
|
4
|
-
export declare function setTitleAndLogo(): void;
|
|
5
|
-
/**
|
|
6
|
-
* 根据域名返回平台名称
|
|
7
|
-
* @param lang
|
|
8
|
-
* @returns
|
|
9
|
-
*/
|
|
10
|
-
export declare function getTitle(lang: string): Record<string, string>;
|
|
11
|
-
/**
|
|
12
|
-
* 根据域名返回导航栏logo
|
|
13
|
-
* @returns
|
|
14
|
-
*/
|
|
15
|
-
export declare function getNavLogo(): string;
|
|
File without changes
|
|
File without changes
|