Skip to content

Commit 66c5c54

Browse files
committed
Ver 1.0.1 Add textTemplate and lint:fix
Add textTemplate and lint:fix
1 parent 9503973 commit 66c5c54

File tree

4 files changed

+14
-12
lines changed

4 files changed

+14
-12
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "antdpopconfirm",
33
"widgetName": "AntdPopConfirm",
4-
"version": "1.0.0",
4+
"version": "1.0.1",
55
"description": "A Mendix widget provide simple and compact confirmation dialog of an action, which based on Ant Design Component.",
66
"copyright": "© Mendix Technology BV 2022. All rights reserved.",
77
"author": "Gavin Chen",

src/AntdPopConfirm.editorConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { AntdPopConfirmPreviewProps } from "../typings/AntdPopConfirmProps";
2-
//import { hidePropertyIn, hidePropertiesIn } from "@mendix/pluggable-widgets-tools";
2+
// import { hidePropertyIn, hidePropertiesIn } from "@mendix/pluggable-widgets-tools";
33

44
export type Platform = "web" | "desktop";
55

src/AntdPopConfirm.editorPreview.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@ export class preview extends Component<AntdPopConfirmPreviewProps> {
66
render(): ReactNode {
77
return (
88
<Popconfirm
9-
open = {true}
9+
open
1010
title={this.props.popTitle}
1111
okText={this.props.popOKText}
12-
cancelText={this.props.popCancelText}>
13-
{this.props.popContain}
12+
cancelText={this.props.popCancelText}
13+
>
14+
{this.props.popContain}
1415
</Popconfirm>
15-
)
16+
);
1617
}
1718
}
1819

src/AntdPopConfirm.tsx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,24 @@ import "./ui/AntdPopConfirm.css";
88
export class AntdPopConfirm extends Component<AntdPopConfirmContainerProps> {
99
private readonly onConfirmClickHandler = this.onClickConfirm.bind(this);
1010
private readonly onCancelClickHandler = this.onClickCancel.bind(this);
11-
11+
1212
render(): ReactNode {
1313
return (
1414
<Popconfirm
1515
placement={this.props.popPlacement}
16-
title={this.props.popTitle.toString}
17-
//icon={this.props.popIcon}
16+
title={String(this.props.popTitle.value)}
17+
// icon={this.props.popIcon}
1818
okText={this.props.popOKText}
1919
cancelText={this.props.popCancelText}
2020
disabled={this.props.popDisabled}
2121
showCancel={this.props.popShowCancel}
2222
overlayClassName={this.props.popClass}
2323
onConfirm={this.onConfirmClickHandler}
24-
onCancel={this.onCancelClickHandler}>
25-
{this.props.popContain}
24+
onCancel={this.onCancelClickHandler}
25+
>
26+
{this.props.popContain}
2627
</Popconfirm>
27-
)
28+
);
2829
}
2930

3031
private onClickConfirm(): void {

0 commit comments

Comments
 (0)