@plasmicpkgs/antd5 0.0.49 → 0.0.50
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/dist/.tsbuildinfo +1 -1
- package/dist/index.js +14 -3
- package/dist/index.js.map +1 -1
- package/dist/registerForm.d.ts +1 -1
- package/package.json +2 -2
- package/skinny/registerButton.js +6 -0
- package/skinny/registerButton.js.map +1 -1
- package/skinny/registerForm.d.ts +1 -1
- package/skinny/registerForm.js +8 -3
- package/skinny/registerForm.js.map +1 -1
package/dist/index.js
CHANGED
|
@@ -110,6 +110,12 @@ function registerButton(loader) {
|
|
|
110
110
|
description: "Can be set button shape",
|
|
111
111
|
defaultValueHint: "default"
|
|
112
112
|
},
|
|
113
|
+
htmlType: {
|
|
114
|
+
type: "choice",
|
|
115
|
+
options: ["button", "submit"],
|
|
116
|
+
defaultValue: "submit",
|
|
117
|
+
description: "Set the htmlType of button as either 'submit' -- for a button that submits a form -- for 'button' -- for a generic button."
|
|
118
|
+
},
|
|
113
119
|
disabled: {
|
|
114
120
|
type: "boolean",
|
|
115
121
|
description: "Disabled state of button",
|
|
@@ -1293,9 +1299,13 @@ function registerForm(loader) {
|
|
|
1293
1299
|
}),
|
|
1294
1300
|
colon: {
|
|
1295
1301
|
type: "boolean",
|
|
1296
|
-
description: `Show a colon after
|
|
1302
|
+
description: `Show a colon after labels by default (only for horizontal layout)`,
|
|
1297
1303
|
defaultValueHint: true,
|
|
1298
|
-
advanced: true
|
|
1304
|
+
advanced: true,
|
|
1305
|
+
hidden: (props) => {
|
|
1306
|
+
var _a;
|
|
1307
|
+
return ((_a = props.layout) != null ? _a : "horizontal") !== "horizontal";
|
|
1308
|
+
}
|
|
1299
1309
|
},
|
|
1300
1310
|
requiredMark: {
|
|
1301
1311
|
displayName: "Required/optional mark",
|
|
@@ -1531,7 +1541,8 @@ function registerFormItem(loader) {
|
|
|
1531
1541
|
colon: {
|
|
1532
1542
|
type: "boolean",
|
|
1533
1543
|
defaultValueHint: true,
|
|
1534
|
-
advanced: true
|
|
1544
|
+
advanced: true,
|
|
1545
|
+
hidden: () => true
|
|
1535
1546
|
},
|
|
1536
1547
|
labelAlign: {
|
|
1537
1548
|
type: "choice",
|