(component): row 与 col 的所有属性同时兼容 number 与 string 类型

This commit is contained in:
就眠儀式 2022-06-25 22:58:45 +08:00
parent 77be989540
commit a4094f5d8a
8 changed files with 25 additions and 25 deletions

View File

@ -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: {

View File

@ -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,

View File

@ -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: {

View File

@ -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>();

View File

@ -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>();

View File

@ -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: {

View File

@ -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: {