|
@@ -100,6 +100,17 @@
|
|
|
@remove="fileRemoved"
|
|
|
/>
|
|
|
</div>
|
|
|
+ <div class="form-item">
|
|
|
+ <label>主题</label>
|
|
|
+ <t-select
|
|
|
+ v-model="data.theme"
|
|
|
+ placeholder="暗黑"
|
|
|
+ :options="themeOptions"
|
|
|
+ @change="changeTheme"
|
|
|
+ clearable
|
|
|
+ class="shrink-0"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
</t-space>
|
|
|
<t-space direction="vertical" size="small" class="mt-8">
|
|
|
<t-collapse
|
|
@@ -388,6 +399,17 @@ const cases = [
|
|
|
}
|
|
|
];
|
|
|
|
|
|
+const themeOptions = [
|
|
|
+ {
|
|
|
+ label: '暗黑',
|
|
|
+ value: 'dark',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '明亮',
|
|
|
+ value: 'light',
|
|
|
+ },
|
|
|
+];
|
|
|
+
|
|
|
const screenList = reactive([
|
|
|
{
|
|
|
name: '大屏',
|
|
@@ -500,6 +522,11 @@ const changeValue = (e: any, key: string) => {
|
|
|
openData();
|
|
|
};
|
|
|
|
|
|
+const changeTheme = (e)=>{
|
|
|
+ meta2d.setTheme(e);
|
|
|
+ data.meta2dData.background = meta2d.store.data.background;
|
|
|
+}
|
|
|
+
|
|
|
const changeName = (e: any, key: string) => {
|
|
|
setMeta2dData({name:e});
|
|
|
};
|