初始化

This commit is contained in:
zhu
2026-03-27 13:29:41 +08:00
commit ee03132cee
112 changed files with 6417 additions and 0 deletions

26
towxml/decode.js Normal file
View File

@@ -0,0 +1,26 @@
const config = require('./config');
Component({
options: {
styleIsolation: 'apply-shared'
},
properties: {
nodes: {
type: Object,
value: {}
}
},
lifetimes: {
attached: function () {
const _ts = this;
config.events.forEach(item => {
_ts['_' + item] = function (...arg) {
if (global._events && typeof global._events[item] === 'function') {
global._events[item](...arg);
}
};
});
}
}
})