@ctzy-web-client/create-web-client 1.0.5 → 1.0.7
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 +1 -1
- package/templates/qiankun-subapp-vue-template/jsconfig.json +1 -1
- package/templates/qiankun-subapp-vue-template/mocks/test.js +1 -0
- package/templates/qiankun-subapp-vue-template/package.json +2 -1
- package/templates/qiankun-subapp-vue-template/src/interceptors/AppRequestInterceptors.js +2 -1
- package/templates/qiankun-subapp-vue-template/src/interceptors/AppRouterInterceptors.js +2 -1
- package/templates/qiankun-subapp-vue-template/src/main.js +2 -1
- package/templates/qiankun-subapp-vue-template/src/models/TestDataModel.js +2 -1
- package/templates/qiankun-subapp-vue-template/src/pages/form/index.vue +3 -2
- package/templates/qiankun-subapp-vue-template/src/pages/home/index.vue +2 -1
- package/templates/qiankun-subapp-vue-template/src/services/TestServices.js +2 -1
- package/templates/qiankun-subapp-vue-template/vite.config.ts +1 -1
- package/templates/qiankun-vue-template/jsconfig.json +1 -0
- package/templates/qiankun-vue-template/package.json +2 -1
- package/templates/qiankun-vue-template/src/main.js +3 -2
- package/templates/qiankun-vue-template/src/pages/app/index.vue +2 -1
- package/templates/qiankun-vue-template/src/services/ApplicaitionService.js +1 -0
- package/templates/qiankun-vue-template/src/services/UserService.js +1 -0
- package/templates/web-client-vue-template/package.json +1 -0
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { service } from '@ctzy-web-client/ioc-annotations';
|
|
2
|
-
import { RequestInterceptors } from 'web-base-client-vue';
|
|
2
|
+
import { RequestInterceptors } from '@ctzy-web-client/web-base-client-vue';
|
|
3
3
|
|
|
4
4
|
@service(RequestInterceptors)
|
|
5
5
|
export default class AppRequestInterceptors extends RequestInterceptors {
|
|
@@ -48,3 +48,4 @@ export default class AppRequestInterceptors extends RequestInterceptors {
|
|
|
48
48
|
return Promise.reject(new Error('请求错误'));
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
+
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { service } from '@ctzy-web-client/ioc-annotations';
|
|
2
|
-
import { RouterInterceptors } from 'web-base-client-vue';
|
|
2
|
+
import { RouterInterceptors } from '@ctzy-web-client/web-base-client-vue';
|
|
3
3
|
|
|
4
4
|
@service(RouterInterceptors)
|
|
5
5
|
export default class AppRouterInterceptors extends RouterInterceptors {
|
|
@@ -23,3 +23,4 @@ export default class AppRouterInterceptors extends RouterInterceptors {
|
|
|
23
23
|
return next();
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
+
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Application } from 'web-base-client-vue';
|
|
1
|
+
import { Application } from '@ctzy-web-client/web-base-client-vue';
|
|
2
2
|
import { qiankunWindow } from 'vite-plugin-qiankun/es/helper';
|
|
3
3
|
import WebClientComponent from '@ctzy-web-client/plugin-component-vue';
|
|
4
4
|
import "@ctzy-web-client/plugin-component-vue/style"
|
|
@@ -21,3 +21,4 @@ const applicaiton = new Application(appName, {
|
|
|
21
21
|
});
|
|
22
22
|
|
|
23
23
|
applicaiton.use(WebClientComponent).mount('#app');
|
|
24
|
+
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { dataTable, tableColumn, dataForm, formColumn } from 'web-base-client-vue';
|
|
1
|
+
import { dataTable, tableColumn, dataForm, formColumn } from '@ctzy-web-client/web-base-client-vue';
|
|
2
2
|
|
|
3
3
|
@dataTable({ name: 'test', title: '测试数据模型' })
|
|
4
4
|
@dataForm({ name: 'test', title: '测试' })
|
|
@@ -43,3 +43,4 @@ export default class TestDataModel {
|
|
|
43
43
|
@formColumn({ title: '状态' })
|
|
44
44
|
status = '';
|
|
45
45
|
}
|
|
46
|
+
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
</template>
|
|
77
77
|
<script>
|
|
78
78
|
import { ref, reactive, watch, computed } from 'vue';
|
|
79
|
-
import { useDataForm } from 'web-base-client-vue';
|
|
79
|
+
import { useDataForm } from '@ctzy-web-client/web-base-client-vue';
|
|
80
80
|
import TestDataModel from '../../models/TestDataModel';
|
|
81
81
|
export const route = '/form/:id?';
|
|
82
82
|
export const parent = '';
|
|
@@ -108,7 +108,7 @@ export default {
|
|
|
108
108
|
return;
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
//
|
|
111
|
+
// 隐藏选中�?
|
|
112
112
|
dataForm.value.getColumn(columnNames[status - 1]).hide();
|
|
113
113
|
}
|
|
114
114
|
);
|
|
@@ -118,3 +118,4 @@ export default {
|
|
|
118
118
|
};
|
|
119
119
|
</script>
|
|
120
120
|
<style scoped></style>
|
|
121
|
+
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
</BwaDataTable>
|
|
34
34
|
</template>
|
|
35
35
|
<script>
|
|
36
|
-
import { useService, useDataTable } from 'web-base-client-vue';
|
|
36
|
+
import { useService, useDataTable } from '@ctzy-web-client/web-base-client-vue';
|
|
37
37
|
import TestServices from '../../services/TestServices';
|
|
38
38
|
import TestDataModel from '../../models/TestDataModel';
|
|
39
39
|
export const route = '/';
|
|
@@ -55,3 +55,4 @@ export default {
|
|
|
55
55
|
};
|
|
56
56
|
</script>
|
|
57
57
|
<style scoped></style>
|
|
58
|
+
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { service, inject } from '@ctzy-web-client/ioc-annotations';
|
|
2
|
-
import { SimpleOrm } from 'web-base-client-vue';
|
|
2
|
+
import { SimpleOrm } from '@ctzy-web-client/web-base-client-vue';
|
|
3
3
|
import TestDataModel from '../models/TestDataModel';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -19,3 +19,4 @@ export default class TestServices {
|
|
|
19
19
|
console.log(testDataList);
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
+
|
|
@@ -38,7 +38,7 @@ export default defineConfig(({ mode, command }) => {
|
|
|
38
38
|
viteExternalsPlugin({
|
|
39
39
|
'vue': "Vue",
|
|
40
40
|
'vue-router': "VueRouter",
|
|
41
|
-
"web-base-client-vue": "WebClientVue",
|
|
41
|
+
"@ctzy-web-client/web-base-client-vue": "WebClientVue",
|
|
42
42
|
"@ctzy-web-client/plugin-component-vue": "WebClientPluginComponentVue",
|
|
43
43
|
})
|
|
44
44
|
);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as WebClientVue from 'web-base-client-vue';
|
|
2
|
-
import { Application } from 'web-base-client-vue';
|
|
1
|
+
import * as WebClientVue from '@ctzy-web-client/web-base-client-vue';
|
|
2
|
+
import { Application } from '@ctzy-web-client/web-base-client-vue';
|
|
3
3
|
import WebClientPluginComponentVue from '@ctzy-web-client/plugin-component-vue';
|
|
4
4
|
import { qiankunWindow } from 'vite-plugin-qiankun/es/helper';
|
|
5
5
|
import '@ctzy-web-client/plugin-component-vue/style/index.css';
|
|
@@ -19,3 +19,4 @@ const applicaiton = new Application('base', {
|
|
|
19
19
|
});
|
|
20
20
|
|
|
21
21
|
applicaiton.mount('#app');
|
|
22
|
+
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
</template>
|
|
4
4
|
|
|
5
5
|
<script setup>
|
|
6
|
-
import { BwaMicroApplication } from 'web-base-client-vue';
|
|
6
|
+
import { BwaMicroApplication } from '@ctzy-web-client/web-base-client-vue';
|
|
7
7
|
|
|
8
8
|
defineOptions({
|
|
9
9
|
name: 'App',
|
|
@@ -13,3 +13,4 @@ defineOptions({
|
|
|
13
13
|
<script>
|
|
14
14
|
export const route = '/:appName*';
|
|
15
15
|
</script>
|
|
16
|
+
|