+
@@ -30,6 +42,58 @@ const resultVisible = ref(false);
const result = ref('');
const form = ref
>();
+const diffFormConfig = ref([
+ {
+ type: 'tab',
+ items: [
+ {
+ title: 'tab1',
+ labelWidth: '80px',
+ items: [
+ {
+ name: 'text1',
+ text: '文本字段1',
+ },
+ {
+ name: 'text2',
+ text: '文本字段2',
+ },
+ {
+ type: 'number',
+ text: '计数器',
+ name: 'number',
+ },
+ ],
+ },
+ {
+ title: 'tab2',
+ labelWidth: '80px',
+ items: [
+ {
+ type: 'colorPicker',
+ text: '取色器',
+ name: 'colorPicker',
+ },
+ ],
+ },
+ ],
+ },
+]);
+
+const currentVersion = ref({
+ text1: '当前版本的文本内容',
+ text2: '你好',
+ number: 10,
+ colorPicker: '#ffffff',
+});
+
+const lastVersion = ref({
+ text1: '上一版本的文本内容',
+ text2: '你好',
+ number: 12,
+ colorPicker: '#000000',
+});
+
const config = ref([
{
text: '文本',
@@ -358,9 +422,16 @@ function change(value: string) {