|
1 | | -const _component = { |
| 1 | +window._component = { |
2 | 2 | 'trash': `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16"> |
3 | 3 | <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"/> |
4 | 4 | <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 = { |
163 | 163 | } |
164 | 164 | }; |
165 | 165 |
|
166 | | -class ComponentDot { |
| 166 | +window.ComponentDot = class { |
167 | 167 | MODE = { |
168 | 168 | insert: 'insert', |
169 | 169 | delete: 'delete' |
@@ -318,7 +318,7 @@ class ComponentDot { |
318 | 318 | } |
319 | 319 | } |
320 | 320 |
|
321 | | -class ComponentCascadeDot { |
| 321 | +window.ComponentCascadeDot = class { |
322 | 322 | MODE = { |
323 | 323 | insert: 'insert', |
324 | 324 | delete: 'delete' |
@@ -711,7 +711,7 @@ class ComponentCascadeDot { |
711 | 711 | } |
712 | 712 | } |
713 | 713 |
|
714 | | -class ComponentLine { |
| 714 | +window.ComponentLine = class { |
715 | 715 | constructor(name, columns, data, options = {}) { |
716 | 716 | this.DOM = document.getElementById(name); |
717 | 717 | this.DOM.addEventListener("contextmenu", (e) => { |
@@ -931,7 +931,7 @@ class ComponentLine { |
931 | 931 | } |
932 | 932 | } |
933 | 933 |
|
934 | | -class ComponentPlane { |
| 934 | +window.ComponentPlane = class { |
935 | 935 | constructor(url, xhr = {}, options = {}) { |
936 | 936 | this.URL = url; |
937 | 937 | this.XHR = Object.assign({ |
@@ -1025,7 +1025,7 @@ class ComponentPlane { |
1025 | 1025 | } |
1026 | 1026 | } |
1027 | 1027 |
|
1028 | | -class ComponentSortable { |
| 1028 | +window.ComponentSortable = class { |
1029 | 1029 | constructor(list, callback = null) { |
1030 | 1030 | this.list = (typeof list === 'string') ? document.querySelector(list) : list; |
1031 | 1031 | this.options = { |
@@ -1155,7 +1155,7 @@ class ComponentSortable { |
1155 | 1155 | } |
1156 | 1156 | } |
1157 | 1157 |
|
1158 | | -class ComponentCascadeLine { |
| 1158 | +window.ComponentCascadeLine = class { |
1159 | 1159 | constructor(name, select, url) { |
1160 | 1160 | if (!Array.isArray(select)) { |
1161 | 1161 | console.error('CascadeLine param select must be array!'); |
|
0 commit comments