@truenewx/tnxvue3 3.0.0-alpha.14 → 3.0.0-alpha.16

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": "@truenewx/tnxvue3",
3
- "version": "3.0.0-alpha.14",
3
+ "version": "3.0.0-alpha.16",
4
4
  "description": "互联网技术解决方案:Vue3扩展支持",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -20,11 +20,12 @@
20
20
  },
21
21
  "peerDependencies": {
22
22
  "element-plus": "~2.8.0",
23
+ "tdesign-vue-next": "~1.9.0",
23
24
  "vue": "~3.4.0",
24
25
  "vue-router": "~4.4.0"
25
26
  },
26
27
  "dependencies": {
27
- "@truenewx/tnxcore": "3.0.0-alpha.8",
28
+ "@truenewx/tnxcore": "3.0.0-alpha.9",
28
29
  "@element-plus/icons-vue": "2.3.1",
29
30
  "async-validator": "4.2.5",
30
31
  "mitt": "3.0.1"
@@ -5,7 +5,7 @@
5
5
  import ElementPlus, {ElLoading, ElMessage, ElMessageBox} from 'element-plus';
6
6
  import ElementPlus_zh_CN from 'element-plus/es/locale/lang/zh-cn';
7
7
  import tnxbs from '@truenewx/tnxcore/src/tnxbs'; // 二次封装组件中使用了Bootstrap的基础样式
8
- import tnxvue, {build} from '../tnxvue.js';
8
+ import tnxvue from '../tnxvue.js';
9
9
 
10
10
  import Avatar from './avatar/Avatar.vue';
11
11
  import Alert from './alert/Alert.vue';
@@ -44,7 +44,7 @@ import Upload from './upload/Upload.vue';
44
44
 
45
45
  import './tnxel.css';
46
46
 
47
- export {build};
47
+ export const build = tnxvue.build;
48
48
 
49
49
  export default build('tnxel', () => {
50
50
  const $ = tnxbs.libs.$;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * tnxtd.css
3
+ * 对Tencent TDesign样式的调整
4
+ */
@@ -0,0 +1,22 @@
1
+ /**
2
+ * 对Tencent TDesign Vue3组件库的扩展支持
3
+ */
4
+ import TDesign from 'tdesign-vue-next';
5
+ import tnxvue from '../tnxvue.js';
6
+
7
+ import 'tdesign-vue-next/es/style/index.css';
8
+ import './tnxtd.css';
9
+
10
+ export const build = tnxvue.build;
11
+
12
+ export default build('tnxtd', () => {
13
+ const tnxtd = Object.assign({}, tnxvue, {});
14
+ tnxtd.install = tnxtd.util.function.around(tnxtd.install, function (install, vm) {
15
+ install.call(tnxtd, vm);
16
+ if (!tnxtd.libs.TDesign) {
17
+ vm.use(TDesign);
18
+ tnxtd.libs = Object.assign({}, tnxtd.libs, {TDesign});
19
+ }
20
+ });
21
+ return tnxtd;
22
+ });
package/src/tnxvue.js CHANGED
@@ -2,7 +2,7 @@
2
2
  /**
3
3
  * 基于Vue 3的扩展支持
4
4
  */
5
- import tnxcore, {build} from '@truenewx/tnxcore';
5
+ import tnxcore from '@truenewx/tnxcore';
6
6
  import validator from './tnxvue-validator';
7
7
  import createRouter from './tnxvue-router';
8
8
  import Text from './text/Text.vue';
@@ -12,7 +12,7 @@ import * as Vue from 'vue';
12
12
  import mitt from 'mitt';
13
13
  import './tnxvue.css';
14
14
 
15
- export {build};
15
+ export const build = tnxcore.build;
16
16
 
17
17
  export default build('tnxvue', () => {
18
18
  const tnxvue = Object.assign({}, tnxcore, {