fineui是帆软报表和BI产品线所使用的前端框架。
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

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">&quot;bi.excel_table&quot;</span>,
element: <span class="hljs-string">&quot;#wrapper&quot;</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">&quot;bi.label&quot;</span>,
cls: <span class="hljs-string">&quot;layout-bg1&quot;</span>,
text: <span class="hljs-string">&quot;&#x7B2C;&#x4E00;&#x884C;&#x7B2C;&#x4E00;&#x5217;&quot;</span>
}, {
type: <span class="hljs-string">&quot;bi.label&quot;</span>,
cls: <span class="hljs-string">&quot;layout-bg2&quot;</span>,
text: <span class="hljs-string">&quot;&#x7B2C;&#x4E00;&#x884C;&#x7B2C;&#x4E8C;&#x5217;&quot;</span>
}],
[{
type: <span class="hljs-string">&quot;bi.label&quot;</span>,
cls: <span class="hljs-string">&quot;layout-bg3&quot;</span>,
text: <span class="hljs-string">&quot;&#x7B2C;&#x4E8C;&#x884C;&#x7B2C;&#x4E00;&#x5217;&quot;</span>
}, {
type: <span class="hljs-string">&quot;bi.label&quot;</span>,
cls: <span class="hljs-string">&quot;layout-bg4&quot;</span>,
text: <span class="hljs-string">&quot;&#x7B2C;&#x4E8C;&#x884C;&#x7B2C;&#x4E8C;&#x5217;&quot;</span>
}]
]
});
</code></pre>
</div></div></div>
<table>
<thead>
<tr>
<th>&#x53C2;&#x6570;</th>
<th>&#x8BF4;&#x660E;</th>
<th>&#x7C7B;&#x578B;</th>
<th>&#x9ED8;&#x8BA4;&#x503C;</th>
</tr>
</thead>
<tbody>
<tr>
<td>isNeedResize</td>
<td>&#x662F;&#x5426;&#x9700;&#x8981;&#x8C03;&#x6574;&#x5927;&#x5C0F;</td>
<td>bool</td>
<td>false</td>
</tr>
<tr>
<td>isResizeAdapt</td>
<td>&#x662F;&#x5426;&#x8C03;&#x6574;&#x65F6;&#x81EA;&#x9002;&#x5E94;</td>
<td>bool</td>
<td>true</td>
</tr>
<tr>
<td>isNeedMerge</td>
<td>&#x662F;&#x5426;&#x9700;&#x8981;&#x5408;&#x5E76;&#x5355;&#x5143;&#x683C;</td>
<td>bool</td>
<td>false</td>
</tr>
<tr>
<td>mergeCols</td>
<td>&#x5408;&#x5E76;&#x7684;&#x5355;&#x5143;&#x683C;&#x5217;&#x53F7;</td>
<td>array</td>
<td>[]</td>
</tr>
<tr>
<td>mergeRule</td>
<td>&#x5408;&#x5E76;&#x89C4;&#x5219;, &#x9ED8;&#x8BA4;&#x76F8;&#x7B49;&#x65F6;&#x5408;&#x5E76;</td>
<td>function(row1, row2)</td>
<td>&#x9ED8;&#x8BA4;row1 = row2 &#x65F6;&#x5408;&#x5E76;</td>
</tr>
<tr>
<td>columnSize</td>
<td>&#x5355;&#x5143;&#x683C;&#x5BBD;&#x5EA6;&#x96C6;&#x5408;</td>
<td>array</td>
<td>[]</td>
</tr>
<tr>
<td>headerRowSize</td>
<td>&#x8868;&#x5934;&#x9AD8;&#x5EA6;</td>
<td>number</td>
<td>37</td>
</tr>
<tr>
<td>footerRowSize</td>
<td>&#x8868;&#x5C3E;&#x9AD8;&#x5EA6;</td>
<td>number</td>
<td>37</td>
</tr>
<tr>
<td>rowSize</td>
<td>&#x666E;&#x901A;&#x5355;&#x5143;&#x683C;&#x9AD8;&#x5EA6;</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>&#x5B50;&#x7EC4;&#x4EF6;</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>