@bit-sun/business-component 4.2.0-alpha.6.2 → 4.2.0-alpha.6.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/src/index.ts CHANGED
@@ -48,3 +48,5 @@ export { default as RuleSetter} from './components/Solution/RuleSetter';
48
48
  export { default as ExtendedCollapse } from './components/Common/ExtendedCollapse';
49
49
  export { default as Section } from './components/Common/Section';
50
50
  export { default as ParagraphCopier } from './components/Common/ParagraphCopier';
51
+
52
+ export { default as SystemLog } from './components/Business/SystemLog';
@@ -267,4 +267,44 @@ export const handleConvertResponse = (items: any, total: number): object => {
267
267
 
268
268
  export const noEmptyArray = (targetObj: any) => {
269
269
  return Array.isArray(targetObj) && targetObj.length !== 0;
270
- };
270
+ };
271
+
272
+ export const formContainerAndItemLayout = (type: string, title: any, name: string) => {
273
+ return type === 'form' ? {
274
+ container: {
275
+ type: 'card',
276
+ props: {
277
+ title,
278
+ id: Math.random(),
279
+ level: 1,
280
+ name
281
+ },
282
+ },
283
+ itemLayout: {
284
+ span: 8, // span表示每项所占的栅格数
285
+ labelCol: {
286
+ span: 8,
287
+ },
288
+ wrapperCol: {
289
+ span: 18,
290
+ },
291
+ },
292
+ } : {
293
+ container: {
294
+ type: 'card',
295
+ props: {
296
+ title,
297
+ id: Math.random(),
298
+ level: 1,
299
+ bordered: null,
300
+ isWhiteCard: true,
301
+ name
302
+ },
303
+ },
304
+ itemLayout: {
305
+ wrapperCol: {
306
+ span: 0,
307
+ },
308
+ },
309
+ }
310
+ }