create-weapp-vite 2.0.3 → 2.0.4

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.
@@ -5,7 +5,7 @@ import fs2 from "fs-extra";
5
5
  import path2 from "pathe";
6
6
 
7
7
  // ../weapp-vite/package.json
8
- var version = "6.2.3";
8
+ var version = "6.2.4";
9
9
 
10
10
  // ../wevu/package.json
11
11
  var version2 = "1.1.2";
package/dist/cli.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createProject
3
- } from "./chunk-5DP7PY3T.js";
3
+ } from "./chunk-CJ5B2GYK.js";
4
4
 
5
5
  // src/cli.ts
6
6
  import path from "path";
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  TemplateName,
3
3
  createProject
4
- } from "./chunk-5DP7PY3T.js";
4
+ } from "./chunk-CJ5B2GYK.js";
5
5
  export {
6
6
  TemplateName,
7
7
  createProject
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-weapp-vite",
3
3
  "type": "module",
4
- "version": "2.0.3",
4
+ "version": "2.0.4",
5
5
  "description": "create-weapp-vite",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
@@ -1,21 +1,21 @@
1
1
  <script setup lang="ts">
2
2
  import { computed } from 'wevu'
3
3
 
4
+ const props = withDefaults(defineProps<{
5
+ query?: string
6
+ active?: string
7
+ filters?: FilterItem[]
8
+ }>(), {
9
+ query: '',
10
+ active: 'all',
11
+ filters: () => [],
12
+ })
13
+
4
14
  const emit = defineEmits<{
5
15
  (e: 'update:query', value: string): void
6
16
  (e: 'update:active', value: string): void
7
17
  }>()
8
18
 
9
- const props = defineProps({
10
- query: { type: String, default: '' },
11
- active: { type: String, default: 'all' },
12
- filters: { type: Array, default: () => [] },
13
- }) as {
14
- query: string
15
- active: string
16
- filters: FilterItem[]
17
- }
18
-
19
19
  defineComponentJson({
20
20
  styleIsolation: 'apply-shared',
21
21
  })
@@ -7,17 +7,16 @@ defineOptions({
7
7
  },
8
8
  })
9
9
 
10
- const props = defineProps({
11
- title: { type: String, required: true },
12
- subtitle: { type: String, default: '' },
13
- items: { type: null, default: () => [] },
14
- columns: { type: Number, default: 2 },
15
- }) as {
10
+ const props = withDefaults(defineProps<{
16
11
  title: string
17
12
  subtitle?: string
18
13
  items?: KpiItem[]
19
14
  columns?: 2 | 3
20
- }
15
+ }>(), {
16
+ subtitle: '',
17
+ items: () => [],
18
+ columns: 2,
19
+ })
21
20
 
22
21
  defineComponentJson({
23
22
  styleIsolation: 'apply-shared',
@@ -1,19 +1,18 @@
1
1
  <script setup lang="ts">
2
2
  import { computed } from 'wevu'
3
3
 
4
- const emit = defineEmits<{
5
- (e: 'select', item: ActionItem): void
6
- }>()
7
-
8
- const props = defineProps({
9
- title: { type: String, required: true },
10
- subtitle: { type: String, default: '' },
11
- items: { type: null, default: () => [] },
12
- }) as {
4
+ const props = withDefaults(defineProps<{
13
5
  title: string
14
6
  subtitle?: string
15
7
  items?: ActionItem[]
16
- }
8
+ }>(), {
9
+ subtitle: '',
10
+ items: () => [],
11
+ })
12
+
13
+ const emit = defineEmits<{
14
+ (e: 'select', item: ActionItem): void
15
+ }>()
17
16
 
18
17
  defineComponentJson({
19
18
  styleIsolation: 'apply-shared',
@@ -19,9 +19,6 @@
19
19
  "weapp-vite/typed-components": [
20
20
  "./typed-components.d.ts"
21
21
  ],
22
- "tdesign-miniprogram/miniprogram_dist/*": [
23
- "./node_modules/tdesign-miniprogram/miniprogram_dist/*"
24
- ],
25
22
  "tdesign-miniprogram/*": [
26
23
  "./node_modules/tdesign-miniprogram/miniprogram_dist/*"
27
24
  ]