diff --git a/packages/form/src/icons/code.vue b/packages/form/src/icons/code.vue new file mode 100644 index 0000000..4ff6e86 --- /dev/null +++ b/packages/form/src/icons/code.vue @@ -0,0 +1,5 @@ + diff --git a/packages/form/src/icons/index.ts b/packages/form/src/icons/index.ts index b13b03d..55737fb 100644 --- a/packages/form/src/icons/index.ts +++ b/packages/form/src/icons/index.ts @@ -3,6 +3,7 @@ import IconArrowDown from './arrow-down.vue' import IconArrowUp from './arrow-up.vue' import IconBranch from './branch.vue' import IconClose from './close.vue' +import IconCode from './code.vue' import IconCollapse from './collapse.vue' import IconDelete from './delete.vue' import IconEllipsis from './ellipsis.vue' @@ -25,6 +26,7 @@ export { IconArrowUp, IconBranch, IconClose, + IconCode, IconCollapse, IconDelete, IconEllipsis, diff --git a/packages/form/src/locales/en-US.yml b/packages/form/src/locales/en-US.yml index 7b9dca5..772d108 100644 --- a/packages/form/src/locales/en-US.yml +++ b/packages/form/src/locales/en-US.yml @@ -3,6 +3,12 @@ initial: Undo default: Restore to Default collapse: Collapse expand: Expand to Edit +edit: + json: Edit JSON + invalid: Invalid configuration. + save: Save Changes + copy: Copy to Clipboard + copied: Copied badge: deprecated: deprecated experimental: experimental diff --git a/packages/form/src/locales/zh-CN.yml b/packages/form/src/locales/zh-CN.yml index 186df7c..8298035 100644 --- a/packages/form/src/locales/zh-CN.yml +++ b/packages/form/src/locales/zh-CN.yml @@ -3,6 +3,12 @@ initial: 撤销更改 default: 恢复默认值 collapse: 折叠子项 expand: 展开以编辑 +edit: + json: 编辑 JSON + invalid: 无效的配置。 + save: 保存更改 + copy: 复制到剪贴板 + copied: 已复制 badge: deprecated: 已废弃 experimental: 实验性 diff --git a/packages/form/src/schema.vue b/packages/form/src/schema.vue index c73aa58..abb1a3b 100644 --- a/packages/form/src/schema.vue +++ b/packages/form/src/schema.vue @@ -16,6 +16,12 @@ > + + + + +