Skip to content

Commit 50e3665

Browse files
author
hikki
committed
v3
1 parent a7d4ab9 commit 50e3665

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

resources/assets/component.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const _component = {
1+
window._component = {
22
'trash': `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
33
<path d="M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5zm2.5 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5zm3 .5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0V6z"/>
44
<path fill-rule="evenodd" d="M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1v1zM4.118 4 4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4H4.118zM2.5 3V2h11v1h-11z"/>
@@ -163,7 +163,7 @@ const _component = {
163163
}
164164
};
165165

166-
class ComponentDot {
166+
window.ComponentDot = class {
167167
MODE = {
168168
insert: 'insert',
169169
delete: 'delete'
@@ -318,7 +318,7 @@ class ComponentDot {
318318
}
319319
}
320320

321-
class ComponentCascadeDot {
321+
window.ComponentCascadeDot = class {
322322
MODE = {
323323
insert: 'insert',
324324
delete: 'delete'
@@ -711,7 +711,7 @@ class ComponentCascadeDot {
711711
}
712712
}
713713

714-
class ComponentLine {
714+
window.ComponentLine = class {
715715
constructor(name, columns, data, options = {}) {
716716
this.DOM = document.getElementById(name);
717717
this.DOM.addEventListener("contextmenu", (e) => {
@@ -931,7 +931,7 @@ class ComponentLine {
931931
}
932932
}
933933

934-
class ComponentPlane {
934+
window.ComponentPlane = class {
935935
constructor(url, xhr = {}, options = {}) {
936936
this.URL = url;
937937
this.XHR = Object.assign({
@@ -1025,7 +1025,7 @@ class ComponentPlane {
10251025
}
10261026
}
10271027

1028-
class ComponentSortable {
1028+
window.ComponentSortable = class {
10291029
constructor(list, callback = null) {
10301030
this.list = (typeof list === 'string') ? document.querySelector(list) : list;
10311031
this.options = {
@@ -1155,7 +1155,7 @@ class ComponentSortable {
11551155
}
11561156
}
11571157

1158-
class ComponentCascadeLine {
1158+
window.ComponentCascadeLine = class {
11591159
constructor(name, select, url) {
11601160
if (!Array.isArray(select)) {
11611161
console.error('CascadeLine param select must be array!');

0 commit comments

Comments
 (0)