✨(component): end
This commit is contained in:
parent
b077d81569
commit
eb51083a27
@ -5,7 +5,7 @@ export default {
|
||||
</script>
|
||||
<script lang="ts" setup>
|
||||
import "./index.less";
|
||||
import LayTag, { LayTagProps } from "../tag/index.vue";
|
||||
import LayTag, { TagProps } from "../tag/index.vue";
|
||||
import LayToopTip from "../tooltip/index.vue";
|
||||
import {
|
||||
onMounted,
|
||||
@ -27,7 +27,7 @@ export interface TagData {
|
||||
[other: string]: any;
|
||||
}
|
||||
|
||||
export interface LayTagInputProps {
|
||||
export interface TagInputProps {
|
||||
modelValue?: (string | number | TagData)[];
|
||||
inputValue?: string;
|
||||
disabled?: boolean;
|
||||
@ -38,11 +38,11 @@ export interface LayTagInputProps {
|
||||
minCollapsedNum?: number;
|
||||
collapseTagsTooltip?: boolean;
|
||||
size?: TagInputSize;
|
||||
tagProps?: LayTagProps;
|
||||
tagProps?: TagProps;
|
||||
disabledInput?: boolean;
|
||||
}
|
||||
|
||||
const props = withDefaults(defineProps<LayTagInputProps>(), {
|
||||
const props = withDefaults(defineProps<TagInputProps>(), {
|
||||
placeholder: undefined,
|
||||
minCollapsedNum: 0,
|
||||
size: "md",
|
||||
|
@ -9,7 +9,7 @@ import { LayIcon } from "@layui/icons-vue";
|
||||
import { computed } from "vue";
|
||||
import "./index.less";
|
||||
|
||||
export interface LayTextareaProps {
|
||||
export interface TextareaProps {
|
||||
name?: string;
|
||||
modelValue?: string;
|
||||
placeholder?: string;
|
||||
@ -19,7 +19,7 @@ export interface LayTextareaProps {
|
||||
maxlength?: number;
|
||||
}
|
||||
|
||||
const props = defineProps<LayTextareaProps>();
|
||||
const props = defineProps<TextareaProps>();
|
||||
|
||||
interface TextareaEmits {
|
||||
(e: "blur", event: Event): void;
|
||||
|
@ -8,11 +8,11 @@ export default {
|
||||
import "./index.less";
|
||||
import { computed, withDefaults } from "vue";
|
||||
|
||||
export interface LayTimelineProps {
|
||||
export interface TimelineProps {
|
||||
direction?: "horizontal" | "vertical";
|
||||
}
|
||||
|
||||
const props = withDefaults(defineProps<LayTimelineProps>(), {
|
||||
const props = withDefaults(defineProps<TimelineProps>(), {
|
||||
direction: "vertical",
|
||||
});
|
||||
|
||||
|
@ -7,14 +7,14 @@ export default {
|
||||
<script setup lang="ts">
|
||||
import { useSlots } from "vue";
|
||||
|
||||
export interface LayTimelineItemProps {
|
||||
export interface TimelineItemProps {
|
||||
title?: string;
|
||||
simple?: boolean;
|
||||
}
|
||||
|
||||
const slot = useSlots();
|
||||
|
||||
const props = defineProps<LayTimelineItemProps>();
|
||||
const props = defineProps<TimelineItemProps>();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
@ -7,13 +7,12 @@ export default {
|
||||
<script setup lang="ts">
|
||||
import "./index.less";
|
||||
import LayInput from "../input/index.vue";
|
||||
import LayScroll from "../scroll/index.vue";
|
||||
import LayButton from "../button/index.vue";
|
||||
import LayCheckbox from "../checkbox/index.vue";
|
||||
import { computed, Ref, ref, useSlots, watch } from "vue";
|
||||
import { BooleanOrString, Recordable } from "../../types";
|
||||
|
||||
export interface LayTransferProps {
|
||||
export interface TransferProps {
|
||||
id?: string;
|
||||
title?: string[];
|
||||
width?: string;
|
||||
@ -25,7 +24,7 @@ export interface LayTransferProps {
|
||||
|
||||
const slots = useSlots();
|
||||
|
||||
const props = withDefaults(defineProps<LayTransferProps>(), {
|
||||
const props = withDefaults(defineProps<TransferProps>(), {
|
||||
id: "id",
|
||||
title: () => ["主列表", "副列表"],
|
||||
dataSource: () => [],
|
||||
|
@ -21,13 +21,13 @@ import { provide } from "vue";
|
||||
import LayCollapseTransition from "./transitions/collapseTransition.vue";
|
||||
import LayFadeTransition from "./transitions/fadeTransition.vue";
|
||||
|
||||
export interface LayTransitionProps {
|
||||
export interface TransitionProps {
|
||||
type?: string;
|
||||
enable?: boolean;
|
||||
time?: string | number;
|
||||
}
|
||||
|
||||
const props = withDefaults(defineProps<LayTransitionProps>(), {
|
||||
const props = withDefaults(defineProps<TransitionProps>(), {
|
||||
type: "collapse",
|
||||
enable: true,
|
||||
time: 0.3,
|
||||
|
@ -10,7 +10,7 @@ import { computed, ref, watch } from "vue";
|
||||
import { getNode } from "../../utils/treeUtil";
|
||||
import { TreeSelectSize } from "./interface";
|
||||
|
||||
export interface LayTreeSelect {
|
||||
export interface TreeSelectProps {
|
||||
data: any;
|
||||
modelValue: any;
|
||||
disabled?: boolean;
|
||||
@ -29,7 +29,7 @@ export interface TreeSelectEmits {
|
||||
(e: "search", value: string): void;
|
||||
}
|
||||
|
||||
const props = withDefaults(defineProps<LayTreeSelect>(), {
|
||||
const props = withDefaults(defineProps<TreeSelectProps>(), {
|
||||
disabled: false,
|
||||
placeholder: "请选择",
|
||||
multiple: false,
|
||||
|
@ -54,7 +54,7 @@ export interface cutOptions {
|
||||
copperOption?: typeof Cropper;
|
||||
}
|
||||
|
||||
export interface LayUploadProps {
|
||||
export interface UploadProps {
|
||||
url?: string;
|
||||
data?: any;
|
||||
headers?: Recordable;
|
||||
@ -116,7 +116,7 @@ let defaultCutLayerOption: LayerModal = {
|
||||
type: "component",
|
||||
};
|
||||
|
||||
const props = withDefaults(defineProps<LayUploadProps>(), {
|
||||
const props = withDefaults(defineProps<UploadProps>(), {
|
||||
field: "file",
|
||||
acceptMime: "MIME_type",
|
||||
size: 0,
|
||||
|
@ -16,7 +16,7 @@ import {
|
||||
setFetchMethod,
|
||||
} from "@umijs/ssr-darkreader";
|
||||
|
||||
export interface LayConfigProviderProps {
|
||||
export interface ConfigProviderProps {
|
||||
locale?: string;
|
||||
locales?: [];
|
||||
theme?: string;
|
||||
@ -24,7 +24,7 @@ export interface LayConfigProviderProps {
|
||||
darkPartial?: any;
|
||||
}
|
||||
|
||||
const props = withDefaults(defineProps<LayConfigProviderProps>(), {
|
||||
const props = withDefaults(defineProps<ConfigProviderProps>(), {
|
||||
locale: "zh_CN",
|
||||
theme: "light",
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user