docs: 更新日志, 修复文档细节

This commit is contained in:
就眠儀式 2022-03-31 14:20:41 +08:00
parent 9e9efec10c
commit dcbcae256c
6 changed files with 17 additions and 11 deletions

View File

@ -9,13 +9,13 @@ import "./index.less";
export interface LayAvatarProps {
src?: string;
size?: 'xs' | 'sm' | 'md' | 'lg';
size?: "xs" | "sm" | "md" | "lg";
radius?: boolean;
}
const props = withDefaults(defineProps<LayAvatarProps>(), {
size: 'md',
radius: false
size: "md",
radius: false,
});
</script>

View File

@ -1 +1 @@
export type DropdownTrigger = 'click' | 'hover';
export type DropdownTrigger = "click" | "hover";

View File

@ -7,7 +7,7 @@ export default {
<script setup lang="ts">
import "./index.less";
import { withDefaults } from "vue";
import { String } from 'src/types';
import { String } from "src/types";
export interface LayEmptyProps {
description?: String;

View File

@ -8,7 +8,7 @@ export default {
import "./index.less";
import { useSlots } from "vue";
import { useI18n } from "vue-i18n";
import { Boolean, String } from 'src/types';
import { Boolean, String } from "src/types";
const { t } = useI18n();
const slots = useSlots();
@ -25,7 +25,13 @@ export interface LayInputProps {
const props = withDefaults(defineProps<LayInputProps>(), {});
const emit = defineEmits(["update:modelValue", "input", "change", "focus", "blur"]);
const emit = defineEmits([
"update:modelValue",
"input",
"change",
"focus",
"blur",
]);
const onInput = function (event: InputEvent) {
const inputElement = event.target as HTMLInputElement;
@ -43,7 +49,7 @@ const onFocus = (event: FocusEvent) => {
const onChange = () => {
emit("change");
}
};
const onBlur = () => {
emit("blur");

View File

@ -6,8 +6,8 @@ export default {
<script setup lang="ts">
import "./index.less";
import {computed} from "vue";
import {PanelShadow} from "./interface";
import { computed } from "vue";
import { PanelShadow } from "./interface";
export interface LayPanelProps {
shadow?: PanelShadow;

View File

@ -1 +1 @@
export type PanelShadow = "always" | "hover" | "never";
export type PanelShadow = "always" | "hover" | "never";