@mbsks/rspfx-framework-vue 0.0.9 → 0.0.12
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 +7 -3
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -17,10 +17,14 @@ Requires `vue` `^3.5` as a peer dependency.
|
|
|
17
17
|
```ts
|
|
18
18
|
import { VueWebPart } from '@mbsks/rspfx-framework-vue/webpart';
|
|
19
19
|
import { preset } from '@mbsks/rspfx-framework-vue';
|
|
20
|
+
import type { Component } from 'vue';
|
|
20
21
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
interface IMyProps { description: string; }
|
|
23
|
+
|
|
24
|
+
export default class MyWebPart extends VueWebPart<IMyProps> {
|
|
25
|
+
protected renderComponent(props: IMyProps): Component {
|
|
26
|
+
// return your Vue component using props
|
|
27
|
+
return null as unknown as Component;
|
|
24
28
|
}
|
|
25
29
|
}
|
|
26
30
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mbsks/rspfx-framework-vue",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"@vitejs/plugin-vue": "^5.2.0",
|
|
26
26
|
"@vue/compiler-sfc": "^3.5.13",
|
|
27
27
|
"vue-loader": "^17.4.2",
|
|
28
|
-
"@mbsks/rspfx-
|
|
29
|
-
"@mbsks/rspfx-
|
|
28
|
+
"@mbsks/rspfx-core": "0.0.12",
|
|
29
|
+
"@mbsks/rspfx-plugin-api": "0.0.12"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"vue": "^3.5.0"
|