mirror of
https://github.com/genxium/DelayNoMore
synced 2024-12-27 12:08:21 +00:00
29 lines
532 B
JavaScript
29 lines
532 B
JavaScript
'use strict';
|
|
|
|
Vue.component('localized-sprite', {
|
|
template: `
|
|
<cc-array-prop :target.sync="target.spriteFrameSet"></cc-array-prop>
|
|
<ui-prop name="Update Scene">
|
|
<ui-button
|
|
class="green tiny"
|
|
@confirm="refresh"
|
|
>
|
|
Refresh
|
|
</ui-button>
|
|
</ui-prop>
|
|
`,
|
|
|
|
props: {
|
|
target: {
|
|
twoWay: true,
|
|
type: Object,
|
|
},
|
|
},
|
|
|
|
methods: {
|
|
refresh: function () {
|
|
let i18n = window.require('LanguageData');
|
|
i18n.updateSceneRenderers();
|
|
}
|
|
}
|
|
}); |