mirror of
https://github.com/genxium/DelayNoMore
synced 2025-10-09 16:46:38 +00:00
Initial commit.
This commit is contained in:
29
frontend/packages/i18n-master/inspector/localized-sprite.js
Normal file
29
frontend/packages/i18n-master/inspector/localized-sprite.js
Normal file
@@ -0,0 +1,29 @@
|
||||
'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();
|
||||
}
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user