提交 6ecfcbe2 编写于 作者: Q qiang

chore: build h5

上级 ee478d08
...@@ -1626,7 +1626,7 @@ function getTempCanvas(width = 0, height = 0) { ...@@ -1626,7 +1626,7 @@ function getTempCanvas(width = 0, height = 0) {
tempCanvas.height = height; tempCanvas.height = height;
return tempCanvas; return tempCanvas;
} }
const props$q = { const props$r = {
canvasId: { canvasId: {
type: String, type: String,
default: "" default: ""
...@@ -1646,7 +1646,7 @@ var index$B = /* @__PURE__ */ defineBuiltInComponent({ ...@@ -1646,7 +1646,7 @@ var index$B = /* @__PURE__ */ defineBuiltInComponent({
compatConfig: { compatConfig: {
MODE: 3 MODE: 3
}, },
props: props$q, props: props$r,
computed: { computed: {
id() { id() {
return this.canvasId; return this.canvasId;
...@@ -2104,7 +2104,7 @@ function useMethods(props2, canvasRef, actionsWaiting) { ...@@ -2104,7 +2104,7 @@ function useMethods(props2, canvasRef, actionsWaiting) {
}); });
} }
const uniCheckGroupKey = PolySymbol(process.env.NODE_ENV !== "production" ? "uniCheckGroup" : "ucg"); const uniCheckGroupKey = PolySymbol(process.env.NODE_ENV !== "production" ? "uniCheckGroup" : "ucg");
const props$p = { const props$q = {
name: { name: {
type: String, type: String,
default: "" default: ""
...@@ -2112,7 +2112,7 @@ const props$p = { ...@@ -2112,7 +2112,7 @@ const props$p = {
}; };
var index$A = /* @__PURE__ */ defineBuiltInComponent({ var index$A = /* @__PURE__ */ defineBuiltInComponent({
name: "CheckboxGroup", name: "CheckboxGroup",
props: props$p, props: props$q,
emits: ["change"], emits: ["change"],
setup(props2, { setup(props2, {
emit: emit2, emit: emit2,
...@@ -2164,7 +2164,7 @@ function useProvideCheckGroup(props2, trigger) { ...@@ -2164,7 +2164,7 @@ function useProvideCheckGroup(props2, trigger) {
} }
return getFieldsValue; return getFieldsValue;
} }
const props$o = { const props$p = {
checked: { checked: {
type: [Boolean, String], type: [Boolean, String],
default: false default: false
...@@ -2188,7 +2188,7 @@ const props$o = { ...@@ -2188,7 +2188,7 @@ const props$o = {
}; };
var index$z = /* @__PURE__ */ defineBuiltInComponent({ var index$z = /* @__PURE__ */ defineBuiltInComponent({
name: "Checkbox", name: "Checkbox",
props: props$o, props: props$p,
setup(props2, { setup(props2, {
slots slots
}) { }) {
...@@ -2255,7 +2255,7 @@ function useCheckboxInject(checkboxChecked, checkboxValue, reset) { ...@@ -2255,7 +2255,7 @@ function useCheckboxInject(checkboxChecked, checkboxValue, reset) {
let resetTimer; let resetTimer;
function iosHideKeyboard() { function iosHideKeyboard() {
} }
const props$n = { const props$o = {
cursorSpacing: { cursorSpacing: {
type: [Number, String], type: [Number, String],
default: 0 default: 0
...@@ -2427,7 +2427,7 @@ function useQuill(props2, rootRef, trigger) { ...@@ -2427,7 +2427,7 @@ function useQuill(props2, rootRef, trigger) {
useContextInfo(); useContextInfo();
useSubscribe(); useSubscribe();
} }
const props$m = /* @__PURE__ */ shared.extend({}, props$n, { const props$n = /* @__PURE__ */ shared.extend({}, props$o, {
id: { id: {
type: String, type: String,
default: "" default: ""
...@@ -2455,7 +2455,7 @@ const props$m = /* @__PURE__ */ shared.extend({}, props$n, { ...@@ -2455,7 +2455,7 @@ const props$m = /* @__PURE__ */ shared.extend({}, props$n, {
}); });
var index$y = /* @__PURE__ */ defineBuiltInComponent({ var index$y = /* @__PURE__ */ defineBuiltInComponent({
name: "Editor", name: "Editor",
props: props$m, props: props$n,
emit: ["ready", "focus", "blur", "input", "statuschange", ...emit$1], emit: ["ready", "focus", "blur", "input", "statuschange", ...emit$1],
setup(props2, { setup(props2, {
emit: emit2 emit: emit2
...@@ -2541,7 +2541,7 @@ var index$x = /* @__PURE__ */ defineBuiltInComponent({ ...@@ -2541,7 +2541,7 @@ var index$x = /* @__PURE__ */ defineBuiltInComponent({
}; };
} }
}); });
const props$l = { const props$m = {
src: { src: {
type: String, type: String,
default: "" default: ""
...@@ -2580,7 +2580,7 @@ const IMAGE_MODES = { ...@@ -2580,7 +2580,7 @@ const IMAGE_MODES = {
}; };
var index$w = /* @__PURE__ */ defineBuiltInComponent({ var index$w = /* @__PURE__ */ defineBuiltInComponent({
name: "Image", name: "Image",
props: props$l, props: props$m,
setup(props2, { setup(props2, {
emit: emit2 emit: emit2
}) { }) {
...@@ -2829,7 +2829,7 @@ const UniViewJSBridgeSubscribe = function() { ...@@ -2829,7 +2829,7 @@ const UniViewJSBridgeSubscribe = function() {
function getValueString(value) { function getValueString(value) {
return value === null ? "" : String(value); return value === null ? "" : String(value);
} }
const props$k = /* @__PURE__ */ shared.extend({}, { const props$l = /* @__PURE__ */ shared.extend({}, {
name: { name: {
type: String, type: String,
default: "" default: ""
...@@ -2898,7 +2898,7 @@ const props$k = /* @__PURE__ */ shared.extend({}, { ...@@ -2898,7 +2898,7 @@ const props$k = /* @__PURE__ */ shared.extend({}, {
type: Boolean, type: Boolean,
default: false default: false
} }
}, props$n); }, props$o);
const emit = [ const emit = [
"input", "input",
"focus", "focus",
...@@ -3093,7 +3093,7 @@ function useField(props2, rootRef, emit2, beforeInput) { ...@@ -3093,7 +3093,7 @@ function useField(props2, rootRef, emit2, beforeInput) {
trigger trigger
}; };
} }
const props$j = /* @__PURE__ */ shared.extend({}, props$k, { const props$k = /* @__PURE__ */ shared.extend({}, props$l, {
placeholderClass: { placeholderClass: {
type: String, type: String,
default: "input-placeholder" default: "input-placeholder"
...@@ -3105,7 +3105,7 @@ const props$j = /* @__PURE__ */ shared.extend({}, props$k, { ...@@ -3105,7 +3105,7 @@ const props$j = /* @__PURE__ */ shared.extend({}, props$k, {
}); });
var Input = /* @__PURE__ */ defineBuiltInComponent({ var Input = /* @__PURE__ */ defineBuiltInComponent({
name: "Input", name: "Input",
props: props$j, props: props$k,
emits: ["confirm", ...emit], emits: ["confirm", ...emit],
setup(props2, { setup(props2, {
emit: emit2 emit: emit2
...@@ -4555,7 +4555,7 @@ const VALUES = { ...@@ -4555,7 +4555,7 @@ const VALUES = {
backgroundColor: "#EBEBEB", backgroundColor: "#EBEBEB",
activeMode: "backwards" activeMode: "backwards"
}; };
const props$i = { const props$j = {
percent: { percent: {
type: [Number, String], type: [Number, String],
default: 0, default: 0,
...@@ -4604,7 +4604,7 @@ const props$i = { ...@@ -4604,7 +4604,7 @@ const props$i = {
}; };
var index$s = /* @__PURE__ */ defineBuiltInComponent({ var index$s = /* @__PURE__ */ defineBuiltInComponent({
name: "Progress", name: "Progress",
props: props$i, props: props$j,
setup(props2) { setup(props2) {
const state = useProgressState(props2); const state = useProgressState(props2);
_activeAnimation(state, props2); _activeAnimation(state, props2);
...@@ -4675,7 +4675,7 @@ function _activeAnimation(state, props2) { ...@@ -4675,7 +4675,7 @@ function _activeAnimation(state, props2) {
} }
} }
const uniRadioGroupKey = PolySymbol(process.env.NODE_ENV !== "production" ? "uniCheckGroup" : "ucg"); const uniRadioGroupKey = PolySymbol(process.env.NODE_ENV !== "production" ? "uniCheckGroup" : "ucg");
const props$h = { const props$i = {
name: { name: {
type: String, type: String,
default: "" default: ""
...@@ -4683,7 +4683,7 @@ const props$h = { ...@@ -4683,7 +4683,7 @@ const props$h = {
}; };
var index$r = /* @__PURE__ */ defineBuiltInComponent({ var index$r = /* @__PURE__ */ defineBuiltInComponent({
name: "RadioGroup", name: "RadioGroup",
props: props$h, props: props$i,
setup(props2, { setup(props2, {
emit: emit2, emit: emit2,
slots slots
...@@ -4760,7 +4760,7 @@ function useProvideRadioGroup(props2, trigger) { ...@@ -4760,7 +4760,7 @@ function useProvideRadioGroup(props2, trigger) {
} }
return fields2; return fields2;
} }
const props$g = { const props$h = {
checked: { checked: {
type: [Boolean, String], type: [Boolean, String],
default: false default: false
...@@ -4784,7 +4784,7 @@ const props$g = { ...@@ -4784,7 +4784,7 @@ const props$g = {
}; };
var index$q = /* @__PURE__ */ defineBuiltInComponent({ var index$q = /* @__PURE__ */ defineBuiltInComponent({
name: "Radio", name: "Radio",
props: props$g, props: props$h,
setup(props2, { setup(props2, {
slots slots
}) { }) {
...@@ -5104,7 +5104,7 @@ function processClickEvent(node, elem, triggerItemClick) { ...@@ -5104,7 +5104,7 @@ function processClickEvent(node, elem, triggerItemClick) {
}, true); }, true);
} }
} }
const props$f = { const props$g = {
nodes: { nodes: {
type: [Array, String], type: [Array, String],
default: function() { default: function() {
...@@ -5117,7 +5117,7 @@ var index$p = /* @__PURE__ */ defineBuiltInComponent({ ...@@ -5117,7 +5117,7 @@ var index$p = /* @__PURE__ */ defineBuiltInComponent({
compatConfig: { compatConfig: {
MODE: 3 MODE: 3
}, },
props: props$f, props: props$g,
emits: ["click", "touchstart", "touchmove", "touchcancel", "touchend", "longpress"], emits: ["click", "touchstart", "touchmove", "touchcancel", "touchend", "longpress"],
setup(props2, { setup(props2, {
emit: emit2, emit: emit2,
...@@ -5148,7 +5148,7 @@ var index$p = /* @__PURE__ */ defineBuiltInComponent({ ...@@ -5148,7 +5148,7 @@ var index$p = /* @__PURE__ */ defineBuiltInComponent({
}; };
} }
}); });
const props$e = { const props$f = {
scrollX: { scrollX: {
type: [Boolean, String], type: [Boolean, String],
default: false default: false
...@@ -5211,7 +5211,7 @@ var index$o = /* @__PURE__ */ defineBuiltInComponent({ ...@@ -5211,7 +5211,7 @@ var index$o = /* @__PURE__ */ defineBuiltInComponent({
compatConfig: { compatConfig: {
MODE: 3 MODE: 3
}, },
props: props$e, props: props$f,
emits: ["scroll", "scrolltoupper", "scrolltolower", "refresherrefresh", "refresherrestore", "refresherpulling", "refresherabort", "update:refresherTriggered"], emits: ["scroll", "scrolltoupper", "scrolltolower", "refresherrefresh", "refresherrestore", "refresherpulling", "refresherabort", "update:refresherTriggered"],
setup(props2, { setup(props2, {
emit: emit2, emit: emit2,
...@@ -5479,7 +5479,7 @@ function useScrollViewLoader(props2, state, scrollTopNumber, scrollLeftNumber, t ...@@ -5479,7 +5479,7 @@ function useScrollViewLoader(props2, state, scrollTopNumber, scrollLeftNumber, t
} }
}); });
} }
const props$d = { const props$e = {
name: { name: {
type: String, type: String,
default: "" default: ""
...@@ -5535,7 +5535,7 @@ const props$d = { ...@@ -5535,7 +5535,7 @@ const props$d = {
}; };
var index$n = /* @__PURE__ */ defineBuiltInComponent({ var index$n = /* @__PURE__ */ defineBuiltInComponent({
name: "Slider", name: "Slider",
props: props$d, props: props$e,
emits: ["changing", "change"], emits: ["changing", "change"],
setup(props2, { setup(props2, {
emit: emit2 emit: emit2
...@@ -5697,7 +5697,7 @@ var computeController = { ...@@ -5697,7 +5697,7 @@ var computeController = {
return Number(s1.replace(".", "")) * Number(s2.replace(".", "")) / Math.pow(10, m); return Number(s1.replace(".", "")) * Number(s2.replace(".", "")) / Math.pow(10, m);
} }
}; };
const props$c = { const props$d = {
indicatorDots: { indicatorDots: {
type: [Boolean, String], type: [Boolean, String],
default: false default: false
...@@ -6075,7 +6075,7 @@ function useLayout(props2, state, swiperContexts, slideFrameRef, emit2, trigger) ...@@ -6075,7 +6075,7 @@ function useLayout(props2, state, swiperContexts, slideFrameRef, emit2, trigger)
} }
var index$m = /* @__PURE__ */ defineBuiltInComponent({ var index$m = /* @__PURE__ */ defineBuiltInComponent({
name: "Swiper", name: "Swiper",
props: props$c, props: props$d,
emits: ["change", "transition", "animationfinish", "update:current", "update:currentItemId"], emits: ["change", "transition", "animationfinish", "update:current", "update:currentItemId"],
setup(props2, { setup(props2, {
slots, slots,
...@@ -6173,7 +6173,7 @@ var index$m = /* @__PURE__ */ defineBuiltInComponent({ ...@@ -6173,7 +6173,7 @@ var index$m = /* @__PURE__ */ defineBuiltInComponent({
}; };
} }
}); });
const props$b = { const props$c = {
itemId: { itemId: {
type: String, type: String,
default: "" default: ""
...@@ -6181,7 +6181,7 @@ const props$b = { ...@@ -6181,7 +6181,7 @@ const props$b = {
}; };
var index$l = /* @__PURE__ */ defineBuiltInComponent({ var index$l = /* @__PURE__ */ defineBuiltInComponent({
name: "SwiperItem", name: "SwiperItem",
props: props$b, props: props$c,
setup(props2, { setup(props2, {
slots slots
}) { }) {
...@@ -6198,7 +6198,7 @@ var index$l = /* @__PURE__ */ defineBuiltInComponent({ ...@@ -6198,7 +6198,7 @@ var index$l = /* @__PURE__ */ defineBuiltInComponent({
}; };
} }
}); });
const props$a = { const props$b = {
name: { name: {
type: String, type: String,
default: "" default: ""
...@@ -6226,7 +6226,7 @@ const props$a = { ...@@ -6226,7 +6226,7 @@ const props$a = {
}; };
var index$k = /* @__PURE__ */ defineBuiltInComponent({ var index$k = /* @__PURE__ */ defineBuiltInComponent({
name: "Switch", name: "Switch",
props: props$a, props: props$b,
emits: ["change"], emits: ["change"],
setup(props2, { setup(props2, {
emit: emit2 emit: emit2
...@@ -6370,7 +6370,7 @@ var index$j = /* @__PURE__ */ defineBuiltInComponent({ ...@@ -6370,7 +6370,7 @@ var index$j = /* @__PURE__ */ defineBuiltInComponent({
}; };
} }
}); });
const props$9 = /* @__PURE__ */ shared.extend({}, props$k, { const props$a = /* @__PURE__ */ shared.extend({}, props$l, {
placeholderClass: { placeholderClass: {
type: String, type: String,
default: "input-placeholder" default: "input-placeholder"
...@@ -6387,7 +6387,7 @@ const props$9 = /* @__PURE__ */ shared.extend({}, props$k, { ...@@ -6387,7 +6387,7 @@ const props$9 = /* @__PURE__ */ shared.extend({}, props$k, {
let fixMargin = false; let fixMargin = false;
var index$i = /* @__PURE__ */ defineBuiltInComponent({ var index$i = /* @__PURE__ */ defineBuiltInComponent({
name: "Textarea", name: "Textarea",
props: props$9, props: props$a,
emit: ["confirm", "linechange", ...emit], emit: ["confirm", "linechange", ...emit],
setup(props2, { setup(props2, {
emit: emit2 emit: emit2
...@@ -7450,7 +7450,7 @@ function useContext(play, pause, seek, sendDanmu, playbackRate, requestFullScree ...@@ -7450,7 +7450,7 @@ function useContext(play, pause, seek, sendDanmu, playbackRate, requestFullScree
useContextInfo(); useContextInfo();
useSubscribe(); useSubscribe();
} }
const props$8 = { const props$9 = {
id: { id: {
type: String, type: String,
default: "" default: ""
...@@ -7536,7 +7536,7 @@ const props$8 = { ...@@ -7536,7 +7536,7 @@ const props$8 = {
}; };
var index$e = /* @__PURE__ */ defineBuiltInComponent({ var index$e = /* @__PURE__ */ defineBuiltInComponent({
name: "Video", name: "Video",
props: props$8, props: props$9,
emits: ["fullscreenchange", "progress", "loadedmetadata", "waiting", "error", "play", "pause", "ended", "timeupdate"], emits: ["fullscreenchange", "progress", "loadedmetadata", "waiting", "error", "play", "pause", "ended", "timeupdate"],
setup(props2, { setup(props2, {
emit: emit2, emit: emit2,
...@@ -7757,7 +7757,7 @@ const onWebInvokeAppService = ({ name, arg }) => { ...@@ -7757,7 +7757,7 @@ const onWebInvokeAppService = ({ name, arg }) => {
} }
}; };
const Invoke = /* @__PURE__ */ uniShared.once(() => UniServiceJSBridge.on(uniShared.ON_WEB_INVOKE_APP_SERVICE, onWebInvokeAppService)); const Invoke = /* @__PURE__ */ uniShared.once(() => UniServiceJSBridge.on(uniShared.ON_WEB_INVOKE_APP_SERVICE, onWebInvokeAppService));
const props$7 = { const props$8 = {
src: { src: {
type: String, type: String,
default: "" default: ""
...@@ -7766,7 +7766,7 @@ const props$7 = { ...@@ -7766,7 +7766,7 @@ const props$7 = {
var index$d = /* @__PURE__ */ defineBuiltInComponent({ var index$d = /* @__PURE__ */ defineBuiltInComponent({
inheritAttrs: false, inheritAttrs: false,
name: "WebView", name: "WebView",
props: props$7, props: props$8,
setup(props2) { setup(props2) {
Invoke(); Invoke();
const rootRef = vue.ref(null); const rootRef = vue.ref(null);
...@@ -7789,7 +7789,7 @@ var index$d = /* @__PURE__ */ defineBuiltInComponent({ ...@@ -7789,7 +7789,7 @@ var index$d = /* @__PURE__ */ defineBuiltInComponent({
} }
}); });
const ICON_PATH_ORIGIN = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIQAAACECAMAAABmmnOVAAAC01BMVEUAAAAAef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8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2gDfMpWPIuLdwyV8XEpHgaddBZ+wBuSFcwJqSN2ovmZ/dfnOvCTxqGtwzq8SEjv4EhISn48eWgnhUP7DvDSvgzxrs6vV6+FLiro2EkCic4QKkzwJsH1KYreCp0eQhfyDl1B/w4P/xa5JVJ4U03QjbRD9x7wXlgH5IE3wmMBHXoSlugFAcI6f/AkkSi8q6HQm6xDn77wEQ8djTwSj3tqAMguRTe4ikeOQyJ4YV+KfkQl+oNW5GbY4gWOWgbwJ+kwAD6Fi90MK2ZsrIeBBCUGwRXbqJ+/iJMQliIEBhOU6AJhtlG/IpHE2bqrYQg5h6HA4yQiRqwEfkGCdTCMmMRw+IbPDCQaHCsCYAQxiZHw3TbmD/ESOHgHwShiEqPhp/gggYkSztIxxCRawy/bmEniJaJtfwiEscQkxkFgRqJESqQwwHhiEuMBp3Vm8RK/cZoHEzKXhCK2QxEPpiJe0YlKCFaKCNv/cYBNUsBRPlkJSc0U+dM7E9H0ThGJbgZT/iR7yj+VqMS06Qr4+OFm2JdCxIa8lugzkJs5K6MfxAaYPUcBpYG5khZJEkUUSb7DPCnKRfPBXj6M8FwuegoLpCgXcQszVjhbJFUJUee2hBhLoYTIcYtB57KY+opSMdVqwatSlZVj05aV//CwJLMX2DluaUcwhXm4ali2XOoLjxUrPV26zFtF4f5p0Gp310+z13BUWNvbehEXona6iAtX/zVZmtfN4WixfsNky4S6gCCVVq3RPLdfSfpv3MRRZfPoLc6Xs/5bt3EyMGzE9h07/Xft2t15z6i9+zgGg8FgMBgMBoPBYDAYDAYj8/APG67Rie8pUDsAAAAASUVORK5CYII=";
const props$6 = { const props$7 = {
id: { id: {
type: [Number, String], type: [Number, String],
default: "" default: ""
...@@ -7872,7 +7872,7 @@ function useMarkerLabelStyle(id) { ...@@ -7872,7 +7872,7 @@ function useMarkerLabelStyle(id) {
} }
var MapMarker = /* @__PURE__ */ defineSystemComponent({ var MapMarker = /* @__PURE__ */ defineSystemComponent({
name: "MapMarker", name: "MapMarker",
props: props$6, props: props$7,
setup(props2) { setup(props2) {
const id = String(Number(props2.id) !== NaN ? props2.id : ""); const id = String(Number(props2.id) !== NaN ? props2.id : "");
const onMapReady = vue.inject("onMapReady"); const onMapReady = vue.inject("onMapReady");
...@@ -8107,7 +8107,7 @@ var MapMarker = /* @__PURE__ */ defineSystemComponent({ ...@@ -8107,7 +8107,7 @@ var MapMarker = /* @__PURE__ */ defineSystemComponent({
}; };
} }
}); });
const props$5 = { const props$6 = {
points: { points: {
type: Array, type: Array,
require: true require: true
...@@ -8153,7 +8153,7 @@ const props$5 = { ...@@ -8153,7 +8153,7 @@ const props$5 = {
}; };
var MapPolyline = /* @__PURE__ */ defineSystemComponent({ var MapPolyline = /* @__PURE__ */ defineSystemComponent({
name: "MapPolyline", name: "MapPolyline",
props: props$5, props: props$6,
setup(props2) { setup(props2) {
const onMapReady = vue.inject("onMapReady"); const onMapReady = vue.inject("onMapReady");
let polyline; let polyline;
...@@ -8205,7 +8205,7 @@ var MapPolyline = /* @__PURE__ */ defineSystemComponent({ ...@@ -8205,7 +8205,7 @@ var MapPolyline = /* @__PURE__ */ defineSystemComponent({
}; };
} }
}); });
const props$4 = { const props$5 = {
latitude: { latitude: {
type: [Number, String], type: [Number, String],
require: true require: true
...@@ -8237,7 +8237,7 @@ const props$4 = { ...@@ -8237,7 +8237,7 @@ const props$4 = {
}; };
var MapCircle = /* @__PURE__ */ defineSystemComponent({ var MapCircle = /* @__PURE__ */ defineSystemComponent({
name: "MapCircle", name: "MapCircle",
props: props$4, props: props$5,
setup(props2) { setup(props2) {
const onMapReady = vue.inject("onMapReady"); const onMapReady = vue.inject("onMapReady");
let circle; let circle;
...@@ -8283,7 +8283,7 @@ var MapCircle = /* @__PURE__ */ defineSystemComponent({ ...@@ -8283,7 +8283,7 @@ var MapCircle = /* @__PURE__ */ defineSystemComponent({
}; };
} }
}); });
const props$3 = { const props$4 = {
id: { id: {
type: [Number, String], type: [Number, String],
default: "" default: ""
...@@ -8303,7 +8303,7 @@ const props$3 = { ...@@ -8303,7 +8303,7 @@ const props$3 = {
}; };
var MapControl = /* @__PURE__ */ defineSystemComponent({ var MapControl = /* @__PURE__ */ defineSystemComponent({
name: "MapControl", name: "MapControl",
props: props$3, props: props$4,
setup(props2) { setup(props2) {
const onMapReady = vue.inject("onMapReady"); const onMapReady = vue.inject("onMapReady");
let control; let control;
...@@ -8379,6 +8379,135 @@ var MapLocation = /* @__PURE__ */ defineSystemComponent({ ...@@ -8379,6 +8379,135 @@ var MapLocation = /* @__PURE__ */ defineSystemComponent({
}; };
} }
}); });
var props$3 = {
dashArray: {
type: Array,
default: () => [0, 0]
},
points: {
type: Array,
required: true
},
strokeWidth: {
type: Number,
default: 1
},
strokeColor: {
type: String,
default: "#000000"
},
fillColor: {
type: String,
default: "#00000000"
},
zIndex: {
type: Number,
default: 0
}
};
function hexToRgba(hex) {
if (!hex) {
return {
r: 0,
g: 0,
b: 0,
a: 0
};
}
let tmpHex = hex.slice(1);
const tmpHexLen = tmpHex.length;
if (![3, 4, 6, 8].includes(tmpHexLen)) {
return {
r: 0,
g: 0,
b: 0,
a: 0
};
}
if (tmpHexLen === 3 || tmpHexLen === 4) {
tmpHex = tmpHex.replace(/(\w{1})/g, "$1$1");
}
let [sr, sg, sb, sa] = tmpHex.match(/(\w{2})/g);
const r = parseInt(sr, 16), g2 = parseInt(sg, 16), b = parseInt(sb, 16);
if (!sa) {
return { r, g: g2, b, a: 1 };
}
return {
r,
g: g2,
b,
a: (`0x100${sa}` - 65536) / 255
};
}
var MapPolygon = defineSystemComponent({
name: "MapPolygon",
props: props$3,
setup(props2) {
let polygonIns;
const onMapReady = vue.inject("onMapReady");
onMapReady((map, maps, trigger) => {
function drawPolygon() {
const {
points,
strokeWidth,
strokeColor,
dashArray,
fillColor,
zIndex
} = props2;
const path = points.map((item) => {
const {
latitude,
longitude
} = item;
return new maps.LatLng(latitude, longitude);
});
const {
r: fcR,
g: fcG,
b: fcB,
a: fcA
} = hexToRgba(fillColor);
const {
r: scR,
g: scG,
b: scB,
a: scA
} = hexToRgba(strokeColor);
const polygonOptions = {
clickable: true,
cursor: "crosshair",
editable: false,
map,
fillColor: "",
path,
strokeColor: "",
strokeDashStyle: dashArray.some((item) => item > 0) ? "dash" : "solid",
strokeWeight: strokeWidth,
visible: true,
zIndex
};
if (maps.Color) {
polygonOptions.fillColor = new maps.Color(fcR, fcG, fcB, fcA);
polygonOptions.strokeColor = new maps.Color(scR, scG, scB, scA);
} else {
polygonOptions.fillColor = `rgb(${fcR}, ${fcG}, ${fcB})`;
polygonOptions.fillOpacity = fcA;
polygonOptions.strokeColor = `rgb(${scR}, ${scG}, ${scB})`;
polygonOptions.strokeOpacity = scA;
}
if (polygonIns) {
polygonIns.setOptions(polygonOptions);
return;
}
polygonIns = new maps.Polygon(polygonOptions);
}
drawPolygon();
vue.watch(props2, drawPolygon);
});
return () => null;
}
});
const props$2 = { const props$2 = {
id: { id: {
type: String, type: String,
...@@ -8435,6 +8564,10 @@ const props$2 = { ...@@ -8435,6 +8564,10 @@ const props$2 = {
default() { default() {
return []; return [];
} }
},
polygons: {
type: Array,
default: () => []
} }
}; };
function getPoints(points) { function getPoints(points) {
...@@ -8630,7 +8763,7 @@ var index$c = /* @__PURE__ */ defineBuiltInComponent({ ...@@ -8630,7 +8763,7 @@ var index$c = /* @__PURE__ */ defineBuiltInComponent({
"style": "width: 100%; height: 100%; position: relative; overflow: hidden" "style": "width: 100%; height: 100%; position: relative; overflow: hidden"
}, null, 512), props2.markers.map((item) => item.id && vue.createVNode(MapMarker, vue.mergeProps({ }, null, 512), props2.markers.map((item) => item.id && vue.createVNode(MapMarker, vue.mergeProps({
"key": item.id "key": item.id
}, item), null, 16)), props2.polyline.map((item) => vue.createVNode(MapPolyline, item, null, 16)), props2.circles.map((item) => vue.createVNode(MapCircle, item, null, 16)), props2.controls.map((item) => vue.createVNode(MapControl, item, null, 16)), props2.showLocation && vue.createVNode(MapLocation, null, null), vue.createVNode("div", { }, item), null, 16)), props2.polyline.map((item) => vue.createVNode(MapPolyline, item, null, 16)), props2.circles.map((item) => vue.createVNode(MapCircle, item, null, 16)), props2.controls.map((item) => vue.createVNode(MapControl, item, null, 16)), props2.showLocation && vue.createVNode(MapLocation, null, null), props2.polygons.map((item) => vue.createVNode(MapPolygon, item, null, 16)), vue.createVNode("div", {
"style": "position: absolute;top: 0;width: 100%;height: 100%;overflow: hidden;pointer-events: none;" "style": "position: absolute;top: 0;width: 100%;height: 100%;overflow: hidden;pointer-events: none;"
}, [slots.default && slots.default()])], 8, ["id"]); }, [slots.default && slots.default()])], 8, ["id"]);
}; };
...@@ -10404,40 +10537,6 @@ function createRightWindowTsx(rightWindow, layoutState, windowState) { ...@@ -10404,40 +10537,6 @@ function createRightWindowTsx(rightWindow, layoutState, windowState) {
}, windowState), null, 16)])], 12, ["data-show"]), [[vue.vShow, layoutState.showRightWindow || layoutState.apiShowRightWindow]]); }, windowState), null, 16)])], 12, ["data-show"]), [[vue.vShow, layoutState.showRightWindow || layoutState.apiShowRightWindow]]);
} }
} }
function hexToRgba(hex) {
let r;
let g2;
let b;
hex = hex.replace("#", "");
if (hex.length === 6) {
r = hex.substring(0, 2);
g2 = hex.substring(2, 4);
b = hex.substring(4, 6);
} else if (hex.length === 3) {
r = hex.substring(0, 1);
g2 = hex.substring(1, 2);
b = hex.substring(2, 3);
} else {
return { r: 0, g: 0, b: 0 };
}
if (r.length === 1) {
r += r;
}
if (g2.length === 1) {
g2 += g2;
}
if (b.length === 1) {
b += b;
}
r = parseInt(r, 16);
g2 = parseInt(g2, 16);
b = parseInt(b, 16);
return {
r,
g: g2,
b
};
}
function usePageHeadTransparentBackgroundColor(backgroundColor) { function usePageHeadTransparentBackgroundColor(backgroundColor) {
const { r, g: g2, b } = hexToRgba(backgroundColor); const { r, g: g2, b } = hexToRgba(backgroundColor);
return `rgba(${r},${g2},${b},0)`; return `rgba(${r},${g2},${b},0)`;
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册