Skip to content

Commit

Permalink
fixes little mistakes of tree checkbox setting
Browse files Browse the repository at this point in the history
  • Loading branch information
hpyou authored and rdkmaster committed Aug 24, 2018
1 parent 0e135be commit 2675c0b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
5 changes: 5 additions & 0 deletions src/app/demo/tree/editable/demo.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ export class ZtreeDemoEditableComponent {
},
edit: {
enable: true
},
check: {
enable: true,
chkStyle: "checkbox",
chkboxType: { "Y": "ps", "N": "ps" }
}
};

Expand Down
6 changes: 6 additions & 0 deletions src/jigsaw/assets/scss/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,12 @@
content: "\f00c";
}
}
&.checkbox_true_part, &.checkbox_true_part_focus {
background: $border-color-split;
&:before {
content: "\f00c";
}
}
}
&.edit {
margin-left: 5px;
Expand Down
9 changes: 2 additions & 7 deletions src/jigsaw/component/tree/ztree-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,19 +55,14 @@ export class ZTreeSettingData {
keep?: ZTreeSettingDataKeep;
}


export enum ZTreeSettingCheckStyle {
checkbox, radio
}

export enum ZTreeSettingCheckRadioType {
level, all
}

export class ZTreeSettingCheck {
autoCheckTrigger?: boolean;
chkBoxType?: JSON;
chkStyle?: ZTreeSettingCheckStyle;
chkboxType?: {"Y"?: string, "N"?: string};
chkStyle?: "checkbox" | "radio";
enable?: boolean;
nocheckInherit?: boolean;
chkDisabledInherit?: boolean;
Expand Down

0 comments on commit 2675c0b

Please sign in to comment.