上传代码
This commit is contained in:
55
uniapp04/unpackage/dist/dev/mp-alipay/pages/texttwo/texttwo.js
vendored
Normal file
55
uniapp04/unpackage/dist/dev/mp-alipay/pages/texttwo/texttwo.js
vendored
Normal file
@ -0,0 +1,55 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
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();
|
||||
}
|
||||
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]]);
|
||||
my.createPage(MiniProgramPage);
|
Reference in New Issue
Block a user