提交 16df5f80 编写于 作者: shutao-dc's avatar shutao-dc

Merge branch 'dev' of https://gitcode.net/dcloud/hello-uni-app-x into dev

......@@ -6,7 +6,7 @@
真机运行标准基座仅包含系统定位,即system。\n
部分手机因gms兼容不好可能导致无法定位。\n
gcj国标、逆地理信息等功能需三方sdk定位。如果需要类似能力可以下载腾讯定位插件,打包自定义基座。参考示例:</text>
<u-link :href="'https://gitcode.net/dcloud/uni-api/'" :text="'https://gitcode.net/dcloud/uni-api/'" :inWhiteList="true"></u-link>
<u-link :href="'https://ext.dcloud.net.cn/plugin?id=14569'" :text="'https://ext.dcloud.net.cn/plugin?id=14569'" :inWhiteList="true"></u-link>
</view>
<view class="uni-padding-wrap uni-common-mt">
......
......@@ -69,7 +69,7 @@ export default {
},
methods: {
validateGeneralAttributes() {
const generalTarget = this.$refs.get('general-target') as Element
const generalTarget = this.$refs['general-target'] as Element
const generalId = generalTarget.getAttribute('id')
if (generalId != this.generalId) {
this.validateGeneralAttrText = '基础属性 id 验证失败'
......
......@@ -82,7 +82,7 @@
setElementStyle(refName:string,propertyName : string, propertyStyle : any) : void {
let element : Element | null = this.$elementMap.get(refName)
if(element == null){
element = this.$refs.get(refName) as Element;
element = this.$refs[refName] as Element;
this.$elementMap.set(refName,element)
}else{
// console.log('直接拿');
......
......@@ -64,7 +64,7 @@
setElementStyle(refName : string, propertyName : string, propertyStyle : any) : void {
let element : Element | null = this.$elementMap.get(refName)
if (element == null) {
element = this.$refs.get(refName) as Element;
element = this.$refs[refName] as Element;
this.$elementMap.set(refName, element)
}
element.style.setProperty(propertyName, propertyStyle);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册