vue h render function & render select with options bug

https://github.com/xgqfrms/vue/issues/41

bug

vue h render function & render select

how to use vue h render function to render select?

https://vuejs.org/v2/guide/render-function.html


let options = [];
options = bids.map(
(obj, i) => {
let {
name,
bid,
} = obj;
return h("h-option", {
props: {
value: bid,
// label: name,
key: i,
},
attrs: {
"data-bid": bid,
},
class: [
"audit-common-select",
],
// style: {
// color: "#298DFF !important",
// textDecoration: "none",
// cursor: "pointer",
// marginRight: "5px",
// },
on: {
click: () => {
//
},
}
}, name);
}
);
let select = () => {
// h-select v-model="model12" filterable multiple
return h("h-select", {
props: {
// values: options,
value: bids[0].bid,
filterable: true,
clearable: true,
},
});
};
return h("div", select);

let options = [];
options = bids.map(
(obj, i) => {
let {
name,
bid,
} = obj;
return h("h-option", {
props: {
value: bid,
// label: name,
key: i,
},
attrs: {
"data-bid": bid,
},
class: [
"audit-common-select",
],
// style: {
// color: "#298DFF !important",
// textDecoration: "none",
// cursor: "pointer",
// marginRight: "5px",
// },
on: {
click: () => {
//
},
}
}, name);
}
);
let select = () => {
// h-select v-model="model12" filterable multiple
return h("h-select", {
props: {
// values: options,
value: bids[0].bid,
filterable: true,
clearable: true,
},
}), options;
};
return h("div", select);

ok


vue h render function & render select with options bug的更多相关文章

  1. html select options & vue h render

    html select options & vue h render https://developer.mozilla.org/en-US/docs/Web/HTML/Element/opt ...

  2. template or render function not defined vue 突然报错了,怎么解决

    报错图例如下:template or render function not defined vue 突然报错了,怎么解决什么错误呢,就是加载不出来,网上看了一通,是vue版本不对,是vue-comp ...

  3. vue render function & dataset

    vue render function & dataset https://vuejs.org/v2/guide/render-function.html#The-Data-Object-In ...

  4. [Vue warn]: Error in render: "TypeError: Cannot read property '0' of undefined、vuejs路由使用的问题Error in render function

    1.[Vue warn]: Error in render: "TypeError: Cannot read property '0' of undefined 注意,只要出现Error i ...

  5. "[Vue warn]: Failed to mount component: template or render function not defined"错误的解决

    VUE中动态路由出错: vue.esm.js?a026: [Vue warn]: Failed to mount component: template or render function not ...

  6. vue render function

    vue render function https://vuejs.org/v2/guide/render-function.html { // Same API as `v-bind:class`, ...

  7. params.row[params.column.key] vue h函数 当前单元格 h函数 div 属性 值或数组 render

    params.row[params.column.key] vue h函数 当前单元格 h函数 div 属性 值或数组 render

  8. [Vue @Component] Control Template Contents with Vue's Render Function

    Declaring templates and elements inside of templates works great for most scenarios. Sometimes you n ...

  9. [Vue warn]: You may have an infinite update loop in a component render function

    [Vue warn]: You may have an infinite update loop in a component render function 这个问题很奇怪,之前从来没有遇到过.如果 ...

随机推荐

  1. mybatsi中文乱码问题

    乱码问题:待总结,这里先贴出网友的博客: http://blog.csdn.net/zht666/article/details/8955952

  2. 预备作业03:虚拟机安装及Linux操作系统练习

    安装虚拟机 安装时遇到的问题 在打开虚拟机时出现以下问题: 经查询该问题只需要更改其兼容性,使其"以管理员身份运行". 常用的Linux命令 $ who am i:查看当前伪终端的 ...

  3. [arc076F]Exhausted?

    Description 传送门 Solution 额外的椅子可以放置在任意实数位置,所以该问题其实就问最多能够有多少人坐下.由于每个人的需求有<=l和>=r两个限制,并不是很好下手,我们先 ...

  4. 1126: [POI2008]Uci

    1126: [POI2008]Uci https://lydsy.com/JudgeOnline/problem.php?id=1126 分析: dp.状态很妙,就是有点难写. 能走的是一个矩形.首先 ...

  5. URL特别字符处理

    import time,os,datetimeimport urllib3utcNow = datetime.datetime.utcnow()fifteen = utcNow +datetime.t ...

  6. 【python笔记】python中的list、tuple、set、dict用法简析

    list list是一种有序的集合(或称作列表),可以很方便地添加和删除其中的元素. >>> classmates = ['Michael', 'Bob', 'Tracy'] 可通过 ...

  7. 【转】bash: ssh: command not found解决方法(linux)

    原文转自:http://www.cnblogs.com/ahauzyy/archive/2013/04/25/3043699.html 今天在搭建hadoop的开发环境中,用的是centsos6.0的 ...

  8. Iterable/Iterator傻傻分不清

    区别可迭代对象和迭代器 1.判断是否可以迭代 from collections import Iterabledef fid(times): n = 0 a , b = 0,1 while n < ...

  9. DataRow的RowState属性变化

    DataRow的RowState属性(状态)取值有5种:Detached, Unchanged, Added, Deleted, Modified. 当我们用DataRow newRow = Data ...

  10. Java EE JSP内置对象及表达式语言

    一.JSP内置对象 JSP根据Servlet API规范提供了一些内置对象,开发者不用事先声明就可使用标准变量来访问这些对象. JSP提供了9种内置对象: (一).request 简述: JSP编程中 ...