forked from fanruan/fineui
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
676 lines
18 KiB
676 lines
18 KiB
7 years ago
|
|
||
|
<!DOCTYPE HTML>
|
||
|
<html lang="" >
|
||
|
<head>
|
||
|
<meta charset="UTF-8">
|
||
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
|
||
|
<title>bi.clear_editor · GitBook</title>
|
||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||
|
<meta name="description" content="">
|
||
|
<meta name="generator" content="GitBook 3.2.3">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<link rel="stylesheet" href="../../gitbook/style.css">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<link rel="stylesheet" href="../../gitbook/gitbook-plugin-splitter/splitter.css">
|
||
|
|
||
|
|
||
|
|
||
|
<link rel="stylesheet" href="../../gitbook/gitbook-plugin-highlight/website.css">
|
||
|
|
||
|
|
||
|
|
||
|
<link rel="stylesheet" href="../../gitbook/gitbook-plugin-search/search.css">
|
||
|
|
||
|
|
||
|
|
||
|
<link rel="stylesheet" href="../../gitbook/gitbook-plugin-fontsettings/website.css">
|
||
|
|
||
|
|
||
|
|
||
|
<link rel="stylesheet" href="../../gitbook/gitbook-plugin-theme-api/theme-api.css">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<meta name="HandheldFriendly" content="true"/>
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
|
||
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
||
|
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||
|
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
|
||
|
<link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">
|
||
|
|
||
|
|
||
|
|
||
|
<link rel="prev" href="bi.search_editor.html" />
|
||
|
|
||
|
|
||
|
</head>
|
||
|
<body>
|
||
|
|
||
|
<div class="book">
|
||
|
<div class="book-summary">
|
||
|
|
||
|
|
||
|
<div id="book-search-input" role="search">
|
||
|
<input type="text" placeholder="Type to search" />
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<nav role="navigation">
|
||
|
|
||
|
|
||
|
|
||
|
<ul class="summary">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="header">总览</li>
|
||
|
|
||
|
|
||
|
|
||
|
<li class="chapter " data-level="1.1" data-path="../../">
|
||
|
|
||
|
<a href="../../">
|
||
|
|
||
|
|
||
|
<b>1.1.</b>
|
||
|
|
||
|
文档规范
|
||
|
|
||
|
</a>
|
||
|
|
||
|
|
||
|
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="header">详细控件</li>
|
||
|
|
||
|
|
||
|
|
||
|
<li class="chapter " data-level="2.1" >
|
||
|
|
||
|
<span>
|
||
|
|
||
|
|
||
|
<b>2.1.</b>
|
||
|
|
||
|
按钮组
|
||
|
|
||
|
</span>
|
||
|
|
||
|
|
||
|
|
||
|
<ul class="articles">
|
||
|
|
||
|
|
||
|
<li class="chapter " data-level="2.1.1" data-path="../bi.button/general.html">
|
||
|
|
||
|
<a href="../bi.button/general.html">
|
||
|
|
||
|
|
||
|
<b>2.1.1.</b>
|
||
|
|
||
|
通用按钮
|
||
|
|
||
|
</a>
|
||
|
|
||
|
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="chapter " data-level="2.1.2" data-path="../bi.button/tooltip.html">
|
||
|
|
||
|
<a href="../bi.button/tooltip.html">
|
||
|
|
||
|
|
||
|
<b>2.1.2.</b>
|
||
|
|
||
|
带提示的按钮
|
||
|
|
||
|
</a>
|
||
|
|
||
|
|
||
|
|
||
|
</li>
|
||
|
|
||
|
|
||
|
</ul>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="chapter " data-level="2.2" data-path="../bi.single_select_item.html">
|
||
|
|
||
|
<a href="../bi.single_select_item.html">
|
||
|
|
||
|
|
||
|
<b>2.2.</b>
|
||
|
|
||
|
单选框
|
||
|
|
||
|
</a>
|
||
|
|
||
|
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="chapter " data-level="2.3" data-path="../bi.multi_select_item.html">
|
||
|
|
||
|
<a href="../bi.multi_select_item.html">
|
||
|
|
||
|
|
||
|
<b>2.3.</b>
|
||
|
|
||
|
复选框
|
||
|
|
||
|
</a>
|
||
|
|
||
|
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="chapter " data-level="2.4" data-path="../node.html">
|
||
|
|
||
|
<a href="../node.html">
|
||
|
|
||
|
|
||
|
<b>2.4.</b>
|
||
|
|
||
|
node节点
|
||
|
|
||
|
</a>
|
||
|
|
||
|
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="chapter " data-level="2.5" data-path="../bi.segment.html">
|
||
|
|
||
|
<a href="../bi.segment.html">
|
||
|
|
||
|
|
||
|
<b>2.5.</b>
|
||
|
|
||
|
segment组件
|
||
|
|
||
|
</a>
|
||
|
|
||
|
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="chapter " data-level="2.6" >
|
||
|
|
||
|
<span>
|
||
|
|
||
|
|
||
|
<b>2.6.</b>
|
||
|
|
||
|
树形结构
|
||
|
|
||
|
</span>
|
||
|
|
||
|
|
||
|
|
||
|
<ul class="articles">
|
||
|
|
||
|
|
||
|
<li class="chapter " data-level="2.6.1" data-path="../tree/bi.multi_tree_combo.html">
|
||
|
|
||
|
<a href="../tree/bi.multi_tree_combo.html">
|
||
|
|
||
|
|
||
|
<b>2.6.1.</b>
|
||
|
|
||
|
bi.multi_tree_combo
|
||
|
|
||
|
</a>
|
||
|
|
||
|
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="chapter " data-level="2.6.2" data-path="../tree/bi.switch_tree.html">
|
||
|
|
||
|
<a href="../tree/bi.switch_tree.html">
|
||
|
|
||
|
|
||
|
<b>2.6.2.</b>
|
||
|
|
||
|
bi.switch_tree
|
||
|
|
||
|
</a>
|
||
|
|
||
|
|
||
|
|
||
|
</li>
|
||
|
|
||
|
|
||
|
</ul>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="chapter " data-level="2.7" >
|
||
|
|
||
|
<span>
|
||
|
|
||
|
|
||
|
<b>2.7.</b>
|
||
|
|
||
|
表格
|
||
|
|
||
|
</span>
|
||
|
|
||
|
|
||
|
|
||
|
<ul class="articles">
|
||
|
|
||
|
|
||
|
<li class="chapter " data-level="2.7.1" data-path="../table/bi.preview_table.html">
|
||
|
|
||
|
<a href="../table/bi.preview_table.html">
|
||
|
|
||
|
|
||
|
<b>2.7.1.</b>
|
||
|
|
||
|
bi.preview_table
|
||
|
|
||
|
</a>
|
||
|
|
||
|
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="chapter " data-level="2.7.2" data-path="../table/bi.responsive_table.html">
|
||
|
|
||
|
<a href="../table/bi.responsive_table.html">
|
||
|
|
||
|
|
||
|
<b>2.7.2.</b>
|
||
|
|
||
|
bi.responsive_table
|
||
|
|
||
|
</a>
|
||
|
|
||
|
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="chapter " data-level="2.7.3" data-path="../table/bi.excel_table.html">
|
||
|
|
||
|
<a href="../table/bi.excel_table.html">
|
||
|
|
||
|
|
||
|
<b>2.7.3.</b>
|
||
|
|
||
|
bi.excel_table
|
||
|
|
||
|
</a>
|
||
|
|
||
|
|
||
|
|
||
|
</li>
|
||
|
|
||
|
|
||
|
</ul>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="chapter " data-level="2.8" >
|
||
|
|
||
|
<span>
|
||
|
|
||
|
|
||
|
<b>2.8.</b>
|
||
|
|
||
|
文本框控件
|
||
|
|
||
|
</span>
|
||
|
|
||
|
|
||
|
|
||
|
<ul class="articles">
|
||
|
|
||
|
|
||
|
<li class="chapter " data-level="2.8.1" data-path="bi.text_editor.html">
|
||
|
|
||
|
<a href="bi.text_editor.html">
|
||
|
|
||
|
|
||
|
<b>2.8.1.</b>
|
||
|
|
||
|
bi.text_editor
|
||
|
|
||
|
</a>
|
||
|
|
||
|
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="chapter " data-level="2.8.2" data-path="bi.search_editor.html">
|
||
|
|
||
|
<a href="bi.search_editor.html">
|
||
|
|
||
|
|
||
|
<b>2.8.2.</b>
|
||
|
|
||
|
bi.search_editor
|
||
|
|
||
|
</a>
|
||
|
|
||
|
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="chapter active" data-level="2.8.3" data-path="bi.clear_editor.html">
|
||
|
|
||
|
<a href="bi.clear_editor.html">
|
||
|
|
||
|
|
||
|
<b>2.8.3.</b>
|
||
|
|
||
|
bi.clear_editor
|
||
|
|
||
|
</a>
|
||
|
|
||
|
|
||
|
|
||
|
</li>
|
||
|
|
||
|
|
||
|
</ul>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="divider"></li>
|
||
|
|
||
|
<li>
|
||
|
<a href="https://www.gitbook.com" target="blank" class="gitbook-link">
|
||
|
Published with GitBook
|
||
|
</a>
|
||
|
</li>
|
||
|
</ul>
|
||
|
|
||
|
|
||
|
</nav>
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="book-body">
|
||
|
|
||
|
<div class="body-inner">
|
||
|
|
||
|
|
||
|
|
||
|
<div class="book-header" role="navigation">
|
||
|
|
||
|
|
||
|
<!-- Title -->
|
||
|
<h1>
|
||
|
<i class="fa fa-circle-o-notch fa-spin"></i>
|
||
|
<a href="../.." >bi.clear_editor</a>
|
||
|
</h1>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<div class="page-wrapper" tabindex="-1" role="main">
|
||
|
<div class="page-inner">
|
||
|
|
||
|
<div id="book-search-results">
|
||
|
<div class="search-noresults">
|
||
|
|
||
|
<section class="normal markdown-section">
|
||
|
|
||
|
<h1 id="bicleareditor">bi.clear_editor</h1>
|
||
|
<h2 id="带清除按钮的输入框">带清除按钮的输入框</h2>
|
||
|
<div class="api-method"><div class="api-method-definition"><p><a href="https://jsfiddle.net/fineui/ppgph3qu/" target="_blank">source</a></p>
|
||
|
</div><div class="api-method-code"><div class="api-method-example"><pre><code class="lang-javascript">BI.createWidget({
|
||
|
type: <span class="hljs-string">'bi.clear_editor'</span>,
|
||
|
cls: <span class="hljs-string">"bi-border"</span>,
|
||
|
element: <span class="hljs-string">'#wrapper'</span>,
|
||
|
width: <span class="hljs-number">300</span>,
|
||
|
watermark:<span class="hljs-string">"带清除按钮的输入框"</span>,
|
||
|
});
|
||
|
</code></pre>
|
||
|
</div></div></div>
|
||
|
|
||
|
<h2 id="api">API</h2>
|
||
|
<table>
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th style="text-align:left">参数</th>
|
||
|
<th style="text-align:left">说明</th>
|
||
|
<th style="text-align:left">类型</th>
|
||
|
<th style="text-align:left">可选值</th>
|
||
|
<th style="text-align:left">默认值</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
<tr>
|
||
|
<td style="text-align:left">hgap</td>
|
||
|
<td style="text-align:left">效果相当于文本框左右padding值</td>
|
||
|
<td style="text-align:left">number</td>
|
||
|
<td style="text-align:left"></td>
|
||
|
<td style="text-align:left">4</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td style="text-align:left">vgap</td>
|
||
|
<td style="text-align:left">效果相当于文本框上下padding值</td>
|
||
|
<td style="text-align:left">number</td>
|
||
|
<td style="text-align:left"></td>
|
||
|
<td style="text-align:left">2</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td style="text-align:left">lgap</td>
|
||
|
<td style="text-align:left">效果相当于文本框left-padding值</td>
|
||
|
<td style="text-align:left">number</td>
|
||
|
<td style="text-align:left"></td>
|
||
|
<td style="text-align:left">0</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td style="text-align:left">rgap</td>
|
||
|
<td style="text-align:left">效果相当于文本框right-padding值</td>
|
||
|
<td style="text-align:left">number</td>
|
||
|
<td style="text-align:left"></td>
|
||
|
<td style="text-align:left">0</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td style="text-align:left">tgap</td>
|
||
|
<td style="text-align:left">效果相当于文本框top-padding值</td>
|
||
|
<td style="text-align:left">number</td>
|
||
|
<td style="text-align:left"></td>
|
||
|
<td style="text-align:left">0</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td style="text-align:left">bgap</td>
|
||
|
<td style="text-align:left">效果相当于文本框bottom-padding值</td>
|
||
|
<td style="text-align:left">number</td>
|
||
|
<td style="text-align:left"></td>
|
||
|
<td style="text-align:left">0</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td style="text-align:left">validationChecker</td>
|
||
|
<td style="text-align:left">输入较验函数</td>
|
||
|
<td style="text-align:left">function</td>
|
||
|
<td style="text-align:left"></td>
|
||
|
<td style="text-align:left"></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td style="text-align:left">quitChecker</td>
|
||
|
<td style="text-align:left">是否允许退出编辑函数</td>
|
||
|
<td style="text-align:left">function</td>
|
||
|
<td style="text-align:left"></td>
|
||
|
<td style="text-align:left"></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td style="text-align:left">mouseOut</td>
|
||
|
<td style="text-align:left"></td>
|
||
|
<td style="text-align:left">boolean</td>
|
||
|
<td style="text-align:left">true,false</td>
|
||
|
<td style="text-align:left">false</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td style="text-align:left">allowBlank</td>
|
||
|
<td style="text-align:left">是否允许空值</td>
|
||
|
<td style="text-align:left">boolean</td>
|
||
|
<td style="text-align:left">true,false</td>
|
||
|
<td style="text-align:left">false</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td style="text-align:left">watermark</td>
|
||
|
<td style="text-align:left">文本框placeholder</td>
|
||
|
<td style="text-align:left">string</td>
|
||
|
<td style="text-align:left"></td>
|
||
|
<td style="text-align:left">null</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td style="text-align:left">value</td>
|
||
|
<td style="text-align:left">文本框默认值</td>
|
||
|
<td style="text-align:left">string</td>
|
||
|
<td style="text-align:left"></td>
|
||
|
<td style="text-align:left"></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td style="text-align:left">errorText</td>
|
||
|
<td style="text-align:left">错误提示</td>
|
||
|
<td style="text-align:left">string</td>
|
||
|
<td style="text-align:left"></td>
|
||
|
<td style="text-align:left">null</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td style="text-align:left">width</td>
|
||
|
<td style="text-align:left">文本框宽度</td>
|
||
|
<td style="text-align:left">number</td>
|
||
|
<td style="text-align:left"></td>
|
||
|
<td style="text-align:left"></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td style="text-align:left">height</td>
|
||
|
<td style="text-align:left">文本框高度</td>
|
||
|
<td style="text-align:left">number</td>
|
||
|
<td style="text-align:left"></td>
|
||
|
<td style="text-align:left">30</td>
|
||
|
</tr>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
<p>#</p>
|
||
|
|
||
|
|
||
|
</section>
|
||
|
|
||
|
</div>
|
||
|
<div class="search-results">
|
||
|
<div class="has-results">
|
||
|
|
||
|
<h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
|
||
|
<ul class="search-results-list"></ul>
|
||
|
|
||
|
</div>
|
||
|
<div class="no-results">
|
||
|
|
||
|
<h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<script>
|
||
|
var gitbook = gitbook || [];
|
||
|
gitbook.push(function() {
|
||
|
gitbook.page.hasChanged({"page":{"title":"bi.clear_editor","level":"2.8.3","depth":2,"previous":{"title":"bi.search_editor","level":"2.8.2","depth":2,"path":"detailed/text_input/bi.search_editor.md","ref":"detailed/text_input/bi.search_editor.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api"],"pluginsConfig":{"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":true}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"detailed/text_input/bi.clear_editor.md","mtime":"2017-08-28T10:32:10.000Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-08-28T12:15:29.133Z"},"basePath":"../..","book":{"language":""}});
|
||
|
});
|
||
|
</script>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<script src="../../gitbook/gitbook.js"></script>
|
||
|
<script src="../../gitbook/theme.js"></script>
|
||
|
|
||
|
|
||
|
<script src="../../gitbook/gitbook-plugin-jsfiddle/plugin.js"></script>
|
||
|
|
||
|
|
||
|
|
||
|
<script src="../../gitbook/gitbook-plugin-splitter/splitter.js"></script>
|
||
|
|
||
|
|
||
|
|
||
|
<script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>
|
||
|
|
||
|
|
||
|
|
||
|
<script src="../../gitbook/gitbook-plugin-search/search.js"></script>
|
||
|
|
||
|
|
||
|
|
||
|
<script src="../../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
|
||
|
|
||
|
|
||
|
|
||
|
<script src="../../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
|
||
|
|
||
|
|
||
|
|
||
|
<script src="../../gitbook/gitbook-plugin-sharing/buttons.js"></script>
|
||
|
|
||
|
|
||
|
|
||
|
<script src="../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
|
||
|
|
||
|
|
||
|
|
||
|
<script src="../../gitbook/gitbook-plugin-theme-api/theme-api.js"></script>
|
||
|
|
||
|
|
||
|
|
||
|
</body>
|
||
|
</html>
|
||
|
|