matrix_components 2.0.317 → 2.0.319
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/dist/ComponentDemo/DialogDemo.vue +210 -0
- package/dist/ComponentDemo/ExampleFormConfig.js +270 -0
- package/dist/ComponentDemo/ExcelDemo.vue +263 -0
- package/dist/ComponentDemo/FormDemo.vue +400 -0
- package/dist/ComponentDemo/ImageDemo.vue +143 -0
- package/dist/ComponentDemo/MDDemo.vue +20 -0
- package/dist/ComponentDemo/OfficeDemo.vue +189 -0
- package/dist/ComponentDemo/PdfDemo.vue +207 -0
- package/dist/ComponentDemo/SaturationLineDemo.vue +158 -0
- package/dist/ComponentDemo/SimpleFormConfig.json +97 -0
- package/dist/ComponentDemo/Test.vue +347 -0
- package/dist/ComponentDemo/TestFormConfig.js +129 -0
- package/dist/ComponentDemo/VideoDemo copy 2.vue +268 -0
- package/dist/ComponentDemo/VideoDemo copy 3.vue +356 -0
- package/dist/ComponentDemo/VideoDemo copy.vue +289 -0
- package/dist/ComponentDemo/VideoDemo.vue +356 -0
- package/dist/ComponentDemo/WordDemo.vue +191 -0
- package/dist/matrix_components.css +1 -1
- package/dist/matrix_components.js +159 -152
- package/dist/matrix_components.umd.cjs +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,356 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { onMounted, reactive, ref, nextTick } from 'vue'
|
|
3
|
+
import { useVideoDraw } from '../hooks/videoDraw'
|
|
4
|
+
|
|
5
|
+
const nsVideoRef = ref()
|
|
6
|
+
|
|
7
|
+
// 视频信息
|
|
8
|
+
const videoData = reactive({
|
|
9
|
+
// videoModel: 'hk',
|
|
10
|
+
// hkPath: '/martrix/cdn/h5player',
|
|
11
|
+
// 显示视频关闭按钮
|
|
12
|
+
showClose: false,
|
|
13
|
+
// 显示树
|
|
14
|
+
showTree: true,
|
|
15
|
+
// 树数据
|
|
16
|
+
treeData: [
|
|
17
|
+
{
|
|
18
|
+
id: '1',
|
|
19
|
+
label: '分组1',
|
|
20
|
+
children: [
|
|
21
|
+
{
|
|
22
|
+
id: '11',
|
|
23
|
+
label: '分组1-1',
|
|
24
|
+
children: [
|
|
25
|
+
{
|
|
26
|
+
videoModel: 'easyplayer',
|
|
27
|
+
id: '111',
|
|
28
|
+
label: '视频A--1视频A--1视频A--1',
|
|
29
|
+
url: 'http://199.10.9.192:30200/rtp/34020000001110000001_34020000001320000001/hls.m3u8',
|
|
30
|
+
deviceId: 'a1',
|
|
31
|
+
channelId: 'a11',
|
|
32
|
+
icontype: 'on',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
id: 'D',
|
|
36
|
+
label: '视频A--2',
|
|
37
|
+
url: 'ws://199.10.9.192:30200/rtp/34020000001110000001_34020000001320000013.live.flv',
|
|
38
|
+
deviceId: 'b1',
|
|
39
|
+
channelId: 'b11',
|
|
40
|
+
icontype: 'off',
|
|
41
|
+
},
|
|
42
|
+
],
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
id: 'b',
|
|
46
|
+
label: '分组b',
|
|
47
|
+
children: [
|
|
48
|
+
{
|
|
49
|
+
id: 'b1',
|
|
50
|
+
label: '视频A--1视频A--1视频A--1视频A--1视频A--1视频A--1视频A--1视频A--1视频A--1视频A--1视频A--1视频A--1视频A--1视频A--1视频A--1视频A--1',
|
|
51
|
+
url: 'ws://199.10.9.192:30200/rtp/34020000001110000001_34020000001320000003.live.flv',
|
|
52
|
+
deviceId: 'a1',
|
|
53
|
+
channelId: 'a11',
|
|
54
|
+
icontype: 'on',
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
id: 'b2',
|
|
58
|
+
label: '视频A--2',
|
|
59
|
+
url: 'ws://199.10.9.192:30200/rtp/34020000001110000001_34020000001320000015.live.flv',
|
|
60
|
+
deviceId: 'b1',
|
|
61
|
+
channelId: 'b11',
|
|
62
|
+
icontype: 'off',
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
id: 'b3',
|
|
66
|
+
label: '视频A--3',
|
|
67
|
+
url: 'ws://199.10.9.192:30200/rtp/34020000001110000001_34020000001320000009.live.flv',
|
|
68
|
+
deviceId: 'c1',
|
|
69
|
+
channelId: 'c11',
|
|
70
|
+
},
|
|
71
|
+
],
|
|
72
|
+
},
|
|
73
|
+
],
|
|
74
|
+
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
id: 'xxx2',
|
|
78
|
+
label: '视频Zxxxx2',
|
|
79
|
+
url: 'ws://199.10.9.192:30200/rtp/34020000001110000001_34020000001320000009.live.flv',
|
|
80
|
+
deviceId: '34020000001110000001',
|
|
81
|
+
channelId: '34020000001320000003',
|
|
82
|
+
},
|
|
83
|
+
],
|
|
84
|
+
// 树节点对应的key(!!!用于改变选中后的颜色)
|
|
85
|
+
treeNodeKey: 'id',
|
|
86
|
+
// 树节点展开的key
|
|
87
|
+
treeExpandedKeys: ['11'],
|
|
88
|
+
// 树节点属性 (videoUrlKey值要和treeData中的播放地址key一致, 默认为url)
|
|
89
|
+
treeOptions: {
|
|
90
|
+
icontype: 'icontype',
|
|
91
|
+
background: 'background',
|
|
92
|
+
videoUrlKey: 'url',
|
|
93
|
+
children: 'children',
|
|
94
|
+
label: 'label',
|
|
95
|
+
},
|
|
96
|
+
// 获取、设置打开的播放视频信息
|
|
97
|
+
videoInfos: [
|
|
98
|
+
{
|
|
99
|
+
index: 0,
|
|
100
|
+
url: 'https://sf3-ttcdn-tos.pstatp.com/obj/developer/bytdance.flv',
|
|
101
|
+
info: {
|
|
102
|
+
videoModel: 'easyplayer',
|
|
103
|
+
id: 'xxx2',
|
|
104
|
+
url: 'https://sf3-ttcdn-tos.pstatp.com/obj/developer/bytdance.flv',
|
|
105
|
+
deviceId: 'c1',
|
|
106
|
+
channelId: 'c11',
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
],
|
|
110
|
+
// !!! 单点播放
|
|
111
|
+
videoSingleUrl: false,
|
|
112
|
+
// !!! 已经在播放的是否关闭后再点击打开(需要单点播 videoSingleUrl:true)
|
|
113
|
+
videoSingleClose: false,
|
|
114
|
+
// 回调函数后是否继续执行默认播放操作
|
|
115
|
+
callbackContinueExecute: true,
|
|
116
|
+
// 播放模式: 1: 单击,2: 双击
|
|
117
|
+
videoPlayModel: 1,
|
|
118
|
+
// 分屏模式: 1: 单屏, 2: 四屏, 3: 九屏
|
|
119
|
+
videoSplitType: 1,
|
|
120
|
+
// 显示分屏按钮
|
|
121
|
+
showVideoSplit: true,
|
|
122
|
+
// 分屏使用图标
|
|
123
|
+
// videoSplitUseIcon: true,
|
|
124
|
+
// 显示方向控制按钮
|
|
125
|
+
showVideoCtrls: false,
|
|
126
|
+
// 禁止控制按钮默认请求行为(默认false,true则不使用组件的发送请求仅调用自定义回调函数)
|
|
127
|
+
stopVideoCtrlMethods: true,
|
|
128
|
+
// 单个视频错误最大次数
|
|
129
|
+
videoErrorMaxCount: 3,
|
|
130
|
+
// easyplayer配置 (默认一般不需要配置, 加载不出来的时候修改)
|
|
131
|
+
videoConfig: {
|
|
132
|
+
MSE: true,
|
|
133
|
+
WCS: true,
|
|
134
|
+
WASM:true,
|
|
135
|
+
WASMSIMD: true,
|
|
136
|
+
isLive: true,
|
|
137
|
+
hasAudio: false,
|
|
138
|
+
stretch: false
|
|
139
|
+
},
|
|
140
|
+
})
|
|
141
|
+
|
|
142
|
+
const drawW = ref('0')
|
|
143
|
+
const drawH = ref('0')
|
|
144
|
+
const videoPlayerCoverRef = ref()
|
|
145
|
+
const videoDrawRef = ref()
|
|
146
|
+
const canvasRef = ref()
|
|
147
|
+
|
|
148
|
+
// 使用画布绘图功能
|
|
149
|
+
const {
|
|
150
|
+
initCanvas,
|
|
151
|
+
clearCanvas,
|
|
152
|
+
drawFromCoordinates,
|
|
153
|
+
getState,
|
|
154
|
+
points,
|
|
155
|
+
areaCoordinates,
|
|
156
|
+
isDrawing,
|
|
157
|
+
isComplete
|
|
158
|
+
} = useVideoDraw()
|
|
159
|
+
|
|
160
|
+
// 视频操作事件
|
|
161
|
+
const videoEvent = {
|
|
162
|
+
videoOriginalInfo: (info: any) => {
|
|
163
|
+
console.log('===============>视频原始信息:', info)
|
|
164
|
+
const coverEle = videoPlayerCoverRef.value;
|
|
165
|
+
const currentVideoInfo = info?.[0]
|
|
166
|
+
if(coverEle && currentVideoInfo?.width && currentVideoInfo?.height){
|
|
167
|
+
let _w = coverEle.clientWidth
|
|
168
|
+
let _h = coverEle.clientHeight
|
|
169
|
+
if(currentVideoInfo.width > currentVideoInfo.height){
|
|
170
|
+
_h = _w * (currentVideoInfo.height / currentVideoInfo.width)
|
|
171
|
+
}else{
|
|
172
|
+
_w = _h * (currentVideoInfo.width / currentVideoInfo.height)
|
|
173
|
+
}
|
|
174
|
+
drawW.value = _w + 'px'
|
|
175
|
+
drawH.value = _h + 'px'
|
|
176
|
+
|
|
177
|
+
// 初始化画布绘图功能
|
|
178
|
+
nextTick(() => {
|
|
179
|
+
if (canvasRef.value && videoDrawRef.value) {
|
|
180
|
+
// 确保canvas尺寸正确
|
|
181
|
+
canvasRef.value.width = videoDrawRef.value.clientWidth
|
|
182
|
+
canvasRef.value.height = videoDrawRef.value.clientHeight
|
|
183
|
+
|
|
184
|
+
initCanvas(canvasRef.value, videoDrawRef.value)
|
|
185
|
+
console.log('画布绘图功能已初始化,尺寸:', videoDrawRef.value.clientWidth, 'x', videoDrawRef.value.clientHeight)
|
|
186
|
+
}
|
|
187
|
+
})
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
// 显示绘图状态和坐标
|
|
193
|
+
const showDrawInfo = () => {
|
|
194
|
+
const state = getState()
|
|
195
|
+
console.log('当前绘图状态:', state)
|
|
196
|
+
|
|
197
|
+
if (state.points.length > 0) {
|
|
198
|
+
console.log('所有点坐标:', state.points)
|
|
199
|
+
console.log('区域信息:', state.areaCoordinates)
|
|
200
|
+
|
|
201
|
+
// 可以在这里处理坐标数据,比如发送到后端或保存到本地
|
|
202
|
+
localStorage.setItem('videoCanvasCoordinates', JSON.stringify(state.points))
|
|
203
|
+
|
|
204
|
+
alert(`已获取 ${state.points.length} 个点的坐标,数据已保存到控制台和localStorage`)
|
|
205
|
+
} else {
|
|
206
|
+
alert('当前没有绘制任何点')
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
// 测试回显功能
|
|
211
|
+
const testDrawFromCoordinates = () => {
|
|
212
|
+
const testCoordinates = [
|
|
213
|
+
{ x: 100, y: 100 },
|
|
214
|
+
{ x: 200, y: 50 },
|
|
215
|
+
{ x: 300, y: 150 },
|
|
216
|
+
{ x: 250, y: 250 },
|
|
217
|
+
{ x: 150, y: 200 }
|
|
218
|
+
]
|
|
219
|
+
drawFromCoordinates(testCoordinates)
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
onMounted(() => {
|
|
223
|
+
// 示例:可以在这里添加一些初始化逻辑
|
|
224
|
+
})
|
|
225
|
+
|
|
226
|
+
function changeSplitHandler(num: number) {
|
|
227
|
+
console.log('分屏模式:如1,2,3代表单屏,四屏,九屏', num)
|
|
228
|
+
}
|
|
229
|
+
</script>
|
|
230
|
+
|
|
231
|
+
<template>
|
|
232
|
+
<div class="video-demo">
|
|
233
|
+
<h1 class="title" style="color: #fff" v-sline>视频组件(国标28181 + 海康威视)</h1>
|
|
234
|
+
|
|
235
|
+
<!-- 画布控制面板 -->
|
|
236
|
+
<div class="canvas-controls" v-if="isDrawing || isComplete">
|
|
237
|
+
<div class="canvas-status">
|
|
238
|
+
<span>绘图状态: {{ isDrawing ? '绘制中' : isComplete ? '已完成' : '未开始' }}</span>
|
|
239
|
+
<span>点数: {{ points.length }}</span>
|
|
240
|
+
<span v-if="areaCoordinates">区域: {{ areaCoordinates.width }} × {{ areaCoordinates.height }}</span>
|
|
241
|
+
</div>
|
|
242
|
+
<div class="canvas-buttons">
|
|
243
|
+
<button @click="clearCanvas" class="btn-clear">清除画布</button>
|
|
244
|
+
<button @click="testDrawFromCoordinates" class="btn-test">测试回显</button>
|
|
245
|
+
<button @click="showDrawInfo" class="btn-info">显示坐标</button>
|
|
246
|
+
</div>
|
|
247
|
+
</div>
|
|
248
|
+
|
|
249
|
+
<NsVideo class="nsvideo" ref="nsVideoRef" v-bind="videoData" v-on="videoEvent" @changeSplit='changeSplitHandler'>
|
|
250
|
+
<template #video-player-cover>
|
|
251
|
+
<div class="video-player-cover" ref="videoPlayerCoverRef">
|
|
252
|
+
<div class="video-draw" ref="videoDrawRef">
|
|
253
|
+
<canvas ref="canvasRef" width="100%" height="100%" class="video-canvas"></canvas>
|
|
254
|
+
</div>
|
|
255
|
+
</div>
|
|
256
|
+
</template>
|
|
257
|
+
</NsVideo>
|
|
258
|
+
</div>
|
|
259
|
+
</template>
|
|
260
|
+
|
|
261
|
+
<style scoped lang="scss">
|
|
262
|
+
.video-demo {
|
|
263
|
+
display: flex;
|
|
264
|
+
flex-direction: column;
|
|
265
|
+
height: 100%;
|
|
266
|
+
background-color: #0f2a3b;
|
|
267
|
+
|
|
268
|
+
.title {
|
|
269
|
+
margin-bottom: 10px;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
// 画布控制面板样式
|
|
273
|
+
.canvas-controls {
|
|
274
|
+
background: rgba(255, 255, 255, 0.1);
|
|
275
|
+
padding: 10px;
|
|
276
|
+
border-radius: 4px;
|
|
277
|
+
margin-bottom: 10px;
|
|
278
|
+
display: flex;
|
|
279
|
+
justify-content: space-between;
|
|
280
|
+
align-items: center;
|
|
281
|
+
|
|
282
|
+
.canvas-status {
|
|
283
|
+
display: flex;
|
|
284
|
+
gap: 15px;
|
|
285
|
+
color: #fff;
|
|
286
|
+
font-size: 14px;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.canvas-buttons {
|
|
290
|
+
display: flex;
|
|
291
|
+
gap: 10px;
|
|
292
|
+
|
|
293
|
+
button {
|
|
294
|
+
padding: 6px 12px;
|
|
295
|
+
border: none;
|
|
296
|
+
border-radius: 4px;
|
|
297
|
+
cursor: pointer;
|
|
298
|
+
font-size: 12px;
|
|
299
|
+
transition: background-color 0.3s;
|
|
300
|
+
|
|
301
|
+
&.btn-clear {
|
|
302
|
+
background: #ff6b6b;
|
|
303
|
+
color: white;
|
|
304
|
+
|
|
305
|
+
&:hover {
|
|
306
|
+
background: #ff5252;
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
&.btn-test {
|
|
311
|
+
background: #4ecdc4;
|
|
312
|
+
color: white;
|
|
313
|
+
|
|
314
|
+
&:hover {
|
|
315
|
+
background: #26a69a;
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
&.btn-info {
|
|
320
|
+
background: #45b7d1;
|
|
321
|
+
color: white;
|
|
322
|
+
|
|
323
|
+
&:hover {
|
|
324
|
+
background: #3498db;
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
.video-player-cover {
|
|
332
|
+
pointer-events: none;
|
|
333
|
+
position: absolute;
|
|
334
|
+
top: 0;
|
|
335
|
+
left: 0;
|
|
336
|
+
width: 100%;
|
|
337
|
+
height: 100%;
|
|
338
|
+
display: flex;
|
|
339
|
+
justify-content: center;
|
|
340
|
+
align-items: center;
|
|
341
|
+
|
|
342
|
+
.video-draw {
|
|
343
|
+
pointer-events: auto;
|
|
344
|
+
width: v-bind(drawW);
|
|
345
|
+
height: v-bind(drawH);
|
|
346
|
+
|
|
347
|
+
.video-canvas {
|
|
348
|
+
width: 100%;
|
|
349
|
+
height: 100%;
|
|
350
|
+
background-color: rgba(0, 255, 234, 0.1);
|
|
351
|
+
cursor: crosshair;
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
</style>
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="demo-container">
|
|
3
|
+
<div class="control-panel">
|
|
4
|
+
<h3>Word 文档预览演示</h3>
|
|
5
|
+
|
|
6
|
+
<!-- 文件上传方式 -->
|
|
7
|
+
<div class="upload-section">
|
|
8
|
+
<h4>方式一:文件上传</h4>
|
|
9
|
+
<input
|
|
10
|
+
type="file"
|
|
11
|
+
@change="importWord(($event.target as any)?.files?.[0])"
|
|
12
|
+
accept=".docx"
|
|
13
|
+
/>
|
|
14
|
+
<button @click="clearFile" :disabled="!file">清除文件</button>
|
|
15
|
+
</div>
|
|
16
|
+
|
|
17
|
+
<!-- URL方式 -->
|
|
18
|
+
<div class="url-section">
|
|
19
|
+
<h4>方式二:URL地址</h4>
|
|
20
|
+
<input
|
|
21
|
+
v-model="wordUrl"
|
|
22
|
+
type="text"
|
|
23
|
+
placeholder="请输入Word文档的URL地址"
|
|
24
|
+
class="url-input"
|
|
25
|
+
/>
|
|
26
|
+
<button @click="loadFromUrl" :disabled="!wordUrl.trim()">加载URL</button>
|
|
27
|
+
<button @click="clearUrl" :disabled="!wordUrl">清除URL</button>
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
<!-- Word组件 -->
|
|
32
|
+
<div class="word-container">
|
|
33
|
+
<NsWord
|
|
34
|
+
v-if="counts"
|
|
35
|
+
ref="wordRef"
|
|
36
|
+
:url="currentUrl"
|
|
37
|
+
:hasTool="true"
|
|
38
|
+
:options="wordOptions">
|
|
39
|
+
</NsWord>
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
</template>
|
|
43
|
+
|
|
44
|
+
<script setup lang="ts">
|
|
45
|
+
import { ref, nextTick } from 'vue'
|
|
46
|
+
|
|
47
|
+
const counts = ref(true)
|
|
48
|
+
const file = ref()
|
|
49
|
+
const wordRef = ref()
|
|
50
|
+
const wordUrl = ref(
|
|
51
|
+
'https://501351981.github.io/vue-office/examples/dist/static/test-files/test.docx',
|
|
52
|
+
)
|
|
53
|
+
const currentUrl = ref(wordUrl.value)
|
|
54
|
+
|
|
55
|
+
// Word文档配置选项
|
|
56
|
+
const wordOptions = ref({
|
|
57
|
+
// 可以在这里配置@vue-office/docx的选项
|
|
58
|
+
})
|
|
59
|
+
|
|
60
|
+
function importWord(f: any) {
|
|
61
|
+
// 清除URL,使用文件上传
|
|
62
|
+
wordUrl.value = ''
|
|
63
|
+
file.value = f
|
|
64
|
+
|
|
65
|
+
if (f && f.name.endsWith('.docx')) {
|
|
66
|
+
// 创建文件URL
|
|
67
|
+
const fileUrl = URL.createObjectURL(f)
|
|
68
|
+
currentUrl.value = fileUrl
|
|
69
|
+
} else if (f) {
|
|
70
|
+
alert('请选择DOCX文件')
|
|
71
|
+
clearFile()
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
function loadFromUrl() {
|
|
76
|
+
if (wordUrl.value.trim()) {
|
|
77
|
+
// 清除文件,使用URL
|
|
78
|
+
clearFile()
|
|
79
|
+
currentUrl.value = wordUrl.value.trim()
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
function clearFile() {
|
|
84
|
+
file.value = null
|
|
85
|
+
if (currentUrl.value.startsWith('blob:')) {
|
|
86
|
+
URL.revokeObjectURL(currentUrl.value)
|
|
87
|
+
}
|
|
88
|
+
currentUrl.value = ''
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
function clearUrl() {
|
|
92
|
+
wordUrl.value = ''
|
|
93
|
+
currentUrl.value = ''
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
// 重新加载组件
|
|
97
|
+
function reloadComponent() {
|
|
98
|
+
counts.value = false
|
|
99
|
+
nextTick(() => {
|
|
100
|
+
counts.value = true
|
|
101
|
+
})
|
|
102
|
+
}
|
|
103
|
+
</script>
|
|
104
|
+
|
|
105
|
+
<style scoped lang="scss">
|
|
106
|
+
.demo-container {
|
|
107
|
+
padding: 20px;
|
|
108
|
+
max-width: 1400px;
|
|
109
|
+
margin: 0 auto;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.control-panel {
|
|
113
|
+
background: #f5f5f5;
|
|
114
|
+
padding: 20px;
|
|
115
|
+
border-radius: 8px;
|
|
116
|
+
margin-bottom: 20px;
|
|
117
|
+
|
|
118
|
+
h3 {
|
|
119
|
+
margin: 0 0 20px 0;
|
|
120
|
+
color: #333;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
h4 {
|
|
124
|
+
margin: 15px 0 10px 0;
|
|
125
|
+
color: #666;
|
|
126
|
+
font-size: 14px;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.upload-section,
|
|
131
|
+
.url-section {
|
|
132
|
+
margin-bottom: 20px;
|
|
133
|
+
padding: 15px;
|
|
134
|
+
background: white;
|
|
135
|
+
border-radius: 6px;
|
|
136
|
+
border: 1px solid #e0e0e0;
|
|
137
|
+
|
|
138
|
+
input[type='file'] {
|
|
139
|
+
margin-right: 10px;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.url-input {
|
|
143
|
+
width: 300px;
|
|
144
|
+
padding: 8px 12px;
|
|
145
|
+
border: 1px solid #ddd;
|
|
146
|
+
border-radius: 4px;
|
|
147
|
+
margin-right: 10px;
|
|
148
|
+
font-size: 14px;
|
|
149
|
+
|
|
150
|
+
&:focus {
|
|
151
|
+
outline: none;
|
|
152
|
+
border-color: #409eff;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
button {
|
|
157
|
+
padding: 8px 16px;
|
|
158
|
+
background: #409eff;
|
|
159
|
+
color: white;
|
|
160
|
+
border: none;
|
|
161
|
+
border-radius: 4px;
|
|
162
|
+
cursor: pointer;
|
|
163
|
+
margin-right: 10px;
|
|
164
|
+
font-size: 14px;
|
|
165
|
+
|
|
166
|
+
&:hover:not(:disabled) {
|
|
167
|
+
background: #337ecc;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
&:disabled {
|
|
171
|
+
background: #c0c4cc;
|
|
172
|
+
cursor: not-allowed;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.word-container {
|
|
178
|
+
height: 600px;
|
|
179
|
+
border: 1px solid #e0e0e0;
|
|
180
|
+
border-radius: 8px;
|
|
181
|
+
overflow: hidden;
|
|
182
|
+
margin-bottom: 20px;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
@media (max-width: 768px) {
|
|
186
|
+
.url-input {
|
|
187
|
+
width: 100% !important;
|
|
188
|
+
margin-bottom: 10px;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
</style>
|