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 +2 -2
- package/types/component.d.ts +10 -0
- package/types/global.d.ts +4 -0
- package/src/config/index.ts +0 -5
- package/src/main.ts +0 -56
- package/src/theme/index.less +0 -20
package/package.json
CHANGED
package/src/config/index.ts
DELETED
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;
|
package/src/theme/index.less
DELETED
|
@@ -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;
|