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.
652 lines
17 KiB
652 lines
17 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.excel_table · 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.responsive_table.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="bi.preview_table.html">
|
||
|
|
||
|
<a href="bi.preview_table.html">
|
||
|
|
||
|
|
||
|
<b>2.7.1.</b>
|
||
|
|
||
|
bi.preview_table
|
||
|
|
||
|
</a>
|
||
|
|
||
|
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="chapter " data-level="2.7.2" data-path="bi.responsive_table.html">
|
||
|
|
||
|
<a href="bi.responsive_table.html">
|
||
|
|
||
|
|
||
|
<b>2.7.2.</b>
|
||
|
|
||
|
bi.responsive_table
|
||
|
|
||
|
</a>
|
||
|
|
||
|
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="chapter active" data-level="2.7.3" data-path="bi.excel_table.html">
|
||
|
|
||
|
<a href="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="../text_input/bi.text_editor.html">
|
||
|
|
||
|
<a href="../text_input/bi.text_editor.html">
|
||
|
|
||
|
|
||
|
<b>2.8.1.</b>
|
||
|
|
||
|
bi.text_editor
|
||
|
|
||
|
</a>
|
||
|
|
||
|
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="chapter " data-level="2.8.2" data-path="../text_input/bi.search_editor.html">
|
||
|
|
||
|
<a href="../text_input/bi.search_editor.html">
|
||
|
|
||
|
|
||
|
<b>2.8.2.</b>
|
||
|
|
||
|
bi.search_editor
|
||
|
|
||
|
</a>
|
||
|
|
||
|
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="chapter " data-level="2.8.3" data-path="../text_input/bi.clear_editor.html">
|
||
|
|
||
|
<a href="../text_input/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.excel_table</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="biexceltable">bi.excel_table</h1>
|
||
|
<div class="api-method"><div class="api-method-definition"><p><a href="https://jsfiddle.net/fineui/cbmv07g4/" 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.excel_table"</span>,
|
||
|
element: <span class="hljs-string">"#wrapper"</span>,
|
||
|
width: <span class="hljs-number">500</span>,
|
||
|
columnSize: [<span class="hljs-number">200</span>,<span class="hljs-number">200</span>,<span class="hljs-number">200</span>,<span class="hljs-number">200</span>,<span class="hljs-number">200</span>],
|
||
|
items: [
|
||
|
[{
|
||
|
type: <span class="hljs-string">"bi.label"</span>,
|
||
|
cls: <span class="hljs-string">"layout-bg1"</span>,
|
||
|
text: <span class="hljs-string">"第一行第一列"</span>
|
||
|
}, {
|
||
|
type: <span class="hljs-string">"bi.label"</span>,
|
||
|
cls: <span class="hljs-string">"layout-bg2"</span>,
|
||
|
text: <span class="hljs-string">"第一行第二列"</span>
|
||
|
}],
|
||
|
[{
|
||
|
type: <span class="hljs-string">"bi.label"</span>,
|
||
|
cls: <span class="hljs-string">"layout-bg3"</span>,
|
||
|
text: <span class="hljs-string">"第二行第一列"</span>
|
||
|
}, {
|
||
|
type: <span class="hljs-string">"bi.label"</span>,
|
||
|
cls: <span class="hljs-string">"layout-bg4"</span>,
|
||
|
text: <span class="hljs-string">"第二行第二列"</span>
|
||
|
}]
|
||
|
]
|
||
|
});
|
||
|
</code></pre>
|
||
|
</div></div></div>
|
||
|
|
||
|
<table>
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th>参数</th>
|
||
|
<th>说明</th>
|
||
|
<th>类型</th>
|
||
|
<th>默认值</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
<tr>
|
||
|
<td>isNeedResize</td>
|
||
|
<td>是否需要调整大小</td>
|
||
|
<td>bool</td>
|
||
|
<td>false</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>isResizeAdapt</td>
|
||
|
<td>是否调整时自适应</td>
|
||
|
<td>bool</td>
|
||
|
<td>true</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>isNeedMerge</td>
|
||
|
<td>是否需要合并单元格</td>
|
||
|
<td>bool</td>
|
||
|
<td>false</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>mergeCols</td>
|
||
|
<td>合并的单元格列号</td>
|
||
|
<td>array</td>
|
||
|
<td>[]</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>mergeRule</td>
|
||
|
<td>合并规则, 默认相等时合并</td>
|
||
|
<td>function(row1, row2)</td>
|
||
|
<td>默认row1 = row2 时合并</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>columnSize</td>
|
||
|
<td>单元格宽度集合</td>
|
||
|
<td>array</td>
|
||
|
<td>[]</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>headerRowSize</td>
|
||
|
<td>表头高度</td>
|
||
|
<td>number</td>
|
||
|
<td>37</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>footerRowSize</td>
|
||
|
<td>表尾高度</td>
|
||
|
<td>number</td>
|
||
|
<td>37</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>rowSize</td>
|
||
|
<td>普通单元格高度</td>
|
||
|
<td>number</td>
|
||
|
<td>37</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>regionColumnSize</td>
|
||
|
<td></td>
|
||
|
<td>bool</td>
|
||
|
<td>false</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>items</td>
|
||
|
<td>子组件</td>
|
||
|
<td>array</td>
|
||
|
<td>[]</td>
|
||
|
</tr>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
|
||
|
|
||
|
</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.excel_table","level":"2.7.3","depth":2,"next":{"title":"文本框控件","level":"2.8","depth":1,"ref":"","articles":[{"title":"bi.text_editor","level":"2.8.1","depth":2,"path":"detailed/text_input/bi.text_editor.md","ref":"detailed/text_input/bi.text_editor.md","articles":[]},{"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":[]},{"title":"bi.clear_editor","level":"2.8.3","depth":2,"path":"detailed/text_input/bi.clear_editor.md","ref":"detailed/text_input/bi.clear_editor.md","articles":[]}]},"previous":{"title":"bi.responsive_table","level":"2.7.2","depth":2,"path":"detailed/table/bi.responsive_table.md","ref":"detailed/table/bi.responsive_table.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/table/bi.excel_table.md","mtime":"2017-08-28T09:30:49.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>
|
||
|
|