quickappcn / quickapp-dsl-vue Goto Github PK
View Code? Open in Web Editor NEWVue DSL在快应用的适配,包含官方Vue项目的构建后代码
Vue DSL在快应用的适配,包含官方Vue项目的构建后代码
<template>
<div>
<input v-model="value">
<text>{{ 'value:'+ value }}</text>
</div>
</template>
<script>
export default {
data () {
return {
value: 123,
}
},
}
</script>
1、1060平台,调试器的控制台为什么没显示log,debugger也没用..
使用vue开发快应用 能支持 elementui框架引入吗
能的话能否告知怎么使用
animation-fill-mode: forwards;
对于百分比单位的transform不生效, 在压入后台再切回前台的时候
.animated-x {
animation-name: translateX;
animation-delay: 1s;
animation-duration: 1s;
animation-fill-mode: forwards;
transform: translateX(200%);
}
@keyframes translateX {
0% {
transform: translateX(200%);
}
100% {
transform: translateX(0%);
}
}
复现代码在
https://github.com/deepkolos/todomvc-vue/blob/master/src/pages/animation/index.vue#L19
安装了最新的调试器1050,使用vue语法时应用运行不起来
hap-toolkit手动移除了保留组件列表的template, template可工作, 但是出现异常
const FRAG_TYPE = {
IMPORT: 'import',
// TEMPLATE: 'template',
STYLE: 'style',
SCRIPT: 'script'
};
<style>
.slot-el {
margin: 10px;
background-color: aqua;
height: 100px;
width: 100%;
}
.slot-el.typeA {
background-color: burlywood;
}
.test-slot-el {
background-color: blueviolet;
}
</style>
<template>
<div>
<test-slot v-bind="testSlotProps" :scope="{root}">
<div class="slot-el" slot-scope="item">
<text>default文字 {{item.propA}}</text>
</div>
<div class="slot-el typeA" slot="before" slot-scope="item">
<text>before文本 {{item.attr}}</text>
</div>
<test-slot-el class="test-slot-el" slot="after" />
<template slot-scope="item">
<text>template文字 {{item.propA}}</text>
<test-slot-el class="test-slot-el" />
<test-slot-el class="test-slot-el" />
</template>
<test-tree slot="bottom" slot-scope="{ root }" v-bind="root" />
</test-slot>
</div>
</template>
<script>
import testTree from "../../blocks/test-tree";
import testSlot from "../../blocks/test-slot";
import testSlotEl from "../../blocks/test-slot-el";
export default {
components: {
testTree,
testSlot,
testSlotEl
},
data() {
return {
showTpl: true,
testSlotProps: {
propA: "string",
propB: 1
},
root: {
value: "根节点",
children: [
{
value: "节点1",
children: [
{
value: "节点1.1"
}
]
},
{
value: "节点2",
children: [
{
value: "节点2.1"
}
]
},
{
value: "节点3",
children: []
}
]
}
};
}
};
</script>
template部分输出了, 但是default文字 string
的节点消失了
把template注释后, default文字 string可以正常显示
<!-- <template slot-scope="item">
<text>template文字 {{item.propA}}</text>
<test-slot-el class="test-slot-el" />
<test-slot-el class="test-slot-el" />
</template> -->
<template>
<div style="flex-direction: column;">
<list>
<template v-for="(item, index) in 10">
<list-item :key="index">
<text>item: {{ index }}</text>
</list-item>
</template>
</list>
</div>
</template>
不使用v-for
指令, 并且添加type和tid后
<template>
<div style="flex-direction: column;">
<demo-title>List</demo-title>
<list>
<list-item type="item" tid="1">
<text class="page-container-div">item: 1</text>
</list-item>
</list>
</div>
</template>
<image src="/images/spider-man.webp"></image>
复现代码
https://github.com/deepkolos/todomvc-vue/blob/master/src/pages/component/index.vue#L9
这个问题ux里面也有
<style>
.test {
margin: 100px;
background-color: aqua;
}
.loading {
background-color: blueviolet;
}
</style>
<template>
<test-class :class="`test ${state}`" :style="`background-color: ${bgColor}`" />
</template>
<script>
import testClass from "../../blocks/test-class";
export default {
components: { testClass },
data() {
return {
state: "loading",
bgColor: "red"
};
}
};
</script>
调试器闪退: 保证hap-toolkit版本号大于0.4.1
quickappp-dsls版本号大于0.1.1
build或者调试 命令行添加 --include-dsl-from-lib
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.