📜  lighitngi 表单编辑 - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:19.183000             🧑  作者: Mango

代码示例1
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;
}