提交 2538ff31 编写于 作者: fxy060608's avatar fxy060608

chore: merge

...@@ -102,9 +102,11 @@ function createNVueTextVNode(text, attrs) { ...@@ -102,9 +102,11 @@ function createNVueTextVNode(text, attrs) {
} }
const navigatorStyles = [{ const navigatorStyles = [{
"navigator-hover": { "navigator-hover": {
"": {
backgroundColor: "rgba(0,0,0,0.1)", backgroundColor: "rgba(0,0,0,0.1)",
opacity: 0.7 opacity: 0.7
} }
}
}]; }];
var Navigator = defineComponent({ var Navigator = defineComponent({
name: "Navigator", name: "Navigator",
...@@ -311,6 +313,7 @@ const buttonProps = { ...@@ -311,6 +313,7 @@ const buttonProps = {
}; };
const buttonStyle = [{ const buttonStyle = [{
ub: { ub: {
"": {
flexDirection: "row", flexDirection: "row",
alignItems: "center", alignItems: "center",
justifyContent: "center", justifyContent: "center",
...@@ -324,167 +327,252 @@ const buttonStyle = [{ ...@@ -324,167 +327,252 @@ const buttonStyle = [{
borderStyle: "solid", borderStyle: "solid",
borderWidth: "1", borderWidth: "1",
borderColor: "#dbdbdb" borderColor: "#dbdbdb"
}
}, },
"ub-t": { "ub-t": {
"": {
color: "#000000", color: "#000000",
fontSize: "18", fontSize: "18",
textDecoration: "none", textDecoration: "none",
lineHeight: "46" lineHeight: "46"
}
}, },
"ub-d": { "ub-d": {
"": {
backgroundColor: "#f8f8f8" backgroundColor: "#f8f8f8"
}
}, },
"ub-p": { "ub-p": {
"": {
backgroundColor: "#007aff", backgroundColor: "#007aff",
borderColor: "#0062cc" borderColor: "#0062cc"
}
}, },
"ub-w": { "ub-w": {
"": {
backgroundColor: "#e64340", backgroundColor: "#e64340",
borderColor: "#b83633" borderColor: "#b83633"
}
}, },
"ub-d-t": { "ub-d-t": {
"": {
color: "#000000" color: "#000000"
}
}, },
"ub-p-t": { "ub-p-t": {
"": {
color: "#ffffff" color: "#ffffff"
}
}, },
"ub-w-t": { "ub-w-t": {
"": {
color: "#ffffff" color: "#ffffff"
}
}, },
"ub-d-d": { "ub-d-d": {
"": {
backgroundColor: "#f7f7f7" backgroundColor: "#f7f7f7"
}
}, },
"ub-p-d": { "ub-p-d": {
"": {
backgroundColor: "#63acfc", backgroundColor: "#63acfc",
borderColor: "#4f8aca" borderColor: "#4f8aca"
}
}, },
"ub-w-d": { "ub-w-d": {
"": {
backgroundColor: "#ec8b89", backgroundColor: "#ec8b89",
borderColor: "#bd6f6e" borderColor: "#bd6f6e"
}
}, },
"ub-d-t-d": { "ub-d-t-d": {
"": {
color: "#cccccc" color: "#cccccc"
}
}, },
"ub-p-t-d": { "ub-p-t-d": {
"": {
color: "rgba(255,255,255,0.6)" color: "rgba(255,255,255,0.6)"
}
}, },
"ub-w-t-d": { "ub-w-t-d": {
"": {
color: "rgba(255,255,255,0.6)" color: "rgba(255,255,255,0.6)"
}
}, },
"ub-d-plain": { "ub-d-plain": {
"": {
borderColor: "#353535", borderColor: "#353535",
backgroundColor: "rgba(0,0,0,0)" backgroundColor: "rgba(0,0,0,0)"
}
}, },
"ub-p-plain": { "ub-p-plain": {
"": {
borderColor: "#007aff", borderColor: "#007aff",
backgroundColor: "rgba(0,0,0,0)" backgroundColor: "rgba(0,0,0,0)"
}
}, },
"ub-w-plain": { "ub-w-plain": {
"": {
borderColor: "#e64340", borderColor: "#e64340",
backgroundColor: "rgba(0,0,0,0)" backgroundColor: "rgba(0,0,0,0)"
}
}, },
"ub-d-t-plain": { "ub-d-t-plain": {
"": {
color: "#353535" color: "#353535"
}
}, },
"ub-p-t-plain": { "ub-p-t-plain": {
"": {
color: "#007aff" color: "#007aff"
}
}, },
"ub-w-t-plain": { "ub-w-t-plain": {
"": {
color: "#e64340" color: "#e64340"
}
}, },
"ub-d-d-plain": { "ub-d-d-plain": {
"": {
borderColor: "#c6c6c6", borderColor: "#c6c6c6",
backgroundColor: "rgba(0,0,0,0)" backgroundColor: "rgba(0,0,0,0)"
}
}, },
"ub-p-d-plain": { "ub-p-d-plain": {
"": {
borderColor: "#c6c6c6", borderColor: "#c6c6c6",
backgroundColor: "rgba(0,0,0,0)" backgroundColor: "rgba(0,0,0,0)"
}
}, },
"ub-w-d-plain": { "ub-w-d-plain": {
"": {
borderColor: "#c6c6c6", borderColor: "#c6c6c6",
backgroundColor: "rgba(0,0,0,0)" backgroundColor: "rgba(0,0,0,0)"
}
}, },
"ub-d-t-d-plain": { "ub-d-t-d-plain": {
"": {
color: "rgba(0,0,0,0.2)" color: "rgba(0,0,0,0.2)"
}
}, },
"ub-p-t-d-plain": { "ub-p-t-d-plain": {
"": {
color: "rgba(0,0,0,0.2)" color: "rgba(0,0,0,0.2)"
}
}, },
"ub-w-t-d-plain": { "ub-w-t-d-plain": {
"": {
color: "rgba(0,0,0,0.2)" color: "rgba(0,0,0,0.2)"
}
}, },
"ub-mini": { "ub-mini": {
"": {
lineHeight: "30", lineHeight: "30",
fontSize: "13", fontSize: "13",
paddingTop: 0, paddingTop: 0,
paddingRight: "17.5", paddingRight: "17.5",
paddingBottom: 0, paddingBottom: 0,
paddingLeft: "17.5" paddingLeft: "17.5"
}
}, },
"ub-loading": { "ub-loading": {
"": {
width: "18", width: "18",
height: "18", height: "18",
marginRight: "10" marginRight: "10"
}
}, },
"ub-d-loading": { "ub-d-loading": {
"": {
color: "rgba(255,255,255,0.6)", color: "rgba(255,255,255,0.6)",
backgroundColor: "rgba(0,0,0,0)" backgroundColor: "rgba(0,0,0,0)"
}
}, },
"ub-p-loading": { "ub-p-loading": {
"": {
color: "rgba(255,255,255,0.6)", color: "rgba(255,255,255,0.6)",
backgroundColor: "rgba(0,0,0,0)" backgroundColor: "rgba(0,0,0,0)"
}
}, },
"ub-w-loading": { "ub-w-loading": {
"": {
color: "rgba(255,255,255,0.6)", color: "rgba(255,255,255,0.6)",
backgroundColor: "rgba(0,0,0,0)" backgroundColor: "rgba(0,0,0,0)"
}
}, },
"ub-d-loading-plain": { "ub-d-loading-plain": {
"": {
color: "#353535" color: "#353535"
}
}, },
"ub-p-loading-plain": { "ub-p-loading-plain": {
"": {
color: "#007aff", color: "#007aff",
backgroundColor: "#0062cc" backgroundColor: "#0062cc"
}
}, },
"ub-w-loading-plain": { "ub-w-loading-plain": {
"": {
color: "#e64340", color: "#e64340",
backgroundColor: "rgba(0,0,0,0)" backgroundColor: "rgba(0,0,0,0)"
}
}, },
"ub-d-hover": { "ub-d-hover": {
"": {
opacity: 0.8, opacity: 0.8,
backgroundColor: "#dedede" backgroundColor: "#dedede"
}
}, },
"ub-p-hover": { "ub-p-hover": {
"": {
opacity: 0.8, opacity: 0.8,
backgroundColor: "#0062cc" backgroundColor: "#0062cc"
}
}, },
"ub-w-hover": { "ub-w-hover": {
"": {
opacity: 0.8, opacity: 0.8,
backgroundColor: "#ce3c39" backgroundColor: "#ce3c39"
}
}, },
"ub-d-t-hover": { "ub-d-t-hover": {
"": {
color: "rgba(0,0,0,0.6)" color: "rgba(0,0,0,0.6)"
}
}, },
"ub-p-t-hover": { "ub-p-t-hover": {
"": {
color: "rgba(255,255,255,0.6)" color: "rgba(255,255,255,0.6)"
}
}, },
"ub-w-t-hover": { "ub-w-t-hover": {
"": {
color: "rgba(255,255,255,0.6)" color: "rgba(255,255,255,0.6)"
}
}, },
"ub-d-hover-plain": { "ub-d-hover-plain": {
"": {
color: "rgba(53,53,53,0.6)", color: "rgba(53,53,53,0.6)",
borderColor: "rgba(53,53,53,0.6)", borderColor: "rgba(53,53,53,0.6)",
backgroundColor: "rgba(0,0,0,0)" backgroundColor: "rgba(0,0,0,0)"
}
}, },
"ub-p-hover-plain": { "ub-p-hover-plain": {
"": {
color: "rgba(26,173,25,0.6)", color: "rgba(26,173,25,0.6)",
borderColor: "rgba(0,122,255,0.6)", borderColor: "rgba(0,122,255,0.6)",
backgroundColor: "rgba(0,0,0,0)" backgroundColor: "rgba(0,0,0,0)"
}
}, },
"ub-w-hover-plain": { "ub-w-hover-plain": {
"": {
color: "rgba(230,67,64,0.6)", color: "rgba(230,67,64,0.6)",
borderColor: "rgba(230,67,64,0.6)", borderColor: "rgba(230,67,64,0.6)",
backgroundColor: "rgba(0,0,0,0)" backgroundColor: "rgba(0,0,0,0)"
} }
}
}]; }];
const TYPES = { const TYPES = {
default: "d", default: "d",
......
...@@ -9,13 +9,18 @@ import { ...@@ -9,13 +9,18 @@ import {
import { uniLabelKey, UniLabelCtx } from '../label' import { uniLabelKey, UniLabelCtx } from '../label'
import { useListeners } from '../../helpers/useListeners' import { useListeners } from '../../helpers/useListeners'
import { useAttrs } from '../../helpers/useAttrs' import { useAttrs } from '../../helpers/useAttrs'
import { createNVueTextVNode, useHoverClass } from '../utils' import {
createNVueTextVNode,
NVueComponentStyles,
useHoverClass,
} from '../utils'
import { buttonProps } from '../../components/button' import { buttonProps } from '../../components/button'
import { extend } from '@vue/shared' import { extend } from '@vue/shared'
const buttonStyle = [ const buttonStyle: NVueComponentStyles = [
{ {
ub: { ub: {
'': {
flexDirection: 'row', flexDirection: 'row',
alignItems: 'center', alignItems: 'center',
justifyContent: 'center', justifyContent: 'center',
...@@ -30,95 +35,147 @@ const buttonStyle = [ ...@@ -30,95 +35,147 @@ const buttonStyle = [
borderWidth: '1', borderWidth: '1',
borderColor: '#dbdbdb', borderColor: '#dbdbdb',
}, },
},
'ub-t': { 'ub-t': {
'': {
color: '#000000', color: '#000000',
fontSize: '18', fontSize: '18',
textDecoration: 'none', textDecoration: 'none',
lineHeight: '46', lineHeight: '46',
}, },
},
'ub-d': { 'ub-d': {
'': {
backgroundColor: '#f8f8f8', backgroundColor: '#f8f8f8',
}, },
},
'ub-p': { 'ub-p': {
'': {
backgroundColor: '#007aff', backgroundColor: '#007aff',
borderColor: '#0062cc', borderColor: '#0062cc',
}, },
},
'ub-w': { 'ub-w': {
'': {
backgroundColor: '#e64340', backgroundColor: '#e64340',
borderColor: '#b83633', borderColor: '#b83633',
}, },
},
'ub-d-t': { 'ub-d-t': {
'': {
color: '#000000', color: '#000000',
}, },
},
'ub-p-t': { 'ub-p-t': {
'': {
color: '#ffffff', color: '#ffffff',
}, },
},
'ub-w-t': { 'ub-w-t': {
'': {
color: '#ffffff', color: '#ffffff',
}, },
},
'ub-d-d': { 'ub-d-d': {
'': {
backgroundColor: '#f7f7f7', backgroundColor: '#f7f7f7',
}, },
},
'ub-p-d': { 'ub-p-d': {
'': {
backgroundColor: '#63acfc', backgroundColor: '#63acfc',
borderColor: '#4f8aca', borderColor: '#4f8aca',
}, },
},
'ub-w-d': { 'ub-w-d': {
'': {
backgroundColor: '#ec8b89', backgroundColor: '#ec8b89',
borderColor: '#bd6f6e', borderColor: '#bd6f6e',
}, },
},
'ub-d-t-d': { 'ub-d-t-d': {
'': {
color: '#cccccc', color: '#cccccc',
}, },
},
'ub-p-t-d': { 'ub-p-t-d': {
'': {
color: 'rgba(255,255,255,0.6)', color: 'rgba(255,255,255,0.6)',
}, },
},
'ub-w-t-d': { 'ub-w-t-d': {
'': {
color: 'rgba(255,255,255,0.6)', color: 'rgba(255,255,255,0.6)',
}, },
},
'ub-d-plain': { 'ub-d-plain': {
'': {
borderColor: '#353535', borderColor: '#353535',
backgroundColor: 'rgba(0,0,0,0)', backgroundColor: 'rgba(0,0,0,0)',
}, },
},
'ub-p-plain': { 'ub-p-plain': {
'': {
borderColor: '#007aff', borderColor: '#007aff',
backgroundColor: 'rgba(0,0,0,0)', backgroundColor: 'rgba(0,0,0,0)',
}, },
},
'ub-w-plain': { 'ub-w-plain': {
'': {
borderColor: '#e64340', borderColor: '#e64340',
backgroundColor: 'rgba(0,0,0,0)', backgroundColor: 'rgba(0,0,0,0)',
}, },
},
'ub-d-t-plain': { 'ub-d-t-plain': {
'': {
color: '#353535', color: '#353535',
}, },
},
'ub-p-t-plain': { 'ub-p-t-plain': {
'': {
color: '#007aff', color: '#007aff',
}, },
},
'ub-w-t-plain': { 'ub-w-t-plain': {
'': {
color: '#e64340', color: '#e64340',
}, },
},
'ub-d-d-plain': { 'ub-d-d-plain': {
'': {
borderColor: '#c6c6c6', borderColor: '#c6c6c6',
backgroundColor: 'rgba(0,0,0,0)', backgroundColor: 'rgba(0,0,0,0)',
}, },
},
'ub-p-d-plain': { 'ub-p-d-plain': {
'': {
borderColor: '#c6c6c6', borderColor: '#c6c6c6',
backgroundColor: 'rgba(0,0,0,0)', backgroundColor: 'rgba(0,0,0,0)',
}, },
},
'ub-w-d-plain': { 'ub-w-d-plain': {
'': {
borderColor: '#c6c6c6', borderColor: '#c6c6c6',
backgroundColor: 'rgba(0,0,0,0)', backgroundColor: 'rgba(0,0,0,0)',
}, },
},
'ub-d-t-d-plain': { 'ub-d-t-d-plain': {
'': {
color: 'rgba(0,0,0,0.2)', color: 'rgba(0,0,0,0.2)',
}, },
},
'ub-p-t-d-plain': { 'ub-p-t-d-plain': {
'': {
color: 'rgba(0,0,0,0.2)', color: 'rgba(0,0,0,0.2)',
}, },
},
'ub-w-t-d-plain': { 'ub-w-t-d-plain': {
'': {
color: 'rgba(0,0,0,0.2)', color: 'rgba(0,0,0,0.2)',
}, },
},
'ub-mini': { 'ub-mini': {
'': {
lineHeight: '30', lineHeight: '30',
fontSize: '13', fontSize: '13',
paddingTop: 0, paddingTop: 0,
...@@ -126,71 +183,102 @@ const buttonStyle = [ ...@@ -126,71 +183,102 @@ const buttonStyle = [
paddingBottom: 0, paddingBottom: 0,
paddingLeft: '17.5', paddingLeft: '17.5',
}, },
},
'ub-loading': { 'ub-loading': {
'': {
width: '18', width: '18',
height: '18', height: '18',
marginRight: '10', marginRight: '10',
}, },
},
'ub-d-loading': { 'ub-d-loading': {
'': {
color: 'rgba(255,255,255,0.6)', color: 'rgba(255,255,255,0.6)',
backgroundColor: 'rgba(0,0,0,0)', backgroundColor: 'rgba(0,0,0,0)',
}, },
},
'ub-p-loading': { 'ub-p-loading': {
'': {
color: 'rgba(255,255,255,0.6)', color: 'rgba(255,255,255,0.6)',
backgroundColor: 'rgba(0,0,0,0)', backgroundColor: 'rgba(0,0,0,0)',
}, },
},
'ub-w-loading': { 'ub-w-loading': {
'': {
color: 'rgba(255,255,255,0.6)', color: 'rgba(255,255,255,0.6)',
backgroundColor: 'rgba(0,0,0,0)', backgroundColor: 'rgba(0,0,0,0)',
}, },
},
'ub-d-loading-plain': { 'ub-d-loading-plain': {
color: '#353535', '': { color: '#353535' },
}, },
'ub-p-loading-plain': { 'ub-p-loading-plain': {
'': {
color: '#007aff', color: '#007aff',
backgroundColor: '#0062cc', backgroundColor: '#0062cc',
}, },
},
'ub-w-loading-plain': { 'ub-w-loading-plain': {
'': {
color: '#e64340', color: '#e64340',
backgroundColor: 'rgba(0,0,0,0)', backgroundColor: 'rgba(0,0,0,0)',
}, },
},
'ub-d-hover': { 'ub-d-hover': {
'': {
opacity: 0.8, opacity: 0.8,
backgroundColor: '#dedede', backgroundColor: '#dedede',
}, },
},
'ub-p-hover': { 'ub-p-hover': {
'': {
opacity: 0.8, opacity: 0.8,
backgroundColor: '#0062cc', backgroundColor: '#0062cc',
}, },
},
'ub-w-hover': { 'ub-w-hover': {
'': {
opacity: 0.8, opacity: 0.8,
backgroundColor: '#ce3c39', backgroundColor: '#ce3c39',
}, },
},
'ub-d-t-hover': { 'ub-d-t-hover': {
'': {
color: 'rgba(0,0,0,0.6)', color: 'rgba(0,0,0,0.6)',
}, },
},
'ub-p-t-hover': { 'ub-p-t-hover': {
'': {
color: 'rgba(255,255,255,0.6)', color: 'rgba(255,255,255,0.6)',
}, },
},
'ub-w-t-hover': { 'ub-w-t-hover': {
'': {
color: 'rgba(255,255,255,0.6)', color: 'rgba(255,255,255,0.6)',
}, },
},
'ub-d-hover-plain': { 'ub-d-hover-plain': {
'': {
color: 'rgba(53,53,53,0.6)', color: 'rgba(53,53,53,0.6)',
borderColor: 'rgba(53,53,53,0.6)', borderColor: 'rgba(53,53,53,0.6)',
backgroundColor: 'rgba(0,0,0,0)', backgroundColor: 'rgba(0,0,0,0)',
}, },
},
'ub-p-hover-plain': { 'ub-p-hover-plain': {
'': {
color: 'rgba(26,173,25,0.6)', color: 'rgba(26,173,25,0.6)',
borderColor: 'rgba(0,122,255,0.6)', borderColor: 'rgba(0,122,255,0.6)',
backgroundColor: 'rgba(0,0,0,0)', backgroundColor: 'rgba(0,0,0,0)',
}, },
},
'ub-w-hover-plain': { 'ub-w-hover-plain': {
'': {
color: 'rgba(230,67,64,0.6)', color: 'rgba(230,67,64,0.6)',
borderColor: 'rgba(230,67,64,0.6)', borderColor: 'rgba(230,67,64,0.6)',
backgroundColor: 'rgba(0,0,0,0)', backgroundColor: 'rgba(0,0,0,0)',
}, },
}, },
},
] ]
const TYPES = { const TYPES = {
default: 'd', default: 'd',
......
...@@ -3,15 +3,17 @@ import { ...@@ -3,15 +3,17 @@ import {
createNavigatorOnClick, createNavigatorOnClick,
navigatorProps, navigatorProps,
} from '../../components/navigator' } from '../../components/navigator'
import { useHoverClass } from '../utils' import { NVueComponentStyles, useHoverClass } from '../utils'
const navigatorStyles: Record<string, Record<string, string | number>>[] = [ const navigatorStyles: NVueComponentStyles = [
{ {
'navigator-hover': { 'navigator-hover': {
'': {
backgroundColor: 'rgba(0,0,0,0.1)', backgroundColor: 'rgba(0,0,0,0.1)',
opacity: 0.7, opacity: 0.7,
}, },
}, },
},
] ]
export default defineComponent({ export default defineComponent({
......
import { createElementVNode } from 'vue' import { createElementVNode } from 'vue'
import { extend, hasOwn } from '@vue/shared' import { extend, hasOwn } from '@vue/shared'
export type NVueComponentStyles = Array<
Record<string, Record<string, Record<string, unknown>>>
>
interface HoverProps { interface HoverProps {
hoverClass?: string hoverClass?: string
hoverStartTime?: number | string hoverStartTime?: number | string
......
...@@ -8633,7 +8633,7 @@ var index$c = /* @__PURE__ */ defineBuiltInComponent({ ...@@ -8633,7 +8633,7 @@ var index$c = /* @__PURE__ */ defineBuiltInComponent({
}, [vue.createVNode("div", { }, [vue.createVNode("div", {
"ref": mapRef, "ref": mapRef,
"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) => 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), 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;"
......
...@@ -20394,7 +20394,7 @@ var Map$1 = /* @__PURE__ */ defineBuiltInComponent({ ...@@ -20394,7 +20394,7 @@ var Map$1 = /* @__PURE__ */ defineBuiltInComponent({
}, [createVNode("div", { }, [createVNode("div", {
"ref": mapRef, "ref": mapRef,
"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 && createVNode(MapMarker, mergeProps({ }, null, 512), props2.markers.map((item) => createVNode(MapMarker, mergeProps({
"key": item.id "key": item.id
}, item), null, 16)), props2.polyline.map((item) => createVNode(MapPolyline, item, null, 16)), props2.circles.map((item) => createVNode(MapCircle, item, null, 16)), props2.controls.map((item) => createVNode(MapControl, item, null, 16)), props2.showLocation && createVNode(MapLocation, null, null), createVNode("div", { }, item), null, 16)), props2.polyline.map((item) => createVNode(MapPolyline, item, null, 16)), props2.circles.map((item) => createVNode(MapCircle, item, null, 16)), props2.controls.map((item) => createVNode(MapControl, item, null, 16)), props2.showLocation && createVNode(MapLocation, null, null), 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;"
......
...@@ -463,9 +463,9 @@ export default /*#__PURE__*/ defineBuiltInComponent({ ...@@ -463,9 +463,9 @@ export default /*#__PURE__*/ defineBuiltInComponent({
ref={mapRef} ref={mapRef}
style="width: 100%; height: 100%; position: relative; overflow: hidden" style="width: 100%; height: 100%; position: relative; overflow: hidden"
/> />
{props.markers.map( {props.markers.map((item) => (
(item) => item.id && <MapMarker key={item.id} {...item} /> <MapMarker key={item.id} {...item} />
)} ))}
{props.polyline.map((item) => ( {props.polyline.map((item) => (
<MapPolyline {...item} /> <MapPolyline {...item} />
))} ))}
......
...@@ -349,6 +349,7 @@ export declare interface NVueElement { ...@@ -349,6 +349,7 @@ export declare interface NVueElement {
type: string; type: string;
ref: string; ref: string;
text?: string; text?: string;
classList: string[];
parentNode: NVueElement | null; parentNode: NVueElement | null;
children: Array<NVueElement>; children: Array<NVueElement>;
previousSibling: NVueElement | null; previousSibling: NVueElement | null;
...@@ -359,6 +360,7 @@ export declare interface NVueElement { ...@@ -359,6 +360,7 @@ export declare interface NVueElement {
insertAfter: (node: NVueElement, after: NVueElement) => void; insertAfter: (node: NVueElement, after: NVueElement) => void;
setAttr: (key: string, value: any, silent?: boolean) => void; setAttr: (key: string, value: any, silent?: boolean) => void;
setAttrs: (attrs: Record<string, unknown>, silent?: boolean) => void; setAttrs: (attrs: Record<string, unknown>, silent?: boolean) => void;
setClassList: (classList: string[]) => void;
setStyle: (key: string, value: any, silent?: boolean) => void; setStyle: (key: string, value: any, silent?: boolean) => void;
setStyles: (attrs: Record<string, unknown>, silent?: boolean) => void; setStyles: (attrs: Record<string, unknown>, silent?: boolean) => void;
addEvent: (type: string, handler: Function, args?: Array<any>) => void; addEvent: (type: string, handler: Function, args?: Array<any>) => void;
......
...@@ -85,6 +85,7 @@ export interface NVueElement { ...@@ -85,6 +85,7 @@ export interface NVueElement {
ref: string ref: string
text?: string text?: string
classList: string[]
parentNode: NVueElement | null parentNode: NVueElement | null
children: Array<NVueElement> children: Array<NVueElement>
previousSibling: NVueElement | null previousSibling: NVueElement | null
...@@ -96,6 +97,7 @@ export interface NVueElement { ...@@ -96,6 +97,7 @@ export interface NVueElement {
insertAfter: (node: NVueElement, after: NVueElement) => void insertAfter: (node: NVueElement, after: NVueElement) => void
setAttr: (key: string, value: any, silent?: boolean) => void setAttr: (key: string, value: any, silent?: boolean) => void
setAttrs: (attrs: Record<string, unknown>, silent?: boolean) => void setAttrs: (attrs: Record<string, unknown>, silent?: boolean) => void
setClassList: (classList: string[]) => void
setStyle: (key: string, value: any, silent?: boolean) => void setStyle: (key: string, value: any, silent?: boolean) => void
setStyles: (attrs: Record<string, unknown>, silent?: boolean) => void setStyles: (attrs: Record<string, unknown>, silent?: boolean) => void
addEvent: (type: string, handler: Function, args?: Array<any>) => void addEvent: (type: string, handler: Function, args?: Array<any>) => void
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册