agile-core 3.0.0 → 3.0.1
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/README.md +4 -4
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -204,7 +204,7 @@ Agile3.0框架目前只支持在`Vite`项目中开发,但是编译后可以在
|
|
|
204
204
|
### 第一步:安装模块
|
|
205
205
|
|
|
206
206
|
```bash
|
|
207
|
-
npm install agile-core
|
|
207
|
+
npm install agile-core -D
|
|
208
208
|
```
|
|
209
209
|
安装完成会在当前工程的`types`目录生成必要的代码模块定义,如果没有生成,可以到已安装的模块的`types`目录下把所有`d.ts`文件拷贝到项目的types目录,并且设置项目自身的tsconfig.json文件,添加`types`目录到`include`节点下
|
|
210
210
|
|
|
@@ -298,8 +298,8 @@ AUI组件可通过插件机制对原组件的定义进行修改,或者对组
|
|
|
298
298
|
|
|
299
299
|
```js
|
|
300
300
|
|
|
301
|
-
// 引入AUI
|
|
302
|
-
import { default as auiCore, type Component } from 'agile-core';
|
|
301
|
+
// 引入AUI核心,TraditionComponent是旧VUE组件写法,Component是新VUE组件写法
|
|
302
|
+
import { default as auiCore, type TraditionComponent, type Component } from 'agile-core';
|
|
303
303
|
|
|
304
304
|
```
|
|
305
305
|
|
|
@@ -313,7 +313,7 @@ import { default as auiCore, type Component } from 'agile-core';
|
|
|
313
313
|
|
|
314
314
|
比如:
|
|
315
315
|
```js
|
|
316
|
-
auiCore.hookStructure('aui-example-comp', function (structure:
|
|
316
|
+
auiCore.hookStructure('aui-example-comp', function (structure: TraditionComponent) {
|
|
317
317
|
const originMounted = structure.mounted;
|
|
318
318
|
|
|
319
319
|
structure.mounted = function () {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agile-core",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"main": "dist/index.cjs.js",
|
|
5
5
|
"module": "dist/index.es.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@vue/compiler-sfc": "^3.5.17",
|
|
47
47
|
"connect": "^3.7.0",
|
|
48
|
+
"glob": "^11.0.3",
|
|
48
49
|
"ts-deepmerge": "^7.0.3",
|
|
49
50
|
"vue": "^3.5.17"
|
|
50
51
|
},
|
|
@@ -54,7 +55,6 @@
|
|
|
54
55
|
"@types/node": "^24.0.14",
|
|
55
56
|
"@vitejs/plugin-vue": "^6.0.0",
|
|
56
57
|
"@vue/tsconfig": "^0.7.0",
|
|
57
|
-
"glob": "^11.0.3",
|
|
58
58
|
"less": "^4.4.0",
|
|
59
59
|
"mime-types": "^3.0.1",
|
|
60
60
|
"minimist": "^1.2.8",
|