@tarojs/plugin-platform-harmony-ets 4.0.0-beta.1 → 4.0.0-beta.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/apis/device/memory.ts +10 -3
- package/dist/apis/index.ts +2 -0
- package/dist/apis/network/request.ts +5 -5
- package/dist/apis/route/index.ts +15 -0
- package/dist/apis/storage/index.ts +124 -60
- package/dist/apis/wxml/index.ts +2 -0
- package/dist/components-harmony-ets/button.ets +54 -100
- package/dist/components-harmony-ets/checkbox.ets +25 -140
- package/dist/components-harmony-ets/form.ets +34 -78
- package/dist/components-harmony-ets/icon.ets +24 -82
- package/dist/components-harmony-ets/image.ets +16 -76
- package/dist/components-harmony-ets/innerHtml.ets +10 -6
- package/dist/components-harmony-ets/input.ets +3 -62
- package/dist/components-harmony-ets/label.ets +46 -83
- package/dist/components-harmony-ets/movableArea.ets +67 -0
- package/dist/components-harmony-ets/movableView.ets +66 -0
- package/dist/components-harmony-ets/picker.ets +33 -141
- package/dist/components-harmony-ets/progress.ets +45 -0
- package/dist/components-harmony-ets/radio.ets +24 -140
- package/dist/components-harmony-ets/richText.ets +17 -78
- package/dist/components-harmony-ets/scrollView.ets +61 -155
- package/dist/components-harmony-ets/slider.ets +5 -69
- package/dist/components-harmony-ets/style.ets +154 -0
- package/dist/components-harmony-ets/swiper.ets +26 -86
- package/dist/components-harmony-ets/switch.ets +5 -69
- package/dist/components-harmony-ets/text.ets +29 -87
- package/dist/components-harmony-ets/textArea.ets +3 -62
- package/dist/components-harmony-ets/utils/flexManager.ets +44 -6
- package/dist/components-harmony-ets/utils/helper.ets +2 -2
- package/dist/components-harmony-ets/utils/styles.ets +12 -1
- package/dist/components-harmony-ets/video.ets +29 -88
- package/dist/components-harmony-ets/view.ets +38 -144
- package/dist/components-harmony-ets/webView.ets +55 -0
- package/dist/index.js +122 -17
- package/dist/index.js.map +1 -1
- package/dist/runtime-ets/bom/window.ts +2 -2
- package/dist/runtime-ets/dom/cssStyleDeclaration.ts +23 -3
- package/dist/runtime-ets/dom/document.ts +21 -4
- package/dist/runtime-ets/dom/element/element.ts +0 -1
- package/dist/runtime-ets/dom/element/form.ts +11 -4
- package/dist/runtime-ets/dom/element/index.ts +12 -1
- package/dist/runtime-ets/dom/element/movableArea.ts +12 -0
- package/dist/runtime-ets/dom/element/movableView.ts +12 -0
- package/dist/runtime-ets/dom/element/normal.ts +9 -2
- package/dist/runtime-ets/dom/element/progress.ts +13 -0
- package/dist/runtime-ets/dom/element/scrollView.ts +1 -0
- package/dist/runtime-ets/dom/element/text.ts +1 -0
- package/dist/runtime-ets/dom/element/video.ts +1 -0
- package/dist/runtime-ets/dom/element/webView.ts +69 -0
- package/dist/runtime-ets/dom/node.ts +18 -17
- package/dist/runtime-ets/dom/stylesheet/covertWeb2Hm.ts +73 -0
- package/dist/runtime-ets/dom/stylesheet/util.ts +3 -1
- package/dist/runtime-ets/index.ts +1 -2
- package/dist/runtime-ets/utils/index.ts +4 -1
- package/dist/runtime-framework/react/app.ts +12 -22
- package/dist/runtime-framework/react/hooks.ts +3 -3
- package/dist/runtime-framework/react/index.ts +1 -0
- package/dist/runtime-framework/react/native-page.ts +344 -0
- package/dist/runtime-framework/react/page.ts +2 -2
- package/dist/runtime-framework/solid/hooks.ts +3 -3
- package/dist/runtime-utils.js +134 -68
- package/dist/runtime-utils.js.map +1 -1
- package/dist/runtime.js +134 -68
- package/dist/runtime.js.map +1 -1
- package/package.json +10 -10
- package/types/runtime.d.ts +2 -0
- package/dist/runtime-ets/utils/bind.ts +0 -24
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/plugin-platform-harmony-ets",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.11",
|
|
4
4
|
"description": "OpenHarmony & 鸿蒙系统插件",
|
|
5
5
|
"author": "O2Team",
|
|
6
6
|
"homepage": "https://gitee.com/openharmony-sig/taro",
|
|
@@ -25,17 +25,17 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"webpack-sources": "^3.2.3",
|
|
28
|
-
"@tarojs/components": "4.0.0-beta.
|
|
29
|
-
"@tarojs/
|
|
30
|
-
"@tarojs/
|
|
31
|
-
"@tarojs/
|
|
32
|
-
"@tarojs/
|
|
33
|
-
"@tarojs/
|
|
34
|
-
"@tarojs/
|
|
28
|
+
"@tarojs/components": "4.0.0-beta.11",
|
|
29
|
+
"@tarojs/runner-utils": "4.0.0-beta.11",
|
|
30
|
+
"@tarojs/service": "4.0.0-beta.11",
|
|
31
|
+
"@tarojs/helper": "4.0.0-beta.11",
|
|
32
|
+
"@tarojs/runtime": "4.0.0-beta.11",
|
|
33
|
+
"@tarojs/shared": "4.0.0-beta.11",
|
|
34
|
+
"@tarojs/taro": "4.0.0-beta.11"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@rollup/plugin-commonjs": "^
|
|
38
|
-
"@rollup/plugin-node-resolve": "^
|
|
37
|
+
"@rollup/plugin-commonjs": "^25.0.7",
|
|
38
|
+
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
39
39
|
"@rollup/plugin-typescript": "^11.1.0",
|
|
40
40
|
"fast-glob": "^3.3.1",
|
|
41
41
|
"rollup": "^3.8.1",
|
package/types/runtime.d.ts
CHANGED
|
@@ -16,4 +16,6 @@ declare module '@tarojs/runtime' {
|
|
|
16
16
|
export function findChildNodeWithDFS<T extends TaroElement = TaroElement> (node: TaroElement, selector: string | ((ele: T) => boolean), selectAll: true): T[] | null
|
|
17
17
|
export function findChildNodeWithDFS<T extends TaroElement = TaroElement> (node: TaroElement, selector: string | ((ele: T) => boolean), selectAll?: false): T | null
|
|
18
18
|
export function findChildNodeWithDFS<T extends TaroElement = TaroElement> (node: TaroElement, selector: string | ((ele: T) => boolean), selectAll: boolean): T[] | T | null
|
|
19
|
+
|
|
20
|
+
export const window: any
|
|
19
21
|
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { bindAttributesCallback } from './info'
|
|
2
|
-
|
|
3
|
-
import type { TaroElement } from '../dom/element/element'
|
|
4
|
-
|
|
5
|
-
// function convertToCamelCase(str) {
|
|
6
|
-
// return str.replace(/-(.)/g, (_, char) => char.toUpperCase()).replace(/^\w/, firstChar => firstChar.toUpperCase())
|
|
7
|
-
// }
|
|
8
|
-
|
|
9
|
-
export function bindScrollTo (node: TaroElement) {
|
|
10
|
-
bindAttributesCallback(node, 'scrollTo', () => {
|
|
11
|
-
node.scroller.scrollTo({
|
|
12
|
-
xOffset: node._attrs.scrollLeft || 0,
|
|
13
|
-
yOffset: node._attrs.scrollTop || 0,
|
|
14
|
-
})
|
|
15
|
-
})
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export function bindFocus (node: TaroElement) {
|
|
19
|
-
bindAttributesCallback(node, 'focus', () => {
|
|
20
|
-
// TODO: ETS转TS
|
|
21
|
-
// focusControl.requestFocus(node._nid)
|
|
22
|
-
})
|
|
23
|
-
}
|
|
24
|
-
|