@lambo-design/shared 1.0.0-beta.242 → 1.0.0-beta.243
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/config.js +51 -51
- package/config/env.js +4 -4
- package/config/index.js +7 -7
- package/config/themes/atrovirens/atrovirens.less +667 -667
- package/config/themes/atrovirens/var.less +674 -674
- package/config/themes/blue/blue.less +669 -669
- package/config/themes/blue/var.less +677 -677
- package/config/themes/blue-white/blue-white.less +669 -669
- package/config/themes/blue-white/var.less +676 -676
- package/config/themes/blue-white-tight/blue-white-tight.less +672 -672
- package/config/themes/blue-white-tight/var.less +677 -677
- package/config/themes/danqing/danqing.less +668 -668
- package/config/themes/danqing/danqing.wxss +572 -572
- package/config/themes/danqing/var.less +679 -679
- package/config/themes/deep/deep.less +669 -669
- package/config/themes/deep/var.less +677 -677
- package/config/themes/default/default.less +671 -671
- package/config/themes/default/var.less +677 -677
- package/config/themes/eap/eap.less +671 -671
- package/config/themes/eap/var.less +677 -677
- package/config/themes/gold/gold.less +671 -671
- package/config/themes/gold/var.less +677 -677
- package/config/themes/index.js +28 -28
- package/config/themes/lime/lime.less +671 -671
- package/config/themes/lime/var.less +678 -678
- package/config/themes/orange/orange.less +671 -671
- package/config/themes/orange/var.less +678 -678
- package/config/themes/red/red.less +671 -671
- package/config/themes/red/var.less +677 -677
- package/config/themes/theme-atrovirens.js +558 -558
- package/config/themes/theme-blue.js +558 -558
- package/config/themes/theme-bw.js +558 -558
- package/config/themes/theme-bwt.js +559 -559
- package/config/themes/theme-danqing.js +558 -558
- package/config/themes/theme-deep.js +558 -558
- package/config/themes/theme-default.js +558 -558
- package/config/themes/theme-eap.js +558 -558
- package/config/themes/theme-gold.js +558 -558
- package/config/themes/theme-lime.js +558 -558
- package/config/themes/theme-orange.js +559 -559
- package/config/themes/theme-red.js +558 -558
- package/config/themes/theme-white.js +557 -557
- package/config/themes/white/var.less +675 -675
- package/config/themes/white/white.less +668 -668
- package/directives/index.js +23 -23
- package/directives/module/draggable.js +56 -56
- package/directives/module/permission.js +49 -49
- package/directives/module/print.js +1 -1
- package/directives/module/vue-print-nb/README.md +63 -63
- package/directives/module/vue-print-nb/print.js +94 -94
- package/directives/module/vue-print-nb/printarea.js +532 -532
- package/index.js +10 -10
- 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/form.less +313 -313
- package/nstyles/components/index.less +23 -23
- 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/index.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/n-button.less +131 -131
- package/nstyles/components/n-image-preview.less +131 -131
- package/nstyles/components/n-model/index.less +19 -19
- package/nstyles/components/n-model/report-index.less +43 -43
- package/nstyles/components/n-panel.less +40 -40
- package/nstyles/components/n-picker.less +37 -37
- package/nstyles/components/n-sign.less +17 -17
- package/nstyles/components/n-tooltip.less +10 -10
- 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 +315 -315
- package/nstyles/components/tree.less +158 -158
- package/nstyles/components/upload.less +164 -164
- package/nstyles/index.less +5 -5
- package/nstyles/reset.less +65 -65
- package/nstyles/third/ag.less +174 -174
- package/nstyles/third/index.less +11 -11
- package/nstyles/third/view-design.less +366 -366
- 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/plugin/index.js +12 -12
- package/plugin/module/date-format.js +30 -30
- package/plugin/module/loading.js +26 -26
- package/plugin/module/warn-handler.js +11 -11
- package/styles/variables.less +21 -21
- package/utils/ajax/cacheconf.js +19 -19
- package/utils/ajax/content-type.js +30 -30
- package/utils/ajax/index.js +12 -12
- package/utils/ajax/interceptors.js +97 -97
- package/utils/assist.js +147 -147
- package/utils/base64.js +126 -126
- package/utils/blob.js +47 -47
- package/utils/bus.js +3 -3
- package/utils/crypto/index.js +48 -48
- package/utils/crypto/md5.js +152 -152
- package/utils/crypto/sm3.js +235 -235
- package/utils/date.js +381 -381
- package/utils/dict/built-in-dict.js +20 -20
- package/utils/dict/index.js +167 -167
- package/utils/dom.js +38 -38
- package/utils/event.js +72 -72
- package/utils/excel.js +655 -655
- package/utils/file.js +19 -19
- package/utils/form/validate.js +29 -29
- package/utils/half-year.js +68 -68
- package/utils/index.js +41 -41
- package/utils/json.js +29 -29
- package/utils/lodop.js +165 -165
- package/utils/menu/before-close.js +17 -17
- package/utils/menu/index.js +395 -395
- package/utils/mime_type.js +67 -67
- package/utils/modelerUtil.js +227 -227
- package/utils/n/api.js +22 -22
- package/utils/n/date.js +57 -57
- package/utils/n/index.js +9 -9
- package/utils/n/is-type.js +176 -176
- package/utils/n/number.js +144 -144
- package/utils/n/permission-cache.js +11 -11
- package/utils/n/reuqest/axiosN.js +17 -17
- package/utils/n/reuqest/content-type.js +19 -19
- package/utils/n/reuqest/interceptors.js +95 -95
- package/utils/n/reuqest/url-params.js +12 -12
- package/utils/n/storage.js +51 -51
- package/utils/n/token.js +51 -51
- package/utils/n/user-cache.js +11 -11
- package/utils/n/user.js +34 -34
- package/utils/n/uuid.js +16 -16
- package/utils/n-generator-routers.js +208 -208
- package/utils/n-router.js +205 -205
- package/utils/n-theme.js +30 -30
- package/utils/number.js +180 -180
- package/utils/oss.js +57 -57
- package/utils/platform.js +1334 -1334
- package/utils/quarter.js +58 -58
- package/utils/storage.js +198 -198
- package/utils/style.js +24 -24
- package/utils/theme.js +138 -138
- package/utils/transfer-queue.js +7 -7
- package/utils/transform.js +204 -204
- package/utils/type.js +102 -102
- package/utils/util.js +795 -795
- package/utils/validator.js +181 -181
- package/utils/vxetable/index.js +25 -25
- package/utils/zoomScroll.js +9 -9
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
:root,.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
|
+
:root,.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
|
-
:root,.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
|
+
:root,.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
|
-
:root,.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
|
+
:root,.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
|
-
:root,.ind-small-theme {
|
|
2
|
-
--ind-tag-height: 18px; //22px // 16px;; // 值来自四川 // 又改一版
|
|
3
|
-
}
|
|
1
|
+
:root,.ind-small-theme {
|
|
2
|
+
--ind-tag-height: 18px; //22px // 16px;; // 值来自四川 // 又改一版
|
|
3
|
+
}
|
package/package.json
CHANGED
package/plugin/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import DateFormat from "./module/date-format";
|
|
2
|
-
import Loading from "./module/loading";
|
|
3
|
-
import WarnHandler from "./module/warn-handler";
|
|
4
|
-
export default {
|
|
5
|
-
install : function (Vue, options) {
|
|
6
|
-
DateFormat.install(Vue,options);
|
|
7
|
-
Loading.install(Vue,options);
|
|
8
|
-
WarnHandler.install(Vue,options);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
export { DateFormat , Loading , WarnHandler}
|
|
1
|
+
import DateFormat from "./module/date-format";
|
|
2
|
+
import Loading from "./module/loading";
|
|
3
|
+
import WarnHandler from "./module/warn-handler";
|
|
4
|
+
export default {
|
|
5
|
+
install : function (Vue, options) {
|
|
6
|
+
DateFormat.install(Vue,options);
|
|
7
|
+
Loading.install(Vue,options);
|
|
8
|
+
WarnHandler.install(Vue,options);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
}
|
|
12
|
+
export { DateFormat , Loading , WarnHandler}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
/**
|
|
3
|
-
* 对Date的扩展,将 Date 转化为指定格式的String
|
|
4
|
-
* 月(M)、日(d)、小时(h)、分(m)、秒(s)、季度(q) 可以用 1-2 个占位符,
|
|
5
|
-
* 年(y)可以用 1-4 个占位符,毫秒(S)只能用 1 个占位符(是 1-3 位的数字)
|
|
6
|
-
* 例:
|
|
7
|
-
* (new Date()).Format("yyyy-MM-dd HH:mm:ss.S") ==> 2006-07-02 08:09:04.423
|
|
8
|
-
* (new Date()).Format("yyyy-M-d H:m:s.S") ==> 2006-7-2 8:9:4.18
|
|
9
|
-
*/
|
|
10
|
-
install: function (Vue, options) {
|
|
11
|
-
Date.prototype.Format = function (fmt) {
|
|
12
|
-
let o = {
|
|
13
|
-
"M+": this.getMonth() + 1, //月份
|
|
14
|
-
"d+": this.getDate(), //日
|
|
15
|
-
"H+": this.getHours(), //小时
|
|
16
|
-
"m+": this.getMinutes(), //分
|
|
17
|
-
"s+": this.getSeconds(), //秒
|
|
18
|
-
"q+": Math.floor((this.getMonth() + 3) / 3), //季度
|
|
19
|
-
"S": this.getMilliseconds() //毫秒
|
|
20
|
-
};
|
|
21
|
-
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
|
|
22
|
-
for (let k in o)
|
|
23
|
-
if (new RegExp("(" + k + ")").test(fmt)) {
|
|
24
|
-
fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)))
|
|
25
|
-
}
|
|
26
|
-
return fmt;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
}
|
|
1
|
+
export default {
|
|
2
|
+
/**
|
|
3
|
+
* 对Date的扩展,将 Date 转化为指定格式的String
|
|
4
|
+
* 月(M)、日(d)、小时(h)、分(m)、秒(s)、季度(q) 可以用 1-2 个占位符,
|
|
5
|
+
* 年(y)可以用 1-4 个占位符,毫秒(S)只能用 1 个占位符(是 1-3 位的数字)
|
|
6
|
+
* 例:
|
|
7
|
+
* (new Date()).Format("yyyy-MM-dd HH:mm:ss.S") ==> 2006-07-02 08:09:04.423
|
|
8
|
+
* (new Date()).Format("yyyy-M-d H:m:s.S") ==> 2006-7-2 8:9:4.18
|
|
9
|
+
*/
|
|
10
|
+
install: function (Vue, options) {
|
|
11
|
+
Date.prototype.Format = function (fmt) {
|
|
12
|
+
let o = {
|
|
13
|
+
"M+": this.getMonth() + 1, //月份
|
|
14
|
+
"d+": this.getDate(), //日
|
|
15
|
+
"H+": this.getHours(), //小时
|
|
16
|
+
"m+": this.getMinutes(), //分
|
|
17
|
+
"s+": this.getSeconds(), //秒
|
|
18
|
+
"q+": Math.floor((this.getMonth() + 3) / 3), //季度
|
|
19
|
+
"S": this.getMilliseconds() //毫秒
|
|
20
|
+
};
|
|
21
|
+
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
|
|
22
|
+
for (let k in o)
|
|
23
|
+
if (new RegExp("(" + k + ")").test(fmt)) {
|
|
24
|
+
fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)))
|
|
25
|
+
}
|
|
26
|
+
return fmt;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
}
|
|
30
|
+
}
|
package/plugin/module/loading.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
install : function (Vue, options) {
|
|
3
|
-
//通用Loading
|
|
4
|
-
Vue.prototype.$ShowLoading = function(text){
|
|
5
|
-
this.$Spin.show({
|
|
6
|
-
render: (h) => {
|
|
7
|
-
return h('div', [
|
|
8
|
-
h('Icon', {
|
|
9
|
-
'class': 'demo-spin-icon-load',
|
|
10
|
-
props: {
|
|
11
|
-
type: 'ios-loading',
|
|
12
|
-
size: 24
|
|
13
|
-
}
|
|
14
|
-
}),
|
|
15
|
-
h('div', text||'Loading')
|
|
16
|
-
])
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
Vue.prototype.$CloseLoading = function(){
|
|
22
|
-
this.$Spin.hide();
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
}
|
|
1
|
+
export default {
|
|
2
|
+
install : function (Vue, options) {
|
|
3
|
+
//通用Loading
|
|
4
|
+
Vue.prototype.$ShowLoading = function(text){
|
|
5
|
+
this.$Spin.show({
|
|
6
|
+
render: (h) => {
|
|
7
|
+
return h('div', [
|
|
8
|
+
h('Icon', {
|
|
9
|
+
'class': 'demo-spin-icon-load',
|
|
10
|
+
props: {
|
|
11
|
+
type: 'ios-loading',
|
|
12
|
+
size: 24
|
|
13
|
+
}
|
|
14
|
+
}),
|
|
15
|
+
h('div', text||'Loading')
|
|
16
|
+
])
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
Vue.prototype.$CloseLoading = function(){
|
|
22
|
+
this.$Spin.hide();
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
install : function (Vue, options) {
|
|
3
|
-
Vue.config.warnHandler = function (err, vm, info) {
|
|
4
|
-
if (err.toString().indexOf("Component names should conform to valid custom element name in html5 specification")>0){
|
|
5
|
-
console.warn("[Lambo warn]: " + err + info);
|
|
6
|
-
}else{
|
|
7
|
-
console.error("[Vue warn]: " + err + info);
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
}
|
|
1
|
+
export default {
|
|
2
|
+
install : function (Vue, options) {
|
|
3
|
+
Vue.config.warnHandler = function (err, vm, info) {
|
|
4
|
+
if (err.toString().indexOf("Component names should conform to valid custom element name in html5 specification")>0){
|
|
5
|
+
console.warn("[Lambo warn]: " + err + info);
|
|
6
|
+
}else{
|
|
7
|
+
console.error("[Vue warn]: " + err + info);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|
package/styles/variables.less
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
@primary-color: #0091FF;
|
|
2
|
-
|
|
3
|
-
@btn-height-small:20px;
|
|
4
|
-
@btn-height-base:26px;
|
|
5
|
-
@btn-height-large:32px;
|
|
6
|
-
@input-height-small:20px;
|
|
7
|
-
@input-height-base:26px;
|
|
8
|
-
@input-height-large:32px;
|
|
9
|
-
@border-radius-small:2px;
|
|
10
|
-
@btn-border-radius:2px;
|
|
11
|
-
@font-size-base:12px;
|
|
12
|
-
|
|
13
|
-
@border-color-base:#E6E6E6;
|
|
14
|
-
@border-color-split:#E6E6E6;
|
|
15
|
-
@text-color:#666666;
|
|
16
|
-
@btn-disable-color:#999999;
|
|
17
|
-
@input-disabled-bg:#f8f8f8;
|
|
18
|
-
@table-thead-bg:#41a5fa;
|
|
19
|
-
@table-td-stripe-bg:#f2fafe;
|
|
20
|
-
@table-td-hover-bg:#b5def3;
|
|
21
|
-
@table-td-highlight-bg:#55B1E3;
|
|
1
|
+
@primary-color: #0091FF;
|
|
2
|
+
|
|
3
|
+
@btn-height-small:20px;
|
|
4
|
+
@btn-height-base:26px;
|
|
5
|
+
@btn-height-large:32px;
|
|
6
|
+
@input-height-small:20px;
|
|
7
|
+
@input-height-base:26px;
|
|
8
|
+
@input-height-large:32px;
|
|
9
|
+
@border-radius-small:2px;
|
|
10
|
+
@btn-border-radius:2px;
|
|
11
|
+
@font-size-base:12px;
|
|
12
|
+
|
|
13
|
+
@border-color-base:#E6E6E6;
|
|
14
|
+
@border-color-split:#E6E6E6;
|
|
15
|
+
@text-color:#666666;
|
|
16
|
+
@btn-disable-color:#999999;
|
|
17
|
+
@input-disabled-bg:#f8f8f8;
|
|
18
|
+
@table-thead-bg:#41a5fa;
|
|
19
|
+
@table-td-stripe-bg:#f2fafe;
|
|
20
|
+
@table-td-hover-bg:#b5def3;
|
|
21
|
+
@table-td-highlight-bg:#55B1E3;
|
package/utils/ajax/cacheconf.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 配置在该文件下的正则匹配都会被缓存
|
|
3
|
-
* @type {RegExp[]}
|
|
4
|
-
*/
|
|
5
|
-
const cacheRules = [
|
|
6
|
-
/manage\/menu\/list/,
|
|
7
|
-
/manage\/menu\/list/,
|
|
8
|
-
/dict\/getDictsMap/,
|
|
9
|
-
/dict\/getDicts/,
|
|
10
|
-
/dict\/getDictsForMulti/,
|
|
11
|
-
/upmsOrg\/getSubOrgCodes/,
|
|
12
|
-
/upmsOrg\/getSubDeptCodesByOrgCode/,
|
|
13
|
-
/upmsOrg\/getProvincesCodes/,
|
|
14
|
-
/upmsOrg\/getCitysCodes/,
|
|
15
|
-
/upmsOrg\/getIndustrysCodes/,
|
|
16
|
-
/manage\/permission\/check/
|
|
17
|
-
];
|
|
18
|
-
|
|
19
|
-
export default cacheRules
|
|
1
|
+
/**
|
|
2
|
+
* 配置在该文件下的正则匹配都会被缓存
|
|
3
|
+
* @type {RegExp[]}
|
|
4
|
+
*/
|
|
5
|
+
const cacheRules = [
|
|
6
|
+
/manage\/menu\/list/,
|
|
7
|
+
/manage\/menu\/list/,
|
|
8
|
+
/dict\/getDictsMap/,
|
|
9
|
+
/dict\/getDicts/,
|
|
10
|
+
/dict\/getDictsForMulti/,
|
|
11
|
+
/upmsOrg\/getSubOrgCodes/,
|
|
12
|
+
/upmsOrg\/getSubDeptCodesByOrgCode/,
|
|
13
|
+
/upmsOrg\/getProvincesCodes/,
|
|
14
|
+
/upmsOrg\/getCitysCodes/,
|
|
15
|
+
/upmsOrg\/getIndustrysCodes/,
|
|
16
|
+
/manage\/permission\/check/
|
|
17
|
+
];
|
|
18
|
+
|
|
19
|
+
export default cacheRules
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
const contentTypeKey = 'Content-Type'
|
|
2
|
-
|
|
3
|
-
export function getContentType(config) {
|
|
4
|
-
// let type = config?.[contentTypeKey] || config?.['content-type'] || ''
|
|
5
|
-
let type = '';
|
|
6
|
-
|
|
7
|
-
if (config && config[contentTypeKey]) {
|
|
8
|
-
type = config[contentTypeKey];
|
|
9
|
-
} else if (config && config['content-type']) {
|
|
10
|
-
type = config['content-type'];
|
|
11
|
-
}
|
|
12
|
-
const suffixIdx = type.indexOf(';')
|
|
13
|
-
if (suffixIdx !== -1) {
|
|
14
|
-
type = type.substring(0, suffixIdx)
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
return type
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export function setContentType(headers, type) {
|
|
21
|
-
headers[contentTypeKey] = type
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export const CONTENT_TYPE = {
|
|
25
|
-
form: 'application/x-www-form-urlencoded',
|
|
26
|
-
multiForm: 'multipart/form-data',
|
|
27
|
-
body: 'application/json',
|
|
28
|
-
os: 'application/octet-stream',
|
|
29
|
-
json: 'application/json',
|
|
30
|
-
}
|
|
1
|
+
const contentTypeKey = 'Content-Type'
|
|
2
|
+
|
|
3
|
+
export function getContentType(config) {
|
|
4
|
+
// let type = config?.[contentTypeKey] || config?.['content-type'] || ''
|
|
5
|
+
let type = '';
|
|
6
|
+
|
|
7
|
+
if (config && config[contentTypeKey]) {
|
|
8
|
+
type = config[contentTypeKey];
|
|
9
|
+
} else if (config && config['content-type']) {
|
|
10
|
+
type = config['content-type'];
|
|
11
|
+
}
|
|
12
|
+
const suffixIdx = type.indexOf(';')
|
|
13
|
+
if (suffixIdx !== -1) {
|
|
14
|
+
type = type.substring(0, suffixIdx)
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
return type
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export function setContentType(headers, type) {
|
|
21
|
+
headers[contentTypeKey] = type
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export const CONTENT_TYPE = {
|
|
25
|
+
form: 'application/x-www-form-urlencoded',
|
|
26
|
+
multiForm: 'multipart/form-data',
|
|
27
|
+
body: 'application/json',
|
|
28
|
+
os: 'application/octet-stream',
|
|
29
|
+
json: 'application/json',
|
|
30
|
+
}
|
package/utils/ajax/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import axios from 'axios'
|
|
2
|
-
import config from '../../config/config'
|
|
3
|
-
import interceptors from './interceptors'
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
let ajax = axios.create();
|
|
7
|
-
ajax.defaults.baseURL = config.serverContext
|
|
8
|
-
ajax.defaults.headers.common['Content-Type'] = 'application/json;charset=UTF-8'
|
|
9
|
-
ajax.interceptors.request.use(interceptors.requestInterceptors, interceptors.requestError);
|
|
10
|
-
ajax.interceptors.response.use(interceptors.responseInterceptors, interceptors.responseError);
|
|
11
|
-
|
|
12
|
-
export default ajax;
|
|
1
|
+
import axios from 'axios'
|
|
2
|
+
import config from '../../config/config'
|
|
3
|
+
import interceptors from './interceptors'
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
let ajax = axios.create();
|
|
7
|
+
ajax.defaults.baseURL = config.serverContext
|
|
8
|
+
ajax.defaults.headers.common['Content-Type'] = 'application/json;charset=UTF-8'
|
|
9
|
+
ajax.interceptors.request.use(interceptors.requestInterceptors, interceptors.requestError);
|
|
10
|
+
ajax.interceptors.response.use(interceptors.responseInterceptors, interceptors.responseError);
|
|
11
|
+
|
|
12
|
+
export default ajax;
|