[FE] uni-app Card 卡片组件 uni-card 用法

通过llama.cpp与羊驼聊天的网页界面- 详解 Serge 的启动使用

 

使用 uni-card 和其它组件没有什么区别,关注支持的属性和事件即可。

 

对于属性,需要特别注意值的类型,比如不要把非字符串的当做字符串处理。

 

举例,如下 is-full 需要 Boolean 类型,但是我们使用了字符串。

        <uni-card
            is-full="true"
            :is-shadow="true"
            note="精华"
            @click="hot()"
        >
            精华
        </uni-card>

Vue 会给出类似提醒:[Vue warn]: Invalid prop: type check failed for prop "isFull". Expected Boolean, got String with value "true".

 

我们需要这样写,:is-full="true",或者把 true 给一个变量也是类似作用。 

 

[FE] uni-app Grid 宫格组件 uni-grid 用法 

Link:https://www.cnblogs.com/farwish/p/13861354.html

posted on 2020-10-22 22:04  ercom  阅读(3415)  评论(0编辑  收藏  举报