@dsh-workbench/module-hello 0.1.7 → 0.1.9
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/client.js +14 -10
- package/package.json +3 -3
package/client.js
CHANGED
|
@@ -59,16 +59,20 @@ window.__ModuleLoader__.load({
|
|
|
59
59
|
var helloClient = {
|
|
60
60
|
manifest,
|
|
61
61
|
messages: helloMessages,
|
|
62
|
-
card: (props) =>
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
62
|
+
card: (props) => {
|
|
63
|
+
const { Card, IconBrandMark } = import_client.kit.components;
|
|
64
|
+
return (0, import_react.createElement)(
|
|
65
|
+
Card,
|
|
66
|
+
{
|
|
67
|
+
t: props.t,
|
|
68
|
+
title: props.t("hello.cardTitle"),
|
|
69
|
+
refreshing: false,
|
|
70
|
+
onRefresh: props.onRefresh
|
|
71
|
+
},
|
|
72
|
+
(0, import_react.createElement)("p", null, (0, import_react.createElement)(IconBrandMark, { size: 16 }), " ", props.t("hello.heading")),
|
|
73
|
+
(0, import_react.createElement)("p", null, props.t("hello.body"))
|
|
74
|
+
);
|
|
75
|
+
}
|
|
72
76
|
};
|
|
73
77
|
var inject = ["workbenchUnits"];
|
|
74
78
|
function apply(ctx) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dsh-workbench/module-hello",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"description": "最小示例模块:装上后面板里多一张卡片,用来试装试卸。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"react": "^19.3.0",
|
|
51
51
|
"typescript": "5.9",
|
|
52
52
|
"vitest": "^5.0.2",
|
|
53
|
-
"@dsh-workbench/
|
|
54
|
-
"@dsh-workbench/
|
|
53
|
+
"@dsh-workbench/core": "0.1.9",
|
|
54
|
+
"@dsh-workbench/module-tools": "0.1.9"
|
|
55
55
|
},
|
|
56
56
|
"publishConfig": {
|
|
57
57
|
"access": "public"
|