forked from mengyxu/noob-components
14 changed files with 133 additions and 47 deletions
@ -1,3 +1,3 @@
@@ -1,3 +1,3 @@
|
||||
NODE_ENV="preview" |
||||
# VUE_APP_BASE_URL="http://172.16.16.120:8080" |
||||
VUE_APP_BASE_URL="http://localhost" |
||||
VUE_APP_BASE_URL="http://10.100.0.108:8082" |
||||
@ -1,15 +1,16 @@
@@ -1,15 +1,16 @@
|
||||
<template> |
||||
<NoobTag>{{ t('title') }}</NoobTag> |
||||
<NoobTag type="success">{{ t('title') }}</NoobTag> |
||||
<!-- <NoobTag>{{ t('title') }}</NoobTag> |
||||
<NoobTag type="success">{{ t('title') }}</NoobTag> --> |
||||
<GrafanaIframe :src="src" /> |
||||
</template> |
||||
|
||||
<script lang="ts" setup> |
||||
import { NoobTag, Http } from "noob-mengyxu"; |
||||
import { NoobTag, Http, GrafanaIframe } from "noob-mengyxu"; |
||||
import { useI18n } from "vue3-i18n"; |
||||
const { t } = useI18n(); |
||||
const { post } = Http.Axios2 |
||||
const src = "http://10.100.0.108:3001"; |
||||
|
||||
</script> |
||||
<style lang="scss" scoped> |
||||
//@import url(); 引入公共css类 |
||||
</style> |
||||
@ -0,0 +1,26 @@
@@ -0,0 +1,26 @@
|
||||
<template> |
||||
<iframe ref="iframe" :src="src" :style="iframeStyle"></iframe> |
||||
</template> |
||||
|
||||
<script lang="ts" setup> |
||||
import { useStore } from "vuex"; |
||||
import { reactive, onMounted, ref } from "vue"; |
||||
import { useI18n } from "vue3-i18n"; |
||||
|
||||
const { t } = useI18n(); |
||||
const { state, commit, dispatch } = useStore(); |
||||
|
||||
const props = defineProps({ |
||||
src: { |
||||
type: String, |
||||
default: '', |
||||
}, |
||||
}); |
||||
const iframeStyle = { |
||||
height: '100%', |
||||
width: '100%', |
||||
}; |
||||
|
||||
onMounted(() => { }); |
||||
</script> |
||||
<style lang="scss" scoped></style> |
||||
@ -1,5 +1,6 @@
@@ -1,5 +1,6 @@
|
||||
import Terminal from './terminal.vue'; |
||||
import TerminalSplit from './terminal-split.vue'; |
||||
import Color from './color.vue'; |
||||
import GrafanaIframe from './grafana-iframe.vue'; |
||||
|
||||
export { TerminalSplit, Terminal, Color }; |
||||
export { TerminalSplit, Terminal, Color, GrafanaIframe }; |
||||
|
||||
Loading…
Reference in new issue