From f72d7c59dfe79b047fc3557155470f10b004ca9d Mon Sep 17 00:00:00 2001 From: 273341tianshuai <#18471Xqaz> Date: Thu, 22 Jul 2021 15:53:09 +0800 Subject: [PATCH 01/10] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=89=88=E6=9D=83?= =?UTF-8?q?=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/js/default/pages/index/index.css | 14 ++++++++++++++ entry/src/main/js/default/pages/index/index.js | 15 +++++++++++++++ 2 files changed, 29 insertions(+) diff --git a/entry/src/main/js/default/pages/index/index.css b/entry/src/main/js/default/pages/index/index.css index 1a37a4b..28b3fd9 100644 --- a/entry/src/main/js/default/pages/index/index.css +++ b/entry/src/main/js/default/pages/index/index.css @@ -1,3 +1,17 @@ +/* + * Copyright (C) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ .container { diff --git a/entry/src/main/js/default/pages/index/index.js b/entry/src/main/js/default/pages/index/index.js index 39dbfd2..e7fb80f 100644 --- a/entry/src/main/js/default/pages/index/index.js +++ b/entry/src/main/js/default/pages/index/index.js @@ -1,3 +1,18 @@ +/* + * Copyright (C) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import prompt from '@system.prompt'; export default { data: { -- Gitee From ffd8c8188a289ef45a96f8745c60b1026e280b53 Mon Sep 17 00:00:00 2001 From: 273341tianshuai <#18471Xqaz> Date: Thu, 22 Jul 2021 16:01:32 +0800 Subject: [PATCH 02/10] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=89=88=E6=9D=83?= =?UTF-8?q?=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/js/default/pages/index/index.hml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/entry/src/main/js/default/pages/index/index.hml b/entry/src/main/js/default/pages/index/index.hml index 2606b3a..b14a325 100644 --- a/entry/src/main/js/default/pages/index/index.hml +++ b/entry/src/main/js/default/pages/index/index.hml @@ -1,3 +1,15 @@ +
AutoSpannableTextView @@ -11,9 +23,6 @@
- - - 活动介绍,开始以图片开头
-- Gitee From 9d06cfe2fa0109564f55a222f9a77b005861c8ac Mon Sep 17 00:00:00 2001 From: 273341tianshuai <#18471Xqaz> Date: Thu, 22 Jul 2021 16:03:13 +0800 Subject: [PATCH 03/10] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=89=88=E6=9D=83?= =?UTF-8?q?=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/js/default/pages/index/index.hml | 1 + 1 file changed, 1 insertion(+) diff --git a/entry/src/main/js/default/pages/index/index.hml b/entry/src/main/js/default/pages/index/index.hml index b14a325..4ee7131 100644 --- a/entry/src/main/js/default/pages/index/index.hml +++ b/entry/src/main/js/default/pages/index/index.hml @@ -10,6 +10,7 @@ Copyright (C) 2021 Huawei Device Co., Ltd. See the License for the specific language governing permissions and limitations under the License. --> +
AutoSpannableTextView -- Gitee From 8654edbe9e5c4c9db478e328a7e4e5e1a8b08d74 Mon Sep 17 00:00:00 2001 From: 273341tianshuai <#18471Xqaz> Date: Thu, 22 Jul 2021 16:17:41 +0800 Subject: [PATCH 04/10] =?UTF-8?q?=E6=8C=89=E6=96=B0=E8=A7=84=E8=8C=83?= =?UTF-8?q?=E9=87=8D=E6=96=B0=E5=86=99=20CHANGELOG.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2df93e2..ed13954 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ ### 0.0.1-SNAPSHOT - 支持一些关键字可以用下划线单击文本视图 - 完整实现了源库全部API + + ohos 第一个版本,完整实现了原库的全部 api -- Gitee From 714874cd882a26f7e59ec7f1669c2529eeaae163 Mon Sep 17 00:00:00 2001 From: 273341tianshuai <#18471Xqaz> Date: Fri, 23 Jul 2021 15:52:16 +0800 Subject: [PATCH 05/10] =?UTF-8?q?1.=20=E4=BF=AE=E6=94=B9readme,CHANGELOG?= =?UTF-8?q?=E6=96=87=E4=BB=B6=202.=20=E5=88=A0=E9=99=A4=E7=AD=BE=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 2 +- README.md | 20 +++++++++++--------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ed13954..662324b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ ### 0.0.1-SNAPSHOT - ohos 第一个版本,完整实现了原库的全部 api + ohos 第一个版本,用jsUI框架开发实现,无library,完整实现了原库的全功能 diff --git a/README.md b/README.md index e35aab3..5a7b91b 100644 --- a/README.md +++ b/README.md @@ -1,24 +1,26 @@ -#### AutoSpannableTextView +### AutoSpannableTextView -#### 项目介绍 +##### 项目介绍 * 项目名称: AutoSpannableTextView * 所属系列:openharmony的第三方组件适配移植 * 功能:支持一些关键词可以用下划线文本视图单击 * 项目移植状态:主功能完成 -* 调用差异:JS +* 调用差异:新库使用jsUI框架开发实现,无library, 调用请参考demo; * 开发版本:sdk6,DevEco Studio 2.2 bate1 * 基线版本:Release v1.0.1 -#### 效果演示 +##### 效果演示 -#### 安装教程 -直接引入主界面即可使用 +##### 安装教程 +在sdk6,DevEco Studio 2.2 Beta1下项目可直接运行。 + 如无法运行,删除项目.gradle,.idea,build,gradle,build.gradle文件, + 并依据自己的版本创建新项目,将新项目的对应文件复制到根目录下 -#### 使用说明 +##### 使用说明 1. 在hml代码中,点击事件的目标元素添加自定义属性idx,绑定点击事件textClick ```
@@ -68,7 +70,7 @@ textClick(event){ } ``` -#### 测试信息 +##### 测试信息 CodeCheck代码测试无异常 @@ -79,7 +81,7 @@ CloudTest代码测试无异常 当前版本demo功能与原组件基本无差异 -#### 版本迭代 +##### 版本迭代 * 0.0.1-SNAPSHOT -- Gitee From 8e2374225587f336f51f09b90882acce2382fd54 Mon Sep 17 00:00:00 2001 From: 273341tianshuai <#18471Xqaz> Date: Fri, 23 Jul 2021 15:53:34 +0800 Subject: [PATCH 06/10] =?UTF-8?q?1.=20=E4=BF=AE=E6=94=B9readme=E6=A0=87?= =?UTF-8?q?=E9=A2=98=E6=96=87=E5=AD=97=E5=A4=A7=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5a7b91b..ac70083 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -### AutoSpannableTextView +# AutoSpannableTextView ##### 项目介绍 -- Gitee From 91163e240b9850abb0e62550b2ffbe8490a9848b Mon Sep 17 00:00:00 2001 From: 273341tianshuai <#18471Xqaz> Date: Fri, 23 Jul 2021 15:58:09 +0800 Subject: [PATCH 07/10] =?UTF-8?q?1.=20=E4=BF=AE=E6=94=B9readme=E6=A0=87?= =?UTF-8?q?=E9=A2=98=E6=96=87=E5=AD=97=E5=A4=A7=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index ac70083..c3e0f49 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # AutoSpannableTextView -##### 项目介绍 +## 项目介绍 * 项目名称: AutoSpannableTextView * 所属系列:openharmony的第三方组件适配移植 @@ -11,16 +11,15 @@ * 开发版本:sdk6,DevEco Studio 2.2 bate1 * 基线版本:Release v1.0.1 -##### 效果演示 +## 效果演示 +![cmd-markdown-logo](gif/1.gif) - - -##### 安装教程 +## 安装教程 在sdk6,DevEco Studio 2.2 Beta1下项目可直接运行。 如无法运行,删除项目.gradle,.idea,build,gradle,build.gradle文件, 并依据自己的版本创建新项目,将新项目的对应文件复制到根目录下 -##### 使用说明 +## 使用说明 1. 在hml代码中,点击事件的目标元素添加自定义属性idx,绑定点击事件textClick ```
@@ -70,7 +69,7 @@ textClick(event){ } ``` -##### 测试信息 +## 测试信息 CodeCheck代码测试无异常 @@ -81,7 +80,7 @@ CloudTest代码测试无异常 当前版本demo功能与原组件基本无差异 -##### 版本迭代 +## 版本迭代 * 0.0.1-SNAPSHOT -- Gitee From 3105f4d4c267ff5c44a25672db30cde137ec0f67 Mon Sep 17 00:00:00 2001 From: 273341tianshuai <#18471Xqaz> Date: Fri, 23 Jul 2021 16:00:46 +0800 Subject: [PATCH 08/10] =?UTF-8?q?1.=20=E4=BF=AE=E6=94=B9CHANGELOG=E6=A0=87?= =?UTF-8?q?=E9=A2=98=E6=96=87=E5=AD=97=E5=A4=A7=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 662324b..b18861e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -### 0.0.1-SNAPSHOT +## 0.0.1-SNAPSHOT ohos 第一个版本,用jsUI框架开发实现,无library,完整实现了原库的全功能 -- Gitee From dea9a19b4e048d8e17481b3a02129e9fe18465b0 Mon Sep 17 00:00:00 2001 From: 273341tianshuai <#18471Xqaz> Date: Fri, 23 Jul 2021 16:24:21 +0800 Subject: [PATCH 09/10] =?UTF-8?q?1.=20=E5=88=A0=E9=99=A4=E7=AD=BE=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/build.gradle | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/entry/build.gradle b/entry/build.gradle index 745190e..90cf659 100644 --- a/entry/build.gradle +++ b/entry/build.gradle @@ -2,17 +2,6 @@ apply plugin: 'com.huawei.ohos.hap' apply plugin: 'com.huawei.ohos.decctest' //For instructions on signature configuration, see https://developer.harmonyos.com/cn/docs/documentation/doc-guides/ide_debug_device-0000001053822404#ZH-CN_TOPIC_0000001154985555__section1112183053510 ohos { - signingConfigs { - debug { - storeFile file('C:\\Users\\273341tianshuai\\.ohos\\config\\auto_debug_2850086000492781927.p12') - storePassword '000000185FFCA58CE3E0E9E125691AC897C3619BF77BA98A889ACE60FE95DB51FB40FC07ECFAFD45' - keyAlias = 'debugKey' - keyPassword '00000018318F1CC2D82A5C1BB6D84C5418DFE19CEB5F04215F1E71D1609BA415068B3D9DD7E47E36' - signAlg = 'SHA256withECDSA' - profile file('C:\\Users\\273341tianshuai\\.ohos\\config\\auto_debug_len_2850086000492781927.p7b') - certpath file('C:\\Users\\273341tianshuai\\.ohos\\config\\auto_debug_2850086000492781927.cer') - } - } compileSdkVersion 6 defaultConfig { compatibleSdkVersion 5 -- Gitee From 2ff49e9b92bbdf12ee38edcec577f26f6be933f2 Mon Sep 17 00:00:00 2001 From: 273341tianshuai <#18471Xqaz> Date: Fri, 23 Jul 2021 17:15:16 +0800 Subject: [PATCH 10/10] =?UTF-8?q?1.=20=E4=BF=AE=E6=94=B9changelog?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 6 +++++- README.md | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b18861e..a42dfb3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,8 @@ ## 0.0.1-SNAPSHOT - ohos 第一个版本,用jsUI框架开发实现,无library,完整实现了原库的全功能 + ohos 第一个版本 + + * 实现了原库的全部 api + * 因为使用了jsUI开发,没有library文件 + diff --git a/README.md b/README.md index c3e0f49..bbb58f6 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ * 所属系列:openharmony的第三方组件适配移植 * 功能:支持一些关键词可以用下划线文本视图单击 * 项目移植状态:主功能完成 -* 调用差异:新库使用jsUI框架开发实现,无library, 调用请参考demo; +* 调用差异:新库使用jsUI框架开发实现,无library,调用请参考demo * 开发版本:sdk6,DevEco Studio 2.2 bate1 * 基线版本:Release v1.0.1 -- Gitee