refactor: ♻️ eslint 代码规范调整
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
width="100%"
|
||||
height="100%"
|
||||
frameborder="0"
|
||||
></iframe>
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
width="100%"
|
||||
height="100%"
|
||||
frameborder="0"
|
||||
></iframe>
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
width="100%"
|
||||
height="100%"
|
||||
frameborder="0"
|
||||
></iframe>
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ const contentConfig: IContentConfig = {
|
||||
toolbar: [],
|
||||
indexAction: function (params) {
|
||||
// 模拟发起网络请求获取列表数据
|
||||
// console.log("indexAction:", params);
|
||||
console.log("indexAction:", params);
|
||||
return Promise.resolve({
|
||||
total: 2,
|
||||
list: [
|
||||
@@ -76,7 +76,7 @@ const contentConfig: IContentConfig = {
|
||||
align: "center",
|
||||
prop: "gender",
|
||||
templet: "list",
|
||||
selectList: { 0: "女", 1: "男" },
|
||||
selectList: { "0": "女", "1": "男" },
|
||||
},
|
||||
{
|
||||
label: "自定义",
|
||||
|
||||
@@ -48,7 +48,6 @@ import SvgIcon from "@/components/SvgIcon/index.vue";
|
||||
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
|
||||
|
||||
defineOptions({
|
||||
// eslint-disable-next-line
|
||||
name: "Icons",
|
||||
inheritAttrs: false,
|
||||
});
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<iframe
|
||||
src="https://juejin.cn/post/7228990409909108793"
|
||||
frameborder="0"
|
||||
></iframe>
|
||||
<iframe src="https://juejin.cn/post/7228990409909108793" frameborder="0" />
|
||||
</div>
|
||||
</template>
|
||||
<style lang="scss" scoped>
|
||||
|
||||
@@ -151,7 +151,7 @@ function paint(
|
||||
@touchstart="onEventStart"
|
||||
@touchmove.stop.prevent="onEventMove"
|
||||
@touchend="onEventEnd"
|
||||
></canvas>
|
||||
/>
|
||||
<img v-if="imgUrl" :src="imgUrl" alt="签名" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -17,25 +17,25 @@
|
||||
<el-button
|
||||
type="primary"
|
||||
class="ml-5"
|
||||
@click="connectWebSocket"
|
||||
:disabled="isConnected"
|
||||
@click="connectWebSocket"
|
||||
>
|
||||
连接
|
||||
</el-button>
|
||||
<el-button
|
||||
type="danger"
|
||||
@click="disconnectWebSocket"
|
||||
:disabled="!isConnected"
|
||||
@click="disconnectWebSocket"
|
||||
>
|
||||
断开
|
||||
</el-button>
|
||||
</el-col>
|
||||
<el-col :span="8" class="text-right">
|
||||
连接状态:
|
||||
<el-tag class="ml-2" type="success" v-if="isConnected">
|
||||
<el-tag v-if="isConnected" class="ml-2" type="success">
|
||||
已连接
|
||||
</el-tag>
|
||||
<el-tag class="ml-2" type="info" v-else>已断开</el-tag>
|
||||
<el-tag v-else class="ml-2" type="info">已断开</el-tag>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-card>
|
||||
@@ -43,10 +43,10 @@
|
||||
<el-card class="mt-5">
|
||||
<el-form label-width="90px">
|
||||
<el-form-item label="消息内容">
|
||||
<el-input type="textarea" v-model="topicMessage" />
|
||||
<el-input v-model="topicMessage" type="textarea" />
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button @click="sendToAll" type="primary">发送广播</el-button>
|
||||
<el-button type="primary" @click="sendToAll">发送广播</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</el-card>
|
||||
@@ -54,13 +54,13 @@
|
||||
<el-card class="mt-5">
|
||||
<el-form label-width="90px">
|
||||
<el-form-item label="消息内容">
|
||||
<el-input type="textarea" v-model="queneMessage" />
|
||||
<el-input v-model="queneMessage" type="textarea" />
|
||||
</el-form-item>
|
||||
<el-form-item label="消息接收人">
|
||||
<el-input v-model="receiver" />
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button @click="sendToUser" type="primary">
|
||||
<el-button type="primary" @click="sendToUser">
|
||||
发送点对点消息
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
|
||||
Reference in New Issue
Block a user