matrix_components 2.0.300

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.
Files changed (68) hide show
  1. package/README.md +438 -0
  2. package/dist/ComponentDemo/DialogDemo.vue +208 -0
  3. package/dist/ComponentDemo/ExcelDemo.vue +263 -0
  4. package/dist/ComponentDemo/OfficeDemo.vue +189 -0
  5. package/dist/ComponentDemo/PdfDemo.vue +207 -0
  6. package/dist/ComponentDemo/Test.vue +6 -0
  7. package/dist/ComponentDemo/VideoDemo.vue +273 -0
  8. package/dist/ComponentDemo/WordDemo.vue +191 -0
  9. package/dist/cdn/ezuikit/ezuikit.js +27 -0
  10. package/dist/cdn/ezuikit/ezuikit_static/PlayCtrlWasm/playCtrl1/HasSIMD/Decoder.js +168 -0
  11. package/dist/cdn/ezuikit/ezuikit_static/PlayCtrlWasm/playCtrl1/NoSIMD/Decoder.js +168 -0
  12. package/dist/cdn/ezuikit/ezuikit_static/PlayCtrlWasm/playCtrl3/hasWorker/HasSIMD/Decoder.js +21 -0
  13. package/dist/cdn/ezuikit/ezuikit_static/PlayCtrlWasm/playCtrl3/hasWorker/HasSIMD/Decoder.wasm +0 -0
  14. package/dist/cdn/ezuikit/ezuikit_static/PlayCtrlWasm/playCtrl3/hasWorker/HasSIMD/Decoder.worker.js +1 -0
  15. package/dist/cdn/ezuikit/ezuikit_static/PlayCtrlWasm/playCtrl3/hasWorker/NoSIMD/Decoder.js +21 -0
  16. package/dist/cdn/ezuikit/ezuikit_static/PlayCtrlWasm/playCtrl3/hasWorker/NoSIMD/Decoder.wasm +0 -0
  17. package/dist/cdn/ezuikit/ezuikit_static/PlayCtrlWasm/playCtrl3/hasWorker/NoSIMD/Decoder.worker.js +1 -0
  18. package/dist/cdn/ezuikit/ezuikit_static/PlayCtrlWasm/playCtrl3/noWorker/Decoder.js +21 -0
  19. package/dist/cdn/ezuikit/ezuikit_static/PlayCtrlWasm/playCtrl3/noWorker/Decoder.wasm +0 -0
  20. package/dist/cdn/ezuikit/ezuikit_static/css/component.css +1257 -0
  21. package/dist/cdn/ezuikit/ezuikit_static/css/inspectTheme.css +354 -0
  22. package/dist/cdn/ezuikit/ezuikit_static/css/theme copy.css +126 -0
  23. package/dist/cdn/ezuikit/ezuikit_static/css/theme.css +140 -0
  24. package/dist/cdn/ezuikit/ezuikit_static/imgs/bg.png +0 -0
  25. package/dist/cdn/ezuikit/ezuikit_static/imgs/bg.svg +33 -0
  26. package/dist/cdn/ezuikit/ezuikit_static/imgs/empty.png +0 -0
  27. package/dist/cdn/ezuikit/ezuikit_static/imgs/end.png +0 -0
  28. package/dist/cdn/ezuikit/ezuikit_static/imgs/fallback.svg +52 -0
  29. package/dist/cdn/ezuikit/ezuikit_static/imgs/start.png +0 -0
  30. package/dist/cdn/ezuikit/ezuikit_static/rec/datepicker.js +1522 -0
  31. package/dist/cdn/ezuikit/ezuikit_static/rec/datepicker.min.css +36 -0
  32. package/dist/cdn/ezuikit/ezuikit_static/rec/datepicker.zh-CN.js +19 -0
  33. package/dist/cdn/ezuikit/ezuikit_static/rec/jquery.min.js +2 -0
  34. package/dist/cdn/ezuikit/ezuikit_static/speed/speed.css +145 -0
  35. package/dist/cdn/ezuikit/ezuikit_static/talk/adapeter.js +5497 -0
  36. package/dist/cdn/ezuikit/ezuikit_static/talk/janus.js +3507 -0
  37. package/dist/cdn/ezuikit/ezuikit_static/talk/tts-v4.js +343 -0
  38. package/dist/cdn/ezuikit.js +27 -0
  39. package/dist/cdn/h5player/h5player.min.js +313 -0
  40. package/dist/cdn/h5player/playctrl1/DecodeWorker.js +642 -0
  41. package/dist/cdn/h5player/playctrl1/Decoder.js +1 -0
  42. package/dist/cdn/h5player/playctrl1simd/DecodeWorker.js +642 -0
  43. package/dist/cdn/h5player/playctrl1simd/Decoder.js +1 -0
  44. package/dist/cdn/h5player/playctrl2/Decoder.js +21 -0
  45. package/dist/cdn/h5player/playctrl2/Decoder.wasm +0 -0
  46. package/dist/cdn/h5player/playctrl2/Decoder.worker.js +1 -0
  47. package/dist/cdn/h5player/playctrl3/Decoder.js +21 -0
  48. package/dist/cdn/h5player/playctrl3/Decoder.wasm +0 -0
  49. package/dist/cdn/h5player/playctrl3/Decoder.worker.js +1 -0
  50. package/dist/cdn/h5player/talk/AudioInterCom.js +21 -0
  51. package/dist/cdn/h5player/talk/AudioInterCom.wasm +0 -0
  52. package/dist/cdn/h5player/talkW/AudioInterCom.js +21 -0
  53. package/dist/cdn/h5player/talkW/AudioInterCom.wasm +0 -0
  54. package/dist/cdn/h5player/talkW/AudioInterCom.worker.js +1 -0
  55. package/dist/cdn/h5player/transform/libSystemTransform.js +6525 -0
  56. package/dist/cdn/h5player/transform/libSystemTransform.wasm +0 -0
  57. package/dist/cdn/h5player/transform/systemTransform-worker.js +120 -0
  58. package/dist/cdn/md5.js +254 -0
  59. package/dist/favicon.ico +0 -0
  60. package/dist/js/EasyPlayer-decode.js +1 -0
  61. package/dist/js/EasyPlayer-lib.js +1 -0
  62. package/dist/js/EasyPlayer-pro.js +1 -0
  63. package/dist/js/EasyPlayer-pro.wasm +0 -0
  64. package/dist/js/EasyPlayer-snap.wasm +0 -0
  65. package/dist/matrix_components.css +1 -0
  66. package/dist/matrix_components.js +60018 -0
  67. package/dist/matrix_components.umd.cjs +1 -0
  68. package/package.json +81 -0
