Skip to content

Commit

Permalink
feat: 新增快应用平台插件
Browse files Browse the repository at this point in the history
  • Loading branch information
周旺 committed Jul 21, 2021
1 parent d561ae9 commit be7bacd
Show file tree
Hide file tree
Showing 99 changed files with 7,813 additions and 375 deletions.
4 changes: 3 additions & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"packages/taro-components",
"packages/taro-components-react",
"packages/taro-components-rn",
"packages/taro-components-qa",
"packages/taro-extend",
"packages/taro-h5",
"packages/taro-helper",
Expand Down Expand Up @@ -43,7 +44,8 @@
"packages/taro-swan",
"packages/taro-tt",
"packages/taro-qq",
"packages/taro-jd"
"packages/taro-jd",
"packages/taro-quickapp"
],
"command": {
"publish": {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@
"webpack-merge": "^4.2.2"
},
"dependencies": {
"@rollup/plugin-json": "^4.1.0",
"@types/babel__traverse": "^7.0.7",
"@types/react-reconciler": "^0.18.0"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/src/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ const Input = {
focus: 'false',
'confirm-type': singleQuote('done'),
'confirm-hold': 'false',
cursor: 'i.value.length',
cursor: '(i.value && i.value.length)',
'selection-start': '-1',
'selection-end': '-1',
bindInput: '',
Expand Down
6 changes: 3 additions & 3 deletions packages/shared/src/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@ import { Shortcuts } from './shortcuts'
import { isBooleanStringLiteral, isNumber, isFunction } from './is'
import { toCamelCase, toKebabCase, toDashed, hasOwn } from './utils'

interface Component {
export interface Component {
nodeName: string;
attributes: Attributes;
}

interface Components {
export interface Components {
[key: string]: Record<string, string>;
}

interface ComponentConfig {
export interface ComponentConfig {
includes: Set<string>
exclude: Set<string>
thirdPartyComponents: Map<string, Set<string>>
Expand Down
6 changes: 6 additions & 0 deletions packages/shared/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ export const defaultReconciler = {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
isBubbleEvent (eventName: string) {
return BUBBLE_EVENTS.has(eventName)
},
modifyBindEventName (eventName: string, compName: string) {
if (eventName === 'click' && compName in internalComponents) {
return 'tap'
}
return eventName
}
}

Expand Down
1 change: 1 addition & 0 deletions packages/taro-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"@tarojs/plugin-platform-swan": "3.2.16",
"@tarojs/plugin-platform-tt": "3.2.16",
"@tarojs/plugin-platform-weapp": "3.2.16",
"@tarojs/plugin-platform-quickapp": "3.2.16",
"@tarojs/service": "3.2.16",
"@tarojs/shared": "3.2.16",
"@tarojs/taro": "3.2.16",
Expand Down
3 changes: 2 additions & 1 deletion packages/taro-cli/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ export default class CLI {
'@tarojs/plugin-platform-swan',
'@tarojs/plugin-platform-tt',
'@tarojs/plugin-platform-qq',
'@tarojs/plugin-platform-jd'
'@tarojs/plugin-platform-jd',
'@tarojs/plugin-platform-quickapp'
]
customCommand('build', kernel, {
_: args._,
Expand Down
3 changes: 2 additions & 1 deletion packages/taro-cli/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"strictNullChecks": true,
"target": "es2015",
"traceResolution": false,
"types": ["node", "jest"]
"types": ["node", "jest"],
"skipLibCheck": true
},
"include": [
"./src"
Expand Down
2 changes: 1 addition & 1 deletion packages/taro-components-qa/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tarojs/components-qa",
"version": "1.3.22",
"version": "3.2.16",
"description": "多端解决方案基础组件(快应用)",
"main": "./index.js",
"files": [
Expand Down
4 changes: 0 additions & 4 deletions packages/taro-components-qa/src/components/taro-audio/img.js

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
<script>
import audio from '@system.audio'

import { PAUSE_IMG, START_IMG } from './img.js'
const PAUSE_IMG = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAABMklEQVRoQ+2Z0Y3CQAxE7QqOEqAjbwd0QAmEDijhOliXBBVAB0YrATqdkGxl10SRZn/XmXiek/kx08oPr7x/goGlJ4gJrGICIrIhoiMR7YnoTkS/qnoa1XyPfugTEpEzMx/+NmxmJ1WdRpjo0Y8auDFzm8L7mNlFVXeDDMzWDxkopdinRmutoec9kz36oQZ6XuA13+579GEgQtirwQQyCXna+AeyCWXrI4UihL0apFAmIU8bKZRNKFsfKRQh7NUghTIJedpIoWxC2fpIoQhhrwYplEnI00YKZRPK1kcKRQh7NUihTEKe9rdSqC01fv41c621biMNejWllNn6oZ9YRCZmbhua9xm84JitHzLQun6aaCsmMrO2YhqynXkRmasfNuB9Bkvdw8BS5F/vxQQwgU4CD9RcRkCIkNZgAAAAAElFTkSuQmCC'
const START_IMG = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAB2klEQVRoQ9WZfVEEMQzFEwXgACSAk+IAHIAC7hRwKAAJwQE4AAWAA1DwmDdTZjo3cNtuu023f3d282s+XtKqrHzpyu2XIoAQwqmZfYwEnQUQQggi8qCqxwC+RGRjZvcjgEwC8NRV9X3fWADPInJhZgRyWzkA16p695eF0RuEIIzLygHYqOrtIesA7MzsxoOgCQANB/AaQ6prkjcDiBDMhxsze+zljaYAv0YDMBG56pHgiwBEbzCUmOAMrcXWYgCJN6gZ26UIFgeI3lhMM7oAJAnOvGB+NFvdAJKQaqoZ3QESzaA3qhPcBaClZrgBtNIMd4BazRgCoEYzhgKYoxnDASQJnjVnDAmQQJxPzeDDAkSIrZltDsn26ACcLXZrBfgGcLbWEPoEEHJajRFD6AnAZe40NxIAQ4bDz8GY38+HUQDe4qkXd6fuAAB4RcmTn3XD5wnAkGGsV01oXgAv0fjqS7DuAAAm1bVkYO4JwNrOkGl6EdwLoKi2j+SBWbV9FIDZtd0doLa2ewI0qe1eAKzt7CBnKWqJ0eneJlWodW0vgckB+PeRT0Sy+/YSo0r25gDwmZVd4tHehxer7U0B+DE+dKsq+/QTEemeqFUzcclpeOydDCEPo0r+uXqAHzf0dkAxk0BxAAAAAElFTkSuQmCC'

export default {
props: {
Expand Down

This file was deleted.

Loading

0 comments on commit be7bacd

Please sign in to comment.