super-page-runtime 1.0.16 → 1.0.17
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 +5 -1
- package/.eslintrc.cjs +0 -26
- package/.prettierrc.json +0 -8
- package/App.vue +0 -9
- package/components/index.ts +0 -17
- package/components/runtime/index.ts +0 -2
- package/components/runtime/utils/assemblys-config.js +0 -294
- package/components/runtime/views/assemblys/button/button/button-runtime.vue +0 -49
- package/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue +0 -26
- package/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue +0 -93
- package/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue +0 -59
- package/components/runtime/views/assemblys/chart/common/common-attr-assistant.vue +0 -32
- package/components/runtime/views/assemblys/chart/common/common-attr-base.vue +0 -60
- package/components/runtime/views/assemblys/chart/common/common-attr-drill.vue +0 -39
- package/components/runtime/views/assemblys/chart/common/common-attr-groupby.vue +0 -104
- package/components/runtime/views/assemblys/chart/common/common-attr-serieslist.vue +0 -145
- package/components/runtime/views/assemblys/chart/common/common-attr-sortby.vue +0 -119
- package/components/runtime/views/assemblys/chart/common/common-style-custom.vue +0 -28
- package/components/runtime/views/assemblys/chart/common/common-style-datazoom.vue +0 -45
- package/components/runtime/views/assemblys/chart/common/common-style-font-subtitle.vue +0 -78
- package/components/runtime/views/assemblys/chart/common/common-style-font-title.vue +0 -56
- package/components/runtime/views/assemblys/chart/common/common-style-grid.vue +0 -70
- package/components/runtime/views/assemblys/chart/common/common-style-legend.vue +0 -70
- package/components/runtime/views/assemblys/chart/common/common-style-tooltip.vue +0 -140
- package/components/runtime/views/assemblys/chart/common/common-style-xaxis.vue +0 -58
- package/components/runtime/views/assemblys/chart/common/common-style-yaxis.vue +0 -125
- package/components/runtime/views/assemblys/chart/common-series/common-attr-dataset.vue +0 -67
- package/components/runtime/views/assemblys/chart/common-series/common-attr-dynamic.vue +0 -57
- package/components/runtime/views/assemblys/chart/common-series/common-attr-testdatas.vue +0 -23
- package/components/runtime/views/assemblys/chart/common-series/common-style-label.vue +0 -209
- package/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue +0 -46
- package/components/runtime/views/assemblys/chart/pie/pie-runtime.vue +0 -56
- package/components/runtime/views/assemblys/chart/radar/radar-runtime.vue +0 -55
- package/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue +0 -57
- package/components/runtime/views/assemblys/common/common-attr-cursor.vue +0 -23
- package/components/runtime/views/assemblys/common/common-attr-size.vue +0 -54
- package/components/runtime/views/assemblys/common/common-select-table.vue +0 -287
- package/components/runtime/views/assemblys/common/common-style-background.vue +0 -46
- package/components/runtime/views/assemblys/common/common-style-border.vue +0 -37
- package/components/runtime/views/assemblys/common/common-style-custom.vue +0 -35
- package/components/runtime/views/assemblys/common/common-style-font-head.vue +0 -53
- package/components/runtime/views/assemblys/common/common-style-font.vue +0 -53
- package/components/runtime/views/assemblys/common/common-style-margin.vue +0 -34
- package/components/runtime/views/assemblys/common/common-style-padding.vue +0 -34
- package/components/runtime/views/assemblys/common/common-style-position.vue +0 -39
- package/components/runtime/views/assemblys/common/common-style-shadow.vue +0 -37
- package/components/runtime/views/assemblys/common/export-form-report-dialog.vue +0 -108
- package/components/runtime/views/assemblys/common/remove-signer-dialog.vue +0 -99
- package/components/runtime/views/assemblys/common/task-informition-dialog.vue +0 -69
- package/components/runtime/views/assemblys/common-attr-events.vue +0 -46
- package/components/runtime/views/assemblys/container/card/card-runtime.vue +0 -59
- package/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue +0 -59
- package/components/runtime/views/assemblys/container/container/container-runtime.vue +0 -41
- package/components/runtime/views/assemblys/container/flex/flex-runtime.vue +0 -35
- package/components/runtime/views/assemblys/container/form/form-runtime.vue +0 -37
- package/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue +0 -32
- package/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue +0 -54
- package/components/runtime/views/assemblys/container/tools/tools-runtime.vue +0 -99
- package/components/runtime/views/assemblys/data/bar-code/barcode-attr-base.vue +0 -117
- package/components/runtime/views/assemblys/data/bar-code/barcode-attr-event.vue +0 -14
- package/components/runtime/views/assemblys/data/bar-code/barcode-attr-style.vue +0 -25
- package/components/runtime/views/assemblys/data/bar-code/barcode-attr.vue +0 -28
- package/components/runtime/views/assemblys/data/bar-code/barcode-design.vue +0 -103
- package/components/runtime/views/assemblys/data/component/attr-header.vue +0 -69
- package/components/runtime/views/assemblys/data/component/attr-style.vue +0 -64
- package/components/runtime/views/assemblys/data/component/column-config.vue +0 -171
- package/components/runtime/views/assemblys/data/component/combinedHeader.vue +0 -96
- package/components/runtime/views/assemblys/data/component/composite-header.vue +0 -257
- package/components/runtime/views/assemblys/data/component/configuration-value.vue +0 -206
- package/components/runtime/views/assemblys/data/component/data-origin-tree.vue +0 -117
- package/components/runtime/views/assemblys/data/component/data-origin.vue +0 -260
- package/components/runtime/views/assemblys/data/component/formatting.vue +0 -200
- package/components/runtime/views/assemblys/data/component/in-parameter.vue +0 -56
- package/components/runtime/views/assemblys/data/component/querySetting.vue +0 -52
- package/components/runtime/views/assemblys/data/component/return-set-table.vue +0 -91
- package/components/runtime/views/assemblys/data/component/row-backgroud-color.vue +0 -58
- package/components/runtime/views/assemblys/data/component/select-data-table.vue +0 -86
- package/components/runtime/views/assemblys/data/table/main-table-runtime.vue +0 -858
- package/components/runtime/views/assemblys/data/table/sub-table-runtime.vue +0 -625
- package/components/runtime/views/assemblys/data/table/table-runtime.vue +0 -93
- package/components/runtime/views/assemblys/data/tree/tree-attr-base.vue +0 -137
- package/components/runtime/views/assemblys/data/tree/tree-attr-event.vue +0 -14
- package/components/runtime/views/assemblys/data/tree/tree-attr-style.vue +0 -55
- package/components/runtime/views/assemblys/data/tree/tree-attr.vue +0 -28
- package/components/runtime/views/assemblys/data/tree/tree-design.vue +0 -125
- package/components/runtime/views/assemblys/error-attr.vue +0 -15
- package/components/runtime/views/assemblys/error-render.vue +0 -17
- package/components/runtime/views/assemblys/form/cascader/cascader-design.vue +0 -288
- package/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue +0 -198
- package/components/runtime/views/assemblys/form/colors/colors-design.vue +0 -16
- package/components/runtime/views/assemblys/form/common/analytic-rule.vue +0 -148
- package/components/runtime/views/assemblys/form/common/attr-event.vue +0 -82
- package/components/runtime/views/assemblys/form/common/attr-header.vue +0 -54
- package/components/runtime/views/assemblys/form/common/attr-style.vue +0 -44
- package/components/runtime/views/assemblys/form/common/bar-code-rule.vue +0 -104
- package/components/runtime/views/assemblys/form/common/condition.vue +0 -147
- package/components/runtime/views/assemblys/form/common/data-origin.vue +0 -81
- package/components/runtime/views/assemblys/form/common/data-orign-in-parameter.vue +0 -64
- package/components/runtime/views/assemblys/form/common/dataorigin-input-table.vue +0 -106
- package/components/runtime/views/assemblys/form/common/default-value-setting.vue +0 -362
- package/components/runtime/views/assemblys/form/common/dimension-input.vue +0 -68
- package/components/runtime/views/assemblys/form/common/dynamic-data-source-setting.vue +0 -115
- package/components/runtime/views/assemblys/form/common/formatting-label.vue +0 -81
- package/components/runtime/views/assemblys/form/common/grid-num-select.vue +0 -43
- package/components/runtime/views/assemblys/form/common/icon-set-dialog.vue +0 -144
- package/components/runtime/views/assemblys/form/common/linkage.vue +0 -21
- package/components/runtime/views/assemblys/form/common/overall-height.vue +0 -20
- package/components/runtime/views/assemblys/form/common/overall-width.vue +0 -48
- package/components/runtime/views/assemblys/form/common/pre-suffix.vue +0 -33
- package/components/runtime/views/assemblys/form/common/rich-text.vue +0 -100
- package/components/runtime/views/assemblys/form/common/row-ul-li.vue +0 -55
- package/components/runtime/views/assemblys/form/common/setoption-table.vue +0 -86
- package/components/runtime/views/assemblys/form/common/size-input.vue +0 -65
- package/components/runtime/views/assemblys/form/common/suffixmodule.vue +0 -82
- package/components/runtime/views/assemblys/form/common/title.vue +0 -20
- package/components/runtime/views/assemblys/form/common/uploading.vue +0 -34
- package/components/runtime/views/assemblys/form/common/verification.vue +0 -79
- package/components/runtime/views/assemblys/form/common/voluntarily.vue +0 -27
- package/components/runtime/views/assemblys/form/custom/custom-attr-base.vue +0 -81
- package/components/runtime/views/assemblys/form/custom/custom-attr-event.vue +0 -14
- package/components/runtime/views/assemblys/form/custom/custom-attr-style.vue +0 -14
- package/components/runtime/views/assemblys/form/custom/custom-attr.vue +0 -28
- package/components/runtime/views/assemblys/form/custom/custom-design.vue +0 -57
- package/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue +0 -80
- package/components/runtime/views/assemblys/form/datetime/datetime-design.vue +0 -19
- package/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue +0 -60
- package/components/runtime/views/assemblys/form/divider/divider-runtime.vue +0 -44
- package/components/runtime/views/assemblys/form/file-picture/picture-design.vue +0 -80
- package/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue +0 -79
- package/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr-base.vue +0 -142
- package/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr-event.vue +0 -14
- package/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr-style.vue +0 -14
- package/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr.vue +0 -28
- package/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-design.vue +0 -104
- package/components/runtime/views/assemblys/form/image-upload/imageupload-attr-base.vue +0 -75
- package/components/runtime/views/assemblys/form/image-upload/imageupload-attr-event.vue +0 -13
- package/components/runtime/views/assemblys/form/image-upload/imageupload-attr-style.vue +0 -14
- package/components/runtime/views/assemblys/form/image-upload/imageupload-attr.vue +0 -28
- package/components/runtime/views/assemblys/form/image-upload/imageupload-design.vue +0 -76
- package/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue +0 -62
- package/components/runtime/views/assemblys/form/input-show/input-show-attr-base.vue +0 -68
- package/components/runtime/views/assemblys/form/input-show/input-show-attr-event.vue +0 -14
- package/components/runtime/views/assemblys/form/input-show/input-show-attr-style.vue +0 -70
- package/components/runtime/views/assemblys/form/input-show/input-show-attr.vue +0 -28
- package/components/runtime/views/assemblys/form/input-show/input-show-design.vue +0 -155
- package/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue +0 -142
- package/components/runtime/views/assemblys/form/label/label-runtime.vue +0 -143
- package/components/runtime/views/assemblys/form/link/link-runtime.vue +0 -70
- package/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue +0 -24
- package/components/runtime/views/assemblys/form/radio/radio-runtime.vue +0 -203
- package/components/runtime/views/assemblys/form/rate/rate-design.vue +0 -16
- package/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue +0 -169
- package/components/runtime/views/assemblys/form/select/select-runtime.vue +0 -247
- package/components/runtime/views/assemblys/form/slider/slider-design.vue +0 -16
- package/components/runtime/views/assemblys/form/switch/switch-runtime.vue +0 -63
- package/components/runtime/views/assemblys/form/tag/tag-runtime.vue +0 -65
- package/components/runtime/views/assemblys/form/text/text-design.vue +0 -19
- package/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue +0 -63
- package/components/runtime/views/assemblys/form/transfer/transfer-design.vue +0 -32
- package/components/runtime/views/assemblys/object-render.vue +0 -176
- package/components/runtime/views/assemblys/page/page-attr-base-20240429-1.vue +0 -179
- package/components/runtime/views/assemblys/page/page-attr-base.vue +0 -259
- package/components/runtime/views/assemblys/page/page-attr-events.vue +0 -50
- package/components/runtime/views/assemblys/page/page-attr-style.vue +0 -25
- package/components/runtime/views/assemblys/page/page-attr.vue +0 -84
- package/components/runtime/views/assemblys/page/variable-dialog.vue +0 -242
- package/components/runtime/views/assemblys/workflow/component/combination.vue +0 -206
- package/components/runtime/views/assemblys/workflow/component/condition-dialog.vue +0 -99
- package/components/runtime/views/assemblys/workflow/component/event-dialog.vue +0 -278
- package/components/runtime/views/assemblys/workflow/component/journal-set-dialog.vue +0 -174
- package/components/runtime/views/assemblys/workflow/component/logical-setup-dialog.vue +0 -155
- package/components/runtime/views/assemblys/workflow/component/rule-dialog.vue +0 -47
- package/components/runtime/views/assemblys/workflow/component/set-dialog.vue +0 -130
- package/components/runtime/views/assemblys/workflow/component/task-trigger-dialog.vue +0 -96
- package/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr-base.vue +0 -43
- package/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr-event.vue +0 -14
- package/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr-style.vue +0 -27
- package/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr.vue +0 -28
- package/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-design.vue +0 -17
- package/components/runtime/views/assemblys/workflow/text-history/texthistory-attr-base.vue +0 -60
- package/components/runtime/views/assemblys/workflow/text-history/texthistory-attr-event.vue +0 -14
- package/components/runtime/views/assemblys/workflow/text-history/texthistory-attr-style.vue +0 -27
- package/components/runtime/views/assemblys/workflow/text-history/texthistory-attr.vue +0 -28
- package/components/runtime/views/assemblys/workflow/text-history/texthistory-design.vue +0 -17
- package/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue +0 -64
- package/components/runtime/views/render/page-view.vue +0 -80
- package/components/runtime/views/super-page copy.vue +0 -61
- package/components/runtime/views/super-page.vue +0 -667
- package/components/super-page-dialog/index.ts +0 -2
- package/components/super-page-dialog/super-page-dialog.vue +0 -267
- package/components/wf-editor/index.ts +0 -2
- package/components/wf-editor/wf-editor.vue +0 -15
- package/cypress/e2e/example.cy.ts +0 -8
- package/cypress/e2e/tsconfig.json +0 -10
- package/cypress/fixtures/example.json +0 -5
- package/cypress/support/commands.ts +0 -39
- package/cypress/support/e2e.ts +0 -20
- package/cypress.config.ts +0 -8
- package/env.d.ts +0 -1
- package/index.html +0 -13
- package/main.ts +0 -11
- package/package-ws.json +0 -70
- package/public/favicon.ico +0 -0
- package/tsconfig copy.json +0 -17
- package/tsconfig.app copy.json +0 -14
- package/tsconfig.app.json +0 -14
- package/tsconfig.json +0 -17
- package/tsconfig.node copy.json +0 -19
- package/tsconfig.node.json +0 -19
- package/tsconfig.vitest copy.json +0 -11
- package/tsconfig.vitest.json +0 -11
- package/vite.config copy.ts +0 -109
- package/vite.config.ts +0 -86
- package/vitest.config.ts +0 -14
package/vite.config copy.ts
DELETED
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import { fileURLToPath, URL } from 'node:url'
|
|
2
|
-
|
|
3
|
-
import { defineConfig } from 'vite'
|
|
4
|
-
import vue from '@vitejs/plugin-vue'
|
|
5
|
-
import vueJsx from '@vitejs/plugin-vue-jsx'
|
|
6
|
-
import dts from 'vite-plugin-dts'
|
|
7
|
-
// https://vitejs.dev/config/
|
|
8
|
-
export default defineConfig({
|
|
9
|
-
build: {
|
|
10
|
-
target: 'modules',
|
|
11
|
-
// //打包文件目录
|
|
12
|
-
outDir: 'es',
|
|
13
|
-
minify: false,
|
|
14
|
-
cssCodeSplit: false,
|
|
15
|
-
rollupOptions: {
|
|
16
|
-
//忽略打包vue文件
|
|
17
|
-
external: (id) => {
|
|
18
|
-
const arr = [
|
|
19
|
-
'vue',
|
|
20
|
-
'vue-i18n',
|
|
21
|
-
'vue-router',
|
|
22
|
-
'vuex',
|
|
23
|
-
'vue-echarts',
|
|
24
|
-
'tslib',
|
|
25
|
-
'resize-detecotr',
|
|
26
|
-
'quill',
|
|
27
|
-
'@vueup/vue-quill',
|
|
28
|
-
'quill-delta',
|
|
29
|
-
'path-to-regexp',
|
|
30
|
-
'parchment',
|
|
31
|
-
'nprogress',
|
|
32
|
-
'mitt',
|
|
33
|
-
'lodash-es',
|
|
34
|
-
'lodash.isequal',
|
|
35
|
-
'lodash.clonedeep',
|
|
36
|
-
'js-cookie',
|
|
37
|
-
'fast-diff',
|
|
38
|
-
'eventemitter3',
|
|
39
|
-
'element-plus',
|
|
40
|
-
'echarts',
|
|
41
|
-
'dayjs',
|
|
42
|
-
'axios',
|
|
43
|
-
'async-validator',
|
|
44
|
-
'agilebuilder-ui',
|
|
45
|
-
'@vueuse_shared',
|
|
46
|
-
'@vueuse_core',
|
|
47
|
-
'@vue_shared',
|
|
48
|
-
'@vue_reactivity',
|
|
49
|
-
'@vue_devtools-api',
|
|
50
|
-
'@element-plus/icons-vue',
|
|
51
|
-
'@ctrl_tinycolor',
|
|
52
|
-
'zrender'
|
|
53
|
-
]
|
|
54
|
-
for (let i = 0; i < arr.length; i++) {
|
|
55
|
-
if (id.startsWith(arr[i])) {
|
|
56
|
-
console.log('id===', id)
|
|
57
|
-
return true
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
// if (id.startWith('agilebuilder-ui')) {
|
|
61
|
-
// console.log('===================agilebuilder-ui================')
|
|
62
|
-
// return true
|
|
63
|
-
// }
|
|
64
|
-
// console.log('id===', id)
|
|
65
|
-
// // 忽略.pnpm中的所有文件
|
|
66
|
-
// if (id.indexOf('/.pnpm/') > 0) {
|
|
67
|
-
// return true
|
|
68
|
-
// } else {
|
|
69
|
-
// return false
|
|
70
|
-
// }
|
|
71
|
-
},
|
|
72
|
-
input: ['src/index.ts'],
|
|
73
|
-
output: [
|
|
74
|
-
{
|
|
75
|
-
format: 'es',
|
|
76
|
-
//不用打包成.es.js,这里我们想把它打包成.js
|
|
77
|
-
entryFileNames: '[name].js',
|
|
78
|
-
//让打包目录和源码目录对应,如果为false就会只生成一个js文件包含所有内容
|
|
79
|
-
preserveModules: true,
|
|
80
|
-
//配置打包根目录
|
|
81
|
-
dir: 'dist/es',
|
|
82
|
-
preserveModulesRoot: 'src'
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
format: 'cjs',
|
|
86
|
-
entryFileNames: '[name].js',
|
|
87
|
-
//让打包目录和源码目录对应
|
|
88
|
-
preserveModules: true,
|
|
89
|
-
//配置打包根目录
|
|
90
|
-
dir: 'dist/lib',
|
|
91
|
-
preserveModulesRoot: 'src'
|
|
92
|
-
}
|
|
93
|
-
]
|
|
94
|
-
},
|
|
95
|
-
// outDir: 'dist',
|
|
96
|
-
// 开启vite打包的库模式
|
|
97
|
-
lib: {
|
|
98
|
-
entry: 'dist/lib/index.js',
|
|
99
|
-
name: 'super-form-runtime',
|
|
100
|
-
formats: ['umd', 'cjs']
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
plugins: [vue(), vueJsx()],
|
|
104
|
-
resolve: {
|
|
105
|
-
alias: {
|
|
106
|
-
'@': fileURLToPath(new URL('./src', import.meta.url))
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
})
|
package/vite.config.ts
DELETED
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { fileURLToPath, URL } from 'node:url'
|
|
2
|
-
|
|
3
|
-
import { defineConfig } from 'vite'
|
|
4
|
-
import vue from '@vitejs/plugin-vue'
|
|
5
|
-
import vueJsx from '@vitejs/plugin-vue-jsx'
|
|
6
|
-
import dts from 'vite-plugin-dts'
|
|
7
|
-
|
|
8
|
-
const path = require('path')
|
|
9
|
-
const fs = require('fs')
|
|
10
|
-
// 获取项目根目录下的package.json路径
|
|
11
|
-
const packageJsonPath = path.resolve(__dirname, './package.json')
|
|
12
|
-
|
|
13
|
-
// 读取package.json文件
|
|
14
|
-
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf-8'))
|
|
15
|
-
// 获取dependencies和devDependencies
|
|
16
|
-
const dependencies = Object.keys(packageJson.dependencies)
|
|
17
|
-
const devDependencies = Object.keys(packageJson.devDependencies)
|
|
18
|
-
|
|
19
|
-
const arr = [...dependencies, ...devDependencies]
|
|
20
|
-
console.log('arr=====', arr)
|
|
21
|
-
// https://vitejs.dev/config/
|
|
22
|
-
export default defineConfig({
|
|
23
|
-
build: {
|
|
24
|
-
target: 'modules',
|
|
25
|
-
// //打包文件目录
|
|
26
|
-
// outDir: 'es',
|
|
27
|
-
//压缩
|
|
28
|
-
minify: false,
|
|
29
|
-
//css分离
|
|
30
|
-
cssCodeSplit: true,
|
|
31
|
-
rollupOptions: {
|
|
32
|
-
//忽略打包vue文件
|
|
33
|
-
external: (id) => {
|
|
34
|
-
for (let i = 0; i < arr.length; i++) {
|
|
35
|
-
if (id.startsWith(arr[i])) {
|
|
36
|
-
// console.log('id===', id)
|
|
37
|
-
return true
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
input: ['components/index.ts'],
|
|
42
|
-
output: [
|
|
43
|
-
// {
|
|
44
|
-
// format: 'es',
|
|
45
|
-
// //不用打包成.es.js,这里我们想把它打包成.js
|
|
46
|
-
// entryFileNames: '[name].js',
|
|
47
|
-
// //让打包目录和源码目录对应,如果为false就会只生成一个js文件包含所有内容
|
|
48
|
-
// preserveModules: true,
|
|
49
|
-
// //配置打包根目录
|
|
50
|
-
// dir: 'dist/es',
|
|
51
|
-
// preserveModulesRoot: 'components'
|
|
52
|
-
// },
|
|
53
|
-
{
|
|
54
|
-
format: 'cjs',
|
|
55
|
-
entryFileNames: '[name].js',
|
|
56
|
-
//让打包目录和源码目录对应
|
|
57
|
-
preserveModules: true,
|
|
58
|
-
//配置打包根目录
|
|
59
|
-
dir: 'lib',
|
|
60
|
-
preserveModulesRoot: 'components'
|
|
61
|
-
}
|
|
62
|
-
]
|
|
63
|
-
},
|
|
64
|
-
outDir: 'components',
|
|
65
|
-
// 开启vite打包的库模式
|
|
66
|
-
lib: {
|
|
67
|
-
entry: 'components/index.ts'
|
|
68
|
-
// name: 'super-form-runtime',
|
|
69
|
-
// formats: ['umd', 'cjs']
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
plugins: [
|
|
73
|
-
vue(),
|
|
74
|
-
vueJsx(),
|
|
75
|
-
dts({
|
|
76
|
-
//指定使用的tsconfig.json在整个项目根目录下,如果不配置,也可以在components下新建tsconfig.json
|
|
77
|
-
outDir: ['lib'],
|
|
78
|
-
tsconfigPath: './tsconfig.json'
|
|
79
|
-
})
|
|
80
|
-
],
|
|
81
|
-
resolve: {
|
|
82
|
-
alias: {
|
|
83
|
-
'@': fileURLToPath(new URL('./src', import.meta.url))
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
})
|
package/vitest.config.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { fileURLToPath } from 'node:url'
|
|
2
|
-
import { mergeConfig, defineConfig, configDefaults } from 'vitest/config'
|
|
3
|
-
import viteConfig from './vite.config'
|
|
4
|
-
|
|
5
|
-
export default mergeConfig(
|
|
6
|
-
viteConfig,
|
|
7
|
-
defineConfig({
|
|
8
|
-
test: {
|
|
9
|
-
environment: 'jsdom',
|
|
10
|
-
exclude: [...configDefaults.exclude, 'e2e/*'],
|
|
11
|
-
root: fileURLToPath(new URL('./', import.meta.url))
|
|
12
|
-
}
|
|
13
|
-
})
|
|
14
|
-
)
|