Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update base-label.vue and index.js #967

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 10 additions & 78 deletions plugins/panel/src/basic/index.js
Original file line number Diff line number Diff line change
@@ -1,78 +1,10 @@
import Basic1 from './img/System-Basic-1.png';
import Basic2 from './img/System-Basic-2.png';
import Basic3 from './img/System-Basic-3.png';
import Basic4 from './img/System-Basic-4.png';
import Basic5 from './img/System-Basic-5.png';
import Basic6 from './img/System-Basic-6.png';
import Basic7 from './img/System-Basic-7.png';
import Basic8 from './img/System-Basic-8.png';
import Basic9 from './img/System-Basic-9.png';
import Basic10 from './img/System-Basic-10.png';
import Basic11 from './img/System-Basic-11.png';
import Basic12 from './img/System-Basic-12.png';

export default [

// System-Basic

{
id: 'System-Basic-1',
type: 'png',
content: Basic1,
},
{
id: 'System-Basic-2',
type: 'png',
content: Basic2,
},
{
id: 'System-Basic-3',
type: 'png',
content: Basic3,
},
{
id: 'System-Basic-4',
type: 'png',
content: Basic4,
},
{
id: 'System-Basic-5',
type: 'png',
content: Basic5,
},
{
id: 'System-Basic-6',
type: 'png',
content: Basic6,
},
{
id: 'System-Basic-7',
type: 'png',
content: Basic7,
},
{
id: 'System-Basic-8',
type: 'png',
content: Basic8,
},
{
id: 'System-Basic-9',
type: 'png',
content: Basic9,
},
{
id: 'System-Basic-10',
type: 'png',
content: Basic10,
},
{
id: 'System-Basic-11',
type: 'png',
content: Basic11
},
{
id: 'System-Basic-12',
type: 'png',
content: Basic12,
},
]
let images = [];
for (let i = 1; i <= 12; i++) {
let img = require(`./img/System-Basic-${i}.png`);
images.push({
id: `System-Basic-${i}`,
type: 'png',
content: img.default,
});
}
export default images;
4 changes: 2 additions & 2 deletions vue/example/src/page/base/edgeLabel/base-label.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ export default {
},
},
methods: {
labelClick(e) {
labelClick() {
console.log('labelClick');
this.$emit('dblclick', 'emitlabelClick');
this.$emit('labelClick'); // 保持事件名一致
}
},
created() {
Expand Down