vue 点击下拉框
data: {
hide:false,
zhi:"全部"
},
<div class="item">
<div class="c2c-all" @click="hide ? hide=false : hide=true">
<span class="c2c-alla" style="position: relative">{{zhi}}</span><span><div class="coinbig-c2c-sanj fsj"></div></span>
</div>
<div class="c2c-son c2sleft" v-show="hide" >
<div @click="hide=false" class="c2c-as"v-for="item in 6,">{{item++}}</div> //循环6 个 data里可以造点数据 zhi=item 为点击那个值赋值给全部
</div>
</div>
/*下拉开始*/
.assetrecords .c2c-all {
width: 100%;
/*height: 32px;*/
display: block;
position: relative;
}
.assetrecords .item {
width: 160px;
height: 32px;
background: #202e58;
line-height: 32px;
/*border-left: 1px solid #2a404f;*/
cursor: pointer;
border: 1px solid #495d9a;
border-radius: 3px;
}
.assetrecords .c2c-alla {
margin-left: 10px;
font-size: 14px;
color: #d6ddff;
}
.assetrecords .c2c-as {
padding-left: 10px;
font-size: 14px;
color: #FFFFFF
}
.assetrecords .c2c-as:hover {
background: #495689;
}
.assetrecords .c2c-son {
display: none;
background-color: #15284c;
width: 160px;
position: absolute;
top: 32px;
z-index:;
}
.assetrecords .item {
position: relative;
}
.assetrecords .coinbig-c2c-sanj {
width:;
height:;
border-width: 7px;
border-style: solid;
border-color: #ffffff transparent transparent transparent;
background: #202e58;
position: absolute;
right: 9px;
top: 13px;
}
.assetrecords .coinbig-c2c-sanj-shang {
width:;
height:;
border-width: 7px;
border-style: solid;
border-color: #ffffff transparent transparent transparent;
background: #12212f;
position: absolute;
right: 9px;
top: 16px;
}
.assetrecords .c2c-son-input {
width: 150px;
height: 32px;
line-height: 30px;
border: 1px solid #495d9a;
margin: 5px auto 0;
}
.assetrecords .c2c-son-input-les {
float: right;
width: 12px;
height: 12px;
margin-top: 11px;
margin-right: 5px;
}
.assetrecords .c2c-son-inputs {
width: 110px;
height: 100%;
padding-left: 10px;
background: #15284c;
border: none;
color: #FFFFFF;
font-size: 14px;
}
/*下拉结束*/
vue 点击下拉框的更多相关文章
- 微信内置浏览器中,点击下拉框出现页面乱跳转现象(iphone)
微信内置浏览器中,点击下拉框出现页面乱跳转现象(iphone) 前言: 这是小菜博客的第三篇文章.一直认为自己可以表达的东西太过简单,难以上台面,总是吝啬地不肯写.就算是写,也不知道从何开始.在同事的 ...
- [Selenium]点击下拉框之后,从下拉列表选择元素进行点击很容易失败
点击下拉框之后,下拉列表会显示出来,但是有时候下拉列表会很快就消失掉,导致后面选择元素的时候会失败. 像这种情况,需要将鼠标移动到下拉列表上,使下拉列表维持显示,然后才选择元素进行点击. 将鼠标移动到 ...
- Vue实现树形下拉框
Vue自身并没有实现树形下拉框的组件,找了很多资料,最后在Github上找了个插件vue-treeselect,功能还是比较全的,模糊搜索.多选.延迟加载.异步搜索.排序,自定义.Vuex支持等等.这 ...
- vue js select下拉框
<template> <ul id="select"> <li> <div class="select-head"&g ...
- vue实现百度下拉框
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8" ...
- vue获取下拉框值
vue获取下拉框的值,用vue-modle,只有点击下拉框的值才会赋值到下拉框中,初始时下拉框没有数据,而改用$event就不会出现这样的问题,下面看代码以及图解: v-model解决方式: < ...
- vue自定义下拉框组件
创建下拉框组件 Select.vue <template> <div class="selects"> <div :class="{sele ...
- 点击select下拉框获取option的属性值
select下拉框作为前端开发者应该是经常使用的,最近在项目中遇到这样的情况,点击下拉框选项,需要获取所点击的option的属性值,当时想很简单啊,给option加一个点击事件不就行了,然后就加了一下 ...
- 点击select下拉框,触发事件
<div class="controls moneycheck floatleft"> <select class="span12 chosen_cat ...
随机推荐
- Jquery基本教程(背还是要背的)
Jquery入门学习 一.简介 1.Jquery是基于JavaScript的一种框架,兼容主流浏览器,提供了dom,animate(JQ+CSS),ajax; 2.Jquery2.0后版本不支持IE6 ...
- SpringSecurity为项目加入权限控制
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.sp ...
- Linux修改war包中文件
rm -rf /tmp/wiq.warcp /u02/wms_dev/wiq-app/wars/wiq.war /tmpcd /tmp jar xvf wiq.war vim WEB-INF/clas ...
- NET Core应用中实现与第三方IoC/DI框架的整合?
NET Core应用中实现与第三方IoC/DI框架的整合? 我们知道整个ASP.NET Core建立在以ServiceCollection/ServiceProvider为核心的DI框架上,它甚至提供 ...
- B - Median Pyramid Easy 构造题
B - Median Pyramid Easy Time limit : 2sec / Memory limit : 256MB Score : 400 points Problem Statemen ...
- setState异步函数
changeLeader(value){ console.log(value) this.setState({ leader:value },() => { console.lo ...
- (转)Linux命令之Ethtool用法详解
Linux命令之Ethtool用法详解 原文:http://www.linuxidc.com/Linux/2012-01/52669.htm Linux/Unix命令之Ethtool描述:Ethtoo ...
- vs2012 support BI
Microsoft SQL Server Data Tools - Business Intelligence for Visual Studio 2012 http://www.microsoft. ...
- eclipse下 Failed to find an AVD compatible with target 的解决方法
第一个Android测试环境下的程序出现这个问题: [2012-04-24 13:18:29 - xxxx] ------------------------------ [2012-04-24 13 ...
- P3818 小A和uim之大逃离 II
题目背景 话说上回……还是参见 https://www.luogu.org/problem/show?pid=1373 吧 小a和uim再次来到雨林中探险.突然一阵南风吹来,一片乌云从南部天边急涌过来 ...