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 { export interface LayAvatarProps {
src?: string; src?: string;
size?: 'xs' | 'sm' | 'md' | 'lg'; size?: "xs" | "sm" | "md" | "lg";
radius?: boolean; radius?: boolean;
} }
const props = withDefaults(defineProps<LayAvatarProps>(), { const props = withDefaults(defineProps<LayAvatarProps>(), {
size: 'md', size: "md",
radius: false radius: false,
}); });
</script> </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"> <script setup lang="ts">
import "./index.less"; import "./index.less";
import { withDefaults } from "vue"; import { withDefaults } from "vue";
import { String } from 'src/types'; import { String } from "src/types";
export interface LayEmptyProps { export interface LayEmptyProps {
description?: String; description?: String;

View File

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

View File

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

View File

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