优化pagetype编辑界面,选中section,column时右边栏字段类型显示相应的字段
This commit is contained in:
parent
3d0947c6ae
commit
52b5c53a72
@ -87,7 +87,7 @@ export const RESTRICTED_FIELDS = [
|
||||
export const DEFAULT_PAGEFIELD_PROPERTIES = [
|
||||
// Label and Type section
|
||||
{ fieldname: "label", label: t("Label"), fieldtype: "Data" },
|
||||
{ fieldname: "fieldtype", label: t("Field Type"), fieldtype: "Select", options: ALL_FIELDTYPES.join("\n") },
|
||||
{ fieldname: "fieldtype", label: t("Field Type"), fieldtype: "Select", options: [...ALL_FIELDTYPES, ...LAYOUT_FIELDS].join("\n") },
|
||||
{ fieldname: "fieldname", label: t("Fieldname"), fieldtype: "Data" },
|
||||
{ fieldname: "precision", label: t("Precision"), fieldtype: "Select", options: "\n0\n1\n2\n3\n4\n5\n6\n7\n8\n9", depends_on: "eval:in_list(['Float', 'Currency', 'Percent'], pg.fieldtype)" },
|
||||
{ fieldname: "length", label: t("Length"), fieldtype: "Int", depends_on: "eval:in_list(['Data', 'Link', 'Dynamic Link', 'Password', 'Select', 'Read Only', 'Attach', 'Attach Image', 'Int'], pg.fieldtype)" },
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user