mirror of https://github.com/doccano/doccano.git
Hironsan
2 years ago
4 changed files with 22 additions and 45 deletions
Split View
Diff Options
-
6frontend/components/layout/TheSideBar.vue
-
20frontend/domain/models/label/label.ts
-
1frontend/nuxt.config.js
-
40frontend/pages/projects/_id/labels/add.vue
@ -1,18 +1,18 @@ |
|||
export class LabelItem { |
|||
constructor( |
|||
readonly id: number, |
|||
readonly text: string, |
|||
readonly prefixKey: string | null, |
|||
readonly suffixKey: string | null, |
|||
readonly backgroundColor: string, |
|||
readonly textColor: string = '#ffffff' |
|||
public id: number, |
|||
public text: string = '', |
|||
public prefixKey: string | null = null, |
|||
public suffixKey: string | null = null, |
|||
public backgroundColor: string = '#73D8FF', |
|||
public textColor: string = '#ffffff' |
|||
) {} |
|||
|
|||
static create( |
|||
text: string, |
|||
prefixKey: string | null, |
|||
suffixKey: string | null, |
|||
backgroundColor: string |
|||
text: string = '', |
|||
prefixKey: string | null = null, |
|||
suffixKey: string | null = null, |
|||
backgroundColor: string = '#73D8FF' |
|||
): LabelItem { |
|||
return new LabelItem(0, text, prefixKey, suffixKey, backgroundColor) |
|||
} |
|||
|
Write
Preview
Loading…
Cancel
Save