调整分包,完成隐私协议(样式待优化)
This commit is contained in:
26
childPackage/miniprogram_npm/towxml/decode.js
Normal file
26
childPackage/miniprogram_npm/towxml/decode.js
Normal 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);
|
||||
}
|
||||
};
|
||||
});
|
||||
}
|
||||
}
|
||||
})
|
Reference in New Issue
Block a user