📅  最后修改于: 2022-03-11 14:58:19.183000             🧑  作者: Mango
import { LightningElement, api } from 'lwc';
import NAME_FIELD from '@salesforce/schema/Contact.Name';
export default class RecordEditFormExample extends LightningElement {
// Expose a field to make it available in the template
nameField = NAME_FIELD;
// Flexipage provides recordId and objectApiName
@api recordId;
@api objectApiName;
}