@yibozhang/pro-table 0.1.3 → 0.1.4
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/bundles/yibozhang-pro-table.umd.js +66 -0
- package/bundles/yibozhang-pro-table.umd.js.map +1 -1
- package/bundles/yibozhang-pro-table.umd.min.js +1 -1
- package/bundles/yibozhang-pro-table.umd.min.js.map +1 -1
- package/esm2015/lib/utils/modal-width-detector.js +66 -0
- package/esm2015/public-api.js +3 -1
- package/fesm2015/yibozhang-pro-table.js +66 -0
- package/fesm2015/yibozhang-pro-table.js.map +1 -1
- package/lib/utils/modal-width-detector.d.ts +1 -0
- package/lib/utils/modal-width-detector.d.ts.map +1 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/public-api.d.ts.map +1 -1
- package/src/lib/styles/custom-antd.less +74 -0
- package/src/lib/styles/theme.less +24 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=modal-width-detector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modal-width-detector.d.ts","sourceRoot":"D:/projects/vps-front/Front/DasPMSWeb/lib/pro-table/src/","sources":["lib/utils/modal-width-detector.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -12,4 +12,5 @@ export { AntdFormService } from "./lib/page-public/antd-form";
|
|
|
12
12
|
export type { FieldErrorMessage, FieldErrorMessages, FieldConfig, FormModifyType, FormConfig, WatchOptions, AddFieldsConfigOptions, AddFieldsConfigResult, RemoveFieldsConfigOptions, RemoveFieldsConfigResult, } from "./lib/page-public/antd-form";
|
|
13
13
|
export { ArrayFormService } from "./lib/page-public/array-form";
|
|
14
14
|
export type { ValidationResult, FieldValidator, FieldConfig as ArrayFieldConfig, ArrayFormRow, ArrayFormConfig, ArrayFormStoreItem, ArrayFormStore, } from "./lib/page-public/array-form";
|
|
15
|
+
import "./lib/utils/modal-width-detector";
|
|
15
16
|
//# sourceMappingURL=public-api.d.ts.map
|
package/public-api.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public-api.d.ts","sourceRoot":"D:/projects/vps-front/Front/DasPMSWeb/lib/pro-table/src/","sources":["public-api.ts"],"names":[],"mappings":"AAIA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,6CAA6C,CAAC;AAC5D,cAAc,sCAAsC,CAAC;AACrD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,gDAAgD,CAAC;AAC/D,cAAc,oCAAoC,CAAC;AAGnD,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,YAAY,EACV,iBAAiB,EACjB,kBAAkB,EAClB,WAAW,EACX,cAAc,EACd,UAAU,EACV,YAAY,EACZ,sBAAsB,EACtB,qBAAqB,EACrB,yBAAyB,EACzB,wBAAwB,GACzB,MAAM,6BAA6B,CAAC;AAGrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,YAAY,EACV,gBAAgB,EAChB,cAAc,EACd,WAAW,IAAI,gBAAgB,EAC/B,YAAY,EACZ,eAAe,EACf,kBAAkB,EAClB,cAAc,GACf,MAAM,8BAA8B,CAAC"}
|
|
1
|
+
{"version":3,"file":"public-api.d.ts","sourceRoot":"D:/projects/vps-front/Front/DasPMSWeb/lib/pro-table/src/","sources":["public-api.ts"],"names":[],"mappings":"AAIA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,6CAA6C,CAAC;AAC5D,cAAc,sCAAsC,CAAC;AACrD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,gDAAgD,CAAC;AAC/D,cAAc,oCAAoC,CAAC;AAGnD,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,YAAY,EACV,iBAAiB,EACjB,kBAAkB,EAClB,WAAW,EACX,cAAc,EACd,UAAU,EACV,YAAY,EACZ,sBAAsB,EACtB,qBAAqB,EACrB,yBAAyB,EACzB,wBAAwB,GACzB,MAAM,6BAA6B,CAAC;AAGrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,YAAY,EACV,gBAAgB,EAChB,cAAc,EACd,WAAW,IAAI,gBAAgB,EAC/B,YAAY,EACZ,eAAe,EACf,kBAAkB,EAClB,cAAc,GACf,MAAM,8BAA8B,CAAC;AAGtC,OAAO,kCAAkC,CAAC"}
|
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
&.ant-btn-primary:not([disabled]):hover,
|
|
5
5
|
&.ant-btn-primary:not([disabled]):focus {
|
|
6
6
|
background: @primary-color !important;
|
|
7
|
+
}
|
|
8
|
+
&.ant-btn:not([disabled]):hover,
|
|
9
|
+
&.ant-btn:not([disabled]):focus {
|
|
7
10
|
border-color: @primary-color !important;
|
|
8
11
|
}
|
|
9
12
|
&.ant-btn-primary[disabled] {
|
|
@@ -118,6 +121,9 @@
|
|
|
118
121
|
background-color: @custom-pagination-active-bg !important;
|
|
119
122
|
}
|
|
120
123
|
}
|
|
124
|
+
a {
|
|
125
|
+
text-decoration: none;
|
|
126
|
+
}
|
|
121
127
|
}
|
|
122
128
|
|
|
123
129
|
// InputNumber相关设置
|
|
@@ -186,6 +192,74 @@
|
|
|
186
192
|
}
|
|
187
193
|
}
|
|
188
194
|
|
|
195
|
+
// Modal相关设置
|
|
196
|
+
.ant-modal:not([class*="ant-modal-confirm"]) {
|
|
197
|
+
.ant-modal-body {
|
|
198
|
+
padding: 16px 32px 24px 32px;
|
|
199
|
+
|
|
200
|
+
// 当宽度小于 500px 时应用特殊 padding
|
|
201
|
+
&.narrow-width {
|
|
202
|
+
padding: 16px 0px 24px 0px;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
// Modal Confirm相关设置
|
|
208
|
+
.ant-modal:has([class*="ant-modal-confirm"]) {
|
|
209
|
+
.ant-modal-confirm-body {
|
|
210
|
+
.anticon {
|
|
211
|
+
font-size: @custom-modal-confirm-icon-size;
|
|
212
|
+
margin-right: 8px;
|
|
213
|
+
}
|
|
214
|
+
.ant-modal-confirm-title {
|
|
215
|
+
color: @custom-modal-confirm-title-color;
|
|
216
|
+
font-weight: bold;
|
|
217
|
+
font-size: @custom-modal-confirm-title-font-size;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
.ant-modal-confirm-btns {
|
|
221
|
+
margin: @custom-modal-confirm-btns-margin;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
// Message相关设置
|
|
226
|
+
.ant-message {
|
|
227
|
+
.ant-message-notice-content {
|
|
228
|
+
color: @custom-text-color2;
|
|
229
|
+
i {
|
|
230
|
+
font-size: @custom-modal-confirm-icon-size;
|
|
231
|
+
margin-right: 8px;
|
|
232
|
+
}
|
|
233
|
+
span {
|
|
234
|
+
position: relative;
|
|
235
|
+
top: -2px;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
// Step相关设置
|
|
241
|
+
.ant-steps {
|
|
242
|
+
.ant-steps-item-active {
|
|
243
|
+
.ant-steps-item-title,
|
|
244
|
+
.ant-steps-item-description {
|
|
245
|
+
color: @custom-step-color !important;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
.ant-steps-item-wait {
|
|
249
|
+
.ant-steps-item-icon {
|
|
250
|
+
border: none;
|
|
251
|
+
background: @custom-step-wait-icon-background;
|
|
252
|
+
}
|
|
253
|
+
.ant-steps-item-title,
|
|
254
|
+
.ant-steps-item-description {
|
|
255
|
+
color: @custom-step-wait-color !important;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
.ant-steps-icon {
|
|
259
|
+
top: 0 !important;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
|
|
189
263
|
/* 使用 CSS 变量,避免 JS 动态修改样式 */
|
|
190
264
|
[class^="ant-form-custom"] .ant-form-item-label:not([custom-width]) {
|
|
191
265
|
width: var(--label-width, 120px) !important;
|
|
@@ -30,6 +30,14 @@
|
|
|
30
30
|
@custom-input-number-padding-horizontal-base: 8px;
|
|
31
31
|
@custom-checkbox-padding-horizontal: 4px;
|
|
32
32
|
@custom-radio-padding-horizontal: 4px;
|
|
33
|
+
@custom-modal-confirm-title-color: @custom-text-color2;
|
|
34
|
+
@custom-modal-confirm-header-margin: 0px 0px 16px 0px;
|
|
35
|
+
@custom-modal-confirm-title-font-size: 14px;
|
|
36
|
+
@custom-modal-confirm-icon-size: 20px;
|
|
37
|
+
@custom-modal-confirm-btns-margin: 16px 0px 0px 0px;
|
|
38
|
+
@custom-step-color: @custom-text-color2;
|
|
39
|
+
@custom-step-wait-color: #A3A3A3;
|
|
40
|
+
@custom-step-wait-icon-background: @border-color-base;
|
|
33
41
|
|
|
34
42
|
@primary-color: #096dd9;
|
|
35
43
|
@primary-5: @primary-color;
|
|
@@ -80,4 +88,19 @@
|
|
|
80
88
|
@tabs-horizontal-margin: 0 24px 0 0;
|
|
81
89
|
|
|
82
90
|
// Checkbox
|
|
83
|
-
@checkbox-size: 14px;
|
|
91
|
+
@checkbox-size: 14px;
|
|
92
|
+
|
|
93
|
+
//Modal
|
|
94
|
+
@modal-header-padding-vertical: 0px;
|
|
95
|
+
@modal-header-title-line-height: 40px;
|
|
96
|
+
@modal-header-close-size: 40px;
|
|
97
|
+
@modal-confirm-body-padding: 16px 24px 16px 24px;
|
|
98
|
+
|
|
99
|
+
// Message
|
|
100
|
+
@message-notice-content-padding: 8px 32px 8px 16px;
|
|
101
|
+
|
|
102
|
+
// Step
|
|
103
|
+
@steps-icon-font-size: 14px;
|
|
104
|
+
|
|
105
|
+
// DropDown
|
|
106
|
+
@dropdown-selected-color: rgba(9, 109, 217, 0.1);
|