|
@@ -2079,14 +2079,14 @@ export const formComponents = [
|
|
|
textColor: '#0052d9',
|
|
|
events: [
|
|
|
{
|
|
|
- where: {
|
|
|
- type: null,
|
|
|
- },
|
|
|
name: 'click',
|
|
|
- action: 0,
|
|
|
- params: '_blank',
|
|
|
- value: 'https://2d.le5le.com/',
|
|
|
- fn: null,
|
|
|
+ actions: [
|
|
|
+ {
|
|
|
+ action: 0,
|
|
|
+ params: '_blank',
|
|
|
+ value: 'https://2d.le5le.com/',
|
|
|
+ },
|
|
|
+ ],
|
|
|
},
|
|
|
],
|
|
|
},
|
|
@@ -2102,10 +2102,13 @@ export const formComponents = [
|
|
|
iconFamily: 'l-icon',
|
|
|
events: [
|
|
|
{
|
|
|
- action: 5,
|
|
|
name: 'click',
|
|
|
- value: 'window.history.go(-1);',
|
|
|
- where: { type: null },
|
|
|
+ actions: [
|
|
|
+ {
|
|
|
+ action: 5,
|
|
|
+ value: 'window.history.go(-1);',
|
|
|
+ },
|
|
|
+ ],
|
|
|
},
|
|
|
],
|
|
|
},
|
|
@@ -2120,13 +2123,22 @@ export const formComponents = [
|
|
|
icon: '\uea7b',
|
|
|
iconFamily: 'l-icon',
|
|
|
events: [
|
|
|
+ // {
|
|
|
+ // action: 5,
|
|
|
+ // name: 'click',
|
|
|
+ // params: 'pen.id/tag',
|
|
|
+ // value:
|
|
|
+ // 'let pens = context.meta2d.find(params);\r\nif (!pens.length) {\r\n pens = [pen]\r\n}\r\ncontext.meta2d.active(pens, true);\r\ncontext.meta2d.gotoView(pens[0]);\r\ncontext.meta2d.resize();\r\ncontext.meta2d.render();',
|
|
|
+ // where: { type: null },
|
|
|
+ // },
|
|
|
{
|
|
|
- action: 5,
|
|
|
name: 'click',
|
|
|
- params: 'pen.id/tag',
|
|
|
- value:
|
|
|
- 'let pens = context.meta2d.find(params);\r\nif (!pens.length) {\r\n pens = [pen]\r\n}\r\ncontext.meta2d.active(pens, true);\r\ncontext.meta2d.gotoView(pens[0]);\r\ncontext.meta2d.resize();\r\ncontext.meta2d.render();',
|
|
|
- where: { type: null },
|
|
|
+ actions: {
|
|
|
+ action: 5,
|
|
|
+ params: 'pen.id/tag',
|
|
|
+ value:
|
|
|
+ 'let pens = context.meta2d.find(params);\r\nif (!pens.length) {\r\n pens = [pen]\r\n}\r\ncontext.meta2d.active(pens, true);\r\ncontext.meta2d.gotoView(pens[0]);\r\ncontext.meta2d.resize();\r\ncontext.meta2d.render();',
|
|
|
+ },
|
|
|
},
|
|
|
],
|
|
|
},
|
|
@@ -2157,17 +2169,27 @@ export const formComponents = [
|
|
|
icon: '\uec57',
|
|
|
iconFamily: 'l-icon',
|
|
|
events: [
|
|
|
+ // {
|
|
|
+ // action: 5,
|
|
|
+ // name: 'click',
|
|
|
+ // // params: 'pen.id/tag',
|
|
|
+ // value: `
|
|
|
+ // const { scale, origin, y: dataY } = context.meta2d.store.data;
|
|
|
+ // context.meta2d.translate(
|
|
|
+ // 0,
|
|
|
+ // ((parseInt(params)||32) * context.meta2d.store.data.scale - origin.y) / scale - dataY / scale
|
|
|
+ // );`,
|
|
|
+ // where: { type: null },
|
|
|
+ // },
|
|
|
{
|
|
|
- action: 5,
|
|
|
name: 'click',
|
|
|
- // params: 'pen.id/tag',
|
|
|
- value: `
|
|
|
- const { scale, origin, y: dataY } = context.meta2d.store.data;
|
|
|
- context.meta2d.translate(
|
|
|
- 0,
|
|
|
- ((parseInt(params)||32) * context.meta2d.store.data.scale - origin.y) / scale - dataY / scale
|
|
|
- );`,
|
|
|
- where: { type: null },
|
|
|
+ actions: [
|
|
|
+ {
|
|
|
+ action: 0,
|
|
|
+ params: '_blank',
|
|
|
+ value: 'https://2d.le5le.com/',
|
|
|
+ },
|
|
|
+ ],
|
|
|
},
|
|
|
],
|
|
|
},
|