@xilonglab/vue-main 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/page/setting.vue +1 -1
- package/package.json +1 -1
- package/packages/button/XlAsyncButton.vue +2 -1
- package/packages/button/XlButton.vue +2 -1
- package/packages/button/XlDeleteButton.vue +1 -0
- package/packages/button/XlEditButton.vue +1 -0
- package/packages/button/XlIconButton.vue +1 -0
- package/packages/button/XlUploadButton.vue +2 -2
- package/packages/dialog/XlDialog.vue +0 -3
- package/packages/main/XlToolBar.vue +1 -1
package/dist/page/setting.vue
CHANGED
package/package.json
CHANGED
|
@@ -12,6 +12,7 @@ const props = defineProps({
|
|
|
12
12
|
type: String,
|
|
13
13
|
default: ''
|
|
14
14
|
},
|
|
15
|
+
size: {},
|
|
15
16
|
disabled: {
|
|
16
17
|
type: Boolean,
|
|
17
18
|
default: false
|
|
@@ -54,7 +55,7 @@ defineExpose({ click })
|
|
|
54
55
|
|
|
55
56
|
|
|
56
57
|
<template>
|
|
57
|
-
<el-button class="xl-button xl-async-button" ref="btnRef" :type="type" :disabled="disabled" :loading="loading"
|
|
58
|
+
<el-button class="xl-button xl-async-button" ref="btnRef" :size="size" :type="type" :disabled="disabled" :loading="loading"
|
|
58
59
|
:icon="icon" @click="handleClick">
|
|
59
60
|
<span v-if="!loading">
|
|
60
61
|
{{ l }}
|
|
@@ -7,6 +7,7 @@ const props = defineProps({
|
|
|
7
7
|
type: String,
|
|
8
8
|
default: ''
|
|
9
9
|
},
|
|
10
|
+
size: {},
|
|
10
11
|
disabled: {},
|
|
11
12
|
loading: {},
|
|
12
13
|
icon: {},
|
|
@@ -15,7 +16,7 @@ const props = defineProps({
|
|
|
15
16
|
|
|
16
17
|
|
|
17
18
|
<template>
|
|
18
|
-
<el-button class="xl-button" :type="type" :disabled="disabled" :loading="loading" :icon="icon">
|
|
19
|
+
<el-button class="xl-button" :size="size" :type="type" :disabled="disabled" :loading="loading" :icon="icon">
|
|
19
20
|
<span>{{ l }}</span>
|
|
20
21
|
<slot />
|
|
21
22
|
</el-button>
|
|
@@ -4,7 +4,6 @@ defineOptions({ name: "XlUploadButton" })
|
|
|
4
4
|
import { ref } from 'vue';
|
|
5
5
|
import { ElMessage } from 'element-plus'
|
|
6
6
|
|
|
7
|
-
|
|
8
7
|
const emits = defineEmits(['uploaded'])
|
|
9
8
|
|
|
10
9
|
const props = defineProps({
|
|
@@ -16,6 +15,7 @@ const props = defineProps({
|
|
|
16
15
|
type: String,
|
|
17
16
|
default: ''
|
|
18
17
|
},
|
|
18
|
+
size: {},
|
|
19
19
|
params: {
|
|
20
20
|
type: Object,
|
|
21
21
|
default() {
|
|
@@ -91,7 +91,7 @@ const handlers = {
|
|
|
91
91
|
<el-upload class="xl-upload-button" ref="uploader" action="" :headers="headers" :http-request="handlers.upload"
|
|
92
92
|
:before-upload="handlers.beforeUpload" :on-success="handlers.onSuccess" :show-file-list="false"
|
|
93
93
|
:disabled="disabled">
|
|
94
|
-
<xl-button :loading="loading" :l="l" :type="type">
|
|
94
|
+
<xl-button :loading="loading" :size="size" :l="l" :type="type">
|
|
95
95
|
<slot />
|
|
96
96
|
</xl-button>
|
|
97
97
|
</el-upload>
|