Skip to content

Commit

Permalink
Merge pull request #15801 from licunhao1/f-h5map
Browse files Browse the repository at this point in the history
添加h5版map实现
  • Loading branch information
qican777 authored May 29, 2024
2 parents 165de1e + ff30262 commit fb8fe0c
Show file tree
Hide file tree
Showing 5 changed files with 1,591 additions and 287 deletions.
9 changes: 3 additions & 6 deletions packages/taro-components/__tests__/map.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ import { h } from '@stencil/core'
import { newSpecPage, SpecPage } from '@stencil/core/testing'

import { Map } from '../src/components/map/map'
import { printUnimplementedWarning } from './utils'

const logError = jest.fn()
console.error = logError

describe('Map', () => {
let page: SpecPage
Expand All @@ -18,8 +14,9 @@ describe('Map', () => {
await page.waitForChanges()

expect(page.root).toEqualHtml(`
<taro-map-core></taro-map-core>
<taro-map-core>
<div id="mapContainer" style="width: 100%; height: 100%;"></div>
</taro-map-core>
`)
expect(logError).toHaveBeenCalledWith(printUnimplementedWarning(page.root))
})
})
9 changes: 5 additions & 4 deletions packages/taro-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,11 @@
"@tarojs/components-advanced": "workspace:*",
"@tarojs/taro": "workspace:*",
"classnames": "^2.2.5",
"hammerjs": "^2.0.8",
"hls.js": "^1.1.5",
"resolve-pathname": "^3.0.0",
"tslib": "^2.6.2",
"swiper": "6.8.0"
"swiper": "6.8.0",
"tslib": "^2.6.2"
},
"devDependencies": {
"@babel/generator": "^7.20.0",
Expand All @@ -74,15 +75,15 @@
"lightningcss": "^1.22.1",
"lodash": "^4.17.21",
"miniapp-types": "1.6.0",
"mkdirp": "^1.0.4",
"puppeteer": "^19.2.0",
"rollup": "^3.8.1",
"rollup-plugin-node-externals": "^5.0.0",
"sass": "^1.58.3",
"stencil-vue2-output-target": "0.0.4",
"ts-node": "^10.9.1",
"tsconfig-paths": "^3.14.1",
"typescript": "^5.3.3",
"mkdirp": "^1.0.4"
"typescript": "^5.3.3"
},
"peerDependenciesMeta": {
"@types/react": {
Expand Down
Loading

0 comments on commit fb8fe0c

Please sign in to comment.