@lambo-design/shared 1.0.0-beta.242 → 1.0.0-beta.244
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/nstyles/variables/theme/lsv/button.less +7 -0
- package/nstyles/variables/theme/lsv/common.less +39 -0
- package/nstyles/variables/theme/lsv/index.less +5 -0
- package/nstyles/variables/theme/lsv/layout.less +21 -0
- package/nstyles/variables/theme/lsv/table.less +20 -0
- package/nstyles/variables/theme/lsv/tag.less +3 -0
- package/package.json +1 -1
- package/utils/platform.js +12 -3
- package/utils/transform.js +1 -1
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
:root,.ind-lsv-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
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
:root,.ind-lsv-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
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
.ind-lsv-theme {
|
|
3
|
+
--ind-table-padding: var(--ind-padding-sm);
|
|
4
|
+
--ind-ag-cell-widget-spacing: 12px;
|
|
5
|
+
|
|
6
|
+
--ind-ag-grid-size: 4px;
|
|
7
|
+
--ind-ag-font-size: var(--ind-font-size-md); // var(--ind-font-size-sm);
|
|
8
|
+
--ind-ag-list-item-height: calc(var(--ag-grid-size) * 6);
|
|
9
|
+
--ind-ag-cell-horizontal-padding: 3px; // 0px
|
|
10
|
+
--ag-header-background-color: black;
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
// 以下是 ag 没有的
|
|
14
|
+
--ind-ag-cell-icon-margin-left: 3px;
|
|
15
|
+
--ind-ag-cell-header-horizontal-padding: 0px;
|
|
16
|
+
--ind-ag-cell-line-height: 14px;
|
|
17
|
+
|
|
18
|
+
--ind-unit-switch-bottom: 10px;
|
|
19
|
+
--ind-other-button-top: 2px;
|
|
20
|
+
}
|
package/package.json
CHANGED
package/utils/platform.js
CHANGED
|
@@ -1054,14 +1054,23 @@ export const getDelTagIndex = (tagList, name) => {
|
|
|
1054
1054
|
* @param name
|
|
1055
1055
|
* @param url
|
|
1056
1056
|
*/
|
|
1057
|
-
export const turnToPage = (vm, name ,url) =>{
|
|
1057
|
+
export const turnToPage = (vm, name ,url, forceLocation = false) =>{
|
|
1058
1058
|
if (window.top && window.top.location.href != window.location.href) {
|
|
1059
1059
|
typeof sessionStorage != 'undefined' && sessionStorage.removeItem('activeName')
|
|
1060
|
-
window.
|
|
1061
|
-
} else {
|
|
1060
|
+
window.top.location.href = url;
|
|
1061
|
+
} else if (forceLocation){
|
|
1062
|
+
typeof sessionStorage != 'undefined' && sessionStorage.removeItem('activeName')
|
|
1063
|
+
if (window.top){
|
|
1064
|
+
window.top.location.href = url;
|
|
1065
|
+
} else {
|
|
1066
|
+
window.location.href = url;
|
|
1067
|
+
}
|
|
1068
|
+
} else if (vm && vm.$router){
|
|
1062
1069
|
vm.$router.push({
|
|
1063
1070
|
name: name
|
|
1064
1071
|
})
|
|
1072
|
+
} else {
|
|
1073
|
+
window.location.href = url;
|
|
1065
1074
|
}
|
|
1066
1075
|
}
|
|
1067
1076
|
|