2024-10-18 07:53:00 +00:00
|
|
|
"use strict";
|
|
|
|
const common_vendor = require("../../common/vendor.js");
|
2025-04-11 06:42:29 +00:00
|
|
|
const _sfc_main = {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
imageStyles: {
|
|
|
|
width: 64,
|
|
|
|
height: 64,
|
|
|
|
border: {
|
|
|
|
radius: "50%"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
listStyles: {
|
|
|
|
// 是否显示边框
|
|
|
|
border: true,
|
|
|
|
// 是否显示分隔线
|
|
|
|
dividline: true,
|
|
|
|
// 线条样式
|
|
|
|
borderStyle: {
|
|
|
|
width: 1,
|
|
|
|
color: "blue",
|
|
|
|
style: "dashed",
|
|
|
|
radius: 2
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
handleFileSelect(e) {
|
|
|
|
console.log("Selected files:", e.tempFiles);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
if (!Array) {
|
|
|
|
const _easycom_uni_file_picker2 = common_vendor.resolveComponent("uni-file-picker");
|
|
|
|
_easycom_uni_file_picker2();
|
2024-10-18 07:53:00 +00:00
|
|
|
}
|
2025-04-11 06:42:29 +00:00
|
|
|
const _easycom_uni_file_picker = () => "../../uni_modules/uni-file-picker/components/uni-file-picker/uni-file-picker.js";
|
|
|
|
if (!Math) {
|
|
|
|
_easycom_uni_file_picker();
|
|
|
|
}
|
|
|
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
|
return {
|
|
|
|
a: common_vendor.o($options.handleFileSelect),
|
|
|
|
b: common_vendor.p({
|
|
|
|
limit: "1",
|
|
|
|
["del-icon"]: false,
|
|
|
|
["disable-preview"]: true,
|
|
|
|
imageStyles: $data.imageStyles,
|
|
|
|
["file-mediatype"]: "image"
|
|
|
|
})
|
|
|
|
};
|
|
|
|
}
|
|
|
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
|
2024-10-18 07:53:00 +00:00
|
|
|
my.createPage(MiniProgramPage);
|