feat: add extend attribute to control element #293
This commit is contained in:
@@ -80,6 +80,7 @@ interface IElement {
|
|||||||
postfix?: string;
|
postfix?: string;
|
||||||
minWidth?: number;
|
minWidth?: number;
|
||||||
underline?: boolean;
|
underline?: boolean;
|
||||||
|
extension?: unknown;
|
||||||
code: string | null;
|
code: string | null;
|
||||||
min?: number;
|
min?: number;
|
||||||
max?: number;
|
max?: number;
|
||||||
|
|||||||
@@ -80,6 +80,7 @@ interface IElement {
|
|||||||
postfix?: string;
|
postfix?: string;
|
||||||
minWidth?: number;
|
minWidth?: number;
|
||||||
underline?: boolean;
|
underline?: boolean;
|
||||||
|
extension?: unknown;
|
||||||
code: string | null;
|
code: string | null;
|
||||||
min?: number;
|
min?: number;
|
||||||
max?: number;
|
max?: number;
|
||||||
|
|||||||
@@ -439,6 +439,7 @@ export class Control {
|
|||||||
}
|
}
|
||||||
if (type === ControlType.TEXT) {
|
if (type === ControlType.TEXT) {
|
||||||
result.push({
|
result.push({
|
||||||
|
...element.control,
|
||||||
value: textControlValue || null,
|
value: textControlValue || null,
|
||||||
innerText: textControlValue || null
|
innerText: textControlValue || null
|
||||||
})
|
})
|
||||||
@@ -452,6 +453,7 @@ export class Control {
|
|||||||
.filter(Boolean)
|
.filter(Boolean)
|
||||||
.join('')
|
.join('')
|
||||||
result.push({
|
result.push({
|
||||||
|
...element.control,
|
||||||
value: code || null,
|
value: code || null,
|
||||||
innerText: innerText || null
|
innerText: innerText || null
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ export interface IControlBasic {
|
|||||||
postfix?: string
|
postfix?: string
|
||||||
minWidth?: number
|
minWidth?: number
|
||||||
underline?: boolean
|
underline?: boolean
|
||||||
|
extension?: unknown
|
||||||
}
|
}
|
||||||
|
|
||||||
export type IControl = IControlBasic &
|
export type IControl = IControlBasic &
|
||||||
@@ -76,10 +77,10 @@ export interface IGetControlValueOption {
|
|||||||
conceptId: string
|
conceptId: string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type IGetControlValueResult = {
|
export type IGetControlValueResult = (Omit<IControl, 'value'> & {
|
||||||
value: string | null
|
value: string | null
|
||||||
innerText: string | null
|
innerText: string | null
|
||||||
}[]
|
})[]
|
||||||
|
|
||||||
export interface ISetControlOption {
|
export interface ISetControlOption {
|
||||||
conceptId: string
|
conceptId: string
|
||||||
|
|||||||
Reference in New Issue
Block a user