/*
|
* @Description:
|
* @version:
|
* @Author: chen jing wu
|
* @Date: 2023-04-27 11:38:36
|
* @LastEditors: chen jing wu
|
* @LastEditTime: 2023-05-08 10:25:31
|
*/
|
import { LightningElement, api } from 'lwc';
|
export default class LexInputLookupCell extends LightningElement {
|
@api record;
|
@api fieldName;
|
@api apiName;
|
@api type;
|
@api fieldType;
|
@api disable;
|
@api required;
|
value;
|
label;
|
connectedCallback() {
|
this.value = this.record[this.fieldName];
|
this.label = this.fieldName;
|
}
|
get isRequired(){
|
return this.required;
|
}
|
|
handleInputChange(event) {
|
this.value = event.target.value;
|
}
|
get isDisable(){
|
if(this.disable == true){
|
return true;
|
}else{
|
return false;
|
}
|
}
|
getSearchResult(){
|
|
}
|
|
@api
|
inputValue() {
|
return { value : this.value, field: this.field };
|
}
|
get isLookup() {
|
if(this.fieldType)
|
{
|
return this.fieldType.toLowerCase()=='lookup';
|
}
|
return false;
|
}
|
}
|