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

chore: build h5

上级 ee478d08
......@@ -1626,7 +1626,7 @@ function getTempCanvas(width = 0, height = 0) {
tempCanvas.height = height;
return tempCanvas;
}
const props$q = {
const props$r = {
canvasId: {
type: String,
default: ""
......@@ -1646,7 +1646,7 @@ var index$B = /* @__PURE__ */ defineBuiltInComponent({
compatConfig: {
MODE: 3
},
props: props$q,
props: props$r,
computed: {
id() {
return this.canvasId;
......@@ -2104,7 +2104,7 @@ function useMethods(props2, canvasRef, actionsWaiting) {
});
}
const uniCheckGroupKey = PolySymbol(process.env.NODE_ENV !== "production" ? "uniCheckGroup" : "ucg");
const props$p = {
const props$q = {
name: {
type: String,
default: ""
......@@ -2112,7 +2112,7 @@ const props$p = {
};
var index$A = /* @__PURE__ */ defineBuiltInComponent({
name: "CheckboxGroup",
props: props$p,
props: props$q,
emits: ["change"],
setup(props2, {
emit: emit2,
......@@ -2164,7 +2164,7 @@ function useProvideCheckGroup(props2, trigger) {
}
return getFieldsValue;
}
const props$o = {
const props$p = {
checked: {
type: [Boolean, String],
default: false
......@@ -2188,7 +2188,7 @@ const props$o = {
};
var index$z = /* @__PURE__ */ defineBuiltInComponent({
name: "Checkbox",
props: props$o,
props: props$p,
setup(props2, {
slots
}) {
......@@ -2255,7 +2255,7 @@ function useCheckboxInject(checkboxChecked, checkboxValue, reset) {
let resetTimer;
function iosHideKeyboard() {
}
const props$n = {
const props$o = {
cursorSpacing: {
type: [Number, String],
default: 0
......@@ -2427,7 +2427,7 @@ function useQuill(props2, rootRef, trigger) {
useContextInfo();
useSubscribe();
}
const props$m = /* @__PURE__ */ shared.extend({}, props$n, {
const props$n = /* @__PURE__ */ shared.extend({}, props$o, {
id: {
type: String,
default: ""
......@@ -2455,7 +2455,7 @@ const props$m = /* @__PURE__ */ shared.extend({}, props$n, {
});
var index$y = /* @__PURE__ */ defineBuiltInComponent({
name: "Editor",
props: props$m,
props: props$n,
emit: ["ready", "focus", "blur", "input", "statuschange", ...emit$1],
setup(props2, {
emit: emit2
......@@ -2541,7 +2541,7 @@ var index$x = /* @__PURE__ */ defineBuiltInComponent({
};
}
});
const props$l = {
const props$m = {
src: {
type: String,
default: ""
......@@ -2580,7 +2580,7 @@ const IMAGE_MODES = {
};
var index$w = /* @__PURE__ */ defineBuiltInComponent({
name: "Image",
props: props$l,
props: props$m,
setup(props2, {
emit: emit2
}) {
......@@ -2829,7 +2829,7 @@ const UniViewJSBridgeSubscribe = function() {
function getValueString(value) {
return value === null ? "" : String(value);
}
const props$k = /* @__PURE__ */ shared.extend({}, {
const props$l = /* @__PURE__ */ shared.extend({}, {
name: {
type: String,
default: ""
......@@ -2898,7 +2898,7 @@ const props$k = /* @__PURE__ */ shared.extend({}, {
type: Boolean,
default: false
}
}, props$n);
}, props$o);
const emit = [
"input",
"focus",
......@@ -3093,7 +3093,7 @@ function useField(props2, rootRef, emit2, beforeInput) {
trigger
};
}
const props$j = /* @__PURE__ */ shared.extend({}, props$k, {
const props$k = /* @__PURE__ */ shared.extend({}, props$l, {
placeholderClass: {
type: String,
default: "input-placeholder"
......@@ -3105,7 +3105,7 @@ const props$j = /* @__PURE__ */ shared.extend({}, props$k, {
});
var Input = /* @__PURE__ */ defineBuiltInComponent({
name: "Input",
props: props$j,
props: props$k,
emits: ["confirm", ...emit],
setup(props2, {
emit: emit2
......@@ -4555,7 +4555,7 @@ const VALUES = {
backgroundColor: "#EBEBEB",
activeMode: "backwards"
};
const props$i = {
const props$j = {
percent: {
type: [Number, String],
default: 0,
......@@ -4604,7 +4604,7 @@ const props$i = {
};
var index$s = /* @__PURE__ */ defineBuiltInComponent({
name: "Progress",
props: props$i,
props: props$j,
setup(props2) {
const state = useProgressState(props2);
_activeAnimation(state, props2);
......@@ -4675,7 +4675,7 @@ function _activeAnimation(state, props2) {
}
}
const uniRadioGroupKey = PolySymbol(process.env.NODE_ENV !== "production" ? "uniCheckGroup" : "ucg");
const props$h = {
const props$i = {
name: {
type: String,
default: ""
......@@ -4683,7 +4683,7 @@ const props$h = {
};
var index$r = /* @__PURE__ */ defineBuiltInComponent({
name: "RadioGroup",
props: props$h,
props: props$i,
setup(props2, {
emit: emit2,
slots
......@@ -4760,7 +4760,7 @@ function useProvideRadioGroup(props2, trigger) {
}
return fields2;
}
const props$g = {
const props$h = {
checked: {
type: [Boolean, String],
default: false
......@@ -4784,7 +4784,7 @@ const props$g = {
};
var index$q = /* @__PURE__ */ defineBuiltInComponent({
name: "Radio",
props: props$g,
props: props$h,
setup(props2, {
slots
}) {
......@@ -5104,7 +5104,7 @@ function processClickEvent(node, elem, triggerItemClick) {
}, true);
}
}
const props$f = {
const props$g = {
nodes: {
type: [Array, String],
default: function() {
......@@ -5117,7 +5117,7 @@ var index$p = /* @__PURE__ */ defineBuiltInComponent({
compatConfig: {
MODE: 3
},
props: props$f,
props: props$g,
emits: ["click", "touchstart", "touchmove", "touchcancel", "touchend", "longpress"],
setup(props2, {
emit: emit2,
......@@ -5148,7 +5148,7 @@ var index$p = /* @__PURE__ */ defineBuiltInComponent({
};
}
});
const props$e = {
const props$f = {
scrollX: {
type: [Boolean, String],
default: false
......@@ -5211,7 +5211,7 @@ var index$o = /* @__PURE__ */ defineBuiltInComponent({
compatConfig: {
MODE: 3
},
props: props$e,
props: props$f,
emits: ["scroll", "scrolltoupper", "scrolltolower", "refresherrefresh", "refresherrestore", "refresherpulling", "refresherabort", "update:refresherTriggered"],
setup(props2, {
emit: emit2,
......@@ -5479,7 +5479,7 @@ function useScrollViewLoader(props2, state, scrollTopNumber, scrollLeftNumber, t
}
});
}
const props$d = {
const props$e = {
name: {
type: String,
default: ""
......@@ -5535,7 +5535,7 @@ const props$d = {
};
var index$n = /* @__PURE__ */ defineBuiltInComponent({
name: "Slider",
props: props$d,
props: props$e,
emits: ["changing", "change"],
setup(props2, {
emit: emit2
......@@ -5697,7 +5697,7 @@ var computeController = {
return Number(s1.replace(".", "")) * Number(s2.replace(".", "")) / Math.pow(10, m);
}
};
const props$c = {
const props$d = {
indicatorDots: {
type: [Boolean, String],
default: false
......@@ -6075,7 +6075,7 @@ function useLayout(props2, state, swiperContexts, slideFrameRef, emit2, trigger)
}
var index$m = /* @__PURE__ */ defineBuiltInComponent({
name: "Swiper",
props: props$c,
props: props$d,
emits: ["change", "transition", "animationfinish", "update:current", "update:currentItemId"],
setup(props2, {
slots,
......@@ -6173,7 +6173,7 @@ var index$m = /* @__PURE__ */ defineBuiltInComponent({
};
}
});
const props$b = {
const props$c = {
itemId: {
type: String,
default: ""
......@@ -6181,7 +6181,7 @@ const props$b = {
};
var index$l = /* @__PURE__ */ defineBuiltInComponent({
name: "SwiperItem",
props: props$b,
props: props$c,
setup(props2, {
slots
}) {
......@@ -6198,7 +6198,7 @@ var index$l = /* @__PURE__ */ defineBuiltInComponent({
};
}
});
const props$a = {
const props$b = {
name: {
type: String,
default: ""
......@@ -6226,7 +6226,7 @@ const props$a = {
};
var index$k = /* @__PURE__ */ defineBuiltInComponent({
name: "Switch",
props: props$a,
props: props$b,
emits: ["change"],
setup(props2, {
emit: emit2
......@@ -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: {
type: String,
default: "input-placeholder"
......@@ -6387,7 +6387,7 @@ const props$9 = /* @__PURE__ */ shared.extend({}, props$k, {
let fixMargin = false;
var index$i = /* @__PURE__ */ defineBuiltInComponent({
name: "Textarea",
props: props$9,
props: props$a,
emit: ["confirm", "linechange", ...emit],
setup(props2, {
emit: emit2
......@@ -7450,7 +7450,7 @@ function useContext(play, pause, seek, sendDanmu, playbackRate, requestFullScree
useContextInfo();
useSubscribe();
}
const props$8 = {
const props$9 = {
id: {
type: String,
default: ""
......@@ -7536,7 +7536,7 @@ const props$8 = {
};
var index$e = /* @__PURE__ */ defineBuiltInComponent({
name: "Video",
props: props$8,
props: props$9,
emits: ["fullscreenchange", "progress", "loadedmetadata", "waiting", "error", "play", "pause", "ended", "timeupdate"],
setup(props2, {
emit: emit2,
......@@ -7757,7 +7757,7 @@ const onWebInvokeAppService = ({ name, arg }) => {
}
};
const Invoke = /* @__PURE__ */ uniShared.once(() => UniServiceJSBridge.on(uniShared.ON_WEB_INVOKE_APP_SERVICE, onWebInvokeAppService));
const props$7 = {
const props$8 = {
src: {
type: String,
default: ""
......@@ -7766,7 +7766,7 @@ const props$7 = {
var index$d = /* @__PURE__ */ defineBuiltInComponent({
inheritAttrs: false,
name: "WebView",
props: props$7,
props: props$8,
setup(props2) {
Invoke();
const rootRef = vue.ref(null);
......@@ -7789,7 +7789,7 @@ var index$d = /* @__PURE__ */ defineBuiltInComponent({
}
});
const ICON_PATH_ORIGIN = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIQAAACECAMAAABmmnOVAAAC01BMVEUAAAAAef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef96quGStdqStdpbnujMzMzCyM7Gyc7Ky83MzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMwAef8Gf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jdMGDUIDGTaR2aNoM9FqjG7QmaN5CWgc/gIePjG559BigpZQOrYB/4jBfRGRUtDkmJjY6KjLCofkpD62lc2gDfMpWPIuLdwyV8XEpHgaddBZ+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: {
type: [Number, String],
default: ""
......@@ -7872,7 +7872,7 @@ function useMarkerLabelStyle(id) {
}
var MapMarker = /* @__PURE__ */ defineSystemComponent({
name: "MapMarker",
props: props$6,
props: props$7,
setup(props2) {
const id = String(Number(props2.id) !== NaN ? props2.id : "");
const onMapReady = vue.inject("onMapReady");
......@@ -8107,7 +8107,7 @@ var MapMarker = /* @__PURE__ */ defineSystemComponent({
};
}
});
const props$5 = {
const props$6 = {
points: {
type: Array,
require: true
......@@ -8153,7 +8153,7 @@ const props$5 = {
};
var MapPolyline = /* @__PURE__ */ defineSystemComponent({
name: "MapPolyline",
props: props$5,
props: props$6,
setup(props2) {
const onMapReady = vue.inject("onMapReady");
let polyline;
......@@ -8205,7 +8205,7 @@ var MapPolyline = /* @__PURE__ */ defineSystemComponent({
};
}
});
const props$4 = {
const props$5 = {
latitude: {
type: [Number, String],
require: true
......@@ -8237,7 +8237,7 @@ const props$4 = {
};
var MapCircle = /* @__PURE__ */ defineSystemComponent({
name: "MapCircle",
props: props$4,
props: props$5,
setup(props2) {
const onMapReady = vue.inject("onMapReady");
let circle;
......@@ -8283,7 +8283,7 @@ var MapCircle = /* @__PURE__ */ defineSystemComponent({
};
}
});
const props$3 = {
const props$4 = {
id: {
type: [Number, String],
default: ""
......@@ -8303,7 +8303,7 @@ const props$3 = {
};
var MapControl = /* @__PURE__ */ defineSystemComponent({
name: "MapControl",
props: props$3,
props: props$4,
setup(props2) {
const onMapReady = vue.inject("onMapReady");
let control;
......@@ -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 = {
id: {
type: String,
......@@ -8435,6 +8564,10 @@ const props$2 = {
default() {
return [];
}
},
polygons: {
type: Array,
default: () => []
}
};
function getPoints(points) {
......@@ -8630,7 +8763,7 @@ var index$c = /* @__PURE__ */ defineBuiltInComponent({
"style": "width: 100%; height: 100%; position: relative; overflow: hidden"
}, null, 512), props2.markers.map((item) => item.id && vue.createVNode(MapMarker, vue.mergeProps({
"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;"
}, [slots.default && slots.default()])], 8, ["id"]);
};
......@@ -10404,40 +10537,6 @@ function createRightWindowTsx(rightWindow, layoutState, windowState) {
}, 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) {
const { r, g: g2, b } = hexToRgba(backgroundColor);
return `rgba(${r},${g2},${b},0)`;
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册