Merge branch 'main' into pages

This commit is contained in:
xiaoxian521
2024-05-14 18:02:09 +08:00
25 changed files with 7140 additions and 5815 deletions

View File

@@ -127,7 +127,9 @@ export default defineComponent({
}
);
watch(() => props.size, handleResizeInit);
watch(() => props.size, handleResizeInit, {
immediate: true
});
const rendLabel = () => {
return props.options.map((option, index) => {

View File

@@ -4,7 +4,7 @@ import { ref, PropType, nextTick } from "vue";
import { useNav } from "@/layout/hooks/useNav";
import { deviceDetection } from "@pureadmin/utils";
const props = defineProps({
defineProps({
noticeItem: {
type: Object as PropType<ListItem>,
default: () => {}

View File

@@ -6,7 +6,7 @@ import EnterOutlined from "@/assets/svg/enter_outlined.svg?component";
import ArrowUpLine from "@iconify-icons/ri/arrow-up-line";
import ArrowDownLine from "@iconify-icons/ri/arrow-down-line";
const props = withDefaults(defineProps<{ total: number }>(), {
withDefaults(defineProps<{ total: number }>(), {
total: 0
});

View File

@@ -10,7 +10,7 @@ interface Props {
isActive: boolean;
}
const props = withDefaults(defineProps<Props>(), {
withDefaults(defineProps<Props>(), {
isActive: false
});

View File

@@ -2,7 +2,7 @@
import { toRaw } from "vue";
import { useRenderIcon } from "@/components/ReIcon/src/hooks";
const props = defineProps({
defineProps({
extraIcon: {
type: String,
default: ""

View File

@@ -10,7 +10,7 @@ interface Props {
isActive: boolean;
}
const props = withDefaults(defineProps<Props>(), {
withDefaults(defineProps<Props>(), {
isActive: false
});

View File

@@ -2,7 +2,7 @@
import { getTopMenu } from "@/router/utils";
import { useNav } from "@/layout/hooks/useNav";
const props = defineProps({
defineProps({
collapse: Boolean
});

View File

@@ -7,7 +7,7 @@ interface Props {
isActive: boolean;
}
const props = withDefaults(defineProps<Props>(), {
withDefaults(defineProps<Props>(), {
isActive: false
});

View File

@@ -127,7 +127,6 @@ const columns: PlusColumn[] = [
fieldProps: {
maxlength: 10,
showWordLimit: true,
// @ts-expect-error
autosize: { minRows: 2, maxRows: 4 }
}
}

View File

@@ -180,7 +180,6 @@ const columns: PlusColumn[] = [
fieldProps: {
maxlength: 10,
showWordLimit: true,
// @ts-expect-error
autosize: { minRows: 2, maxRows: 4 }
}
}

View File

@@ -180,7 +180,6 @@ const columns: PlusColumn[] = [
fieldProps: {
maxlength: 10,
showWordLimit: true,
// @ts-expect-error
autosize: { minRows: 2, maxRows: 4 }
}
}

View File

@@ -197,7 +197,7 @@ const next = (actives: number, values: any) => {
v-model="active"
simple
class="w-[800px] m-auto"
:data="stepForm"
:data="stepForm as any"
align-center
@next="next"
/>