docs: 更新日志, 修复文档细节
This commit is contained in:
		
							parent
							
								
									9e9efec10c
								
							
						
					
					
						commit
						dcbcae256c
					
				@ -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>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -1 +1 @@
 | 
			
		||||
export type DropdownTrigger = 'click' | 'hover';
 | 
			
		||||
export type DropdownTrigger = "click" | "hover";
 | 
			
		||||
 | 
			
		||||
@ -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;
 | 
			
		||||
 | 
			
		||||
@ -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");
 | 
			
		||||
 | 
			
		||||
@ -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;
 | 
			
		||||
 | 
			
		||||
@ -1 +1 @@
 | 
			
		||||
export type PanelShadow = "always" | "hover" | "never";
 | 
			
		||||
export type PanelShadow = "always" | "hover" | "never";
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user