✨(component): row 与 col 的所有属性同时兼容 number 与 string 类型
This commit is contained in:
		
							parent
							
								
									77be989540
								
							
						
					
					
						commit
						a4094f5d8a
					
				@ -28,11 +28,11 @@ export default (): UserConfigExport => {
 | 
				
			|||||||
        compress: {
 | 
					        compress: {
 | 
				
			||||||
          drop_console: true,
 | 
					          drop_console: true,
 | 
				
			||||||
          drop_debugger: true,
 | 
					          drop_debugger: true,
 | 
				
			||||||
          pure_funcs: ['console.log']
 | 
					          pure_funcs: ["console.log"],
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        output: {
 | 
					        output: {
 | 
				
			||||||
          comments: true
 | 
					          comments: true,
 | 
				
			||||||
        }
 | 
					        },
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      rollupOptions: {
 | 
					      rollupOptions: {
 | 
				
			||||||
        output: {
 | 
					        output: {
 | 
				
			||||||
 | 
				
			|||||||
@ -70,11 +70,11 @@ export default (): UserConfigExport => {
 | 
				
			|||||||
        compress: {
 | 
					        compress: {
 | 
				
			||||||
          drop_console: true,
 | 
					          drop_console: true,
 | 
				
			||||||
          drop_debugger: true,
 | 
					          drop_debugger: true,
 | 
				
			||||||
          pure_funcs: ['console.log']
 | 
					          pure_funcs: ["console.log"],
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        output: {
 | 
					        output: {
 | 
				
			||||||
          comments: true
 | 
					          comments: true,
 | 
				
			||||||
        }
 | 
					        },
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      rollupOptions: {
 | 
					      rollupOptions: {
 | 
				
			||||||
        input: inputs,
 | 
					        input: inputs,
 | 
				
			||||||
 | 
				
			|||||||
@ -28,11 +28,11 @@ export default (): UserConfigExport => {
 | 
				
			|||||||
        compress: {
 | 
					        compress: {
 | 
				
			||||||
          drop_console: true,
 | 
					          drop_console: true,
 | 
				
			||||||
          drop_debugger: true,
 | 
					          drop_debugger: true,
 | 
				
			||||||
          pure_funcs: ['console.log']
 | 
					          pure_funcs: ["console.log"],
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        output: {
 | 
					        output: {
 | 
				
			||||||
          comments: true
 | 
					          comments: true,
 | 
				
			||||||
        }
 | 
					        },
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      rollupOptions: {
 | 
					      rollupOptions: {
 | 
				
			||||||
        output: {
 | 
					        output: {
 | 
				
			||||||
 | 
				
			|||||||
@ -182,7 +182,7 @@ const selectBar = (item: any, selectIndex: number, parentIndex: number) => {
 | 
				
			|||||||
    treeData.value[index].selectIndex = null;
 | 
					    treeData.value[index].selectIndex = null;
 | 
				
			||||||
    treeData.value[index].data = [];
 | 
					    treeData.value[index].data = [];
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
  if (!item.children||item.children.length===0) {
 | 
					  if (!item.children || item.children.length === 0) {
 | 
				
			||||||
    //输入框数据更新
 | 
					    //输入框数据更新
 | 
				
			||||||
    let data: any[] = [];
 | 
					    let data: any[] = [];
 | 
				
			||||||
    function extractData(orginData: any, dataContainer: any, index: number) {
 | 
					    function extractData(orginData: any, dataContainer: any, index: number) {
 | 
				
			||||||
 | 
				
			|||||||
@ -8,14 +8,14 @@ export default {
 | 
				
			|||||||
import { computed } from "vue";
 | 
					import { computed } from "vue";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export interface LayColProps {
 | 
					export interface LayColProps {
 | 
				
			||||||
  md?: string;
 | 
					  md?: string | number;
 | 
				
			||||||
  xs?: string;
 | 
					  xs?: string | number;
 | 
				
			||||||
  sm?: string;
 | 
					  sm?: string | number;
 | 
				
			||||||
  lg?: string;
 | 
					  lg?: string | number;
 | 
				
			||||||
  mdOffset?: string;
 | 
					  mdOffset?: string | number;
 | 
				
			||||||
  xsOffset?: string;
 | 
					  xsOffset?: string | number;
 | 
				
			||||||
  smOffset?: string;
 | 
					  smOffset?: string | number;
 | 
				
			||||||
  lgOffset?: string;
 | 
					  lgOffset?: string | number;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const props = defineProps<LayColProps>();
 | 
					const props = defineProps<LayColProps>();
 | 
				
			||||||
 | 
				
			|||||||
@ -9,7 +9,7 @@ import { computed } from "vue";
 | 
				
			|||||||
import "./index.less";
 | 
					import "./index.less";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export interface LayRowProps {
 | 
					export interface LayRowProps {
 | 
				
			||||||
  space?: string;
 | 
					  space?: string | number;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const props = defineProps<LayRowProps>();
 | 
					const props = defineProps<LayRowProps>();
 | 
				
			||||||
 | 
				
			|||||||
@ -24,11 +24,11 @@ export default defineConfig({
 | 
				
			|||||||
      compress: {
 | 
					      compress: {
 | 
				
			||||||
        drop_console: true,
 | 
					        drop_console: true,
 | 
				
			||||||
        drop_debugger: true,
 | 
					        drop_debugger: true,
 | 
				
			||||||
        pure_funcs: ['console.log']
 | 
					        pure_funcs: ["console.log"],
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      output: {
 | 
					      output: {
 | 
				
			||||||
        comments: true
 | 
					        comments: true,
 | 
				
			||||||
      }
 | 
					      },
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    rollupOptions: {
 | 
					    rollupOptions: {
 | 
				
			||||||
      output: {
 | 
					      output: {
 | 
				
			||||||
 | 
				
			|||||||
@ -25,11 +25,11 @@ export default defineConfig({
 | 
				
			|||||||
      compress: {
 | 
					      compress: {
 | 
				
			||||||
        drop_console: true,
 | 
					        drop_console: true,
 | 
				
			||||||
        drop_debugger: true,
 | 
					        drop_debugger: true,
 | 
				
			||||||
        pure_funcs: ['console.log']
 | 
					        pure_funcs: ["console.log"],
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      output: {
 | 
					      output: {
 | 
				
			||||||
        comments: true
 | 
					        comments: true,
 | 
				
			||||||
      }
 | 
					      },
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    rollupOptions: {
 | 
					    rollupOptions: {
 | 
				
			||||||
      output: {
 | 
					      output: {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user