@lambo-design/shared 1.0.0-beta.27 → 1.0.0-beta.271
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 +17 -2
- package/config/index.js +7 -2
- package/config/themes/atrovirens/atrovirens.css +578 -0
- package/config/themes/atrovirens/atrovirens.css.map +1 -0
- package/config/themes/atrovirens/atrovirens.less +673 -0
- package/config/themes/atrovirens/var.less +680 -0
- package/config/themes/blue/blue.css +578 -0
- package/config/themes/blue/blue.css.map +1 -0
- package/config/themes/blue/blue.less +675 -0
- package/config/themes/blue/var.less +683 -0
- package/config/themes/blue-white/blue-white.css +582 -0
- package/config/themes/blue-white/blue-white.css.map +1 -0
- package/config/themes/blue-white/blue-white.less +675 -0
- package/config/themes/blue-white/var.less +681 -0
- package/config/themes/blue-white-tight/blue-white-tight.css +579 -0
- package/config/themes/blue-white-tight/blue-white-tight.css.map +1 -0
- package/config/themes/blue-white-tight/blue-white-tight.less +676 -0
- package/config/themes/blue-white-tight/var.less +683 -0
- package/config/themes/cuiwei/cuiwei.css +578 -0
- package/config/themes/cuiwei/cuiwei.css.map +10 -0
- package/config/themes/cuiwei/cuiwei.less +673 -0
- package/config/themes/cuiwei/var.less +683 -0
- package/config/themes/danqing/danqing.css +578 -0
- package/config/themes/danqing/danqing.css.map +1 -0
- package/config/themes/danqing/danqing.less +673 -0
- package/config/themes/danqing/danqing.wxss +576 -0
- package/config/themes/danqing/var.less +684 -0
- package/config/themes/deep/deep.css +578 -0
- package/config/themes/deep/deep.css.map +1 -0
- package/config/themes/deep/deep.less +673 -0
- package/config/themes/deep/var.less +683 -0
- package/config/themes/default/default.css +393 -58
- package/config/themes/default/default.css.map +1 -1
- package/config/themes/default/default.less +371 -16
- package/config/themes/default/var.less +380 -11
- package/config/themes/eap/eap.css +578 -0
- package/config/themes/eap/eap.css.map +1 -0
- package/config/themes/eap/eap.less +676 -0
- package/config/themes/eap/var.less +683 -0
- package/config/themes/gold/gold.css +578 -0
- package/config/themes/gold/gold.css.map +1 -0
- package/config/themes/gold/gold.less +676 -0
- package/config/themes/gold/var.less +374 -5
- package/config/themes/index.js +20 -3
- package/config/themes/lime/lime.css +578 -0
- package/config/themes/lime/lime.css.map +1 -0
- package/config/themes/lime/lime.less +676 -0
- package/config/themes/lime/var.less +374 -5
- package/config/themes/orange/orange.css +343 -8
- package/config/themes/orange/orange.css.map +1 -1
- package/config/themes/orange/orange.less +356 -0
- package/config/themes/orange/var.less +375 -5
- package/config/themes/red/red.css +343 -8
- package/config/themes/red/red.css.map +1 -1
- package/config/themes/red/red.less +356 -0
- package/config/themes/red/var.less +374 -5
- package/config/themes/theme-atrovirens.js +563 -0
- package/config/themes/theme-blue.js +563 -0
- package/config/themes/theme-bw.js +567 -0
- package/config/themes/theme-bwt.js +564 -0
- package/config/themes/theme-cuiwei.js +564 -0
- package/config/themes/theme-danqing.js +567 -0
- package/config/themes/theme-deep.js +563 -0
- package/config/themes/theme-default.js +369 -59
- package/config/themes/theme-eap.js +563 -0
- package/config/themes/theme-gold.js +317 -7
- package/config/themes/theme-lime.js +317 -7
- package/config/themes/theme-orange.js +551 -28
- package/config/themes/theme-red.js +555 -33
- package/config/themes/theme-white.js +563 -0
- package/config/themes/white/var.less +683 -0
- package/config/themes/white/white.css +578 -0
- package/config/themes/white/white.css.map +1 -0
- package/config/themes/white/white.less +675 -0
- package/directives/module/print.js +1 -0
- package/directives/module/vue-print-nb/README.md +63 -0
- package/directives/module/vue-print-nb/print.js +94 -0
- package/directives/module/vue-print-nb/printarea.js +532 -0
- package/index.js +7 -1
- package/nstyles/common.less +197 -0
- package/nstyles/components/404.less +46 -0
- package/nstyles/components/button.less +34 -0
- package/nstyles/components/date-picker.less +37 -0
- package/nstyles/components/drawer.less +20 -0
- package/nstyles/components/dropdown.less +18 -0
- package/nstyles/components/excel-flow.less +72 -0
- package/nstyles/components/form.less +313 -0
- package/nstyles/components/index.less +23 -0
- package/nstyles/components/layout/collect.less +10 -0
- package/nstyles/components/layout/detail-view.less +107 -0
- package/nstyles/components/layout/full-screen.less +7 -0
- package/nstyles/components/layout/index.less +7 -0
- package/nstyles/components/layout/other-menu.less +142 -0
- package/nstyles/components/layout/page-view.less +101 -0
- package/nstyles/components/layout/sider-trigger.less +41 -0
- package/nstyles/components/layout/tags-nav.less +113 -0
- package/nstyles/components/modal.less +90 -0
- package/nstyles/components/n-button.less +131 -0
- package/nstyles/components/n-image-preview.less +131 -0
- package/nstyles/components/n-model/index.less +19 -0
- package/nstyles/components/n-model/report-index.less +43 -0
- package/nstyles/components/n-panel.less +41 -0
- package/nstyles/components/n-picker.less +37 -0
- package/nstyles/components/n-sign.less +17 -0
- package/nstyles/components/n-tooltip.less +10 -0
- package/nstyles/components/panel.less +31 -0
- package/nstyles/components/select.less +3 -0
- package/nstyles/components/sign.less +27 -0
- package/nstyles/components/table.less +315 -0
- package/nstyles/components/tree.less +159 -0
- package/nstyles/components/upload.less +164 -0
- package/nstyles/index.less +5 -0
- package/nstyles/reset.less +73 -0
- package/nstyles/third/ag.less +174 -0
- package/nstyles/third/icons/sort-desc.svg +1 -0
- package/nstyles/third/icons/sort-up.svg +1 -0
- package/nstyles/third/icons/sorting.svg +1 -0
- package/nstyles/third/index.less +11 -0
- package/nstyles/third/view-design.less +375 -0
- package/nstyles/variables/base.less +143 -0
- package/nstyles/variables/index.less +4 -0
- package/nstyles/variables/theme/default/button.less +7 -0
- package/nstyles/variables/theme/default/common.less +57 -0
- package/nstyles/variables/theme/default/index.less +7 -0
- package/nstyles/variables/theme/default/layout.less +40 -0
- package/nstyles/variables/theme/default/table.less +37 -0
- package/nstyles/variables/theme/default/tag.less +3 -0
- package/nstyles/variables/theme/default/upload.less +3 -0
- package/nstyles/variables/theme/index.less +13 -0
- 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/nstyles/variables/theme/small/button.less +7 -0
- package/nstyles/variables/theme/small/common.less +39 -0
- package/nstyles/variables/theme/small/index.less +5 -0
- package/nstyles/variables/theme/small/layout.less +21 -0
- package/nstyles/variables/theme/small/table.less +17 -0
- package/nstyles/variables/theme/small/tag.less +3 -0
- package/package.json +28 -7
- package/plugin/index.js +12 -0
- package/plugin/module/date-format.js +30 -0
- package/plugin/module/loading.js +26 -0
- package/plugin/module/warn-handler.js +11 -0
- package/styles/image/inspur.png +0 -0
- package/styles/image/lan_navigator.png +0 -0
- package/styles/image/layout-header-bg-cuiwei.png +0 -0
- package/styles/image/lv_navigator.png +0 -0
- package/utils/ajax/content-type.js +30 -0
- package/utils/ajax/headers.js +11 -0
- package/utils/ajax/interceptors.js +12 -4
- package/utils/ajax/sseFetchUtil.js +118 -0
- package/utils/assist.js +155 -27
- package/utils/base64.js +126 -0
- package/utils/blob.js +47 -0
- package/utils/crypto/aes.js +23 -0
- package/utils/crypto/index.js +10 -0
- package/utils/crypto/rsa.js +23 -0
- package/utils/date.js +334 -305
- package/utils/dict/built-in-dict.js +20 -0
- package/utils/dict/index.js +191 -0
- package/utils/event.js +72 -0
- package/utils/excel.js +373 -241
- package/utils/file.js +19 -0
- package/utils/form/validate.js +29 -0
- package/utils/half-year.js +68 -0
- package/utils/index.js +37 -0
- package/utils/json.js +29 -0
- package/utils/lodop.js +5 -0
- package/utils/menu/index.js +292 -15
- package/utils/mime_type.js +67 -0
- package/utils/modelerUtil.js +4 -1
- package/utils/n/api.js +22 -0
- package/utils/n/date.js +57 -0
- package/utils/n/index.js +10 -0
- package/utils/n/is-type.js +176 -0
- package/utils/n/number.js +144 -0
- package/utils/n/permission-cache.js +11 -0
- package/utils/n/reuqest/axiosN.js +17 -0
- package/utils/n/reuqest/content-type.js +19 -0
- package/utils/n/reuqest/interceptors.js +95 -0
- package/utils/n/reuqest/url-params.js +12 -0
- package/utils/n/storage.js +51 -0
- package/utils/n/token.js +51 -0
- package/utils/n/user-cache.js +11 -0
- package/utils/n/user.js +34 -0
- package/utils/n/uuid.js +16 -0
- package/utils/n-generator-routers.js +208 -0
- package/utils/n-router.js +205 -0
- package/utils/n-theme.js +30 -0
- package/utils/number.js +72 -15
- package/utils/oss.js +57 -0
- package/utils/platform.js +807 -30
- package/utils/quarter.js +58 -0
- package/utils/storage.js +198 -0
- package/utils/style.js +24 -0
- package/utils/theme.js +98 -3
- package/utils/transfer-queue.js +7 -0
- package/utils/transform.js +205 -0
- package/utils/type.js +102 -0
- package/utils/util.js +795 -0
- package/utils/vForm.js +349 -0
- package/utils/validator.js +181 -0
- package/config/themes/gold/default.css +0 -243
- package/config/themes/gold/default.css.map +0 -1
- package/config/themes/gold/default.less +0 -320
- package/config/themes/lime/default.css +0 -243
- package/config/themes/lime/default.css.map +0 -1
- package/config/themes/lime/default.less +0 -320
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* 一些基础变量的定义,分为配色、边距长度、字体、边框圆角、阴影、动画
|
|
3
|
+
* 配色和边距不建议直接使用,而是在 theme 中定义具有业务意义的变量
|
|
4
|
+
*
|
|
5
|
+
* --Author: huxuetong
|
|
6
|
+
* --Date: 2023-08-16 16:23:06
|
|
7
|
+
* --Last Modified by: huxuetong
|
|
8
|
+
* --Last Modified time: 2023-08-19 16:48:38
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
@ind-blue: #488aff;
|
|
12
|
+
|
|
13
|
+
:root {
|
|
14
|
+
// 基础样式修改
|
|
15
|
+
// Color Palette
|
|
16
|
+
--ind-white: #fff;
|
|
17
|
+
--ind-white-1: var(--ind-white);
|
|
18
|
+
--ind-white-2: rgba(255, 255, 255, 0.85);
|
|
19
|
+
--ind-white-3: rgba(255, 255, 255, 0.7);
|
|
20
|
+
--ind-white-4: rgba(255, 255, 255, 0.5);
|
|
21
|
+
--ind-white-5: rgba(255, 255, 255, 0.3);
|
|
22
|
+
--ind-white-6: rgba(255, 255, 255, 0.1);
|
|
23
|
+
|
|
24
|
+
--ind-black: #333;
|
|
25
|
+
--ind-gray: #333;
|
|
26
|
+
--ind-gray-1: #f5f7f9;
|
|
27
|
+
--ind-gray-2: #efefef;
|
|
28
|
+
--ind-gray-3: #e6e6e6;
|
|
29
|
+
--ind-gray-4: var(--ind-gray);
|
|
30
|
+
--ind-gray-5: #999;
|
|
31
|
+
--ind-gray-6: #555;
|
|
32
|
+
--ind-gray-7: var(--ind-black);
|
|
33
|
+
|
|
34
|
+
--ind-blue: @ind-blue;
|
|
35
|
+
--ind-blue-1: #a3ccfe;
|
|
36
|
+
--ind-blue-2: #81b1ff;
|
|
37
|
+
--ind-blue-3: #79adff;
|
|
38
|
+
--ind-blue-4: #1d70f5;
|
|
39
|
+
--ind-blue-5: var(--ind-blue);
|
|
40
|
+
--ind-blue-6: #02328f;
|
|
41
|
+
--ind-blue-7: #002b7b;
|
|
42
|
+
--ind-blue-8: #0c3d98;
|
|
43
|
+
--ind-blue-9: #001d55;
|
|
44
|
+
--ind-blue-10: #002874;
|
|
45
|
+
|
|
46
|
+
--ind-green: #34b11c;
|
|
47
|
+
--ind-green-1: #c8fbcb;
|
|
48
|
+
--ind-green-2: #94f7a2;
|
|
49
|
+
--ind-green-3: #5ce87e;
|
|
50
|
+
--ind-green-4: #34d169;
|
|
51
|
+
--ind-green-5: var(--ind-green);
|
|
52
|
+
--ind-green-6: #009953;
|
|
53
|
+
--ind-green-7: #008052;
|
|
54
|
+
--ind-green-8: #00674c;
|
|
55
|
+
--ind-green-9: #005548;
|
|
56
|
+
|
|
57
|
+
--ind-orange: #ff976a;
|
|
58
|
+
--ind-orange-1: #fffbe8;
|
|
59
|
+
--ind-orange-2: #fbcd65;
|
|
60
|
+
--ind-orange-3: #fbcd65;
|
|
61
|
+
--ind-orange-4: #f7b73e;
|
|
62
|
+
--ind-orange-5: var(--ind-orange);
|
|
63
|
+
--ind-orange-6: #ed6a0c;
|
|
64
|
+
--ind-orange-8: #ae5e00;
|
|
65
|
+
--ind-orange-8: #8c4600;
|
|
66
|
+
--ind-orange-9: #743500;
|
|
67
|
+
--ind-orange-light: var(--ind-orange-1);
|
|
68
|
+
--ind-orange-dark: var(--ind-orange-6);
|
|
69
|
+
|
|
70
|
+
--ind-red: #d32913;
|
|
71
|
+
--ind-red-1: #fce2ce;
|
|
72
|
+
--ind-red-2: #fabf9f;
|
|
73
|
+
--ind-red-3: #f1926d;
|
|
74
|
+
--ind-red-4: #e46648;
|
|
75
|
+
--ind-red-5: var(--ind-red);
|
|
76
|
+
--ind-red-6: #b5130d;
|
|
77
|
+
--ind-red-7: #970910;
|
|
78
|
+
--ind-red-8: #7a0614;
|
|
79
|
+
--ind-red-9: #650317;
|
|
80
|
+
|
|
81
|
+
// Gradient Colors
|
|
82
|
+
--ind-gradient-blue-linear: linear-gradient(to right, #548eff, #6bc5ff);
|
|
83
|
+
--ind-gradient-green-linear: linear-gradient(to right, #32c67c, #4edda1);
|
|
84
|
+
--ind-gradient-orange-linear: linear-gradient(to right, #ffa724, #e0ac5e);
|
|
85
|
+
--ind-gradient-red-linear: linear-gradient(to right, #ff5e67, #ff8fa4);
|
|
86
|
+
--ind-gradient-blue-radial: radial-gradient(circle at 50% 84%, #225ed2 0%, #083da3 109%);
|
|
87
|
+
|
|
88
|
+
// Padding
|
|
89
|
+
--ind-padding-base: 4px;
|
|
90
|
+
--ind-padding-xs: 8px;
|
|
91
|
+
--ind-padding-sm: 16px;
|
|
92
|
+
--ind-padding-md: 24px;
|
|
93
|
+
--ind-padding-lg: 32px;
|
|
94
|
+
--ind-padding-xl: 48px;
|
|
95
|
+
|
|
96
|
+
// Font
|
|
97
|
+
--ind-font-size-xs: 10px;
|
|
98
|
+
--ind-font-size-sm: 12px;
|
|
99
|
+
--ind-font-size-md: 14px;
|
|
100
|
+
--ind-font-size-lg: 16px;
|
|
101
|
+
--ind-font-size-xl: 18px;
|
|
102
|
+
--ind-font-size-xxl: 20px;
|
|
103
|
+
--ind-font-weight-normal: 400;
|
|
104
|
+
--ind-font-weight-bold: 600;
|
|
105
|
+
--ind-font-weight-bolder: 900;
|
|
106
|
+
--ind-line-height-xs: 14px;
|
|
107
|
+
--ind-line-height-sm: 18px;
|
|
108
|
+
--ind-line-height-md: 22px;
|
|
109
|
+
--ind-line-height-lg: 24px;
|
|
110
|
+
// --ind-base-font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue',
|
|
111
|
+
// Helvetica, Segoe UI, Arial, Roboto, 'PingFang SC', 'miui',
|
|
112
|
+
// 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif;
|
|
113
|
+
// --ind-price-integer-font-family: Avenir-Heavy, PingFang SC, Helvetica Neue,
|
|
114
|
+
// Arial, sans-serif;
|
|
115
|
+
|
|
116
|
+
// Border
|
|
117
|
+
--ind-border-width-base: 1px;
|
|
118
|
+
--ind-border-radius-xs: 2px;
|
|
119
|
+
--ind-border-radius-sm: 4px;
|
|
120
|
+
--ind-border-radius-md: 8px;
|
|
121
|
+
--ind-border-radius-lg: 14px;
|
|
122
|
+
--ind-border-radius-xl: 20px;
|
|
123
|
+
--ind-border-radius-xxl: 32px;
|
|
124
|
+
--ind-border-radius-max: 999px;
|
|
125
|
+
--ind-border-radius-round: 50%;
|
|
126
|
+
|
|
127
|
+
// Box Shadow
|
|
128
|
+
--ind-box-shadow-sm-1: 0px 1px 2px -2px rgba(0, 0, 0, 0.16);
|
|
129
|
+
--ind-box-shadow-md-1: 0px 3px 6px 0px rgba(0, 0, 0, 0.12);
|
|
130
|
+
--ind-box-shadow-lg-1: 0px 5px 12px 4px rgba(0, 0, 0, 0.09);
|
|
131
|
+
--ind-box-shadow-sm-2: 0px 3px 6px -4px rgba(0, 0, 0, 0.12);
|
|
132
|
+
--ind-box-shadow-md-2: 0px 6px 16px 0px rgba(0, 0, 0, 0.08);
|
|
133
|
+
--ind-box-shadow-lg-2: 0px 9px 28px 8px rgba(0, 0, 0, 0.05);
|
|
134
|
+
--ind-box-shadow-sm-3: 0px 6px 6px -8px rgba(0, 0, 0, 0.08);
|
|
135
|
+
--ind-box-shadow-md-3: 0px 9px 28px 0px rgba(0, 0, 0, 0.05);
|
|
136
|
+
--ind-box-shadow-lg-3: 0px 12px 48px 16px rgba(0, 0, 0, 0.03);
|
|
137
|
+
|
|
138
|
+
// Animation
|
|
139
|
+
--ind-animation-duration-base: 0.3s;
|
|
140
|
+
--ind-animation-duration-fast: 0.2s;
|
|
141
|
+
--ind-animation-timing-function-enter: ease-out;
|
|
142
|
+
--ind-animation-timing-function-leave: ease-in;
|
|
143
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
// 颜色
|
|
3
|
+
--ind-primary-color: var(--ind-blue);
|
|
4
|
+
--ind-primary-color-tint20: tint(@ind-blue, 20%);
|
|
5
|
+
--ind-primary-color-tint70: tint(@ind-blue, 70%);
|
|
6
|
+
--ind-primary-color-tint80: tint(@ind-blue, 80%);
|
|
7
|
+
--ind-primary-color-tint90: tint(@ind-blue, 90%);
|
|
8
|
+
--ind-primary-color-fade20: fade(@ind-blue, 20%);
|
|
9
|
+
--ind-primary-color-fade90: fade(@ind-blue, 90%);
|
|
10
|
+
--ind-primary-color-tint95-fade50: fade(tint(@ind-blue, 95%), 50%);
|
|
11
|
+
--ind-primary-color-shade5: shade(@ind-blue, 5%);
|
|
12
|
+
--ind-primary-color-fade90-shade10: shade(fade(@ind-blue, 90%), 10%);
|
|
13
|
+
|
|
14
|
+
--ind-bg-color-light: var(--ind-white);
|
|
15
|
+
--ind-bg-color-dark: var(--ind-gray-1);
|
|
16
|
+
--ind-text-color: var(--ind-black);
|
|
17
|
+
--ind-link-hover-color: var(--ind-primary-color-tint20);
|
|
18
|
+
--ind-link-active-color: var(--ind-primary-color-shade5);
|
|
19
|
+
--ind-desc-color: var(--ind-gray-6);
|
|
20
|
+
|
|
21
|
+
--ind-border-color: #ebedf2;
|
|
22
|
+
|
|
23
|
+
// 页面的边距
|
|
24
|
+
--ind-page-padding: var(--ind-padding-xs);
|
|
25
|
+
--ind-sc-padding-top: var(--ind-padding-xs);
|
|
26
|
+
--ind-menu-desc-margin-top: 4px;
|
|
27
|
+
|
|
28
|
+
// card的样式
|
|
29
|
+
--ivu-card-head-padding: 12px 16px;
|
|
30
|
+
--ivu-card-head-line-height: 28px;
|
|
31
|
+
--ivu-card-head-height: 52px;
|
|
32
|
+
--ivu-card-body-padding: 16px;
|
|
33
|
+
|
|
34
|
+
// 表单的样式
|
|
35
|
+
--ivu-form-item-label-padding: 10px 12px 10px 0;
|
|
36
|
+
--ivu-form-v6stle-item-label-paddingleft: 20px;
|
|
37
|
+
--ivu-form-item-content-padding: 6px 12px;
|
|
38
|
+
--ivu-form-item-label-before-left: 8px;
|
|
39
|
+
--ivu-form-item-content-line-height: 32px;
|
|
40
|
+
|
|
41
|
+
// tree样式
|
|
42
|
+
--ind-tree-wrapper-width: 98%;
|
|
43
|
+
--tree-content-padding: 8px;
|
|
44
|
+
--ivu-tree-margin: 8px 0;
|
|
45
|
+
|
|
46
|
+
// drawer样式
|
|
47
|
+
--ind-drawer-content-padding: 16px;
|
|
48
|
+
--ind-drawer-footer-padding: 10px 16px;
|
|
49
|
+
|
|
50
|
+
// 报表指标样式
|
|
51
|
+
--report-index-model-panel-padding: 8px;
|
|
52
|
+
--report-index-options-padding-right: 18px;
|
|
53
|
+
|
|
54
|
+
// 表格
|
|
55
|
+
--ind-table-button-padding: var(--ind-padding-base);
|
|
56
|
+
--input-height-table: var(--input-height); // 表格输入框的高度
|
|
57
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
// basic layout 系统布局变量 -begin
|
|
3
|
+
--main-color: var(--ind-blue);
|
|
4
|
+
--deep-mian-color: #2b85e4;
|
|
5
|
+
--selected-background: #1890ff;
|
|
6
|
+
--selected-background-hover: #384568;
|
|
7
|
+
--header-height: 48px;
|
|
8
|
+
--header-bg: linear-gradient(90deg, #1d42ab, #2173dc, #1e93ff);
|
|
9
|
+
--header-color: hsla(0, 0%, 100%, 0.7);
|
|
10
|
+
--header-color-hover: var(--ind-white);
|
|
11
|
+
--header-border-bottom-color: #4fe3c1;
|
|
12
|
+
|
|
13
|
+
--ind-main-sider-width: 200px;
|
|
14
|
+
--ind-main-sider-collapsed-width: 68px;
|
|
15
|
+
--menu-black-active-bg: var(--ind-white); //#263353;
|
|
16
|
+
--menu-white-group-title-color: var(--ind-text-color); //#B6B6B8;
|
|
17
|
+
--ivu-menu-item-font-size: var(--ind-font-size-md);
|
|
18
|
+
|
|
19
|
+
--menu-select-bg: #f0faff;
|
|
20
|
+
--deep-menu-color: var(--ind-primary-color); //@text-color; //#F3F2F0;
|
|
21
|
+
--selected-background: var(--menu-select-bg); //@primary-color;
|
|
22
|
+
--selected-background-hover: var(--menu-select-bg); //#384568;
|
|
23
|
+
--menu-icon-margin-right: 8px;
|
|
24
|
+
--menu-white-group-title-color: #b6b6b8;
|
|
25
|
+
// basic layout 系统布局变量 -end
|
|
26
|
+
|
|
27
|
+
// page-view layout 系统布局变量 -begin
|
|
28
|
+
--ind-panel-vertical-margin: 12px;
|
|
29
|
+
--ind-panel-horizon-margin: 16px;
|
|
30
|
+
// page-view layout 系统布局变量 -end
|
|
31
|
+
|
|
32
|
+
--input-height: 32px; // small 24px
|
|
33
|
+
--search-margin-bottom: 24px; // small 16px
|
|
34
|
+
--search-button-margin: 16px;
|
|
35
|
+
|
|
36
|
+
--menu-name-padding: 15px 28px 15px 30px; // 标题行padding
|
|
37
|
+
--menu-title-font-size: 20px;
|
|
38
|
+
--menu-title-color: #17233d;
|
|
39
|
+
--page-content-padding: 12px;
|
|
40
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
// table layout 系统布局变量 -begin
|
|
3
|
+
--check-border: #dcdee2;
|
|
4
|
+
|
|
5
|
+
--table-td-hover-bg: tint(#488aff, 90%);
|
|
6
|
+
|
|
7
|
+
/*
|
|
8
|
+
* ag-grid合计行颜色变量
|
|
9
|
+
*/
|
|
10
|
+
--ag-sum-row-color-10: #cccfd7;
|
|
11
|
+
--ag-sum-row-color-5: #dcdfe6;
|
|
12
|
+
--ag-sum-row-color-1: #ebedf2;
|
|
13
|
+
--ind-table-padding: 16px;
|
|
14
|
+
// table layout 系统布局变量 -end
|
|
15
|
+
|
|
16
|
+
--ind-ag-grid-size: 6px;
|
|
17
|
+
--ind-ag-cell-widget-spacing: 12px;
|
|
18
|
+
--ind-ag-font-size: var(--ind-font-size-md);
|
|
19
|
+
// --ind-ag-list-item-height: 42px;
|
|
20
|
+
--ind-ag-odd-row-background-color: #fcfdfe;
|
|
21
|
+
--ind-ag-row-hover-color: rgba(0, 0, 0, 0.05);
|
|
22
|
+
--ind-ag-column-hover-color: rgba(0, 0, 0, 0.05);
|
|
23
|
+
--ind-ag-cell-header-horizontal-padding: 12px;
|
|
24
|
+
--ind-ag-cell-horizontal-padding: 13px;
|
|
25
|
+
--ind-ag-row-group-indent-size: 28px;
|
|
26
|
+
--ind-ag-selected-row-background-color: #c8dcff;
|
|
27
|
+
--ind-ag-header-background-color: #f8f8f9;
|
|
28
|
+
--ind-ag-odd-row-background-color: #fff;
|
|
29
|
+
|
|
30
|
+
// 以下是 ag 没有的
|
|
31
|
+
--ind-ag-cell-icon-margin-left: var(--ind-ag-grid-size);
|
|
32
|
+
// --ind-ag-cell-header-horizontal-padding: var(--ag-cell-horizontal-padding);
|
|
33
|
+
--ind-ag-cell-line-height: 20px;
|
|
34
|
+
|
|
35
|
+
--ind-unit-switch-bottom: 6px;
|
|
36
|
+
--ind-other-button-top: 6px;
|
|
37
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* 定义不同主题变量,其中default基本等于全局变量
|
|
3
|
+
* 别的主题应在default基础上更改
|
|
4
|
+
* 若已有主题变量不满足情况,应在default里添加原样式的变量后,在新主题里更改对应的值
|
|
5
|
+
*
|
|
6
|
+
* @Author: huxuetong
|
|
7
|
+
* @Date: 2024-03-12 20:10:04
|
|
8
|
+
* @Last Modified by: huxuetong
|
|
9
|
+
* @Last Modified time: 2024-03-12 20:11:26
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
@import './default/index.less';
|
|
13
|
+
@import './small/index.less';
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +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
|
+
}
|
|
@@ -0,0 +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
|
+
}
|
|
@@ -0,0 +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
|
+
}
|
package/package.json
CHANGED
|
@@ -1,22 +1,43 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lambo-design/shared",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.271",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "lambo",
|
|
7
7
|
"license": "ISC",
|
|
8
8
|
"publishConfig": {
|
|
9
9
|
"access": "public",
|
|
10
|
-
"registry": "https://registry.npmjs.org/"
|
|
10
|
+
"registry": "https://registry.npmjs.org/",
|
|
11
|
+
"files": [
|
|
12
|
+
"!**/.*",
|
|
13
|
+
"!**/CHANGELOG.md",
|
|
14
|
+
"**/*"
|
|
15
|
+
]
|
|
11
16
|
},
|
|
12
17
|
"dependencies": {
|
|
18
|
+
"@e965/xlsx": "0.20.3",
|
|
13
19
|
"axios": "^0.24.0",
|
|
14
20
|
"axios-cache-plugin": "^0.1.0",
|
|
15
|
-
"qs": "^6.11.0",
|
|
16
|
-
"xlsx": "http://cicd.lambo.top/package/cdn/xlsx-0.19.1.tgz",
|
|
17
21
|
"classnames": "^2.3.1",
|
|
18
|
-
"
|
|
19
|
-
"
|
|
22
|
+
"crypto-js": "^4.2.0",
|
|
23
|
+
"css-vars-ponyfill": "^2.4.8",
|
|
24
|
+
"dayjs": "^1.11.9",
|
|
25
|
+
"lodash": "^4.17.21",
|
|
26
|
+
"moment": "2.29.4",
|
|
27
|
+
"nanoid": "^3.3.7",
|
|
28
|
+
"node-rsa": "^1.1.1",
|
|
29
|
+
"qs": "^6.11.0",
|
|
30
|
+
"xlsx-style": "^0.8.13"
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"vue": "^2.6.12"
|
|
20
34
|
},
|
|
21
|
-
"scripts": {
|
|
35
|
+
"scripts": {
|
|
36
|
+
"release-shared": "pnpm release-beta && git push --follow-tags && pnpm re-publish",
|
|
37
|
+
"release-major": "standard-version --release-as major",
|
|
38
|
+
"release-minor": "standard-version --release-as minor",
|
|
39
|
+
"release-patch": "standard-version --release-as patch",
|
|
40
|
+
"release-beta": "standard-version --prerelease beta",
|
|
41
|
+
"re-publish": "pnpm publish --access public --no-git-checks"
|
|
42
|
+
}
|
|
22
43
|
}
|
package/plugin/index.js
ADDED
|
@@ -0,0 +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}
|
|
@@ -0,0 +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
|
+
}
|
|
@@ -0,0 +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
|
+
}
|
|
@@ -0,0 +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
|
+
}
|