@@ -0,0 +1,263 @@
1
+ <template>
2
+ <div class="demo-container">
3
+ <div class="control-panel">
4
+ <h3>Excel 预览演示</h3>
5
+
6
+ <!-- 文件上传方式 -->
7
+ <div class="upload-section">
8
+ <h4>方式一:文件上传</h4>
9
+ <el-form-item label="弹框模式:">
10
+ <el-switch v-model="isShowDialog" @change="hideExcelHandler" />
11
+ </el-form-item>
12
+ <input
13
+ type="file"
14
+ @change="importExcel(($event.target as any)?.files?.[0])"
15
+ accept=".xls,.xlsx"
16
+ />
17
+ <button @click="clearFile" :disabled="!file">清除文件</button>
18
+ </div>
19
+
20
+ <!-- URL方式 -->
21
+ <div class="url-section">
22
+ <h4>方式二:URL地址</h4>
23
+ <input
24
+ v-model="excelUrl"
25
+ type="text"
26
+ placeholder="请输入Excel文件的URL地址"
27
+ class="url-input"
28
+ />
29
+ <button @click="loadFromUrl" :disabled="!excelUrl.trim()">加载URL</button>
30
+ <button @click="clearUrl" :disabled="!excelUrl">清除URL</button>
31
+ </div>
32
+ <button @click="exportExcel" class="export-btn">导出数据</button>
33
+ </div>
34
+
35
+ <!-- Excel组件 -->
36
+ <div class="excel-container">
37
+ <NsExcel
38
+ v-if="counts"
39
+ class="excel"
40
+ :file="file"
41
+ :isShowDialog="isShowDialog"
42
+ dialogWidth="1200px"
43
+ dialogHeight="700px"
44
+ ref="excelRef"
45
+ exportType="2"
46
+ @dialogExport="dialogExport"
47
+ ></NsExcel>
48
+ </div>
49
+ <!-- 导出数据展示 -->
50
+ <div class="data-display">
51
+ <div class="data-section">
52
+ <h4>导出数据格式1 (原始格式)</h4>
53
+ <pre>{{ data1 }}</pre>
54
+ </div>
55
+ <div class="data-section">
56
+ <h4>导出数据格式2 (Excel格式)</h4>
57
+ <pre>{{ data2 }}</pre>
58
+ </div>
59
+ </div>
60
+ </div>
61
+ </template>
62
+ <script setup lang="ts">
63
+ import { nextTick, ref, watch } from 'vue'
64
+
65
+ const counts = ref(true)
66
+ const isShowDialog = ref(false)
67
+ const file = ref()
68
+ const excelRef = ref()
69
+ const data1 = ref()
70
+ const data2 = ref()
71
+ const excelUrl = ref(
72
+ 'https://501351981.github.io/vue-office/examples/dist/static/test-files/test.xlsx',
73
+ )
74
+
75
+ function hideExcelHandler(val: boolean) {
76
+ counts.value = false
77
+ nextTick(() => {
78
+ counts.value = true
79
+ isShowDialog.value = val
80
+ })
81
+ }
82
+
83
+ function importExcel(f: any) {
84
+ // 清除URL,使用文件上传
85
+ excelUrl.value = ''
86
+ file.value = f
87
+ }
88
+
89
+ function loadFromUrl() {
90
+ if (excelUrl.value.trim()) {
91
+ // 清除文件,使用URL
92
+ file.value = excelUrl.value.trim()
93
+ }
94
+ }
95
+
96
+ function clearFile() {
97
+ file.value = null
98
+ data1.value = null
99
+ data2.value = null
100
+ }
101
+
102
+ function clearUrl() {
103
+ excelUrl.value = ''
104
+ data1.value = null
105
+ data2.value = null
106
+ }
107
+
108
+ function dialogExport(data: any) {
109
+ console.warn(`excel导出数据:${data}`)
110
+ }
111
+
112
+ function exportExcel() {
113
+ if (excelRef.value) {
114
+ data1.value = excelRef.value.exportExcel(1)
115
+ data2.value = excelRef.value.exportExcel(2)
116
+ }
117
+ }
118
+ </script>
119
+ <style scoped lang="scss">
120
+ .demo-container {
121
+ padding: 20px;
122
+ max-width: 1400px;
123
+ margin: 0 auto;
124
+ }
125
+
126
+ .control-panel {
127
+ background: #f5f5f5;
128
+ padding: 20px;
129
+ border-radius: 8px;
130
+ margin-bottom: 20px;
131
+
132
+ h3 {
133
+ margin: 0 0 20px 0;
134
+ color: #333;
135
+ }
136
+
137
+ h4 {
138
+ margin: 15px 0 10px 0;
139
+ color: #666;
140
+ font-size: 14px;
141
+ }
142
+ }
143
+
144
+ .upload-section,
145
+ .url-section,
146
+ .example-section {
147
+ margin-bottom: 20px;
148
+ padding: 15px;
149
+ background: white;
150
+ border-radius: 6px;
151
+ border: 1px solid #e0e0e0;
152
+
153
+ input[type='file'] {
154
+ margin-right: 10px;
155
+ }
156
+
157
+ .url-input {
158
+ width: 300px;
159
+ padding: 8px 12px;
160
+ border: 1px solid #ddd;
161
+ border-radius: 4px;
162
+ margin-right: 10px;
163
+ font-size: 14px;
164
+
165
+ &:focus {
166
+ outline: none;
167
+ border-color: #409eff;
168
+ }
169
+ }
170
+
171
+ button {
172
+ padding: 8px 16px;
173
+ background: #409eff;
174
+ color: white;
175
+ border: none;
176
+ border-radius: 4px;
177
+ cursor: pointer;
178
+ margin-right: 10px;
179
+ font-size: 14px;
180
+
181
+ &:hover:not(:disabled) {
182
+ background: #337ecc;
183
+ }
184
+
185
+ &:disabled {
186
+ background: #c0c4cc;
187
+ cursor: not-allowed;
188
+ }
189
+ }
190
+ }
191
+
192
+ .export-btn {
193
+ padding: 10px 20px;
194
+ background: #67c23a;
195
+ color: white;
196
+ border: none;
197
+ border-radius: 4px;
198
+ cursor: pointer;
199
+ font-size: 16px;
200
+ font-weight: bold;
201
+
202
+ &:hover {
203
+ background: #5daf34;
204
+ }
205
+ }
206
+
207
+ .excel {
208
+ width: 100%;
209
+ height: 500px;
210
+ border: 1px solid #e0e0e0;
211
+ border-radius: 8px;
212
+ overflow: hidden;
213
+ margin-bottom: 20px;
214
+ }
215
+
216
+ .data-display {
217
+ display: flex;
218
+ gap: 20px;
219
+ margin-top: 20px;
220
+
221
+ .data-section {
222
+ flex: 1;
223
+ background: #f9f9f9;
224
+ border-radius: 8px;
225
+ padding: 15px;
226
+
227
+ h4 {
228
+ margin: 0 0 10px 0;
229
+ color: #333;
230
+ font-size: 14px;
231
+ }
232
+
233
+ pre {
234
+ background: white;
235
+ padding: 15px;
236
+ border-radius: 4px;
237
+ border: 1px solid #e0e0e0;
238
+ max-height: 300px;
239
+ overflow: auto;
240
+ font-size: 12px;
241
+ line-height: 1.4;
242
+ margin: 0;
243
+ white-space: pre-wrap;
244
+ word-wrap: break-word;
245
+ }
246
+ }
247
+ }
248
+
249
+ .excel-container {
250
+ height: 300px;
251
+ }
252
+
253
+ @media (max-width: 768px) {
254
+ .data-display {
255
+ flex-direction: column;
256
+ }
257
+
258
+ .url-input {
259
+ width: 100% !important;
260
+ margin-bottom: 10px;
261
+ }
262
+ }
263
+ </style>
@@ -0,0 +1,189 @@
1
+ <template>
2
+ <div class="office-demo">
3
+ <h2>NsOffice 组件演示</h2>
4
+
5
+ <div class="demo-controls">
6
+ <!-- 文件上传方式 -->
7
+ <div class="upload-section">
8
+ <h3>方式一:文件上传</h3>
9
+ <input
10
+ type="file"
11
+ @change="importFile(($event.target as any)?.files?.[0])"
12
+ accept=".docx,.xlsx,.xls,.pdf"
13
+ />
14
+ <el-button @click="clearFile" :disabled="!file">清除文件</el-button>
15
+ </div>
16
+
17
+ <!-- URL方式 -->
18
+ <el-form :model="form" label-width="120px" inline>
19
+ <el-form-item label="文件URL:">
20
+ <el-input v-model="form.url" placeholder="请输入文件URL" style="width: 400px" />
21
+ </el-form-item>
22
+
23
+ <el-form-item label="Excel编辑模式:">
24
+ <el-switch v-model="form.isEdit" />
25
+ </el-form-item>
26
+
27
+ <el-form-item>
28
+ <el-button type="primary" @click="loadFile">加载文件</el-button>
29
+ <el-button @click="clearUrl">清空</el-button>
30
+ </el-form-item>
31
+ </el-form>
32
+ </div>
33
+
34
+ <div class="demo-content">
35
+ <el-card v-if="currentUrl">
36
+ <template #header>
37
+ <div class="card-header">
38
+ <span>当前文件: {{ getFileName(currentUrl) }}</span>
39
+ <span class="file-type">类型: {{ getFileTypeDisplay() }}</span>
40
+ </div>
41
+ </template>
42
+
43
+ <div class="office-container">
44
+ <NsOffice v-bind="form" ref="officeRef" />
45
+ </div>
46
+ </el-card>
47
+
48
+ <el-empty v-else description="请输入文件URL或选择预设文件" />
49
+ </div>
50
+ </div>
51
+ </template>
52
+
53
+ <script setup lang="ts">
54
+ import { ref, reactive } from 'vue'
55
+ const form = reactive({
56
+ url: '',
57
+ isEdit: false,
58
+ isShowDialog: false,
59
+ dialogWidth: '1200px',
60
+ dialogHeight: '700px',
61
+ })
62
+
63
+ const currentUrl = ref('')
64
+ const officeRef = ref()
65
+ const file = ref()
66
+
67
+ // 文件上传处理
68
+ function importFile(f: any) {
69
+ // 清除URL,使用文件上传
70
+ form.url = ''
71
+ file.value = f
72
+
73
+ if (f && (f.name.endsWith('.docx') || f.name.endsWith('.xlsx') || f.name.endsWith('.xls') || f.name.endsWith('.pdf'))) {
74
+ // 创建文件URL
75
+ const fileUrl = URL.createObjectURL(f)
76
+ currentUrl.value = fileUrl
77
+ form.url = fileUrl
78
+ } else if (f) {
79
+ alert('请选择支持的文件格式(.docx, .xlsx, .xls, .pdf)')
80
+ clearFile()
81
+ }
82
+ }
83
+
84
+ const loadFile = () => {
85
+ if (form.url.trim()) {
86
+ currentUrl.value = form.url.trim()
87
+ }
88
+ }
89
+
90
+ const clearFile = () => {
91
+ file.value = null
92
+ if (currentUrl.value.startsWith('blob:')) {
93
+ URL.revokeObjectURL(currentUrl.value)
94
+ }
95
+ currentUrl.value = ''
96
+ form.url = ''
97
+ }
98
+
99
+ const clearUrl = () => {
100
+ form.url = ''
101
+ currentUrl.value = ''
102
+ }
103
+
104
+ const getFileName = (url: string) => {
105
+ if (!url) return ''
106
+ const parts = url.split('/')
107
+ return parts[parts.length - 1]
108
+ }
109
+
110
+ const getFileTypeDisplay = () => {
111
+ if (officeRef.value) {
112
+ const fileType = officeRef.value.getFileType()
113
+ switch (fileType) {
114
+ case 'excel':
115
+ return 'Excel文档'
116
+ case 'pdf':
117
+ return 'PDF文档'
118
+ case 'word':
119
+ return 'Word文档'
120
+ case 'unsupported':
121
+ return '不支持的格式'
122
+ default:
123
+ return '未知'
124
+ }
125
+ }
126
+ return '未知'
127
+ }
128
+ </script>
129
+
130
+ <style scoped>
131
+ .office-demo {
132
+ padding: 20px;
133
+ }
134
+
135
+ .demo-controls {
136
+ margin-bottom: 20px;
137
+ padding: 20px;
138
+ background: #f5f5f5;
139
+ border-radius: 8px;
140
+ }
141
+
142
+ .upload-section {
143
+ margin-bottom: 20px;
144
+ padding: 15px;
145
+ background: white;
146
+ border-radius: 6px;
147
+ border: 1px solid #e0e0e0;
148
+ }
149
+
150
+ .upload-section h3 {
151
+ margin: 0 0 10px 0;
152
+ color: #666;
153
+ font-size: 14px;
154
+ }
155
+
156
+ .upload-section input[type='file'] {
157
+ margin-right: 10px;
158
+ }
159
+
160
+ .preset-files {
161
+ margin-top: 20px;
162
+ }
163
+
164
+ .preset-files h3 {
165
+ margin-bottom: 10px;
166
+ color: #666;
167
+ }
168
+
169
+ .demo-content {
170
+ min-height: 700px;
171
+ }
172
+
173
+ .card-header {
174
+ display: flex;
175
+ justify-content: space-between;
176
+ align-items: center;
177
+ }
178
+
179
+ .file-type {
180
+ color: #409eff;
181
+ font-size: 14px;
182
+ }
183
+
184
+ .office-container {
185
+ height: 600px;
186
+ border: 1px solid #e4e7ed;
187
+ border-radius: 4px;
188
+ }
189
+ </style>
@@ -0,0 +1,207 @@
1
+ <template>
2
+ <div class="demo-container">
3
+ <div class="control-panel">
4
+ <h3>PDF 文档预览演示</h3>
5
+
6
+ <!-- 文件上传方式 -->
7
+ <div class="upload-section">
8
+ <h4>方式一:文件上传</h4>
9
+ <input
10
+ type="file"
11
+ @change="importPdf(($event.target as any)?.files?.[0])"
12
+ accept=".pdf"
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="pdfUrl"
22
+ type="text"
23
+ placeholder="请输入PDF文档的URL地址"
24
+ class="url-input"
25
+ />
26
+ <button @click="loadFromUrl" :disabled="!pdfUrl.trim()">加载URL</button>
27
+ <button @click="clearUrl" :disabled="!pdfUrl">清除URL</button>
28
+ </div>
29
+
30
+ <!-- 搜索功能 -->
31
+ <div class="search-section">
32
+ <h4>文档搜索</h4>
33
+ <input
34
+ v-model="searchKeyword"
35
+ type="text"
36
+ placeholder="输入要搜索的关键字"
37
+ class="search-input"
38
+ />
39
+ <button @click="clickPdf" :disabled="!searchKeyword.trim()">搜索</button>
40
+ </div>
41
+ </div>
42
+
43
+ <!-- PDF组件 -->
44
+ <div class="pdf-container">
45
+ <NsPdf
46
+ v-if="counts"
47
+ ref="pdfRef"
48
+ :url="currentUrl"
49
+ :hasTool="true">
50
+ </NsPdf>
51
+ </div>
52
+ </div>
53
+ </template>
54
+
55
+ <script setup lang="ts">
56
+ import { ref, nextTick } from 'vue'
57
+
58
+ const counts = ref(true)
59
+ const file = ref()
60
+ const pdfRef = ref()
61
+ const pdfUrl = ref(
62
+ 'https://501351981.github.io/vue-office/examples/dist/static/test-files/test.pdf',
63
+ )
64
+ const currentUrl = ref(pdfUrl.value)
65
+ const searchKeyword = ref('')
66
+
67
+ function importPdf(f: any) {
68
+ // 清除URL,使用文件上传
69
+ pdfUrl.value = ''
70
+ file.value = f
71
+
72
+ if (f && f.name.endsWith('.pdf')) {
73
+ // 创建文件URL
74
+ const fileUrl = URL.createObjectURL(f)
75
+ currentUrl.value = fileUrl
76
+ } else if (f) {
77
+ alert('请选择PDF文件')
78
+ clearFile()
79
+ }
80
+ }
81
+
82
+ function loadFromUrl() {
83
+ if (pdfUrl.value.trim()) {
84
+ // 清除文件,使用URL
85
+ clearFile()
86
+ currentUrl.value = pdfUrl.value.trim()
87
+ }
88
+ }
89
+
90
+ function clearFile() {
91
+ file.value = null
92
+ if (currentUrl.value.startsWith('blob:')) {
93
+ URL.revokeObjectURL(currentUrl.value)
94
+ }
95
+ currentUrl.value = ''
96
+ }
97
+
98
+ function clearUrl() {
99
+ pdfUrl.value = ''
100
+ currentUrl.value = ''
101
+ }
102
+
103
+ function clickPdf() {
104
+ if (searchKeyword.value.trim() && pdfRef.value) {
105
+ pdfRef.value.search(searchKeyword.value.trim())
106
+ }
107
+ }
108
+
109
+ // 重新加载组件
110
+ function reloadComponent() {
111
+ counts.value = false
112
+ nextTick(() => {
113
+ counts.value = true
114
+ })
115
+ }
116
+ </script>
117
+
118
+ <style scoped lang="scss">
119
+ .demo-container {
120
+ padding: 20px;
121
+ max-width: 1400px;
122
+ margin: 0 auto;
123
+ }
124
+
125
+ .control-panel {
126
+ background: #f5f5f5;
127
+ padding: 20px;
128
+ border-radius: 8px;
129
+ margin-bottom: 20px;
130
+
131
+ h3 {
132
+ margin: 0 0 20px 0;
133
+ color: #333;
134
+ }
135
+
136
+ h4 {
137
+ margin: 15px 0 10px 0;
138
+ color: #666;
139
+ font-size: 14px;
140
+ }
141
+ }
142
+
143
+ .upload-section,
144
+ .url-section,
145
+ .search-section {
146
+ margin-bottom: 20px;
147
+ padding: 15px;
148
+ background: white;
149
+ border-radius: 6px;
150
+ border: 1px solid #e0e0e0;
151
+
152
+ input[type='file'] {
153
+ margin-right: 10px;
154
+ }
155
+
156
+ .url-input,
157
+ .search-input {
158
+ width: 300px;
159
+ padding: 8px 12px;
160
+ border: 1px solid #ddd;
161
+ border-radius: 4px;
162
+ margin-right: 10px;
163
+ font-size: 14px;
164
+
165
+ &:focus {
166
+ outline: none;
167
+ border-color: #409eff;
168
+ }
169
+ }
170
+
171
+ button {
172
+ padding: 8px 16px;
173
+ background: #409eff;
174
+ color: white;
175
+ border: none;
176
+ border-radius: 4px;
177
+ cursor: pointer;
178
+ margin-right: 10px;
179
+ font-size: 14px;
180
+
181
+ &:hover:not(:disabled) {
182
+ background: #337ecc;
183
+ }
184
+
185
+ &:disabled {
186
+ background: #c0c4cc;
187
+ cursor: not-allowed;
188
+ }
189
+ }
190
+ }
191
+
192
+ .pdf-container {
193
+ height: 600px;
194
+ border: 1px solid #e0e0e0;
195
+ border-radius: 8px;
196
+ overflow: hidden;
197
+ margin-bottom: 20px;
198
+ }
199
+
200
+ @media (max-width: 768px) {
201
+ .url-input,
202
+ .search-input {
203
+ width: 100% !important;
204
+ margin-bottom: 10px;
205
+ }
206
+ }
207
+ </style>
@@ -0,0 +1,6 @@
1
+ <template>
2
+ <span>Test</span>
3
+ </template>
4
+ <script setup lang="ts">
5
+ </script>
6
+ <style scoped></style>