chore: prettier & lint
Former-commit-id: 486f65e137348f400d7b95067bd3cd5a2f23ff44
This commit is contained in:
27
src/views/demo/google.vue
Normal file
27
src/views/demo/google.vue
Normal file
@@ -0,0 +1,27 @@
|
||||
<!-- 接口文档 -->
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<iframe
|
||||
src="https://creator.xiaohongshu.com/"
|
||||
width="100%"
|
||||
height="100%"
|
||||
frameborder="0"
|
||||
></iframe>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.app-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
/* 84 = navbar + tags-view = 50 + 34 */
|
||||
height: calc(100vh - 50px);
|
||||
}
|
||||
|
||||
.hasTagsView {
|
||||
.app-container {
|
||||
height: calc(100vh - 84px);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -15,8 +15,8 @@
|
||||
<div class="label-wrap" @click="handleClickHead(oneCol)">
|
||||
<div>{{ oneCol.label }}</div>
|
||||
<template v-if="oneCol.order">
|
||||
<i-ep-sort-up v-if="oneCol.order === 'asc'"></i-ep-sort-up>
|
||||
<i-ep-sort-down v-else></i-ep-sort-down>
|
||||
<i-ep-sort-up v-if="oneCol.order === 'asc'" />
|
||||
<i-ep-sort-down v-else />
|
||||
</template>
|
||||
</div>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
trigger="click"
|
||||
@command="(command: string) => handleCommand(command, oneCol)"
|
||||
>
|
||||
<i-ep-arrow-down class="action-more"></i-ep-arrow-down>
|
||||
<i-ep-arrow-down class="action-more" />
|
||||
<template #dropdown>
|
||||
<el-dropdown-menu>
|
||||
<template v-if="oneCol.prop === 'id'">
|
||||
@@ -56,7 +56,7 @@
|
||||
action=""
|
||||
:http-request="handleUploadFile"
|
||||
>
|
||||
<i-ep-upload-filled class="icon"></i-ep-upload-filled>
|
||||
<i-ep-upload-filled class="icon" />
|
||||
<div class="el-upload__text">拖拽excel到这里</div>
|
||||
</el-upload>
|
||||
<div v-loading="loading" class="excel-table-wrap">
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<!-- wangEditor富文本编辑器示例 -->
|
||||
<script setup lang="ts">
|
||||
import Editor from "@/components/WangEditor/index.vue";
|
||||
|
||||
const value = ref("初始内容");
|
||||
</script>
|
||||
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
<!-- websocket 示例 -->
|
||||
<script setup lang="ts">
|
||||
import { sendToAll, sendToUser } from "@/api/websocket";
|
||||
import { sendToAll, sendToUser } from "@/api/websocket"; // 点对点消息列表
|
||||
|
||||
import { useUserStore } from "@/store/modules/user";
|
||||
|
||||
import { useWebSocket } from "@vueuse/core";
|
||||
|
||||
const inputVal = ref("初始内容");
|
||||
|
||||
const topicMsgs = ref<string[]>(["接收到一条主题消息"]); // 主题消息列表
|
||||
const p2pMsgs = ref<string[]>(["接收到一条点对线消息"]); // 点对点消息列表
|
||||
|
||||
import { useUserStore } from "@/store/modules/user";
|
||||
const p2pMsgs = ref<string[]>(["接收到一条点对线消息"]);
|
||||
|
||||
const userId = useUserStore().userId;
|
||||
|
||||
import { useWebSocket } from "@vueuse/core";
|
||||
|
||||
const { data, status, close, send, open } = useWebSocket(
|
||||
"ws://localhost:8989/ws",
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user