diff --git a/package/component/src/component/button/index.vue b/package/component/src/component/button/index.vue index 47d71af8..0cb259f5 100644 --- a/package/component/src/component/button/index.vue +++ b/package/component/src/component/button/index.vue @@ -22,6 +22,7 @@ export interface LayButtonProps { size?: ButtonSize; prefixIcon?: String; suffixIcon?: String; + loadingIcon?: String; border?: ButtonBorder; fluid?: BooleanOrString; radius?: BooleanOrString; @@ -36,6 +37,7 @@ const props = withDefaults(defineProps(), { radius: false, loading: false, disabled: false, + loadingIcon: "layui-icon-loading-one", nativeType: "button", borderStyle: "soild", }); @@ -79,7 +81,8 @@ const classes = computed(() => { diff --git a/package/component/src/component/page/index.vue b/package/component/src/component/page/index.vue index c11da399..fe22069f 100644 --- a/package/component/src/component/page/index.vue +++ b/package/component/src/component/page/index.vue @@ -24,10 +24,6 @@ export interface LayPageProps { limits?: number[]; } -const slots = useSlots(); - -const { t } = useI18n(); - const props = withDefaults(defineProps(), { limit: 10, theme: "green", @@ -42,6 +38,9 @@ const props = withDefaults(defineProps(), { limits: () => [10, 20, 30, 40, 50], }); +const { t } = useI18n(); +const slots = useSlots(); + const limits = ref(props.limits); const pages = Math.floor(props.pages / 2); diff --git a/package/component/src/component/table/index.vue b/package/component/src/component/table/index.vue index 231a5a33..88ba9b07 100644 --- a/package/component/src/component/table/index.vue +++ b/package/component/src/component/table/index.vue @@ -58,7 +58,7 @@ const props = withDefaults(defineProps(), { childrenColumnName: "children", dataSource: () => [], selectedKeys: () => [], - selectedKey: '', + selectedKey: "", maxHeight: "auto", even: false, rowClassName: "", diff --git a/package/document-component/src/document/zh-CN/components/button.md b/package/document-component/src/document/zh-CN/components/button.md index 6ba6cea1..65eadf56 100644 --- a/package/document-component/src/document/zh-CN/components/button.md +++ b/package/document-component/src/document/zh-CN/components/button.md @@ -119,7 +119,7 @@ export default { ::: title 流式按钮 ::: -::: demo 使用 `fluid` 属性, 创建最大化按钮 +::: demo 使用 `fluid` 属性, 使其适合父最大宽度