@bit-sun/business-component 2.1.9 → 2.1.11

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.
@@ -0,0 +1,11 @@
1
+ declare type mediaListType = {
2
+ type: number;
3
+ url: string;
4
+ [key: string]: any;
5
+ };
6
+ declare type recordType = {
7
+ mediaList?: mediaListType;
8
+ [key: string]: any;
9
+ };
10
+ export declare const getSkuImg: (record: recordType) => any;
11
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bit-sun/business-component",
3
- "version": "2.1.9",
3
+ "version": "2.1.11",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -29,7 +29,7 @@ export const doDetailPageAction = (config: actionItem) => {
29
29
  }
30
30
  // 是否执行成功之后的回调
31
31
  if (typeof (config.successCb) === 'function') {
32
- config.successCb();
32
+ config.successCb(res);
33
33
  }
34
34
  });
35
35
  };
@@ -0,0 +1,229 @@
1
+ .ant-pro-card-body {
2
+ padding: 0px;
3
+ }
4
+
5
+ .editTableWrapper {
6
+ width: 1000px;
7
+ height: 500px;
8
+ overflow: auto;
9
+ position: relative;
10
+ -webkit-user-select: none;
11
+ -moz-user-select: none;
12
+ -ms-user-select: none;
13
+ user-select: none;
14
+
15
+ .err-div {
16
+ position: absolute;
17
+ top: 10px;
18
+ height: 20px !important;
19
+ line-height: 20px !important;
20
+ background: rgba(245, 108, 108, 0.1);
21
+ border: 1px solid rgba(245, 108, 108, 0.4);
22
+ font-size: 12px;
23
+ color: #f56c6c;
24
+ z-index: 1000;
25
+ overflow: hidden;
26
+ text-overflow: ellipsis;
27
+ white-space: nowrap;
28
+ }
29
+ table {
30
+ table-layout: fixed;
31
+ }
32
+ }
33
+
34
+ .editTable {
35
+ position: relative;
36
+ overflow: hidden;
37
+ // border: 1px solid #dcdfe6;
38
+ border-top: 0;
39
+ background: #fff;
40
+ .th-div {
41
+ -webkit-user-select: none;
42
+ -moz-user-select: none;
43
+ -ms-user-select: none;
44
+ user-select: none;
45
+ div {
46
+ height: 100%;
47
+ .el-input {
48
+ height: 100%;
49
+ width: 100%;
50
+ }
51
+ .el-select {
52
+ width: 100%;
53
+ }
54
+ }
55
+ .el-input__inner {
56
+ height: 100%;
57
+ line-height: 100%;
58
+ border: 0;
59
+ outline: 0;
60
+ background: transparent;
61
+ padding-left: 6px;
62
+ padding-right: 15px;
63
+ }
64
+ .el-date-editor .el-input__inner {
65
+ padding-left: 30px;
66
+ }
67
+ .el-range-separator {
68
+ visibility: hidden;
69
+ }
70
+ .el-range-input {
71
+ background: transparent;
72
+ }
73
+ }
74
+ }
75
+ .edit-table-add {
76
+ width: 100%;
77
+ height: 40px;
78
+ text-align: center;
79
+ line-height: 40px;
80
+ font-size: 14px;
81
+ border: 1px dashed #dcdfe6;
82
+ color: #303133;
83
+ margin-top: 10px;
84
+ cursor: pointer;
85
+ svg {
86
+ fill: #333333;
87
+ vertical-align: middle;
88
+ margin-right: 6px;
89
+ }
90
+ }
91
+ .north__west {
92
+ position: absolute;
93
+ left: 0px;
94
+ top: 0px;
95
+ background: transparent;
96
+ font-size: 14px;
97
+ color: #606266;
98
+ z-index: 113;
99
+ th {
100
+ // background: #f0f2f5;
101
+ background: #fff;
102
+ font-size: 14px;
103
+ color: #606266;
104
+ z-index: 112;
105
+ // border: 1px solid #dcdfe6
106
+ }
107
+ }
108
+ .south__west {
109
+ z-index: 111;
110
+ position: absolute;
111
+ left: 0px;
112
+ top: 0;
113
+ th {
114
+ // background: #f0f2f5;
115
+ background: #fff;
116
+ font-size: 14px;
117
+ color: #606266;
118
+ z-index: 112;
119
+ }
120
+ td {
121
+ font-size: 12px;
122
+ // color: #606266;
123
+ background: #fff;
124
+ // white-space: nowrap;
125
+ // overflow: hidden;
126
+ // text-overflow: ellipsis;
127
+ // font-size: 11px;
128
+ color: #6a6a6a;
129
+ svg {
130
+ width: 20px;
131
+ height: 20px;
132
+ vertical-align: middle;
133
+ }
134
+ }
135
+ }
136
+ .north__east {
137
+ position: absolute;
138
+ top: 0px;
139
+ // min-width: 100%;
140
+ z-index: 110;
141
+ font-size: 14px;
142
+ color: #606266;
143
+ th {
144
+ background: #fff;
145
+ }
146
+ }
147
+ .activity__table {
148
+ min-width: 100%;
149
+ th {
150
+ background: #fff;
151
+ font-size: 14px;
152
+ color: #606266;
153
+ }
154
+ td {
155
+ font-size: 12px;
156
+ color: #6a6a6a;
157
+ }
158
+ }
159
+
160
+ .editTable__block {
161
+ user-select: none;
162
+ position: absolute;
163
+ border-collapse: collapse;
164
+ padding: 0;
165
+
166
+ & th,
167
+ td {
168
+ box-sizing: border-box;
169
+ font-size: 11px;
170
+ color: #6a6a6a;
171
+ }
172
+ }
173
+ .editTableWrapper {
174
+ .el-input--small {
175
+ .el-input__inner {
176
+ border-color: transparent;
177
+ background: transparent;
178
+ font-size: 12px;
179
+ color: #606266;
180
+ outline: 0;
181
+ }
182
+ }
183
+ }
184
+ .north__east_bottom{
185
+ table{
186
+ border-bottom: 0;
187
+
188
+ }
189
+ th {
190
+ border-bottom: 0;
191
+ }
192
+ }
193
+
194
+ .icon-ser {
195
+ cursor: pointer;
196
+ }
197
+ .editTableWrapper .editTable .el-form-item--mini.el-form-item,
198
+ .el-form-item--small.el-form-item {
199
+ margin-bottom: 0;
200
+ }
201
+ .editTableWrapper .el-form-item--small .el-form-item__error {
202
+ z-index: 100;
203
+ }
204
+
205
+ .value_table {
206
+ table {
207
+ table-layout: fixed;
208
+ min-width: 100%;
209
+
210
+ }
211
+ }
212
+
213
+ .table_border_style {
214
+ border-collapse: separate;
215
+ border-spacing: 0;
216
+ border-left: 1px solid #f0f0f0;
217
+ border-top: 1px solid #f0f0f0;
218
+ td {
219
+ overflow: hidden;
220
+ text-overflow: ellipsis;
221
+ white-space: nowrap;
222
+ box-sizing: border-box;
223
+ border-right: 1px solid #f0f0f0;
224
+ border-bottom: 1px solid #f0f0f0;
225
+ padding: 0 10px;
226
+ font-size: 14px;
227
+ line-height: 28px;
228
+ }
229
+ }