visible

一个vue的全局提示框组件

淺唱寂寞╮ 提交于 2020-03-01 23:22:53
<template> <!-- 全局提示框 --> <div v-show="visible" class="dialog-tips dialog-center"> <div>{{message}}</div> </div> </template> <script> export default { data() { return { visible: false, message: "" }; } }; </script> <style lang="scss"> .dialog-tips{ position: fixed; z-index: 100; min-width: 220px; padding: 40px 22px; white-space: nowrap; background-color: #fff; box-shadow: 0px 8px 15px 0 rgba(0, 0, 0, 0.1); text-align: center; .dialog-tips-icon{ width: 54px; height: 54px; @extend %bg-contain; display: inline-block; margin-bottom: 13px; } } .dialog-center { top: 50%; left: 50%; transform:

JavaScript forEach和Map函数的区别

一个人想着一个人 提交于 2020-02-08 04:44:27
JavaScript forEach和Map函数的区别 因为本人更喜欢使用Map函数,所以当今天遇到了一个需求就必须使用forEach,需求是这样的,判断数组中是否有重复的内容,因为我们要定义一个空数组所以,如果Map函数遍历空数组是会报错的,所以我选择了forEach函数 onDoubleClick ( e ) { if ( ! e . target . innerText ) return ; let targetItem = null if ( e . target . getAttribute ( 'labeldata' ) ) { targetItem = JSON . parse ( e . target . getAttribute ( 'labelData' ) ) ; } else { targetItem = e . target . innerText . replace ( /,/g , '' ) ; } console . log ( e . target ) ; console . log ( targetItem ) ; let visible = false ; let type = null ; let activeItem = null ; const { panes } = this . state ; console . log (

How to hide workbook behind userform?

前提是你 提交于 2020-01-25 10:05:02
问题 I've tried multiple methods to hide specific workbook behind userform! Last code I've used is here: Private Sub UserForm_Layout() Application.Left = MainWindow.Left Application.Top = MainWindow.Top End Sub Private Sub UserForm_Activate() Application.Left = Me.Left Application.Top = Me.Top Application.Width = Me.Width * 0.85 Application.Height = Me.Height * 0.85 End sub It will hide application window behind userform, but if there is multiple workbooks open and I activate one of them, when I

How to hide workbook behind userform?

扶醉桌前 提交于 2020-01-25 10:04:24
问题 I've tried multiple methods to hide specific workbook behind userform! Last code I've used is here: Private Sub UserForm_Layout() Application.Left = MainWindow.Left Application.Top = MainWindow.Top End Sub Private Sub UserForm_Activate() Application.Left = Me.Left Application.Top = Me.Top Application.Width = Me.Width * 0.85 Application.Height = Me.Height * 0.85 End sub It will hide application window behind userform, but if there is multiple workbooks open and I activate one of them, when I

導出Excel

人走茶凉 提交于 2020-01-21 14:16:15
GridView2.Columns[4].Visible=false; GridView2.Columns[5].Visible = false; Response.Clear(); Response.Charset = "GB2312"; Response.AppendHeader("Content-Disposition", "attachment;filename=FileName.xls"); //如果设置为 GetEncoding("GB2312");导出的文件将会出现乱码!!! Response.ContentEncoding = System.Text.Encoding.UTF7; Response.ContentType = "application/ms-excel"; //设置输出文件类型为excel文件。 System.IO.StringWriter oStringWriter = new System.IO.StringWriter(); System.Web.UI.HtmlTextWriter oHtmlTextWriter = new System.Web.UI.HtmlTextWriter(oStringWriter); GridView2.AllowPaging = false; this.GridView2.RenderControl

jquery-visible plugin: Using `element.visible(true)` - but still returns true only when the “entire” element is visible. Why?

自作多情 提交于 2020-01-17 11:28:26
问题 JsFiddle here! From this article, In its simplest form, the element can be checked as follows: $('#element').visible() This method will return true if the entire element is visible (I.e., it will return false if any part of that element is outside the viewport. Passing true to the 'visible' method, will tell the plugin to return true if ANY part of the element is visible on the users screen. $('#element').visible( true ) In the following script, the if block if ( $('.firstPage').visible(true)

Get the first and last visible element in a scrollable div

谁都会走 提交于 2020-01-12 01:36:27
问题 I have list of thumbs in a scrollable div, animated with next/prev button. Each click on "next "button should match the attribute of the first visible element. Each click on "prev" button should give me the attribute of the last visible element. I don't really know how to mathematically solve that, because the scroll distance is variable when the list ends. Can someone please help me out? HTML $<div id="scrollContent"> <ul id="assetList"> <li data-asset-id="15201"></li> <li data-asset-id=

Excel VBA loop through pivotitems that are filtered

六月ゝ 毕业季﹏ 提交于 2020-01-11 12:04:17
问题 I am new to the forum, so please indulge me if my post is incomplete. I have a very simple pivot table with one row field, one column field, one data field and one filter field. Row fields are displayed based on the filter setting. Using VBA, my intent is to loop through all row pivotitems and column pivotitems and get the corresponding field names and data values and display them as a sanity check. This is a start of a bigger project. here is the main loop (showstring is displayed on the

MouseHover and MouseLeave don't work when the control is invisible

安稳与你 提交于 2020-01-10 05:42:25
问题 For some reason MouseHover and MouseLeave functions behave really strange. All I need to do is, when the cursor is over the "button", I want to make the button visible and when the cursor leaves the button, I want to make it invisible. Whatever I try I couldn't make it work. It seems like Mouse events not working when the control object is invisible. private void button1_MouseHover(object sender, EventArgs e) { button1.Visible = true; } private void button1_MouseLeave(object sender, EventArgs

Android update UI

喜欢而已 提交于 2020-01-05 08:13:29
问题 Basically at the moment I'm showing a loading screen ( loading.setVisibility(View.VISIBLE); ) then loading some external data using a "BufferedReader" and then hiding the loading screen ( loading.setVisibility(View.INVISIBLE); ) afterwards. The problem is the loading screen is never shown. The code is all in the correct place the GUI just doesn't update until the end of the method when it is obviously too late because the loading screen is set to invisible again. Is there any way to force