@peng_kai/kit 0.0.4 → 0.0.5

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,9 @@ const props = withDefaults(
25
16
  template: 'MM-DD HH:mm:ss',
26
17
  },
27
18
  )
28
- const { dayjs } = dependencies
19
+ const { dayjs } = kitDependencies
20
+ console.log('💚datetime');
21
+
29
22
  const timestamp = computed(() => {
30
23
  let tsStr = String(props.timestamp)
31
24
 
@@ -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.5",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {