@peng_kai/kit 0.0.5 → 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.
@@ -17,7 +17,6 @@ const props = withDefaults(
17
17
  },
18
18
  )
19
19
  const { dayjs } = kitDependencies
20
- console.log('💚datetime');
21
20
 
22
21
  const timestamp = computed(() => {
23
22
  let tsStr = String(props.timestamp)
@@ -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,6 +1,6 @@
1
1
  {
2
2
  "name": "@peng_kai/kit",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -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 mb-6">
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