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.
@@ -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
+ };
@@ -100,4 +100,4 @@ export declare function convertDataUnit(value: number | string, fromUnit: TSizeU
100
100
  digits?: number;
101
101
  showUnit?: boolean;
102
102
  }): string | number;
103
- export { setTitleAndLogo, getTitle, getNavLogo } from './website-config';
103
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "twcpt",
3
- "version": "0.0.2",
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