31 lines
889 B
JavaScript
31 lines
889 B
JavaScript
"use strict";
|
|
const common_vendor = require("../../common/vendor.js");
|
|
const _sfc_main = {
|
|
__name: "index",
|
|
setup(__props) {
|
|
function draw() {
|
|
const ctx = common_vendor.index.createCanvasContext("canvas");
|
|
ctx.beginPath();
|
|
ctx.arc(100, 100, 80, 0, Math.PI * 2);
|
|
ctx.setFillStyle("rgba(0, 0, 0, 1)");
|
|
ctx.fill();
|
|
ctx.beginPath();
|
|
ctx.arc(100, 100, 75, 0, Math.PI * 2);
|
|
ctx.setFillStyle("white");
|
|
ctx.fill();
|
|
ctx.draw();
|
|
}
|
|
const handleDraw = () => {
|
|
draw();
|
|
};
|
|
return (_ctx, _cache) => {
|
|
return {
|
|
a: common_vendor.o(($event) => handleDraw())
|
|
};
|
|
};
|
|
}
|
|
};
|
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-1cf27b2a"]]);
|
|
wx.createPage(MiniProgramPage);
|
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/index/index.js.map
|