Skip to content

Commit

Permalink
feat: review 代码
Browse files Browse the repository at this point in the history
  • Loading branch information
JackySoft committed Oct 9, 2024
1 parent cb91a5b commit 9cb7b5d
Showing 1 changed file with 57 additions and 50 deletions.
107 changes: 57 additions & 50 deletions packages/editor/src/packages/Basic/QRCode/Schema.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default {
},
{
type: 'Variable',
label: '扫描后的结果',
label: '扫描结果',
name: 'value',
props: {
placeholder: '请输入',
Expand All @@ -28,84 +28,96 @@ export default {
],
},
},

{
type: 'Variable',
label: '图片地址',
name: 'icon',
tooltip: '二维码中图片的地址(目前只支持图片地址)',
props: {
placeholder: '请输入图片地址',
},
type: 'Switch',
label: '是否有边框',
name: 'bordered',
},
{
type: 'InputNumber',
label: '二维码大小',
name: 'size',
type: 'Select',
label: '纠错等级',
name: 'errorLevel',
props: {
placeholder: '二维码大小',
options: [
{ value: 'L', label: 'L' },
{ value: 'M', label: 'M' },
{ value: 'Q', label: 'Q' },
{ value: 'H', label: 'H' },
],
},
},
{
type: 'InputNumber',
label: '图片宽度',
name: ['iconSize', 'width'],
type: 'Select',
label: '二维码状态',
name: 'status',
props: {
placeholder: '二维码中图片的宽度',
options: [
{ value: 'active', label: 'active' },
{ value: 'expired', label: 'expired' },
{ value: 'loading', label: 'loading' },
{ value: 'scanned', label: 'scanned' },
],
},
},
{
type: 'Title',
label: '二维码设置',
key: 'qrcode-settings',
},
{
type: 'InputNumber',
label: '图片高度',
name: ['iconSize', 'height'],
label: '大小',
name: 'size',
props: {
placeholder: '二维码中图片的高度',
placeholder: '二维码大小',
},
},
{
type: 'Variable',
label: '二维码颜色',
type: 'ColorPicker',
label: '颜色',
name: 'color',
props: {
placeholder: '请输入',
},
},
{
type: 'Variable',
label: '二维码背景颜色',
type: 'ColorPicker',
label: '背景色',
name: 'bgColor',
props: {
placeholder: '请输入',
},
},
{
type: 'Switch',
label: '是否有边框',
name: 'bordered',
type: 'Title',
label: '中间图片设置',
key: 'img-settings',
},
{
type: 'Select',
label: '纠错等级',
name: 'errorLevel',
type: 'Variable',
label: '图片地址',
name: 'icon',
tooltip: '二维码中图片的地址(目前只支持图片地址)',
props: {
options: [
{ value: 'L', label: 'L' },
{ value: 'M', label: 'M' },
{ value: 'Q', label: 'Q' },
{ value: 'H', label: 'H' },
],
placeholder: '请输入图片地址',
},
},

{
type: 'Select',
label: '二维码状态',
name: 'status',
type: 'InputNumber',
label: '图片宽度',
name: ['iconSize', 'width'],
props: {
options: [
{ value: 'active', label: 'active' },
{ value: 'expired', label: 'expired' },
{ value: 'loading', label: 'loading' },
{ value: 'scanned', label: 'scanned' },
],
placeholder: '二维码中图片的宽度',
},
},
{
type: 'InputNumber',
label: '图片高度',
name: ['iconSize', 'height'],
props: {
placeholder: '二维码中图片的高度',
},
},
],
Expand All @@ -118,7 +130,7 @@ export default {
icon: 'https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg',
iconSize: { width: 40, height: 40 },
color: '#000',
bgColor: 'transparent',
bgColor: '#fff',
bordered: true,
errorLevel: 'M',
status: 'active',
Expand Down Expand Up @@ -147,11 +159,6 @@ export default {
{ value: 'scanned', label: 'scanned' },
],
},
{
name: 'text',
title: '测试参数',
type: 'input',
},
],
},
],
Expand Down

0 comments on commit 9cb7b5d

Please sign in to comment.