tenghui-ui 1.1.2 → 1.1.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/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "tenghui-ui",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "vue 2x, tenghui-ui",
5
5
  "files": [
6
6
  "dist",
7
- "src"
7
+ "types"
8
8
  ],
9
9
  "main": "./dist/tenghui-ui.umd.js",
10
10
  "module": "./dist/tenghui-ui.es.js",
@@ -0,0 +1,10 @@
1
+ /// <reference types="vite/client" />
2
+
3
+ declare module '*.vue' {
4
+
5
+ import Vue from 'vue'
6
+ const component: typeof Vue & {
7
+ install(app: typeof Vue): void;
8
+ }
9
+ export default component;
10
+ }
@@ -0,0 +1,4 @@
1
+
2
+ declare interface Window {
3
+ CONFIG: object
4
+ }
@@ -1,5 +0,0 @@
1
- const CONFIG = {
2
-
3
- };
4
-
5
- export default CONFIG;
package/src/main.ts DELETED
@@ -1,56 +0,0 @@
1
- import ComTemplate from '../packages/template';
2
- import ComMenu from '../packages/menu';
3
- import ComTabs from '../packages/tabs';
4
- import ComTool from '../packages/tool';
5
- import ComDialog from '../packages/dialog';
6
- import ComFormItem from '../packages/form-item';
7
- import ComOperation from '../packages/operation';
8
- import ComSearch from '../packages/search';
9
- import ComTable from '../packages/table';
10
-
11
-
12
- const components:any[] = [
13
- ComTemplate,
14
- ComMenu,
15
- ComTabs,
16
- ComTool,
17
- ComDialog,
18
- ComFormItem,
19
- ComOperation,
20
- ComSearch,
21
- ComTable
22
- ];
23
-
24
- /**
25
- * @param { App }
26
- * @returns { Void }
27
- */
28
- const install = (Vue:any, ops:any = { config: {} }) => {
29
- components.forEach(component => Vue.component(component.name, component));
30
-
31
- // 注册组件时可以带入UI库配置
32
- Vue.prototype.$UICONFIG = ops.config;
33
- }
34
-
35
-
36
- const defaultConfig = {
37
- version: 'dev',
38
- install,
39
- ComTemplate,
40
- ComMenu,
41
- ComTabs,
42
- ComTool,
43
- ComDialog,
44
- ComFormItem,
45
- ComOperation,
46
- ComSearch,
47
- ComTable
48
- };
49
-
50
- try {
51
- defaultConfig.version = require('../package.json').version;
52
- } catch(e) {
53
- console.log('no require');
54
- }
55
-
56
- export default defaultConfig;
@@ -1,20 +0,0 @@
1
- // 主题色
2
- @theme-color: #409EFF;
3
- @theme-color2: fade(@theme-color, 80%);
4
- @theme-color3: fade(@theme-color, 30%);
5
- @theme-color4: fade(@theme-color, 5%);
6
-
7
- // 辅助色
8
- @color-success: #67C23A;
9
- @color-warning: #E6A23C;
10
- @color-danger: #F56C6C;
11
- @color-info: #909399;
12
-
13
- // 字体
14
- @color-f1: #303133; // 主要文字
15
- @color-f2: #606266; // 常规文字
16
- @color-f3: #909399; // 次要文字
17
- @color-f4: #C0C4CC; // 占位文字
18
-
19
- // 边框
20
- @color-border: #ebeef5;