create-packer 1.16.0 → 1.16.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-packer",
3
- "version": "1.16.0",
3
+ "version": "1.16.2",
4
4
  "main": "index.js",
5
5
  "repository": "https://github.com/kevily/create-packer",
6
6
  "author": "1k <bug_zero@163.com>",
@@ -19,7 +19,6 @@
19
19
  "axios": "1.3.6",
20
20
  "lodash-es": "4.17.21",
21
21
  "pinia": "2.0.35",
22
- "vite-plugin-eslint": "1.8.1",
23
22
  "vue": "3.3.4",
24
23
  "vue-router": "4.2.1"
25
24
  },
@@ -49,7 +48,8 @@
49
48
  "stylelint-config-standard": "33.0.0",
50
49
  "tailwindcss": "3.3.1",
51
50
  "typescript": "5.0.4",
52
- "vite": "4.3.1",
51
+ "vite": "4.3.8",
52
+ "vite-plugin-eslint": "1.8.1",
53
53
  "vue-tsc": "1.6.5"
54
54
  },
55
55
  "config": {
@@ -77,16 +77,8 @@ export default function createListStore<
77
77
  total: unref(total),
78
78
  params
79
79
  })
80
- const newData = map(result.list, (item: any) => ({
81
- ...item,
82
- __active__: {
83
- campaign: false,
84
- adGroup: false,
85
- target: false,
86
- searchTerm: false
87
- }
88
- }))
89
- list.value = !isNil(result.page) && arg?.isConcat ? concat(list, newData) : newData
80
+ list.value =
81
+ !isNil(result.page) && arg?.isConcat ? concat(list, result.list) : result.list
90
82
  sum.value = result.sum || {}
91
83
  total.value = result.total || total.value
92
84
  params.page = result.page || params.page
@@ -1,19 +1,27 @@
1
- import { defineConfig } from 'vite'
2
- import vue from '@vitejs/plugin-vue'
3
- import eslint from 'vite-plugin-eslint'
4
- import path from 'path'
5
-
6
- // https://vitejs.dev/config/
7
- export default defineConfig(({ command }) => {
8
- return {
9
- plugins: [eslint(), vue()],
10
- resolve: {
11
- alias: {
12
- '@': path.join(__dirname, 'src')
13
- }
14
- },
15
- esbuild: {
16
- drop: command === 'build' ? ['console', 'debugger'] : []
17
- }
18
- }
19
- })
1
+ import { defineConfig } from 'vite'
2
+ import vue from '@vitejs/plugin-vue'
3
+ import eslint from 'vite-plugin-eslint'
4
+ import path from 'path'
5
+
6
+ // https://vitejs.dev/config/
7
+ export default defineConfig(({ command }) => {
8
+ return {
9
+ plugins: [
10
+ eslint(),
11
+ vue({
12
+ script: {
13
+ defineModel: true
14
+ }
15
+ })
16
+ ],
17
+ resolve: {
18
+ alias: {
19
+ '@': path.join(__dirname, 'src')
20
+ }
21
+ },
22
+ esbuild: {
23
+ drop: command === 'build' ? ['console', 'debugger'] : []
24
+ },
25
+ build: {}
26
+ }
27
+ })