mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 15:42:39 +08:00
17 lines
554 B
JavaScript
17 lines
554 B
JavaScript
const { template, $, update } = require('./base');
|
|
|
|
exports.template = template;
|
|
exports.$ = $;
|
|
exports.update = update;
|
|
|
|
exports.ready = function() {
|
|
const tooltip = document.createElement('ui-tooltip');
|
|
tooltip.setAttribute('arrow', 'top left+10px');
|
|
this.$.componentContainer.before(tooltip);
|
|
|
|
const label = document.createElement('ui-label');
|
|
label.setAttribute('style', 'display: inline-block; padding: 10px;');
|
|
label.setAttribute('value', 'i18n:ENGINE.components.prefab_link.brief_help');
|
|
tooltip.appendChild(label);
|
|
};
|