@peng_kai/kit 0.0.6 → 0.0.7
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/admin/filter/FilterReset.vue +43 -0
- package/package.json +1 -1
- package/antd/admin/FilterReset.vue +0 -24
- /package/{antd/admin → admin/filter}/FilterDrawer.vue +0 -0
- /package/{antd/admin → admin/filter}/FilterParam.vue +0 -0
- /package/{antd/admin → admin/filter}/index.ts +0 -0
- /package/{antd/admin → admin/filter}/useFilterParams.ts +0 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { Button as AButton } from "ant-design-vue";
|
|
3
|
+
|
|
4
|
+
const props = defineProps<{
|
|
5
|
+
loading?: boolean
|
|
6
|
+
}>()
|
|
7
|
+
const emits = defineEmits<{
|
|
8
|
+
(e: 'filter'): void
|
|
9
|
+
(e: 'reset'): void
|
|
10
|
+
}>()
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<template>
|
|
14
|
+
<div class="flex w-min">
|
|
15
|
+
<AButton class="mr-2 filter-btn" type="primary" :loading="props.loading" @click="emits('filter')">
|
|
16
|
+
查询
|
|
17
|
+
</AButton>
|
|
18
|
+
<AButton :disabled="props.loading" @click="emits('reset')">
|
|
19
|
+
重置
|
|
20
|
+
</AButton>
|
|
21
|
+
</div>
|
|
22
|
+
</template>
|
|
23
|
+
|
|
24
|
+
<style scoped lang="scss">
|
|
25
|
+
.filter-btn {
|
|
26
|
+
position: relative;
|
|
27
|
+
|
|
28
|
+
:deep(.ant-btn-loading-icon) {
|
|
29
|
+
position: absolute;
|
|
30
|
+
left: 50%;
|
|
31
|
+
transform: translateX(-50%);
|
|
32
|
+
transition: none !important;
|
|
33
|
+
|
|
34
|
+
.anticon-loading {
|
|
35
|
+
margin-inline-end: 0 !important;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
+ span {
|
|
39
|
+
visibility: hidden;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
</style>
|
package/package.json
CHANGED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { Button as AButton } from "ant-design-vue";
|
|
3
|
-
|
|
4
|
-
const props = defineProps<{
|
|
5
|
-
loading?: boolean
|
|
6
|
-
}>()
|
|
7
|
-
const emits = defineEmits<{
|
|
8
|
-
(e: 'filter'): void
|
|
9
|
-
(e: 'reset'): void
|
|
10
|
-
}>()
|
|
11
|
-
</script>
|
|
12
|
-
|
|
13
|
-
<template>
|
|
14
|
-
<div class="flex w-min">
|
|
15
|
-
<AButton class="mr-2" type="primary" :loading="props.loading" @click="emits('filter')">
|
|
16
|
-
查询
|
|
17
|
-
</AButton>
|
|
18
|
-
<AButton :disabled="props.loading" @click="emits('reset')">
|
|
19
|
-
重置
|
|
20
|
-
</AButton>
|
|
21
|
-
</div>
|
|
22
|
-
</template>
|
|
23
|
-
|
|
24
|
-
<style scoped lang="scss"></style>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|