fix: tsconfig

This commit is contained in:
Fine 2023-12-07 11:50:35 +08:00
parent 2f043cadbf
commit b2dd8a5281
3 changed files with 5 additions and 8 deletions

View File

@ -12,7 +12,7 @@ See the License for the specific language governing permissions and
limitations under the License. --> limitations under the License. -->
<template> <template>
<div class="item"> <div class="item">
<span class="label">{{ t("content") }}</span> <span class="label">{{ t("expressions") }}</span>
<div v-for="(exp, index) in expressions" :key="index" class="mb-10"> <div v-for="(exp, index) in expressions" :key="index" class="mb-10">
<div class="expression-param" contenteditable="true" @blur="changeExpression($event, index)"> <div class="expression-param" contenteditable="true" @blur="changeExpression($event, index)">
{{ exp }} {{ exp }}
@ -36,7 +36,7 @@ limitations under the License. -->
const dashboardStore = useDashboardStore(); const dashboardStore = useDashboardStore();
const originConfig = dashboardStore.selectedGrid; const originConfig = dashboardStore.selectedGrid;
const expressions = ref<string[]>(originConfig.expressions || []); const expressions = ref<string[]>(originConfig.expressions || []);
console.log(expressions);
async function changeExpression(event: any, index: number) { async function changeExpression(event: any, index: number) {
const params = (event.target.textContent || "").replace(/\s+/g, ""); const params = (event.target.textContent || "").replace(/\s+/g, "");
@ -48,11 +48,10 @@ limitations under the License. -->
} }
function changeConfig(param: { [key: string]: unknown }) { function changeConfig(param: { [key: string]: unknown }) {
const { selectedGrid } = dashboardStore; const { selectedGrid } = dashboardStore;
const graph = { dashboardStore.selectWidget({
...selectedGrid.graph, ...selectedGrid,
...param, ...param,
}; });
dashboardStore.selectWidget({ ...selectedGrid, graph });
} }
function applyConfig() { function applyConfig() {
dashboardStore.setConfigPanel(false); dashboardStore.setConfigPanel(false);

View File

@ -19,7 +19,6 @@
"include": ["env.d.ts", "src/**/*", "src/**/*.vue"], "include": ["env.d.ts", "src/**/*", "src/**/*.vue"],
"exclude": ["src/**/__tests__/*"], "exclude": ["src/**/__tests__/*"],
"compilerOptions": { "compilerOptions": {
"composite": true,
"baseUrl": ".", "baseUrl": ".",
"paths": { "paths": {
"@/*": ["./src/*"] "@/*": ["./src/*"]

View File

@ -18,7 +18,6 @@
"extends": "./tsconfig.app.json", "extends": "./tsconfig.app.json",
"exclude": [], "exclude": [],
"compilerOptions": { "compilerOptions": {
"composite": true,
"lib": [], "lib": [],
"types": ["node", "jsdom"] "types": ["node", "jsdom"]
} }