@xuda.io/xuda-widget-plugin-xuda-drive 1.0.6 → 1.0.7
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/index.mjs +16 -0
- package/package.json +1 -1
- package/runtime.mjs +5 -1
package/index.mjs
CHANGED
|
@@ -208,6 +208,22 @@ export const methods = {
|
|
|
208
208
|
},
|
|
209
209
|
],
|
|
210
210
|
},
|
|
211
|
+
show_toolbar: {
|
|
212
|
+
label: "Show Toolbar",
|
|
213
|
+
type: "string",
|
|
214
|
+
render: "segment",
|
|
215
|
+
tooltip: "",
|
|
216
|
+
options: [
|
|
217
|
+
{
|
|
218
|
+
label: "No",
|
|
219
|
+
value: "",
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
label: "Yes",
|
|
223
|
+
value: "yes",
|
|
224
|
+
},
|
|
225
|
+
],
|
|
226
|
+
},
|
|
211
227
|
},
|
|
212
228
|
response: { uploaded_files: "" },
|
|
213
229
|
},
|
package/package.json
CHANGED
package/runtime.mjs
CHANGED
|
@@ -530,6 +530,10 @@ export async function viewer(fields, e) {
|
|
|
530
530
|
</svg>
|
|
531
531
|
<span class="sr-only">Use grid view</span>
|
|
532
532
|
</button>
|
|
533
|
+
<button type="button" class="ml-0.5 rounded-md bg-white p-1.5 text-gray-400 shadow-sm focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-500">
|
|
534
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="#000000" viewBox="0 0 256 256"><path d="M200,64V192a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V64a8,8,0,0,1,8-8H192A8,8,0,0,1,200,64Z" opacity="0.2"></path><path d="M192,48H64A16,16,0,0,0,48,64V192a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64A16,16,0,0,0,192,48Zm0,144H64V64H192V192ZM240,56V200a8,8,0,0,1-16,0V56a8,8,0,0,1,16,0ZM32,56V200a8,8,0,0,1-16,0V56a8,8,0,0,1,16,0Z"></path></svg>
|
|
535
|
+
<span class="sr-only">Use grid view</span>
|
|
536
|
+
</button>
|
|
533
537
|
</div>
|
|
534
538
|
</div>
|
|
535
539
|
|
|
@@ -559,7 +563,7 @@ export async function viewer(fields, e) {
|
|
|
559
563
|
|
|
560
564
|
e.$containerP.html(html);
|
|
561
565
|
|
|
562
|
-
let opt = { app_id };
|
|
566
|
+
let opt = { app_id, type: "file" };
|
|
563
567
|
|
|
564
568
|
try {
|
|
565
569
|
let domain =
|