@peng_kai/kit 0.0.4 → 0.0.6

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.
@@ -1,16 +1,7 @@
1
- <script lang="ts">
2
- import {default as defaultDayjs} from "dayjs";
3
-
4
- export { dependencies };
5
-
6
- const dependencies = {
7
- dayjs: defaultDayjs
8
- }
9
- </script>
10
-
11
1
  <script setup lang="ts">
12
2
  import { Tooltip as ATooltip } from "ant-design-vue";
13
3
  import { computed } from "vue";
4
+ import { kitDependencies } from "../../../../kitDependencies";
14
5
 
15
6
  defineOptions({
16
7
  inheritAttrs: false,
@@ -25,7 +16,8 @@ const props = withDefaults(
25
16
  template: 'MM-DD HH:mm:ss',
26
17
  },
27
18
  )
28
- const { dayjs } = dependencies
19
+ const { dayjs } = kitDependencies
20
+
29
21
  const timestamp = computed(() => {
30
22
  let tsStr = String(props.timestamp)
31
23
 
@@ -11,7 +11,7 @@ const emits = defineEmits<{
11
11
  </script>
12
12
 
13
13
  <template>
14
- <div class="flex w-min mb-6">
14
+ <div class="flex w-min">
15
15
  <AButton class="mr-2" type="primary" :loading="props.loading" @click="emits('filter')">
16
16
  查询
17
17
  </AButton>
@@ -0,0 +1,5 @@
1
+ import dayjs from "dayjs";
2
+
3
+ export const kitDependencies = {
4
+ dayjs: dayjs
5
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@peng_kai/kit",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {