@lambo-design/shared 1.0.0-beta.206 → 1.0.0-beta.208
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/config/themes/atrovirens/atrovirens.css +563 -563
- package/config/themes/blue/blue.css +563 -563
- package/config/themes/blue-white/blue-white.css +563 -563
- package/config/themes/blue-white-tight/blue-white-tight.css +564 -564
- package/config/themes/deep/deep.css +563 -563
- package/config/themes/default/default.css +563 -563
- package/config/themes/eap/eap.css +563 -563
- package/config/themes/gold/gold.css +563 -563
- package/config/themes/lime/lime.css +563 -563
- package/config/themes/orange/orange.css +563 -563
- package/config/themes/red/red.css +563 -563
- package/nstyles/common.less +197 -197
- package/nstyles/components/404.less +46 -46
- package/nstyles/components/button.less +34 -34
- package/nstyles/components/date-picker.less +37 -37
- package/nstyles/components/drawer.less +20 -20
- package/nstyles/components/dropdown.less +18 -18
- package/nstyles/components/excel-flow.less +72 -72
- package/nstyles/components/layout/collect.less +10 -10
- package/nstyles/components/layout/detail-view.less +107 -107
- package/nstyles/components/layout/full-screen.less +7 -7
- package/nstyles/components/layout/other-menu.less +142 -142
- package/nstyles/components/layout/page-view.less +101 -101
- package/nstyles/components/layout/sider-trigger.less +41 -41
- package/nstyles/components/layout/tags-nav.less +113 -113
- package/nstyles/components/modal.less +85 -85
- package/nstyles/components/panel.less +31 -31
- package/nstyles/components/select.less +3 -3
- package/nstyles/components/sign.less +27 -27
- package/nstyles/components/table.less +4 -4
- package/nstyles/components/upload.less +131 -131
- package/nstyles/index.less +5 -5
- package/nstyles/reset.less +65 -65
- package/nstyles/third/ag.less +1 -1
- package/nstyles/third/index.less +11 -11
- package/nstyles/third/view-design.less +363 -356
- package/nstyles/variables/base.less +143 -143
- package/nstyles/variables/index.less +4 -4
- package/nstyles/variables/theme/default/button.less +7 -7
- package/nstyles/variables/theme/default/common.less +57 -57
- package/nstyles/variables/theme/default/index.less +7 -7
- package/nstyles/variables/theme/default/layout.less +40 -40
- package/nstyles/variables/theme/default/table.less +37 -37
- package/nstyles/variables/theme/default/tag.less +3 -3
- package/nstyles/variables/theme/default/upload.less +3 -3
- package/nstyles/variables/theme/index.less +13 -13
- package/nstyles/variables/theme/small/button.less +7 -7
- package/nstyles/variables/theme/small/common.less +39 -39
- package/nstyles/variables/theme/small/index.less +5 -5
- package/nstyles/variables/theme/small/layout.less +21 -21
- package/nstyles/variables/theme/small/table.less +17 -17
- package/nstyles/variables/theme/small/tag.less +3 -3
- package/package.json +1 -1
- package/utils/menu/index.js +40 -30
- package/utils/oss.js +2 -4
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
.ind-small-theme {
|
|
2
|
-
--ind-menu-desc-margin-top: 0px;
|
|
3
|
-
--ind-sc-padding-top: 10px; // 值来自四川
|
|
4
|
-
|
|
5
|
-
// 压缩padding
|
|
6
|
-
// --ind-padding-xs: 4px;
|
|
7
|
-
--ind-padding-sm: 8px;
|
|
8
|
-
|
|
9
|
-
// card的样式
|
|
10
|
-
--ivu-card-head-padding: 6px 12px;
|
|
11
|
-
--ivu-card-head-line-height: 36px;
|
|
12
|
-
--ivu-card-head-height: 36px;
|
|
13
|
-
--ivu-card-body-padding: 6px;
|
|
14
|
-
|
|
15
|
-
// 表单的样式
|
|
16
|
-
--input-height: 26px; //30px; // 24px; // small 24px // 值来自四川 // 又改一版
|
|
17
|
-
--ivu-form-item-label-padding: 6px 8px 6px 0; // 6px 8px 6px 0; 值来自四川 // 又改一版
|
|
18
|
-
--ivu-form-v6stle-item-label-paddingleft: 12px;
|
|
19
|
-
--ivu-form-item-content-padding: 4px 6px;
|
|
20
|
-
--ivu-form-item-label-before-left: 4px;
|
|
21
|
-
--ivu-form-item-content-line-height: 26px; //30px; //24px; // 值来自四川 // 又改一版
|
|
22
|
-
|
|
23
|
-
// tree样式
|
|
24
|
-
--ind-tree-wrapper-width: 100%;
|
|
25
|
-
--tree-content-padding: var(--ind-padding-xs);
|
|
26
|
-
--ivu-tree-margin: var(--ind-padding-xs) 0;
|
|
27
|
-
|
|
28
|
-
// drawer样式
|
|
29
|
-
--ind-drawer-content-padding: 6px;
|
|
30
|
-
--ind-drawer-footer-padding: 10px 16px;
|
|
31
|
-
|
|
32
|
-
// 报表指标样式
|
|
33
|
-
--report-index-model-panel-padding: var(--tree-content-padding);
|
|
34
|
-
--report-index-options-padding-right: var(--tree-content-padding);
|
|
35
|
-
|
|
36
|
-
// 表格
|
|
37
|
-
--ind-table-button-padding: 6px; // var(--ind-padding-xs);
|
|
38
|
-
--input-height-table: 24px; // 表格输入框的高度
|
|
39
|
-
}
|
|
1
|
+
.ind-small-theme {
|
|
2
|
+
--ind-menu-desc-margin-top: 0px;
|
|
3
|
+
--ind-sc-padding-top: 10px; // 值来自四川
|
|
4
|
+
|
|
5
|
+
// 压缩padding
|
|
6
|
+
// --ind-padding-xs: 4px;
|
|
7
|
+
--ind-padding-sm: 8px;
|
|
8
|
+
|
|
9
|
+
// card的样式
|
|
10
|
+
--ivu-card-head-padding: 6px 12px;
|
|
11
|
+
--ivu-card-head-line-height: 36px;
|
|
12
|
+
--ivu-card-head-height: 36px;
|
|
13
|
+
--ivu-card-body-padding: 6px;
|
|
14
|
+
|
|
15
|
+
// 表单的样式
|
|
16
|
+
--input-height: 26px; //30px; // 24px; // small 24px // 值来自四川 // 又改一版
|
|
17
|
+
--ivu-form-item-label-padding: 6px 8px 6px 0; // 6px 8px 6px 0; 值来自四川 // 又改一版
|
|
18
|
+
--ivu-form-v6stle-item-label-paddingleft: 12px;
|
|
19
|
+
--ivu-form-item-content-padding: 4px 6px;
|
|
20
|
+
--ivu-form-item-label-before-left: 4px;
|
|
21
|
+
--ivu-form-item-content-line-height: 26px; //30px; //24px; // 值来自四川 // 又改一版
|
|
22
|
+
|
|
23
|
+
// tree样式
|
|
24
|
+
--ind-tree-wrapper-width: 100%;
|
|
25
|
+
--tree-content-padding: var(--ind-padding-xs);
|
|
26
|
+
--ivu-tree-margin: var(--ind-padding-xs) 0;
|
|
27
|
+
|
|
28
|
+
// drawer样式
|
|
29
|
+
--ind-drawer-content-padding: 6px;
|
|
30
|
+
--ind-drawer-footer-padding: 10px 16px;
|
|
31
|
+
|
|
32
|
+
// 报表指标样式
|
|
33
|
+
--report-index-model-panel-padding: var(--tree-content-padding);
|
|
34
|
+
--report-index-options-padding-right: var(--tree-content-padding);
|
|
35
|
+
|
|
36
|
+
// 表格
|
|
37
|
+
--ind-table-button-padding: 6px; // var(--ind-padding-xs);
|
|
38
|
+
--input-height-table: 24px; // 表格输入框的高度
|
|
39
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
@import './button.less';
|
|
2
|
-
@import './common.less';
|
|
3
|
-
@import './layout.less';
|
|
4
|
-
@import './table.less';
|
|
5
|
-
@import './tag.less';
|
|
1
|
+
@import './button.less';
|
|
2
|
+
@import './common.less';
|
|
3
|
+
@import './layout.less';
|
|
4
|
+
@import './table.less';
|
|
5
|
+
@import './tag.less';
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
.ind-small-theme {
|
|
2
|
-
// basic layout 系统布局变量 -begin
|
|
3
|
-
--ivu-menu-item-font-size: var(--ind-font-size-md);
|
|
4
|
-
|
|
5
|
-
--menu-icon-margin-right: var(--ind-padding-xs);
|
|
6
|
-
// basic layout 系统布局变量 -end
|
|
7
|
-
|
|
8
|
-
// page-view layout 系统布局变量 -begin
|
|
9
|
-
--ind-panel-vertical-margin: var(--ind-padding-xs); // 12px;
|
|
10
|
-
--ind-panel-horizon-margin: var(--ind-padding-xs); // var(--ind-padding-sm);
|
|
11
|
-
// page-view layout 系统布局变量 -end
|
|
12
|
-
|
|
13
|
-
// --input-height: 30px; // 24px; // small 24px 挪common.less去了
|
|
14
|
-
--search-margin-bottom: var(--ind-padding-xs); // var(--ind-padding-sm); // 24px; // 6px;
|
|
15
|
-
--search-button-margin: var(--ind-padding-xs); // var(--ind-padding-sm);
|
|
16
|
-
|
|
17
|
-
--menu-name-padding: 0 14px 0 10px; // var(--ind-padding-xs) 14px var(--ind-padding-xs) 10px; // 标题行padding
|
|
18
|
-
--menu-title-font-size: 16px;
|
|
19
|
-
--menu-title-color: #17233d;
|
|
20
|
-
--page-content-padding: var(--ind-padding-xs); // 12px;
|
|
21
|
-
}
|
|
1
|
+
.ind-small-theme {
|
|
2
|
+
// basic layout 系统布局变量 -begin
|
|
3
|
+
--ivu-menu-item-font-size: var(--ind-font-size-md);
|
|
4
|
+
|
|
5
|
+
--menu-icon-margin-right: var(--ind-padding-xs);
|
|
6
|
+
// basic layout 系统布局变量 -end
|
|
7
|
+
|
|
8
|
+
// page-view layout 系统布局变量 -begin
|
|
9
|
+
--ind-panel-vertical-margin: var(--ind-padding-xs); // 12px;
|
|
10
|
+
--ind-panel-horizon-margin: var(--ind-padding-xs); // var(--ind-padding-sm);
|
|
11
|
+
// page-view layout 系统布局变量 -end
|
|
12
|
+
|
|
13
|
+
// --input-height: 30px; // 24px; // small 24px 挪common.less去了
|
|
14
|
+
--search-margin-bottom: var(--ind-padding-xs); // var(--ind-padding-sm); // 24px; // 6px;
|
|
15
|
+
--search-button-margin: var(--ind-padding-xs); // var(--ind-padding-sm);
|
|
16
|
+
|
|
17
|
+
--menu-name-padding: 0 14px 0 10px; // var(--ind-padding-xs) 14px var(--ind-padding-xs) 10px; // 标题行padding
|
|
18
|
+
--menu-title-font-size: 16px;
|
|
19
|
+
--menu-title-color: #17233d;
|
|
20
|
+
--page-content-padding: var(--ind-padding-xs); // 12px;
|
|
21
|
+
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
.ind-small-theme {
|
|
2
|
-
--ind-table-padding: var(--ind-padding-sm);
|
|
3
|
-
--ind-ag-cell-widget-spacing: 12px;
|
|
4
|
-
|
|
5
|
-
--ind-ag-grid-size: 4px;
|
|
6
|
-
--ind-ag-font-size: var(--ind-font-size-md); // var(--ind-font-size-sm);
|
|
7
|
-
--ind-ag-list-item-height: calc(var(--ag-grid-size) * 6);
|
|
8
|
-
--ind-ag-cell-horizontal-padding: 3px; // 0px
|
|
9
|
-
|
|
10
|
-
// 以下是 ag 没有的
|
|
11
|
-
--ind-ag-cell-icon-margin-left: 3px;
|
|
12
|
-
--ind-ag-cell-header-horizontal-padding: 0px;
|
|
13
|
-
--ind-ag-cell-line-height: 14px;
|
|
14
|
-
|
|
15
|
-
--ind-unit-switch-bottom: 10px;
|
|
16
|
-
--ind-other-button-top: 2px;
|
|
17
|
-
}
|
|
1
|
+
.ind-small-theme {
|
|
2
|
+
--ind-table-padding: var(--ind-padding-sm);
|
|
3
|
+
--ind-ag-cell-widget-spacing: 12px;
|
|
4
|
+
|
|
5
|
+
--ind-ag-grid-size: 4px;
|
|
6
|
+
--ind-ag-font-size: var(--ind-font-size-md); // var(--ind-font-size-sm);
|
|
7
|
+
--ind-ag-list-item-height: calc(var(--ag-grid-size) * 6);
|
|
8
|
+
--ind-ag-cell-horizontal-padding: 3px; // 0px
|
|
9
|
+
|
|
10
|
+
// 以下是 ag 没有的
|
|
11
|
+
--ind-ag-cell-icon-margin-left: 3px;
|
|
12
|
+
--ind-ag-cell-header-horizontal-padding: 0px;
|
|
13
|
+
--ind-ag-cell-line-height: 14px;
|
|
14
|
+
|
|
15
|
+
--ind-unit-switch-bottom: 10px;
|
|
16
|
+
--ind-other-button-top: 2px;
|
|
17
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
.ind-small-theme {
|
|
2
|
-
--ind-tag-height: 18px; //22px // 16px;; // 值来自四川 // 又改一版
|
|
3
|
-
}
|
|
1
|
+
.ind-small-theme {
|
|
2
|
+
--ind-tag-height: 18px; //22px // 16px;; // 值来自四川 // 又改一版
|
|
3
|
+
}
|
package/package.json
CHANGED
package/utils/menu/index.js
CHANGED
|
@@ -217,20 +217,22 @@ const generator = (menuData,constantRouterComponents) => {
|
|
|
217
217
|
if (item.component && typeof item.component == "string") {
|
|
218
218
|
const target = constantRouterComponents[item.component];
|
|
219
219
|
if (target) {
|
|
220
|
-
if (
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
220
|
+
if (target.component) {
|
|
221
|
+
if (typeof target.component == "string") {
|
|
222
|
+
// 解决路由name与组件name不一致导致的keeplive不生效的问题
|
|
223
|
+
try {
|
|
224
|
+
//let componentPath = '@/view/' + target.component;
|
|
225
|
+
item.component = resolve =>
|
|
226
|
+
require(['@/view/'+ target.component], data => {
|
|
227
|
+
data.default.name = item.name;
|
|
228
|
+
resolve(data);
|
|
229
|
+
});
|
|
230
|
+
}catch (e) {
|
|
231
|
+
delete item.component
|
|
232
|
+
}
|
|
233
|
+
} else {
|
|
234
|
+
item.component = target.component;
|
|
231
235
|
}
|
|
232
|
-
} else {
|
|
233
|
-
item.component = target.component;
|
|
234
236
|
}
|
|
235
237
|
if (target.url) {
|
|
236
238
|
let path = target.url;
|
|
@@ -251,7 +253,8 @@ const generator = (menuData,constantRouterComponents) => {
|
|
|
251
253
|
if (target.hideInMenu) {
|
|
252
254
|
item.meta.hideInMenu = target.hideInMenu;
|
|
253
255
|
}
|
|
254
|
-
}
|
|
256
|
+
}
|
|
257
|
+
if (item.uri) {
|
|
255
258
|
if (item.uri.startsWith("/")) {
|
|
256
259
|
item.uri = item.uri.substr(1);
|
|
257
260
|
}
|
|
@@ -309,35 +312,42 @@ const generator = (menuData,constantRouterComponents) => {
|
|
|
309
312
|
let query = {};
|
|
310
313
|
if (path.indexOf("?") > -1) {
|
|
311
314
|
query = getUrlParams(path.substr(path.indexOf("?")));
|
|
312
|
-
item.query = query;
|
|
313
315
|
path = path.substr(0,path.indexOf("?"));
|
|
314
316
|
}
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
317
|
+
if (target && target.component) {
|
|
318
|
+
|
|
319
|
+
} else {
|
|
320
|
+
let component = require('@/view/' + path);
|
|
321
|
+
if (component) {
|
|
322
|
+
item.component = resolve => {
|
|
323
|
+
require(['@/view/' + path], data => {
|
|
324
|
+
data.default.name = item.name;
|
|
325
|
+
resolve(data);
|
|
326
|
+
});
|
|
327
|
+
};
|
|
328
|
+
} else {
|
|
329
|
+
//console.warn(`${item.name}(${item.uri})页面不存在`)
|
|
330
|
+
delete item.component;
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
if (target && target.url) {
|
|
334
|
+
|
|
325
335
|
} else {
|
|
326
|
-
|
|
327
|
-
|
|
336
|
+
item.path = "/" + path;
|
|
337
|
+
item.query = query;
|
|
328
338
|
}
|
|
329
339
|
}catch (e){
|
|
330
340
|
//console.warn(`${item.name}(${item.uri})页面不存在`)
|
|
331
341
|
delete item.component;
|
|
332
342
|
}
|
|
333
343
|
}
|
|
334
|
-
} else {
|
|
335
|
-
//console.warn(`${item.name}的资源路径未配置`);
|
|
336
|
-
delete item.component;
|
|
337
344
|
}
|
|
338
345
|
if (item.path == null) {
|
|
339
346
|
item.path = "";
|
|
340
347
|
}
|
|
348
|
+
if (item.component && typeof item.component == "string") {
|
|
349
|
+
delete item.component;
|
|
350
|
+
}
|
|
341
351
|
if (item.children && item.children.length > 0) {
|
|
342
352
|
generator(item.children,constantRouterComponents);
|
|
343
353
|
}
|
package/utils/oss.js
CHANGED
|
@@ -2,8 +2,6 @@ import { CONTENT_TYPE } from './ajax/content-type.js';
|
|
|
2
2
|
import { config } from '../config/config.js';
|
|
3
3
|
import ajax from "./ajax";
|
|
4
4
|
|
|
5
|
-
const CONTEXT = config.ossServerContext
|
|
6
|
-
|
|
7
5
|
/**
|
|
8
6
|
* 文档中心下载文件的url,主要用于图片等直接写在 href 里
|
|
9
7
|
*
|
|
@@ -11,7 +9,7 @@ const CONTEXT = config.ossServerContext
|
|
|
11
9
|
* @returns url
|
|
12
10
|
*/
|
|
13
11
|
export function getOssFileUrl(fileId = '') {
|
|
14
|
-
return `${
|
|
12
|
+
return `${config.ossServerContext}/oss/file/get/${fileId}`
|
|
15
13
|
}
|
|
16
14
|
|
|
17
15
|
/**
|
|
@@ -20,7 +18,7 @@ export function getOssFileUrl(fileId = '') {
|
|
|
20
18
|
* @returns url
|
|
21
19
|
*/
|
|
22
20
|
export function putOssFileUrl() {
|
|
23
|
-
return `${
|
|
21
|
+
return `${config.ossServerContext}/oss/file/put`
|
|
24
22
|
}
|
|
25
23
|
|
|
26
24
|
/**
|