chore: release 0.0.1
This commit is contained in:
@@ -0,0 +1,539 @@
|
||||
/* Logo 字体 */
|
||||
@font-face {
|
||||
font-family: "iconfont logo";
|
||||
src: url('https://at.alicdn.com/t/font_985780_km7mi63cihi.eot?t=1545807318834');
|
||||
src: url('https://at.alicdn.com/t/font_985780_km7mi63cihi.eot?t=1545807318834#iefix') format('embedded-opentype'),
|
||||
url('https://at.alicdn.com/t/font_985780_km7mi63cihi.woff?t=1545807318834') format('woff'),
|
||||
url('https://at.alicdn.com/t/font_985780_km7mi63cihi.ttf?t=1545807318834') format('truetype'),
|
||||
url('https://at.alicdn.com/t/font_985780_km7mi63cihi.svg?t=1545807318834#iconfont') format('svg');
|
||||
}
|
||||
|
||||
.logo {
|
||||
font-family: "iconfont logo";
|
||||
font-size: 160px;
|
||||
font-style: normal;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
/* tabs */
|
||||
.nav-tabs {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.nav-tabs .nav-more {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
height: 42px;
|
||||
line-height: 42px;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
#tabs {
|
||||
border-bottom: 1px solid #eee;
|
||||
}
|
||||
|
||||
#tabs li {
|
||||
cursor: pointer;
|
||||
width: 100px;
|
||||
height: 40px;
|
||||
line-height: 40px;
|
||||
text-align: center;
|
||||
font-size: 16px;
|
||||
border-bottom: 2px solid transparent;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
margin-bottom: -1px;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
|
||||
#tabs .active {
|
||||
border-bottom-color: #f00;
|
||||
color: #222;
|
||||
}
|
||||
|
||||
.tab-container .content {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* 页面布局 */
|
||||
.main {
|
||||
padding: 30px 100px;
|
||||
width: 960px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.main .logo {
|
||||
color: #333;
|
||||
text-align: left;
|
||||
margin-bottom: 30px;
|
||||
line-height: 1;
|
||||
height: 110px;
|
||||
margin-top: -50px;
|
||||
overflow: hidden;
|
||||
*zoom: 1;
|
||||
}
|
||||
|
||||
.main .logo a {
|
||||
font-size: 160px;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.helps {
|
||||
margin-top: 40px;
|
||||
}
|
||||
|
||||
.helps pre {
|
||||
padding: 20px;
|
||||
margin: 10px 0;
|
||||
border: solid 1px #e7e1cd;
|
||||
background-color: #fffdef;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.icon_lists {
|
||||
width: 100% !important;
|
||||
overflow: hidden;
|
||||
*zoom: 1;
|
||||
}
|
||||
|
||||
.icon_lists li {
|
||||
width: 100px;
|
||||
margin-bottom: 10px;
|
||||
margin-right: 20px;
|
||||
text-align: center;
|
||||
list-style: none !important;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.icon_lists li .code-name {
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.icon_lists .icon {
|
||||
display: block;
|
||||
height: 100px;
|
||||
line-height: 100px;
|
||||
font-size: 42px;
|
||||
margin: 10px auto;
|
||||
color: #333;
|
||||
-webkit-transition: font-size 0.25s linear, width 0.25s linear;
|
||||
-moz-transition: font-size 0.25s linear, width 0.25s linear;
|
||||
transition: font-size 0.25s linear, width 0.25s linear;
|
||||
}
|
||||
|
||||
.icon_lists .icon:hover {
|
||||
font-size: 100px;
|
||||
}
|
||||
|
||||
.icon_lists .svg-icon {
|
||||
/* 通过设置 font-size 来改变图标大小 */
|
||||
width: 1em;
|
||||
/* 图标和文字相邻时,垂直对齐 */
|
||||
vertical-align: -0.15em;
|
||||
/* 通过设置 color 来改变 SVG 的颜色/fill */
|
||||
fill: currentColor;
|
||||
/* path 和 stroke 溢出 viewBox 部分在 IE 下会显示
|
||||
normalize.css 中也包含这行 */
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.icon_lists li .name,
|
||||
.icon_lists li .code-name {
|
||||
color: #666;
|
||||
}
|
||||
|
||||
/* markdown 样式 */
|
||||
.markdown {
|
||||
color: #666;
|
||||
font-size: 14px;
|
||||
line-height: 1.8;
|
||||
}
|
||||
|
||||
.highlight {
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.markdown img {
|
||||
vertical-align: middle;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.markdown h1 {
|
||||
color: #404040;
|
||||
font-weight: 500;
|
||||
line-height: 40px;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
.markdown h2,
|
||||
.markdown h3,
|
||||
.markdown h4,
|
||||
.markdown h5,
|
||||
.markdown h6 {
|
||||
color: #404040;
|
||||
margin: 1.6em 0 0.6em 0;
|
||||
font-weight: 500;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.markdown h1 {
|
||||
font-size: 28px;
|
||||
}
|
||||
|
||||
.markdown h2 {
|
||||
font-size: 22px;
|
||||
}
|
||||
|
||||
.markdown h3 {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.markdown h4 {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.markdown h5 {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.markdown h6 {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.markdown hr {
|
||||
height: 1px;
|
||||
border: 0;
|
||||
background: #e9e9e9;
|
||||
margin: 16px 0;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.markdown p {
|
||||
margin: 1em 0;
|
||||
}
|
||||
|
||||
.markdown>p,
|
||||
.markdown>blockquote,
|
||||
.markdown>.highlight,
|
||||
.markdown>ol,
|
||||
.markdown>ul {
|
||||
width: 80%;
|
||||
}
|
||||
|
||||
.markdown ul>li {
|
||||
list-style: circle;
|
||||
}
|
||||
|
||||
.markdown>ul li,
|
||||
.markdown blockquote ul>li {
|
||||
margin-left: 20px;
|
||||
padding-left: 4px;
|
||||
}
|
||||
|
||||
.markdown>ul li p,
|
||||
.markdown>ol li p {
|
||||
margin: 0.6em 0;
|
||||
}
|
||||
|
||||
.markdown ol>li {
|
||||
list-style: decimal;
|
||||
}
|
||||
|
||||
.markdown>ol li,
|
||||
.markdown blockquote ol>li {
|
||||
margin-left: 20px;
|
||||
padding-left: 4px;
|
||||
}
|
||||
|
||||
.markdown code {
|
||||
margin: 0 3px;
|
||||
padding: 0 5px;
|
||||
background: #eee;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.markdown strong,
|
||||
.markdown b {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.markdown>table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0px;
|
||||
empty-cells: show;
|
||||
border: 1px solid #e9e9e9;
|
||||
width: 95%;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
.markdown>table th {
|
||||
white-space: nowrap;
|
||||
color: #333;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.markdown>table th,
|
||||
.markdown>table td {
|
||||
border: 1px solid #e9e9e9;
|
||||
padding: 8px 16px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.markdown>table th {
|
||||
background: #F7F7F7;
|
||||
}
|
||||
|
||||
.markdown blockquote {
|
||||
font-size: 90%;
|
||||
color: #999;
|
||||
border-left: 4px solid #e9e9e9;
|
||||
padding-left: 0.8em;
|
||||
margin: 1em 0;
|
||||
}
|
||||
|
||||
.markdown blockquote p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.markdown .anchor {
|
||||
opacity: 0;
|
||||
transition: opacity 0.3s ease;
|
||||
margin-left: 8px;
|
||||
}
|
||||
|
||||
.markdown .waiting {
|
||||
color: #ccc;
|
||||
}
|
||||
|
||||
.markdown h1:hover .anchor,
|
||||
.markdown h2:hover .anchor,
|
||||
.markdown h3:hover .anchor,
|
||||
.markdown h4:hover .anchor,
|
||||
.markdown h5:hover .anchor,
|
||||
.markdown h6:hover .anchor {
|
||||
opacity: 1;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.markdown>br,
|
||||
.markdown>p>br {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
|
||||
.hljs {
|
||||
display: block;
|
||||
background: white;
|
||||
padding: 0.5em;
|
||||
color: #333333;
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
.hljs-comment,
|
||||
.hljs-meta {
|
||||
color: #969896;
|
||||
}
|
||||
|
||||
.hljs-string,
|
||||
.hljs-variable,
|
||||
.hljs-template-variable,
|
||||
.hljs-strong,
|
||||
.hljs-emphasis,
|
||||
.hljs-quote {
|
||||
color: #df5000;
|
||||
}
|
||||
|
||||
.hljs-keyword,
|
||||
.hljs-selector-tag,
|
||||
.hljs-type {
|
||||
color: #a71d5d;
|
||||
}
|
||||
|
||||
.hljs-literal,
|
||||
.hljs-symbol,
|
||||
.hljs-bullet,
|
||||
.hljs-attribute {
|
||||
color: #0086b3;
|
||||
}
|
||||
|
||||
.hljs-section,
|
||||
.hljs-name {
|
||||
color: #63a35c;
|
||||
}
|
||||
|
||||
.hljs-tag {
|
||||
color: #333333;
|
||||
}
|
||||
|
||||
.hljs-title,
|
||||
.hljs-attr,
|
||||
.hljs-selector-id,
|
||||
.hljs-selector-class,
|
||||
.hljs-selector-attr,
|
||||
.hljs-selector-pseudo {
|
||||
color: #795da3;
|
||||
}
|
||||
|
||||
.hljs-addition {
|
||||
color: #55a532;
|
||||
background-color: #eaffea;
|
||||
}
|
||||
|
||||
.hljs-deletion {
|
||||
color: #bd2c00;
|
||||
background-color: #ffecec;
|
||||
}
|
||||
|
||||
.hljs-link {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* 代码高亮 */
|
||||
/* PrismJS 1.15.0
|
||||
https://prismjs.com/download.html#themes=prism&languages=markup+css+clike+javascript */
|
||||
/**
|
||||
* prism.js default theme for JavaScript, CSS and HTML
|
||||
* Based on dabblet (http://dabblet.com)
|
||||
* @author Lea Verou
|
||||
*/
|
||||
code[class*="language-"],
|
||||
pre[class*="language-"] {
|
||||
color: black;
|
||||
background: none;
|
||||
text-shadow: 0 1px white;
|
||||
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
|
||||
text-align: left;
|
||||
white-space: pre;
|
||||
word-spacing: normal;
|
||||
word-break: normal;
|
||||
word-wrap: normal;
|
||||
line-height: 1.5;
|
||||
|
||||
-moz-tab-size: 4;
|
||||
-o-tab-size: 4;
|
||||
tab-size: 4;
|
||||
|
||||
-webkit-hyphens: none;
|
||||
-moz-hyphens: none;
|
||||
-ms-hyphens: none;
|
||||
hyphens: none;
|
||||
}
|
||||
|
||||
pre[class*="language-"]::-moz-selection,
|
||||
pre[class*="language-"] ::-moz-selection,
|
||||
code[class*="language-"]::-moz-selection,
|
||||
code[class*="language-"] ::-moz-selection {
|
||||
text-shadow: none;
|
||||
background: #b3d4fc;
|
||||
}
|
||||
|
||||
pre[class*="language-"]::selection,
|
||||
pre[class*="language-"] ::selection,
|
||||
code[class*="language-"]::selection,
|
||||
code[class*="language-"] ::selection {
|
||||
text-shadow: none;
|
||||
background: #b3d4fc;
|
||||
}
|
||||
|
||||
@media print {
|
||||
|
||||
code[class*="language-"],
|
||||
pre[class*="language-"] {
|
||||
text-shadow: none;
|
||||
}
|
||||
}
|
||||
|
||||
/* Code blocks */
|
||||
pre[class*="language-"] {
|
||||
padding: 1em;
|
||||
margin: .5em 0;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
:not(pre)>code[class*="language-"],
|
||||
pre[class*="language-"] {
|
||||
background: #f5f2f0;
|
||||
}
|
||||
|
||||
/* Inline code */
|
||||
:not(pre)>code[class*="language-"] {
|
||||
padding: .1em;
|
||||
border-radius: .3em;
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
.token.comment,
|
||||
.token.prolog,
|
||||
.token.doctype,
|
||||
.token.cdata {
|
||||
color: slategray;
|
||||
}
|
||||
|
||||
.token.punctuation {
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.namespace {
|
||||
opacity: .7;
|
||||
}
|
||||
|
||||
.token.property,
|
||||
.token.tag,
|
||||
.token.boolean,
|
||||
.token.number,
|
||||
.token.constant,
|
||||
.token.symbol,
|
||||
.token.deleted {
|
||||
color: #905;
|
||||
}
|
||||
|
||||
.token.selector,
|
||||
.token.attr-name,
|
||||
.token.string,
|
||||
.token.char,
|
||||
.token.builtin,
|
||||
.token.inserted {
|
||||
color: #690;
|
||||
}
|
||||
|
||||
.token.operator,
|
||||
.token.entity,
|
||||
.token.url,
|
||||
.language-css .token.string,
|
||||
.style .token.string {
|
||||
color: #9a6e3a;
|
||||
background: hsla(0, 0%, 100%, .5);
|
||||
}
|
||||
|
||||
.token.atrule,
|
||||
.token.attr-value,
|
||||
.token.keyword {
|
||||
color: #07a;
|
||||
}
|
||||
|
||||
.token.function,
|
||||
.token.class-name {
|
||||
color: #DD4A68;
|
||||
}
|
||||
|
||||
.token.regex,
|
||||
.token.important,
|
||||
.token.variable {
|
||||
color: #e90;
|
||||
}
|
||||
|
||||
.token.important,
|
||||
.token.bold {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.token.italic {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.token.entity {
|
||||
cursor: help;
|
||||
}
|
||||
@@ -0,0 +1,326 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<title>iconfont Demo</title>
|
||||
<link rel="shortcut icon" href="//img.alicdn.com/imgextra/i4/O1CN01Z5paLz1O0zuCC7osS_!!6000000001644-55-tps-83-82.svg" type="image/x-icon"/>
|
||||
<link rel="icon" type="image/svg+xml" href="//img.alicdn.com/imgextra/i4/O1CN01Z5paLz1O0zuCC7osS_!!6000000001644-55-tps-83-82.svg"/>
|
||||
<link rel="stylesheet" href="https://g.alicdn.com/thx/cube/1.3.2/cube.min.css">
|
||||
<link rel="stylesheet" href="demo.css">
|
||||
<link rel="stylesheet" href="iconfont.css">
|
||||
<script src="iconfont.js"></script>
|
||||
<!-- jQuery -->
|
||||
<script src="https://a1.alicdn.com/oss/uploads/2018/12/26/7bfddb60-08e8-11e9-9b04-53e73bb6408b.js"></script>
|
||||
<!-- 代码高亮 -->
|
||||
<script src="https://a1.alicdn.com/oss/uploads/2018/12/26/a3f714d0-08e6-11e9-8a15-ebf944d7534c.js"></script>
|
||||
<style>
|
||||
.main .logo {
|
||||
margin-top: 0;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.main .logo a {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.main .logo .sub-title {
|
||||
margin-left: 0.5em;
|
||||
font-size: 22px;
|
||||
color: #fff;
|
||||
background: linear-gradient(-45deg, #3967FF, #B500FE);
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="main">
|
||||
<h1 class="logo"><a href="https://www.iconfont.cn/" title="iconfont 首页" target="_blank">
|
||||
<img width="200" src="https://img.alicdn.com/imgextra/i3/O1CN01Mn65HV1FfSEzR6DKv_!!6000000000514-55-tps-228-59.svg">
|
||||
|
||||
</a></h1>
|
||||
<div class="nav-tabs">
|
||||
<ul id="tabs" class="dib-box">
|
||||
<li class="dib active"><span>Unicode</span></li>
|
||||
<li class="dib"><span>Font class</span></li>
|
||||
<li class="dib"><span>Symbol</span></li>
|
||||
</ul>
|
||||
|
||||
<a href="https://www.iconfont.cn/manage/index?manage_type=myprojects&projectId=5013087" target="_blank" class="nav-more">查看项目</a>
|
||||
|
||||
</div>
|
||||
<div class="tab-container">
|
||||
<div class="content unicode" style="display: block;">
|
||||
<ul class="icon_lists dib-box">
|
||||
|
||||
<li class="dib">
|
||||
<span class="icon iconfont"></span>
|
||||
<div class="name">border-rt-lb</div>
|
||||
<div class="code-name">&#xeb00;</div>
|
||||
</li>
|
||||
|
||||
<li class="dib">
|
||||
<span class="icon iconfont"></span>
|
||||
<div class="name">border-lt-rb</div>
|
||||
<div class="code-name">&#xeb01;</div>
|
||||
</li>
|
||||
|
||||
<li class="dib">
|
||||
<span class="icon iconfont"></span>
|
||||
<div class="name">树形图</div>
|
||||
<div class="code-name">&#xe74b;</div>
|
||||
</li>
|
||||
|
||||
<li class="dib">
|
||||
<span class="icon iconfont"></span>
|
||||
<div class="name">浮动图片</div>
|
||||
<div class="code-name">&#xe64f;</div>
|
||||
</li>
|
||||
|
||||
<li class="dib">
|
||||
<span class="icon iconfont"></span>
|
||||
<div class="name">单元格图片</div>
|
||||
<div class="code-name">&#xe60f;</div>
|
||||
</li>
|
||||
|
||||
<li class="dib">
|
||||
<span class="icon iconfont"></span>
|
||||
<div class="name">转换、交换</div>
|
||||
<div class="code-name">&#xe625;</div>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
<div class="article markdown">
|
||||
<h2 id="unicode-">Unicode 引用</h2>
|
||||
<hr>
|
||||
|
||||
<p>Unicode 是字体在网页端最原始的应用方式,特点是:</p>
|
||||
<ul>
|
||||
<li>支持按字体的方式去动态调整图标大小,颜色等等。</li>
|
||||
<li>默认情况下不支持多色,直接添加多色图标会自动去色。</li>
|
||||
</ul>
|
||||
<blockquote>
|
||||
<p>注意:新版 iconfont 支持两种方式引用多色图标:SVG symbol 引用方式和彩色字体图标模式。(使用彩色字体图标需要在「编辑项目」中开启「彩色」选项后并重新生成。)</p>
|
||||
</blockquote>
|
||||
<p>Unicode 使用步骤如下:</p>
|
||||
<h3 id="-font-face">第一步:拷贝项目下面生成的 <code>@font-face</code></h3>
|
||||
<pre><code class="language-css"
|
||||
>@font-face {
|
||||
font-family: 'iconfont';
|
||||
src: url('iconfont.woff2?t=1760058905416') format('woff2'),
|
||||
url('iconfont.woff?t=1760058905416') format('woff'),
|
||||
url('iconfont.ttf?t=1760058905416') format('truetype');
|
||||
}
|
||||
</code></pre>
|
||||
<h3 id="-iconfont-">第二步:定义使用 iconfont 的样式</h3>
|
||||
<pre><code class="language-css"
|
||||
>.iconfont {
|
||||
font-family: "iconfont" !important;
|
||||
font-size: 16px;
|
||||
font-style: normal;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
</code></pre>
|
||||
<h3 id="-">第三步:挑选相应图标并获取字体编码,应用于页面</h3>
|
||||
<pre>
|
||||
<code class="language-html"
|
||||
><span class="iconfont">&#x33;</span>
|
||||
</code></pre>
|
||||
<blockquote>
|
||||
<p>"iconfont" 是你项目下的 font-family。可以通过编辑项目查看,默认是 "iconfont"。</p>
|
||||
</blockquote>
|
||||
</div>
|
||||
</div>
|
||||
<div class="content font-class">
|
||||
<ul class="icon_lists dib-box">
|
||||
|
||||
<li class="dib">
|
||||
<span class="icon iconfont icon-border-rt-lb"></span>
|
||||
<div class="name">
|
||||
border-rt-lb
|
||||
</div>
|
||||
<div class="code-name">.icon-border-rt-lb
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li class="dib">
|
||||
<span class="icon iconfont icon-border-lt-rb"></span>
|
||||
<div class="name">
|
||||
border-lt-rb
|
||||
</div>
|
||||
<div class="code-name">.icon-border-lt-rb
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li class="dib">
|
||||
<span class="icon iconfont icon-shuxingtu"></span>
|
||||
<div class="name">
|
||||
树形图
|
||||
</div>
|
||||
<div class="code-name">.icon-shuxingtu
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li class="dib">
|
||||
<span class="icon iconfont icon-fudongtupian"></span>
|
||||
<div class="name">
|
||||
浮动图片
|
||||
</div>
|
||||
<div class="code-name">.icon-fudongtupian
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li class="dib">
|
||||
<span class="icon iconfont icon-danyuangetupian"></span>
|
||||
<div class="name">
|
||||
单元格图片
|
||||
</div>
|
||||
<div class="code-name">.icon-danyuangetupian
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li class="dib">
|
||||
<span class="icon iconfont icon-a-zhuanhuanjiaohuan"></span>
|
||||
<div class="name">
|
||||
转换、交换
|
||||
</div>
|
||||
<div class="code-name">.icon-a-zhuanhuanjiaohuan
|
||||
</div>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
<div class="article markdown">
|
||||
<h2 id="font-class-">font-class 引用</h2>
|
||||
<hr>
|
||||
|
||||
<p>font-class 是 Unicode 使用方式的一种变种,主要是解决 Unicode 书写不直观,语意不明确的问题。</p>
|
||||
<p>与 Unicode 使用方式相比,具有如下特点:</p>
|
||||
<ul>
|
||||
<li>相比于 Unicode 语意明确,书写更直观。可以很容易分辨这个 icon 是什么。</li>
|
||||
<li>因为使用 class 来定义图标,所以当要替换图标时,只需要修改 class 里面的 Unicode 引用。</li>
|
||||
</ul>
|
||||
<p>使用步骤如下:</p>
|
||||
<h3 id="-fontclass-">第一步:引入项目下面生成的 fontclass 代码:</h3>
|
||||
<pre><code class="language-html"><link rel="stylesheet" href="./iconfont.css">
|
||||
</code></pre>
|
||||
<h3 id="-">第二步:挑选相应图标并获取类名,应用于页面:</h3>
|
||||
<pre><code class="language-html"><span class="iconfont icon-xxx"></span>
|
||||
</code></pre>
|
||||
<blockquote>
|
||||
<p>"
|
||||
iconfont" 是你项目下的 font-family。可以通过编辑项目查看,默认是 "iconfont"。</p>
|
||||
</blockquote>
|
||||
</div>
|
||||
</div>
|
||||
<div class="content symbol">
|
||||
<ul class="icon_lists dib-box">
|
||||
|
||||
<li class="dib">
|
||||
<svg class="icon svg-icon" aria-hidden="true">
|
||||
<use xlink:href="#icon-border-rt-lb"></use>
|
||||
</svg>
|
||||
<div class="name">border-rt-lb</div>
|
||||
<div class="code-name">#icon-border-rt-lb</div>
|
||||
</li>
|
||||
|
||||
<li class="dib">
|
||||
<svg class="icon svg-icon" aria-hidden="true">
|
||||
<use xlink:href="#icon-border-lt-rb"></use>
|
||||
</svg>
|
||||
<div class="name">border-lt-rb</div>
|
||||
<div class="code-name">#icon-border-lt-rb</div>
|
||||
</li>
|
||||
|
||||
<li class="dib">
|
||||
<svg class="icon svg-icon" aria-hidden="true">
|
||||
<use xlink:href="#icon-shuxingtu"></use>
|
||||
</svg>
|
||||
<div class="name">树形图</div>
|
||||
<div class="code-name">#icon-shuxingtu</div>
|
||||
</li>
|
||||
|
||||
<li class="dib">
|
||||
<svg class="icon svg-icon" aria-hidden="true">
|
||||
<use xlink:href="#icon-fudongtupian"></use>
|
||||
</svg>
|
||||
<div class="name">浮动图片</div>
|
||||
<div class="code-name">#icon-fudongtupian</div>
|
||||
</li>
|
||||
|
||||
<li class="dib">
|
||||
<svg class="icon svg-icon" aria-hidden="true">
|
||||
<use xlink:href="#icon-danyuangetupian"></use>
|
||||
</svg>
|
||||
<div class="name">单元格图片</div>
|
||||
<div class="code-name">#icon-danyuangetupian</div>
|
||||
</li>
|
||||
|
||||
<li class="dib">
|
||||
<svg class="icon svg-icon" aria-hidden="true">
|
||||
<use xlink:href="#icon-a-zhuanhuanjiaohuan"></use>
|
||||
</svg>
|
||||
<div class="name">转换、交换</div>
|
||||
<div class="code-name">#icon-a-zhuanhuanjiaohuan</div>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
<div class="article markdown">
|
||||
<h2 id="symbol-">Symbol 引用</h2>
|
||||
<hr>
|
||||
|
||||
<p>这是一种全新的使用方式,应该说这才是未来的主流,也是平台目前推荐的用法。相关介绍可以参考这篇<a href="">文章</a>
|
||||
这种用法其实是做了一个 SVG 的集合,与另外两种相比具有如下特点:</p>
|
||||
<ul>
|
||||
<li>支持多色图标了,不再受单色限制。</li>
|
||||
<li>通过一些技巧,支持像字体那样,通过 <code>font-size</code>, <code>color</code> 来调整样式。</li>
|
||||
<li>兼容性较差,支持 IE9+,及现代浏览器。</li>
|
||||
<li>浏览器渲染 SVG 的性能一般,还不如 png。</li>
|
||||
</ul>
|
||||
<p>使用步骤如下:</p>
|
||||
<h3 id="-symbol-">第一步:引入项目下面生成的 symbol 代码:</h3>
|
||||
<pre><code class="language-html"><script src="./iconfont.js"></script>
|
||||
</code></pre>
|
||||
<h3 id="-css-">第二步:加入通用 CSS 代码(引入一次就行):</h3>
|
||||
<pre><code class="language-html"><style>
|
||||
.icon {
|
||||
width: 1em;
|
||||
height: 1em;
|
||||
vertical-align: -0.15em;
|
||||
fill: currentColor;
|
||||
overflow: hidden;
|
||||
}
|
||||
</style>
|
||||
</code></pre>
|
||||
<h3 id="-">第三步:挑选相应图标并获取类名,应用于页面:</h3>
|
||||
<pre><code class="language-html"><svg class="icon" aria-hidden="true">
|
||||
<use xlink:href="#icon-xxx"></use>
|
||||
</svg>
|
||||
</code></pre>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
$('.tab-container .content:first').show()
|
||||
|
||||
$('#tabs li').click(function (e) {
|
||||
var tabContent = $('.tab-container .content')
|
||||
var index = $(this).index()
|
||||
|
||||
if ($(this).hasClass('active')) {
|
||||
return
|
||||
} else {
|
||||
$('#tabs li').removeClass('active')
|
||||
$(this).addClass('active')
|
||||
|
||||
tabContent.hide().eq(index).fadeIn()
|
||||
}
|
||||
})
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,39 @@
|
||||
@font-face {
|
||||
font-family: "iconfont"; /* Project id 5013087 */
|
||||
src: url('iconfont.woff2?t=1760058905416') format('woff2'),
|
||||
url('iconfont.woff?t=1760058905416') format('woff'),
|
||||
url('iconfont.ttf?t=1760058905416') format('truetype');
|
||||
}
|
||||
|
||||
.iconfont {
|
||||
font-family: "iconfont" !important;
|
||||
font-size: 16px;
|
||||
font-style: normal;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
.icon-border-rt-lb:before {
|
||||
content: "\eb00";
|
||||
}
|
||||
|
||||
.icon-border-lt-rb:before {
|
||||
content: "\eb01";
|
||||
}
|
||||
|
||||
.icon-shuxingtu:before {
|
||||
content: "\e74b";
|
||||
}
|
||||
|
||||
.icon-fudongtupian:before {
|
||||
content: "\e64f";
|
||||
}
|
||||
|
||||
.icon-danyuangetupian:before {
|
||||
content: "\e60f";
|
||||
}
|
||||
|
||||
.icon-a-zhuanhuanjiaohuan:before {
|
||||
content: "\e625";
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,51 @@
|
||||
{
|
||||
"id": "5013087",
|
||||
"name": "sheet-demo",
|
||||
"font_family": "iconfont",
|
||||
"css_prefix_text": "icon-",
|
||||
"description": "",
|
||||
"glyphs": [
|
||||
{
|
||||
"icon_id": "7596484",
|
||||
"name": "border-rt-lb",
|
||||
"font_class": "border-rt-lb",
|
||||
"unicode": "eb00",
|
||||
"unicode_decimal": 60160
|
||||
},
|
||||
{
|
||||
"icon_id": "45726050",
|
||||
"name": "border-lt-rb",
|
||||
"font_class": "border-lt-rb",
|
||||
"unicode": "eb01",
|
||||
"unicode_decimal": 60161
|
||||
},
|
||||
{
|
||||
"icon_id": "25495312",
|
||||
"name": "树形图",
|
||||
"font_class": "shuxingtu",
|
||||
"unicode": "e74b",
|
||||
"unicode_decimal": 59211
|
||||
},
|
||||
{
|
||||
"icon_id": "1754409",
|
||||
"name": "浮动图片",
|
||||
"font_class": "fudongtupian",
|
||||
"unicode": "e64f",
|
||||
"unicode_decimal": 58959
|
||||
},
|
||||
{
|
||||
"icon_id": "13932187",
|
||||
"name": "单元格图片",
|
||||
"font_class": "danyuangetupian",
|
||||
"unicode": "e60f",
|
||||
"unicode_decimal": 58895
|
||||
},
|
||||
{
|
||||
"icon_id": "25634520",
|
||||
"name": "转换、交换",
|
||||
"font_class": "a-zhuanhuanjiaohuan",
|
||||
"unicode": "e625",
|
||||
"unicode_decimal": 58917
|
||||
}
|
||||
]
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
Binary file not shown.
|
After Width: | Height: | Size: 21 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 30 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 4.0 KiB |
File diff suppressed because one or more lines are too long
@@ -1,410 +0,0 @@
|
||||
export function initChat() {
|
||||
if (!isNeedChat()) {
|
||||
return
|
||||
}
|
||||
|
||||
// Your CSS as text
|
||||
let styles = `
|
||||
body {
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
|
||||
#chat-assistant-container {
|
||||
position: fixed;
|
||||
right: 40px;
|
||||
bottom: 86px;
|
||||
z-index:9990;
|
||||
}
|
||||
|
||||
#chat-assistant-button {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
border-radius: 50%;
|
||||
border: none;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
cursor: pointer;
|
||||
background: linear-gradient(135deg, rgb(215 98 150 / 55%),rgb(34 78 139 / 71%), rgb(114 222 172));
|
||||
box-shadow: 0px 0px 8px 1px rgb(0 0 0 / 22%);
|
||||
color: #fff;
|
||||
text-shadow: 1px 1px 3px rgb(0 0 0 / 56%);
|
||||
}
|
||||
|
||||
|
||||
#chat-container {
|
||||
position: fixed;
|
||||
padding: 10px;
|
||||
top: 45%;
|
||||
left: 50%;
|
||||
z-index:9990;
|
||||
transform: translate(-50%, -50%);
|
||||
display: none;
|
||||
border-radius: 5px;
|
||||
width: 40%;
|
||||
background: linear-gradient(135deg, rgb(215 98 150 / 92%),rgb(34 78 139 / 93%), rgb(114 222 172 / 94%));
|
||||
box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
|
||||
|
||||
#chat-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 0 10px 10px 0;
|
||||
border-radius: 5px 5px 0 0;
|
||||
cursor: move;
|
||||
}
|
||||
|
||||
#loading-indicator {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
margin: 0 10px 0 10px;
|
||||
border: 2px solid #ccc;
|
||||
border-top-color: #4caf50;
|
||||
border-radius: 50%;
|
||||
animation: spin 2s linear infinite;
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
0% {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
|
||||
100% {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
#chat-header .show-loading {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
#chat-header .hide-loading {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
|
||||
#circle-button {
|
||||
padding: 0;
|
||||
border: none;
|
||||
background-color: transparent;
|
||||
font-size: 16px;
|
||||
user-select: none;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
color: #fff;
|
||||
text-shadow: 1px 1px 3px black;
|
||||
}
|
||||
|
||||
#close-button {
|
||||
cursor: pointer;
|
||||
padding: 0;
|
||||
border: none;
|
||||
background-color: transparent;
|
||||
font-size: 24px;
|
||||
color: #fff;
|
||||
text-shadow: 1px 1px 3px black;
|
||||
}
|
||||
#send-button {
|
||||
cursor: pointer;
|
||||
padding: 0;
|
||||
border: none;
|
||||
background-color: transparent;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
#close-button:hover,
|
||||
#send-button:hover {
|
||||
color: #888;
|
||||
}
|
||||
|
||||
#chat-input-container,
|
||||
#chat-input {
|
||||
border: none;
|
||||
}
|
||||
|
||||
#chat-input-container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
border-radius: 5px;
|
||||
background-color: #fff;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
#chat-input {
|
||||
flex: 1;
|
||||
padding: 0;
|
||||
margin-right: 5px;
|
||||
border-radius: 5px;
|
||||
overflow-y: auto;
|
||||
height: 24px;
|
||||
font-size: 1rem;
|
||||
outline: none;
|
||||
resize: none;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
#send-button {
|
||||
background-color: transparent;
|
||||
border: none;
|
||||
border-radius: 5px;
|
||||
cursor: pointer;
|
||||
padding: 5px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 32px;
|
||||
width: 32px;
|
||||
}
|
||||
|
||||
#send-button>span {
|
||||
height: 16px;
|
||||
width: 16px;
|
||||
}
|
||||
|
||||
#send-button:enabled {
|
||||
background-color: rgb(120,198,174);
|
||||
}
|
||||
|
||||
#send-button:enabled svg path {
|
||||
fill: #fff;
|
||||
}
|
||||
`
|
||||
|
||||
let styleSheet = document.createElement("style")
|
||||
styleSheet.innerText = styles
|
||||
document.head.appendChild(styleSheet)
|
||||
|
||||
|
||||
const html = `<div id="chat-assistant-container">
|
||||
<button id="chat-assistant-button">🤖AI</button>
|
||||
</div>
|
||||
|
||||
<div id="chat-container">
|
||||
<div id="chat-header">
|
||||
<span id="circle-button">Univer AI 助手<div id="loading-indicator"></div></span>
|
||||
|
||||
<button id="close-button">×</button>
|
||||
</div>
|
||||
<div id="chat-input-container">
|
||||
<textarea id="chat-input" placeholder="请输入问题"></textarea>
|
||||
<!-- <textarea id="chat-input" placeholder="请输入问题"></textarea> -->
|
||||
<button id="send-button" disabled>
|
||||
<span><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" class="h-4 w-4 m-1 md:m-0"
|
||||
stroke-width="2">
|
||||
<path
|
||||
d="M.5 1.163A1 1 0 0 1 1.97.28l12.868 6.837a1 1 0 0 1 0 1.766L1.969 15.72A1 1 0 0 1 .5 14.836V10.33a1 1 0 0 1 .816-.983L8.5 8 1.316 6.653A1 1 0 0 1 .5 5.67V1.163Z"
|
||||
fill="currentColor"></path>
|
||||
</svg></span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
</div>`;
|
||||
document.body.insertAdjacentHTML('beforeend', html)
|
||||
|
||||
|
||||
const assistantButton = document.getElementById('chat-assistant-button');
|
||||
const chatContainer = document.getElementById('chat-container');
|
||||
const closeButton = document.getElementById('close-button');
|
||||
const chatInput = document.getElementById('chat-input');
|
||||
const sendButton = document.getElementById('send-button');
|
||||
const loadingIndicator = document.getElementById('loading-indicator');
|
||||
|
||||
assistantButton.addEventListener('click', function () {
|
||||
chatContainer.style.display = 'block';
|
||||
});
|
||||
|
||||
closeButton.addEventListener('click', function () {
|
||||
chatContainer.style.display = 'none';
|
||||
});
|
||||
|
||||
sendButton.addEventListener('click', function () {
|
||||
const message = chatInput.value;
|
||||
if (message.trim() !== '') {
|
||||
// 处理发送消息的逻辑
|
||||
|
||||
chatInput.value = '';
|
||||
resetButton(chatInput)
|
||||
|
||||
// 显示 Loading
|
||||
loadingIndicator.classList.add('show-loading');
|
||||
setTimeout(() => {
|
||||
setFormuala(message);
|
||||
// 隐藏 Loading
|
||||
loadingIndicator.classList.remove('show-loading');
|
||||
}, 1000);
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
|
||||
chatInput.addEventListener('input', function () {
|
||||
inputHandler(this)
|
||||
});
|
||||
|
||||
function inputHandler(input) {
|
||||
if (input.scrollHeight > 24) {
|
||||
input.style.height = 'auto'
|
||||
}
|
||||
input.style.height = input.scrollHeight + 'px'; // 根据内容高度设置 textarea 高度
|
||||
if (input.scrollHeight > 200) {
|
||||
input.style.overflowY = 'scroll'
|
||||
} else {
|
||||
input.style.overflowY = 'hidden'
|
||||
}
|
||||
|
||||
resetButton(input)
|
||||
|
||||
}
|
||||
|
||||
function resetButton(input) {
|
||||
if (input.value.trim() !== '') {
|
||||
sendButton.disabled = false;
|
||||
sendButton.classList.add('enabled');
|
||||
} else {
|
||||
input.style.height = '24px'; // 重置高度为一行
|
||||
sendButton.disabled = true;
|
||||
sendButton.classList.remove('enabled');
|
||||
}
|
||||
}
|
||||
|
||||
// 快捷键
|
||||
let isComposing = false;
|
||||
|
||||
chatInput.addEventListener('compositionstart', function () {
|
||||
isComposing = true;
|
||||
});
|
||||
|
||||
chatInput.addEventListener('compositionend', function () {
|
||||
isComposing = false;
|
||||
});
|
||||
|
||||
chatInput.addEventListener('keydown', function (event) {
|
||||
const isWindows = navigator.platform.includes('Win');
|
||||
const isMac = navigator.platform.includes('Mac');
|
||||
|
||||
const key = event.key;
|
||||
|
||||
if (isWindows && event.key === 'Enter' && !isComposing && !event.altKey) {
|
||||
// Windows 上的 Enter 键触发发送
|
||||
event.preventDefault();
|
||||
sendButton.click();
|
||||
} else if (isWindows && event.key === 'Enter' && !isComposing && event.altKey) {
|
||||
// Windows 上的 Alt+Enter 键触发换行
|
||||
event.preventDefault();
|
||||
this.value += '\n';
|
||||
} else if (isMac && event.key === 'Enter' && !isComposing && !event.metaKey) {
|
||||
// Mac 上的 Enter 键触发发送
|
||||
event.preventDefault();
|
||||
sendButton.click();
|
||||
} else if (isMac && event.key === 'Enter' && !isComposing && event.metaKey) {
|
||||
// Mac 上的 Command+Enter 键触发换行
|
||||
event.preventDefault();
|
||||
this.value += '\n';
|
||||
} else if (!isComposing && (key === "Backspace" || key === "Delete")) {
|
||||
|
||||
}
|
||||
|
||||
inputHandler(this)
|
||||
});
|
||||
|
||||
|
||||
// 添加拖拽功能
|
||||
let isDragging = false;
|
||||
let offset = { x: 0, y: 0 };
|
||||
|
||||
const chatHeader = document.getElementById('chat-header');
|
||||
|
||||
chatHeader.addEventListener('mousedown', function (event) {
|
||||
isDragging = true;
|
||||
offset.x = event.clientX - chatContainer.offsetLeft;
|
||||
offset.y = event.clientY - chatContainer.offsetTop;
|
||||
});
|
||||
|
||||
document.addEventListener('mousemove', function (event) {
|
||||
if (isDragging) {
|
||||
chatContainer.style.left = `${event.clientX - offset.x}px`;
|
||||
chatContainer.style.top = `${event.clientY - offset.y}px`;
|
||||
}
|
||||
});
|
||||
|
||||
document.addEventListener('mouseup', function () {
|
||||
isDragging = false;
|
||||
});
|
||||
}
|
||||
|
||||
const needChatHosts = [
|
||||
'crm.lashuju.com',
|
||||
'localhost:3000'
|
||||
]
|
||||
function isNeedChat() {
|
||||
const host = location.host;
|
||||
if (needChatHosts.includes(host)) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
|
||||
function setFormuala(sentence = '') {
|
||||
|
||||
let link = getLink(sentence)
|
||||
|
||||
if (link !== '') {
|
||||
setGET_AIRTABLE(link)
|
||||
} else {
|
||||
setASK_AI(sentence)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function setASK_AI(sentence = '') {
|
||||
|
||||
let range = getRange(sentence);
|
||||
|
||||
range = range === '' ? '' : ',' + range
|
||||
const data = [
|
||||
[
|
||||
{
|
||||
"f": "=ASK_AI(\"" + sentence + "\"" + range + ")"
|
||||
}
|
||||
]
|
||||
]
|
||||
luckysheet.setRangeValue(data)
|
||||
}
|
||||
|
||||
function setGET_AIRTABLE(link) {
|
||||
const data = [
|
||||
[
|
||||
{
|
||||
"f": "=GET_AIRTABLE_DATA(\"" + link + "\")"
|
||||
}
|
||||
]
|
||||
]
|
||||
luckysheet.setRangeValue(data)
|
||||
}
|
||||
|
||||
function getLink(sentence = '') {
|
||||
const regex = /(https?:\/\/(?:www\.)?airtable\.com\/\S+)/gi;
|
||||
const matches = sentence.match(regex);
|
||||
|
||||
if (matches) {
|
||||
return matches[0];
|
||||
}
|
||||
|
||||
return ''
|
||||
|
||||
}
|
||||
|
||||
function getRange(text) {
|
||||
const regex = /([A-Z]+[0-9]*):([A-Z]+[0-9]*)/g;
|
||||
const matche = text.match(regex);
|
||||
if (matche) {
|
||||
return matche[0]
|
||||
}
|
||||
return ''
|
||||
}
|
||||
@@ -1,42 +0,0 @@
|
||||
|
||||
// Features specially written for demo
|
||||
|
||||
(function () {
|
||||
|
||||
// language
|
||||
function language(params) {
|
||||
|
||||
var lang = navigator.language || navigator.userLanguage;//常规浏览器语言和IE浏览器
|
||||
lang = lang.substr(0, 2);//截取lang前2位字符
|
||||
|
||||
return lang;
|
||||
|
||||
}
|
||||
// Tencent Forum Link Button
|
||||
function supportButton() {
|
||||
const text = language() === 'zh' ? '反馈' : 'Forum';
|
||||
const link = language() === 'zh' ? 'https://support.qq.com/product/288322' : 'https://groups.google.com/g/luckysheet';
|
||||
|
||||
document.querySelector("body").insertAdjacentHTML('beforeend', '<a id="container" href="' + link + '" target="_blank" style="z-index:2;width:50px;height:50px;line-height:50px;position:fixed;right:40px;bottom:86px;border-radius:50px;cursor:pointer;background:rgb(71,133,249);color:#fff;text-align:center;text-decoration:none;font-size: 12px;">' + text + '</a>');
|
||||
}
|
||||
|
||||
supportButton()
|
||||
|
||||
/**
|
||||
* Get url parameters
|
||||
*/
|
||||
function getRequest() {
|
||||
var vars = {};
|
||||
var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi,
|
||||
function (m, key, value) {
|
||||
vars[key] = value;
|
||||
});
|
||||
return vars;
|
||||
}
|
||||
|
||||
window.luckysheetDemoUtil = {
|
||||
language: language,
|
||||
getRequest: getRequest
|
||||
}
|
||||
|
||||
})()
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@@ -1,67 +0,0 @@
|
||||
window.sheetComment = {
|
||||
"name": "Comment",
|
||||
"color": "",
|
||||
"config": {
|
||||
"columnlen": {
|
||||
"2": 102
|
||||
}
|
||||
},
|
||||
"index": "5",
|
||||
"chart": [],
|
||||
"status": 0,
|
||||
"order": "5",
|
||||
"column": 18,
|
||||
"row": 36,
|
||||
"celldata": [{
|
||||
"r": 2,
|
||||
"c": 2,
|
||||
"v": {
|
||||
"m": "HoverShown",
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "g"
|
||||
},
|
||||
"v": "HoverShown",
|
||||
"bl": 1,
|
||||
"ps": {
|
||||
"left": null,
|
||||
"top": null,
|
||||
"width": null,
|
||||
"height": null,
|
||||
"value": "Hello world!",
|
||||
"isshow": false
|
||||
}
|
||||
}
|
||||
}, {
|
||||
"r": 7,
|
||||
"c": 2,
|
||||
"v": {
|
||||
"m": "Size",
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "g"
|
||||
},
|
||||
"v": "Size",
|
||||
"bl": 1,
|
||||
"ps": {
|
||||
"left": null,
|
||||
"top": null,
|
||||
"width": null,
|
||||
"height": null,
|
||||
"value": "Hello,world!",
|
||||
"isshow": true
|
||||
}
|
||||
}
|
||||
}],
|
||||
"ch_width": 4748,
|
||||
"rh_height": 1790,
|
||||
"luckysheet_select_save": [{
|
||||
"row": [0, 0],
|
||||
"column": [0, 0]
|
||||
}],
|
||||
"luckysheet_selection_range": [],
|
||||
"scrollLeft": 0,
|
||||
"scrollTop": 0
|
||||
}
|
||||
|
||||
// export default sheetComment;
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,579 +0,0 @@
|
||||
window.sheetDataVerification = {
|
||||
"name": "Data Verification",
|
||||
"index": "Sheet_pdolzzie5xwi_1600927444446",
|
||||
"celldata": [{"r":0,"c":0,"v":{"ct":{"fa":"General","t":"g"},"m":"Drop Down List","v":"Drop Down List","bl":1}},{"r":0,"c":1,"v":{"m":"Checkbox","ct":{"fa":"General","t":"g"},"v":"Checkbox","bl":1}},{"r":0,"c":2,"v":{"ct":{"fa":"General","t":"g"},"v":"Number between 1-10","bl":1,"m":"Number between 1-10"}},{"r":0,"c":3,"v":{"m":"Text content include Luckysheet","ct":{"fa":"General","t":"g"},"v":"Text content include Luckysheet","bl":1}},{"r":0,"c":4,"v":{"ct":{"fa":"General","t":"g"},"v":"Text length between 1-5","m":"Text length between 1-5","bl":1}},{"r":0,"c":5,"v":{"m":"Date","ct":{"fa":"General","t":"g"},"v":"Date","bl":1}},{"r":0,"c":6,"v":{"m":"Identification Number","ct":{"fa":"General","t":"g"},"v":"Identification Number","bl":1}},{"r":0,"c":7,"v":{"m":"Phone Number","ct":{"fa":"General","t":"g"},"v":"Phone Number","bl":1}},{"r":1,"c":0,"v":{"ct":{"fa":"General","t":"g"},"v":"Fix","m":"Fix"}},{"r":1,"c":1,"v":{"m":"Fail","ct":{"fa":"General","t":"g"},"v":"Fail"}},{"r":1,"c":2,"v":{"v":1,"ct":{"fa":"General","t":"n"},"m":"1"}},{"r":1,"c":3,"v":{"m":"Luckysheet is good","ct":{"fa":"General","t":"g"},"v":"Luckysheet is good"}},{"r":1,"c":4,"v":{"m":"Welcome","ct":{"fa":"General","t":"g"},"v":"Welcome"}},{"r":1,"c":5,"v":{"m":"2020-09-24","ct":{"fa":"yyyy-MM-dd","t":"d"},"v":44098}},{"r":1,"c":6,"v":{"v":"311414199009138910","ct":{"fa":"@","t":"s"},"m":"311414199009138910"}},{"r":1,"c":7,"v":{"v":13678765439,"ct":{"fa":"General","t":"n"},"m":"13678765439"}},{"r":2,"c":0,"v":{"ct":{"fa":"General","t":"g"},"v":"Done","m":"Done"}},{"r":2,"c":1,"v":{"m":"Pass","ct":{"fa":"General","t":"g"},"v":"Pass"}},{"r":2,"c":2,"v":{"v":2,"ct":{"fa":"General","t":"n"},"m":"2"}},{"r":2,"c":3,"v":{"m":"I am Luckysheet","ct":{"fa":"General","t":"g"},"v":"I am Luckysheet"}},{"r":2,"c":4,"v":{"m":"Good","ct":{"fa":"General","t":"g"},"v":"Good"}},{"r":2,"c":5,"v":{"ct":{"fa":"General","t":"g"},"v":"Time","m":"Time"}},{"r":2,"c":6,"v":{"v":"31141419900913891","ct":{"fa":"@","t":"s"},"m":"31141419900913891"}},{"r":2,"c":7,"v":{"v":1367876544,"ct":{"fa":"General","t":"n"},"m":"1367876544"}},{"r":3,"c":0,"v":{"ct":{"fa":"General","t":"g"},"v":"Develop","m":"Develop"}},{"r":3,"c":1,"v":{"m":"Fail","ct":{"fa":"General","t":"g"},"v":"Fail"}},{"r":3,"c":2,"v":{"v":5,"ct":{"fa":"General","t":"n"},"m":"5"}},{"r":3,"c":3,"v":{"ct":{"fa":"General","t":"g"},"v":"I am luckyDemo","m":"I am luckyDemo"}},{"r":3,"c":4,"v":{"m":"Nice","ct":{"fa":"General","t":"g"},"v":"Nice"}},{"r":3,"c":5,"v":{"m":"2020-09-26","ct":{"fa":"yyyy-MM-dd","t":"d"},"v":44100}},{"r":3,"c":6,"v":{"v":"3114141990091389102","ct":{"fa":"@","t":"s"},"m":"3114141990091389102"}},{"r":3,"c":7,"v":{"v":136787654412,"ct":{"fa":"##0","t":"n"},"m":"136787654412"}},{"r":4,"c":0,"v":{"ct":{"fa":"General","t":"g"},"v":"Doing","m":"Doing"}},{"r":4,"c":1,"v":{"m":"Fail","ct":{"fa":"General","t":"g"},"v":"Fail"}},{"r":4,"c":2,"v":{"v":11,"ct":{"fa":"General","t":"n"},"m":"11"}},{"r":4,"c":3,"v":{"ct":{"fa":"General","t":"g"},"v":"Luckysheet Documentation","m":"Luckysheet Documentation"}},{"r":4,"c":4,"v":{"ct":{"fa":"General","t":"g"},"v":"Morning","m":"Morning"}},{"r":4,"c":5,"v":{"m":"2020-09-27","ct":{"fa":"yyyy-MM-dd","t":"d"},"v":44101}},{"r":4,"c":6,"v":{"v":"31141419900913891X","ct":{"fa":"@","t":"s"},"m":"31141419900913891X"}},{"r":4,"c":7,"v":{"v":49865342456,"ct":{"fa":"General","t":"n"},"m":"49865342456"}},{"r":5,"c":0,"v":{"ct":{"fa":"General","t":"g"},"v":"Develop","m":"Develop"}},{"r":5,"c":1,"v":{"m":"Fail","ct":{"fa":"General","t":"g"},"v":"Fail"}},{"r":5,"c":2,"v":{"v":3,"ct":{"fa":"General","t":"n"},"m":"3"}},{"r":5,"c":3,"v":{"m":"Luckyexcel","ct":{"fa":"General","t":"g"},"v":"Luckyexcel"}},{"r":5,"c":4,"v":{"ct":{"fa":"General","t":"g"},"v":"Tomorrow","m":"Tomorrow"}},{"r":5,"c":5,"v":{"ct":{"fa":"yyyy-MM-dd","t":"d"},"v":44071,"m":"2020-08-28"}},{"r":5,"c":6,"v":{"v":"Number","ct":{"fa":"@","t":"s"},"m":"Number"}},{"r":5,"c":7,"v":{"v":"Number","ct":{"fa":"General","t":"g"},"m":"Number"}},{"r":6,"c":0,"v":{"ct":{"fa":"General","t":"g"},"v":"Done","m":"Done"}},{"r":6,"c":1,"v":{"m":"Pass","ct":{"fa":"General","t":"g"},"v":"Pass"}},{"r":6,"c":2,"v":{"v":0,"ct":{"fa":"General","t":"n"},"m":"0"}},{"r":6,"c":3,"v":{"m":"Luckysheet Online","ct":{"fa":"General","t":"g"},"v":"Luckysheet Online"}},{"r":6,"c":4,"v":{"m":"Three","ct":{"fa":"General","t":"g"},"v":"Three"}},{"r":6,"c":5,"v":{"m":"2020-09-29","ct":{"fa":"yyyy-MM-dd","t":"d"},"v":44103}},{"r":6,"c":6,"v":{"v":"311414199301118910","ct":{"fa":"@","t":"s"},"m":"311414199301118910"}},{"r":6,"c":7,"v":{"v":23309873564,"ct":{"fa":"General","t":"n"},"m":"23309873564"}},{"r":7,"c":8,"v":{"v":null,"ct":{"fa":"General","t":"g"},"bl":1}}],
|
||||
"row": 84,
|
||||
"column": 60,
|
||||
"config": {
|
||||
"merge": {},
|
||||
"rowlen": {},
|
||||
"columnlen": {
|
||||
"0": 109,
|
||||
"2": 143,
|
||||
"3": 200,
|
||||
"4": 180,
|
||||
"6": 178,
|
||||
"7": 125
|
||||
},
|
||||
"customWidth": {
|
||||
"2": 1,
|
||||
"3": 1,
|
||||
"4": 1,
|
||||
"6": 1,
|
||||
"7": 1
|
||||
}
|
||||
},
|
||||
"luckysheet_select_save": [
|
||||
{
|
||||
"left": 963,
|
||||
"width": 125,
|
||||
"top": 240,
|
||||
"height": 19,
|
||||
"left_move": 963,
|
||||
"width_move": 125,
|
||||
"top_move": 240,
|
||||
"height_move": 19,
|
||||
"row": [
|
||||
12,
|
||||
12
|
||||
],
|
||||
"column": [
|
||||
7,
|
||||
7
|
||||
],
|
||||
"row_focus": 12,
|
||||
"column_focus": 7
|
||||
}
|
||||
],
|
||||
"dataVerification": {
|
||||
"1_0": {
|
||||
"type": "dropdown",
|
||||
"type2": null,
|
||||
"value1": "Develop,Fix,Done",
|
||||
"value2": "",
|
||||
"checked": false,
|
||||
"remote": false,
|
||||
"prohibitInput": false,
|
||||
"hintShow": false,
|
||||
"hintText": ""
|
||||
},
|
||||
"2_0": {
|
||||
"type": "dropdown",
|
||||
"type2": null,
|
||||
"value1": "Develop,Fix,Done",
|
||||
"value2": "",
|
||||
"checked": false,
|
||||
"remote": false,
|
||||
"prohibitInput": false,
|
||||
"hintShow": false,
|
||||
"hintText": ""
|
||||
},
|
||||
"3_0": {
|
||||
"type": "dropdown",
|
||||
"type2": null,
|
||||
"value1": "Develop,Fix,Done",
|
||||
"value2": "",
|
||||
"checked": false,
|
||||
"remote": false,
|
||||
"prohibitInput": false,
|
||||
"hintShow": false,
|
||||
"hintText": ""
|
||||
},
|
||||
"4_0": {
|
||||
"type": "dropdown",
|
||||
"type2": null,
|
||||
"value1": "Develop,Fix,Done",
|
||||
"value2": "",
|
||||
"checked": false,
|
||||
"remote": false,
|
||||
"prohibitInput": false,
|
||||
"hintShow": false,
|
||||
"hintText": ""
|
||||
},
|
||||
"5_0": {
|
||||
"type": "dropdown",
|
||||
"type2": null,
|
||||
"value1": "Develop,Fix,Done",
|
||||
"value2": "",
|
||||
"checked": false,
|
||||
"remote": false,
|
||||
"prohibitInput": false,
|
||||
"hintShow": false,
|
||||
"hintText": ""
|
||||
},
|
||||
"6_0": {
|
||||
"type": "dropdown",
|
||||
"type2": null,
|
||||
"value1": "Develop,Fix,Done",
|
||||
"value2": "",
|
||||
"checked": false,
|
||||
"remote": false,
|
||||
"prohibitInput": false,
|
||||
"hintShow": false,
|
||||
"hintText": ""
|
||||
},
|
||||
"1_1": {
|
||||
"type": "checkbox",
|
||||
"type2": null,
|
||||
"value1": "Pass",
|
||||
"value2": "Fail",
|
||||
"checked": false,
|
||||
"remote": true,
|
||||
"prohibitInput": false,
|
||||
"hintShow": false,
|
||||
"hintText": ""
|
||||
},
|
||||
"2_1": {
|
||||
"type": "checkbox",
|
||||
"type2": null,
|
||||
"value1": "Pass",
|
||||
"value2": "Fail",
|
||||
"checked": true,
|
||||
"remote": true,
|
||||
"prohibitInput": false,
|
||||
"hintShow": false,
|
||||
"hintText": ""
|
||||
},
|
||||
"3_1": {
|
||||
"type": "checkbox",
|
||||
"type2": null,
|
||||
"value1": "Pass",
|
||||
"value2": "Fail",
|
||||
"checked": false,
|
||||
"remote": true,
|
||||
"prohibitInput": false,
|
||||
"hintShow": false,
|
||||
"hintText": ""
|
||||
},
|
||||
"4_1": {
|
||||
"type": "checkbox",
|
||||
"type2": null,
|
||||
"value1": "Pass",
|
||||
"value2": "Fail",
|
||||
"checked": false,
|
||||
"remote": true,
|
||||
"prohibitInput": false,
|
||||
"hintShow": false,
|
||||
"hintText": ""
|
||||
},
|
||||
"5_1": {
|
||||
"type": "checkbox",
|
||||
"type2": null,
|
||||
"value1": "Pass",
|
||||
"value2": "Fail",
|
||||
"checked": false,
|
||||
"remote": true,
|
||||
"prohibitInput": false,
|
||||
"hintShow": false,
|
||||
"hintText": ""
|
||||
},
|
||||
"6_1": {
|
||||
"type": "checkbox",
|
||||
"type2": null,
|
||||
"value1": "Pass",
|
||||
"value2": "Fail",
|
||||
"checked": true,
|
||||
"remote": true,
|
||||
"prohibitInput": false,
|
||||
"hintShow": false,
|
||||
"hintText": ""
|
||||
},
|
||||
"1_2": {
|
||||
"type": "number",
|
||||
"type2": "bw",
|
||||
"value1": "1",
|
||||
"value2": "10",
|
||||
"checked": false,
|
||||
"remote": false,
|
||||
"prohibitInput": true,
|
||||
"hintShow": false,
|
||||
"hintText": ""
|
||||
},
|
||||
"2_2": {
|
||||
"type": "number",
|
||||
"type2": "bw",
|
||||
"value1": "1",
|
||||
"value2": "10",
|
||||
"checked": false,
|
||||
"remote": false,
|
||||
"prohibitInput": true,
|
||||
"hintShow": false,
|
||||
"hintText": ""
|
||||
},
|
||||
"3_2": {
|
||||
"type": "number",
|
||||
"type2": "bw",
|
||||
"value1": "1",
|
||||
"value2": "10",
|
||||
"checked": false,
|
||||
"remote": false,
|
||||
"prohibitInput": true,
|
||||
"hintShow": false,
|
||||
"hintText": ""
|
||||
},
|
||||
"4_2": {
|
||||
"type": "number",
|
||||
"type2": "bw",
|
||||
"value1": "1",
|
||||
"value2": "10",
|
||||
"checked": false,
|
||||
"remote": false,
|
||||
"prohibitInput": true,
|
||||
"hintShow": false,
|
||||
"hintText": ""
|
||||
},
|
||||
"5_2": {
|
||||
"type": "number",
|
||||
"type2": "bw",
|
||||
"value1": "1",
|
||||
"value2": "10",
|
||||
"checked": false,
|
||||
"remote": false,
|
||||
"prohibitInput": true,
|
||||
"hintShow": false,
|
||||
"hintText": ""
|
||||
},
|
||||
"6_2": {
|
||||
"type": "number",
|
||||
"type2": "bw",
|
||||
"value1": "1",
|
||||
"value2": "10",
|
||||
"checked": false,
|
||||
"remote": false,
|
||||
"prohibitInput": true,
|
||||
"hintShow": false,
|
||||
"hintText": ""
|
||||
},
|
||||
"1_3": {
|
||||
"type": "text_content",
|
||||
"type2": "include",
|
||||
"value1": "Luckysheet",
|
||||
"value2": "",
|
||||
"checked": false,
|
||||
"remote": false,
|
||||
"prohibitInput": false,
|
||||
"hintShow": true,
|
||||
"hintText": "include Luckysheet"
|
||||
},
|
||||
"2_3": {
|
||||
"type": "text_content",
|
||||
"type2": "include",
|
||||
"value1": "Luckysheet",
|
||||
"value2": "",
|
||||
"checked": false,
|
||||
"remote": false,
|
||||
"prohibitInput": false,
|
||||
"hintShow": true,
|
||||
"hintText": "include Luckysheet"
|
||||
},
|
||||
"3_3": {
|
||||
"type": "text_content",
|
||||
"type2": "include",
|
||||
"value1": "Luckysheet",
|
||||
"value2": "",
|
||||
"checked": false,
|
||||
"remote": false,
|
||||
"prohibitInput": false,
|
||||
"hintShow": true,
|
||||
"hintText": "include Luckysheet"
|
||||
},
|
||||
"4_3": {
|
||||
"type": "text_content",
|
||||
"type2": "include",
|
||||
"value1": "Luckysheet",
|
||||
"value2": "",
|
||||
"checked": false,
|
||||
"remote": false,
|
||||
"prohibitInput": false,
|
||||
"hintShow": true,
|
||||
"hintText": "include Luckysheet"
|
||||
},
|
||||
"5_3": {
|
||||
"type": "text_content",
|
||||
"type2": "include",
|
||||
"value1": "Luckysheet",
|
||||
"value2": "",
|
||||
"checked": false,
|
||||
"remote": false,
|
||||
"prohibitInput": false,
|
||||
"hintShow": true,
|
||||
"hintText": "include Luckysheet"
|
||||
},
|
||||
"6_3": {
|
||||
"type": "text_content",
|
||||
"type2": "include",
|
||||
"value1": "Luckysheet",
|
||||
"value2": "",
|
||||
"checked": false,
|
||||
"remote": false,
|
||||
"prohibitInput": false,
|
||||
"hintShow": true,
|
||||
"hintText": "include Luckysheet"
|
||||
},
|
||||
"1_4": {
|
||||
"type": "text_length",
|
||||
"type2": "bw",
|
||||
"value1": "1",
|
||||
"value2": "5",
|
||||
"checked": false,
|
||||
"remote": false,
|
||||
"prohibitInput": true,
|
||||
"hintShow": false,
|
||||
"hintText": ""
|
||||
},
|
||||
"2_4": {
|
||||
"type": "text_length",
|
||||
"type2": "bw",
|
||||
"value1": "1",
|
||||
"value2": "5",
|
||||
"checked": false,
|
||||
"remote": false,
|
||||
"prohibitInput": true,
|
||||
"hintShow": false,
|
||||
"hintText": ""
|
||||
},
|
||||
"3_4": {
|
||||
"type": "text_length",
|
||||
"type2": "bw",
|
||||
"value1": "1",
|
||||
"value2": "5",
|
||||
"checked": false,
|
||||
"remote": false,
|
||||
"prohibitInput": true,
|
||||
"hintShow": false,
|
||||
"hintText": ""
|
||||
},
|
||||
"4_4": {
|
||||
"type": "text_length",
|
||||
"type2": "bw",
|
||||
"value1": "1",
|
||||
"value2": "5",
|
||||
"checked": false,
|
||||
"remote": false,
|
||||
"prohibitInput": true,
|
||||
"hintShow": false,
|
||||
"hintText": ""
|
||||
},
|
||||
"5_4": {
|
||||
"type": "text_length",
|
||||
"type2": "bw",
|
||||
"value1": "1",
|
||||
"value2": "5",
|
||||
"checked": false,
|
||||
"remote": false,
|
||||
"prohibitInput": true,
|
||||
"hintShow": false,
|
||||
"hintText": ""
|
||||
},
|
||||
"6_4": {
|
||||
"type": "text_length",
|
||||
"type2": "bw",
|
||||
"value1": "1",
|
||||
"value2": "5",
|
||||
"checked": false,
|
||||
"remote": false,
|
||||
"prohibitInput": true,
|
||||
"hintShow": false,
|
||||
"hintText": ""
|
||||
},
|
||||
"1_5": {
|
||||
"type": "date",
|
||||
"type2": "bw",
|
||||
"value1": "2020-09-23",
|
||||
"value2": "2020-10-10",
|
||||
"checked": false,
|
||||
"remote": false,
|
||||
"prohibitInput": false,
|
||||
"hintShow": false,
|
||||
"hintText": ""
|
||||
},
|
||||
"2_5": {
|
||||
"type": "date",
|
||||
"type2": "bw",
|
||||
"value1": "2020-09-23",
|
||||
"value2": "2020-10-10",
|
||||
"checked": false,
|
||||
"remote": false,
|
||||
"prohibitInput": false,
|
||||
"hintShow": false,
|
||||
"hintText": ""
|
||||
},
|
||||
"3_5": {
|
||||
"type": "date",
|
||||
"type2": "bw",
|
||||
"value1": "2020-09-23",
|
||||
"value2": "2020-10-10",
|
||||
"checked": false,
|
||||
"remote": false,
|
||||
"prohibitInput": false,
|
||||
"hintShow": false,
|
||||
"hintText": ""
|
||||
},
|
||||
"4_5": {
|
||||
"type": "date",
|
||||
"type2": "bw",
|
||||
"value1": "2020-09-23",
|
||||
"value2": "2020-10-10",
|
||||
"checked": false,
|
||||
"remote": false,
|
||||
"prohibitInput": false,
|
||||
"hintShow": false,
|
||||
"hintText": ""
|
||||
},
|
||||
"5_5": {
|
||||
"type": "date",
|
||||
"type2": "bw",
|
||||
"value1": "2020-09-23",
|
||||
"value2": "2020-10-10",
|
||||
"checked": false,
|
||||
"remote": false,
|
||||
"prohibitInput": false,
|
||||
"hintShow": false,
|
||||
"hintText": ""
|
||||
},
|
||||
"6_5": {
|
||||
"type": "date",
|
||||
"type2": "bw",
|
||||
"value1": "2020-09-23",
|
||||
"value2": "2020-10-10",
|
||||
"checked": false,
|
||||
"remote": false,
|
||||
"prohibitInput": false,
|
||||
"hintShow": false,
|
||||
"hintText": ""
|
||||
},
|
||||
"1_6": {
|
||||
"type": "validity",
|
||||
"type2": "card",
|
||||
"value1": "",
|
||||
"value2": "",
|
||||
"checked": false,
|
||||
"remote": false,
|
||||
"prohibitInput": false,
|
||||
"hintShow": false,
|
||||
"hintText": ""
|
||||
},
|
||||
"2_6": {
|
||||
"type": "validity",
|
||||
"type2": "card",
|
||||
"value1": "",
|
||||
"value2": "",
|
||||
"checked": false,
|
||||
"remote": false,
|
||||
"prohibitInput": false,
|
||||
"hintShow": false,
|
||||
"hintText": ""
|
||||
},
|
||||
"3_6": {
|
||||
"type": "validity",
|
||||
"type2": "card",
|
||||
"value1": "",
|
||||
"value2": "",
|
||||
"checked": false,
|
||||
"remote": false,
|
||||
"prohibitInput": false,
|
||||
"hintShow": false,
|
||||
"hintText": ""
|
||||
},
|
||||
"4_6": {
|
||||
"type": "validity",
|
||||
"type2": "card",
|
||||
"value1": "",
|
||||
"value2": "",
|
||||
"checked": false,
|
||||
"remote": false,
|
||||
"prohibitInput": false,
|
||||
"hintShow": false,
|
||||
"hintText": ""
|
||||
},
|
||||
"5_6": {
|
||||
"type": "validity",
|
||||
"type2": "card",
|
||||
"value1": "",
|
||||
"value2": "",
|
||||
"checked": false,
|
||||
"remote": false,
|
||||
"prohibitInput": false,
|
||||
"hintShow": false,
|
||||
"hintText": ""
|
||||
},
|
||||
"6_6": {
|
||||
"type": "validity",
|
||||
"type2": "card",
|
||||
"value1": "",
|
||||
"value2": "",
|
||||
"checked": false,
|
||||
"remote": false,
|
||||
"prohibitInput": false,
|
||||
"hintShow": false,
|
||||
"hintText": ""
|
||||
},
|
||||
"1_7": {
|
||||
"type": "validity",
|
||||
"type2": "phone",
|
||||
"value1": "",
|
||||
"value2": "",
|
||||
"checked": false,
|
||||
"remote": false,
|
||||
"prohibitInput": false,
|
||||
"hintShow": false,
|
||||
"hintText": ""
|
||||
},
|
||||
"2_7": {
|
||||
"type": "validity",
|
||||
"type2": "phone",
|
||||
"value1": "",
|
||||
"value2": "",
|
||||
"checked": false,
|
||||
"remote": false,
|
||||
"prohibitInput": false,
|
||||
"hintShow": false,
|
||||
"hintText": ""
|
||||
},
|
||||
"3_7": {
|
||||
"type": "validity",
|
||||
"type2": "phone",
|
||||
"value1": "",
|
||||
"value2": "",
|
||||
"checked": false,
|
||||
"remote": false,
|
||||
"prohibitInput": false,
|
||||
"hintShow": false,
|
||||
"hintText": ""
|
||||
},
|
||||
"4_7": {
|
||||
"type": "validity",
|
||||
"type2": "phone",
|
||||
"value1": "",
|
||||
"value2": "",
|
||||
"checked": false,
|
||||
"remote": false,
|
||||
"prohibitInput": false,
|
||||
"hintShow": false,
|
||||
"hintText": ""
|
||||
},
|
||||
"5_7": {
|
||||
"type": "validity",
|
||||
"type2": "phone",
|
||||
"value1": "",
|
||||
"value2": "",
|
||||
"checked": false,
|
||||
"remote": false,
|
||||
"prohibitInput": false,
|
||||
"hintShow": false,
|
||||
"hintText": ""
|
||||
},
|
||||
"6_7": {
|
||||
"type": "validity",
|
||||
"type2": "phone",
|
||||
"value1": "",
|
||||
"value2": "",
|
||||
"checked": false,
|
||||
"remote": false,
|
||||
"prohibitInput": false,
|
||||
"hintShow": false,
|
||||
"hintText": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
// export default sheetDataVerification;
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@@ -1,189 +0,0 @@
|
||||
window.sheetPivotTable = {
|
||||
"name": "PivotTable",
|
||||
"color": "",
|
||||
"config": {},
|
||||
"index": "7",
|
||||
"chart": [],
|
||||
"status": 0,
|
||||
"order": "7",
|
||||
"column": 18,
|
||||
"row": 36,
|
||||
"celldata": [{
|
||||
"r": 0,
|
||||
"c": 0,
|
||||
"v": "count:score"
|
||||
}, {
|
||||
"r": 0,
|
||||
"c": 1,
|
||||
"v": "science"
|
||||
}, {
|
||||
"r": 0,
|
||||
"c": 2,
|
||||
"v": "mathematics"
|
||||
}, {
|
||||
"r": 0,
|
||||
"c": 3,
|
||||
"v": "foreign language"
|
||||
}, {
|
||||
"r": 0,
|
||||
"c": 4,
|
||||
"v": "English"
|
||||
}, {
|
||||
"r": 0,
|
||||
"c": 5,
|
||||
"v": "total"
|
||||
}, {
|
||||
"r": 1,
|
||||
"c": 0,
|
||||
"v": "Alex"
|
||||
}, {
|
||||
"r": 1,
|
||||
"c": 1,
|
||||
"v": 1
|
||||
}, {
|
||||
"r": 1,
|
||||
"c": 2,
|
||||
"v": 1
|
||||
}, {
|
||||
"r": 1,
|
||||
"c": 3,
|
||||
"v": 1
|
||||
}, {
|
||||
"r": 1,
|
||||
"c": 4,
|
||||
"v": 1
|
||||
}, {
|
||||
"r": 1,
|
||||
"c": 5,
|
||||
"v": 4
|
||||
}, {
|
||||
"r": 2,
|
||||
"c": 0,
|
||||
"v": "Joy"
|
||||
}, {
|
||||
"r": 2,
|
||||
"c": 1,
|
||||
"v": 1
|
||||
}, {
|
||||
"r": 2,
|
||||
"c": 2,
|
||||
"v": 1
|
||||
}, {
|
||||
"r": 2,
|
||||
"c": 3,
|
||||
"v": 1
|
||||
}, {
|
||||
"r": 2,
|
||||
"c": 4,
|
||||
"v": 1
|
||||
}, {
|
||||
"r": 2,
|
||||
"c": 5,
|
||||
"v": 4
|
||||
}, {
|
||||
"r": 3,
|
||||
"c": 0,
|
||||
"v": "Tim"
|
||||
}, {
|
||||
"r": 3,
|
||||
"c": 1,
|
||||
"v": 1
|
||||
}, {
|
||||
"r": 3,
|
||||
"c": 2,
|
||||
"v": 1
|
||||
}, {
|
||||
"r": 3,
|
||||
"c": 3,
|
||||
"v": 1
|
||||
}, {
|
||||
"r": 3,
|
||||
"c": 4,
|
||||
"v": 1
|
||||
}, {
|
||||
"r": 3,
|
||||
"c": 5,
|
||||
"v": 4
|
||||
}, {
|
||||
"r": 4,
|
||||
"c": 0,
|
||||
"v": "total"
|
||||
}, {
|
||||
"r": 4,
|
||||
"c": 1,
|
||||
"v": 3
|
||||
}, {
|
||||
"r": 4,
|
||||
"c": 2,
|
||||
"v": 3
|
||||
}, {
|
||||
"r": 4,
|
||||
"c": 3,
|
||||
"v": 3
|
||||
}, {
|
||||
"r": 4,
|
||||
"c": 4,
|
||||
"v": 3
|
||||
}, {
|
||||
"r": 4,
|
||||
"c": 5,
|
||||
"v": 12
|
||||
}],
|
||||
"ch_width": 4748,
|
||||
"rh_height": 1790,
|
||||
"luckysheet_select_save": [{
|
||||
"row": [0, 0],
|
||||
"column": [0, 0]
|
||||
}],
|
||||
"luckysheet_selection_range": [],
|
||||
"scrollLeft": 0,
|
||||
"scrollTop": 0,
|
||||
"isPivotTable": true,
|
||||
"pivotTable": {
|
||||
"pivot_select_save": {
|
||||
"left": 0,
|
||||
"width": 73,
|
||||
"top": 0,
|
||||
"height": 19,
|
||||
"left_move": 0,
|
||||
"width_move": 369,
|
||||
"top_move": 0,
|
||||
"height_move": 259,
|
||||
"row": [0, 12],
|
||||
"column": [0, 4],
|
||||
"row_focus": 0,
|
||||
"column_focus": 0
|
||||
},
|
||||
"pivotDataSheetIndex": 6, //The sheet index where the source data is located
|
||||
"column": [{
|
||||
"index": 3,
|
||||
"name": "subject",
|
||||
"fullname": "subject"
|
||||
}],
|
||||
"row": [{
|
||||
"index": 1,
|
||||
"name": "student",
|
||||
"fullname": "student"
|
||||
}],
|
||||
"filter": [],
|
||||
"values": [{
|
||||
"index": 4,
|
||||
"name": "score",
|
||||
"fullname": "count:score",
|
||||
"sumtype": "COUNTA",
|
||||
"nameindex": 0
|
||||
}],
|
||||
"showType": "column",
|
||||
"pivotDatas": [
|
||||
["count:score", "science", "mathematics", "foreign language", "English", "total"],
|
||||
["Alex", 1, 1, 1, 1, 4],
|
||||
["Joy", 1, 1, 1, 1, 4],
|
||||
["Tim", 1, 1, 1, 1, 4],
|
||||
["total", 3, 3, 3, 3, 12]
|
||||
],
|
||||
"drawPivotTable": false,
|
||||
"pivotTableBoundary": [5, 6]
|
||||
}
|
||||
}
|
||||
|
||||
// export default sheetPivotTable;
|
||||
@@ -1,741 +0,0 @@
|
||||
window.sheetPivotTableData = {
|
||||
"name": "PivotTableData",
|
||||
"color": "",
|
||||
"config": {
|
||||
"merge": {}
|
||||
},
|
||||
"index": "6",
|
||||
"chart": [],
|
||||
"status": 0,
|
||||
"order": "6",
|
||||
"hide": 0,
|
||||
"column": 18,
|
||||
"row": 36,
|
||||
"celldata": [{
|
||||
"r": 0,
|
||||
"c": 0,
|
||||
"v": {
|
||||
"m": "Mock test",
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "g"
|
||||
},
|
||||
"v": "Mock test"
|
||||
}
|
||||
}, {
|
||||
"r": 0,
|
||||
"c": 1,
|
||||
"v": {
|
||||
"m": "student",
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "g"
|
||||
},
|
||||
"v": "student"
|
||||
}
|
||||
}, {
|
||||
"r": 0,
|
||||
"c": 2,
|
||||
"v": {
|
||||
"m": "class",
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "g"
|
||||
},
|
||||
"v": "class"
|
||||
}
|
||||
}, {
|
||||
"r": 0,
|
||||
"c": 3,
|
||||
"v": {
|
||||
"m": "subject",
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "g"
|
||||
},
|
||||
"v": "subject"
|
||||
}
|
||||
}, {
|
||||
"r": 0,
|
||||
"c": 4,
|
||||
"v": {
|
||||
"m": "score",
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "g"
|
||||
},
|
||||
"v": "score"
|
||||
}
|
||||
}, {
|
||||
"r": 1,
|
||||
"c": 0,
|
||||
"v": {
|
||||
"m": "first round",
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "g"
|
||||
},
|
||||
"v": "first round"
|
||||
}
|
||||
}, {
|
||||
"r": 1,
|
||||
"c": 1,
|
||||
"v": {
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "g"
|
||||
},
|
||||
"v": "Joy",
|
||||
"m": "Joy"
|
||||
}
|
||||
}, {
|
||||
"r": 1,
|
||||
"c": 2,
|
||||
"v": {
|
||||
"m": "Class one",
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "g"
|
||||
},
|
||||
"v": "Class one"
|
||||
}
|
||||
}, {
|
||||
"r": 1,
|
||||
"c": 3,
|
||||
"v": {
|
||||
"m": "English",
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "g"
|
||||
},
|
||||
"v": "English"
|
||||
}
|
||||
}, {
|
||||
"r": 1,
|
||||
"c": 4,
|
||||
"v": {
|
||||
"v": 96,
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "n"
|
||||
},
|
||||
"m": "96"
|
||||
}
|
||||
}, {
|
||||
"r": 2,
|
||||
"c": 0,
|
||||
"v": {
|
||||
"m": "first round",
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "g"
|
||||
},
|
||||
"v": "first round"
|
||||
}
|
||||
}, {
|
||||
"r": 2,
|
||||
"c": 1,
|
||||
"v": {
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "g"
|
||||
},
|
||||
"v": "Joy",
|
||||
"m": "Joy"
|
||||
}
|
||||
}, {
|
||||
"r": 2,
|
||||
"c": 2,
|
||||
"v": {
|
||||
"m": "Class one",
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "g"
|
||||
},
|
||||
"v": "Class one"
|
||||
}
|
||||
}, {
|
||||
"r": 2,
|
||||
"c": 3,
|
||||
"v": {
|
||||
"m": "mathematics",
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "g"
|
||||
},
|
||||
"v": "mathematics"
|
||||
}
|
||||
}, {
|
||||
"r": 2,
|
||||
"c": 4,
|
||||
"v": {
|
||||
"v": 110,
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "n"
|
||||
},
|
||||
"m": "110"
|
||||
}
|
||||
}, {
|
||||
"r": 3,
|
||||
"c": 0,
|
||||
"v": {
|
||||
"m": "first round",
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "g"
|
||||
},
|
||||
"v": "first round"
|
||||
}
|
||||
}, {
|
||||
"r": 3,
|
||||
"c": 1,
|
||||
"v": {
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "g"
|
||||
},
|
||||
"v": "Joy",
|
||||
"m": "Joy"
|
||||
}
|
||||
}, {
|
||||
"r": 3,
|
||||
"c": 2,
|
||||
"v": {
|
||||
"m": "Class one",
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "g"
|
||||
},
|
||||
"v": "Class one"
|
||||
}
|
||||
}, {
|
||||
"r": 3,
|
||||
"c": 3,
|
||||
"v": {
|
||||
"m": "foreign language",
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "g"
|
||||
},
|
||||
"v": "foreign language"
|
||||
}
|
||||
}, {
|
||||
"r": 3,
|
||||
"c": 4,
|
||||
"v": {
|
||||
"v": 87,
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "n"
|
||||
},
|
||||
"m": "87"
|
||||
}
|
||||
}, {
|
||||
"r": 4,
|
||||
"c": 0,
|
||||
"v": {
|
||||
"m": "first round",
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "g"
|
||||
},
|
||||
"v": "first round"
|
||||
}
|
||||
}, {
|
||||
"r": 4,
|
||||
"c": 1,
|
||||
"v": {
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "g"
|
||||
},
|
||||
"v": "Joy",
|
||||
"m": "Joy"
|
||||
}
|
||||
}, {
|
||||
"r": 4,
|
||||
"c": 2,
|
||||
"v": {
|
||||
"m": "Class one",
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "g"
|
||||
},
|
||||
"v": "Class one"
|
||||
}
|
||||
}, {
|
||||
"r": 4,
|
||||
"c": 3,
|
||||
"v": {
|
||||
"m": "science",
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "g"
|
||||
},
|
||||
"v": "science"
|
||||
}
|
||||
}, {
|
||||
"r": 4,
|
||||
"c": 4,
|
||||
"v": {
|
||||
"v": 266,
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "n"
|
||||
},
|
||||
"m": "266"
|
||||
}
|
||||
}, {
|
||||
"r": 5,
|
||||
"c": 0,
|
||||
"v": {
|
||||
"m": "first round",
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "g"
|
||||
},
|
||||
"v": "first round"
|
||||
}
|
||||
}, {
|
||||
"r": 5,
|
||||
"c": 1,
|
||||
"v": {
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "g"
|
||||
},
|
||||
"v": "Tim",
|
||||
"m": "Tim"
|
||||
}
|
||||
}, {
|
||||
"r": 5,
|
||||
"c": 2,
|
||||
"v": {
|
||||
"m": "Class one",
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "g"
|
||||
},
|
||||
"v": "Class one"
|
||||
}
|
||||
}, {
|
||||
"r": 5,
|
||||
"c": 3,
|
||||
"v": {
|
||||
"m": "English",
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "g"
|
||||
},
|
||||
"v": "English"
|
||||
}
|
||||
}, {
|
||||
"r": 5,
|
||||
"c": 4,
|
||||
"v": {
|
||||
"v": 92,
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "n"
|
||||
},
|
||||
"m": "92"
|
||||
}
|
||||
}, {
|
||||
"r": 6,
|
||||
"c": 0,
|
||||
"v": {
|
||||
"m": "first round",
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "g"
|
||||
},
|
||||
"v": "first round"
|
||||
}
|
||||
}, {
|
||||
"r": 6,
|
||||
"c": 1,
|
||||
"v": {
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "g"
|
||||
},
|
||||
"v": "Tim",
|
||||
"m": "Tim"
|
||||
}
|
||||
}, {
|
||||
"r": 6,
|
||||
"c": 2,
|
||||
"v": {
|
||||
"m": "Class one",
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "g"
|
||||
},
|
||||
"v": "Class one"
|
||||
}
|
||||
}, {
|
||||
"r": 6,
|
||||
"c": 3,
|
||||
"v": {
|
||||
"m": "mathematics",
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "g"
|
||||
},
|
||||
"v": "mathematics"
|
||||
}
|
||||
}, {
|
||||
"r": 6,
|
||||
"c": 4,
|
||||
"v": {
|
||||
"v": 100,
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "n"
|
||||
},
|
||||
"m": "100"
|
||||
}
|
||||
}, {
|
||||
"r": 7,
|
||||
"c": 0,
|
||||
"v": {
|
||||
"m": "first round",
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "g"
|
||||
},
|
||||
"v": "first round"
|
||||
}
|
||||
}, {
|
||||
"r": 7,
|
||||
"c": 1,
|
||||
"v": {
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "g"
|
||||
},
|
||||
"v": "Tim",
|
||||
"m": "Tim"
|
||||
}
|
||||
}, {
|
||||
"r": 7,
|
||||
"c": 2,
|
||||
"v": {
|
||||
"m": "Class one",
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "g"
|
||||
},
|
||||
"v": "Class one"
|
||||
}
|
||||
}, {
|
||||
"r": 7,
|
||||
"c": 3,
|
||||
"v": {
|
||||
"m": "foreign language",
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "g"
|
||||
},
|
||||
"v": "foreign language"
|
||||
}
|
||||
}, {
|
||||
"r": 7,
|
||||
"c": 4,
|
||||
"v": {
|
||||
"v": 90,
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "n"
|
||||
},
|
||||
"m": "90"
|
||||
}
|
||||
}, {
|
||||
"r": 8,
|
||||
"c": 0,
|
||||
"v": {
|
||||
"m": "first round",
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "g"
|
||||
},
|
||||
"v": "first round"
|
||||
}
|
||||
}, {
|
||||
"r": 8,
|
||||
"c": 1,
|
||||
"v": {
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "g"
|
||||
},
|
||||
"v": "Tim",
|
||||
"m": "Tim"
|
||||
}
|
||||
}, {
|
||||
"r": 8,
|
||||
"c": 2,
|
||||
"v": {
|
||||
"m": "Class one",
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "g"
|
||||
},
|
||||
"v": "Class one"
|
||||
}
|
||||
}, {
|
||||
"r": 8,
|
||||
"c": 3,
|
||||
"v": {
|
||||
"m": "science",
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "g"
|
||||
},
|
||||
"v": "science"
|
||||
}
|
||||
}, {
|
||||
"r": 8,
|
||||
"c": 4,
|
||||
"v": {
|
||||
"v": 255,
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "n"
|
||||
},
|
||||
"m": "255"
|
||||
}
|
||||
}, {
|
||||
"r": 9,
|
||||
"c": 0,
|
||||
"v": {
|
||||
"m": "first round",
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "g"
|
||||
},
|
||||
"v": "first round"
|
||||
}
|
||||
}, {
|
||||
"r": 9,
|
||||
"c": 1,
|
||||
"v": {
|
||||
"m": "Alex",
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "g"
|
||||
},
|
||||
"v": "Alex"
|
||||
}
|
||||
}, {
|
||||
"r": 9,
|
||||
"c": 2,
|
||||
"v": {
|
||||
"m": "Class one",
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "g"
|
||||
},
|
||||
"v": "Class one"
|
||||
}
|
||||
}, {
|
||||
"r": 9,
|
||||
"c": 3,
|
||||
"v": {
|
||||
"m": "English",
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "g"
|
||||
},
|
||||
"v": "English"
|
||||
}
|
||||
}, {
|
||||
"r": 9,
|
||||
"c": 4,
|
||||
"v": {
|
||||
"v": 108,
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "n"
|
||||
},
|
||||
"m": "108"
|
||||
}
|
||||
}, {
|
||||
"r": 10,
|
||||
"c": 0,
|
||||
"v": {
|
||||
"m": "first round",
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "g"
|
||||
},
|
||||
"v": "first round"
|
||||
}
|
||||
}, {
|
||||
"r": 10,
|
||||
"c": 1,
|
||||
"v": {
|
||||
"m": "Alex",
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "g"
|
||||
},
|
||||
"v": "Alex"
|
||||
}
|
||||
}, {
|
||||
"r": 10,
|
||||
"c": 2,
|
||||
"v": {
|
||||
"m": "Class one",
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "g"
|
||||
},
|
||||
"v": "Class one"
|
||||
}
|
||||
}, {
|
||||
"r": 10,
|
||||
"c": 3,
|
||||
"v": {
|
||||
"m": "mathematics",
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "g"
|
||||
},
|
||||
"v": "mathematics"
|
||||
}
|
||||
}, {
|
||||
"r": 10,
|
||||
"c": 4,
|
||||
"v": {
|
||||
"v": 117,
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "n"
|
||||
},
|
||||
"m": "117"
|
||||
}
|
||||
}, {
|
||||
"r": 11,
|
||||
"c": 0,
|
||||
"v": {
|
||||
"m": "first round",
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "g"
|
||||
},
|
||||
"v": "first round"
|
||||
}
|
||||
}, {
|
||||
"r": 11,
|
||||
"c": 1,
|
||||
"v": {
|
||||
"m": "Alex",
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "g"
|
||||
},
|
||||
"v": "Alex"
|
||||
}
|
||||
}, {
|
||||
"r": 11,
|
||||
"c": 2,
|
||||
"v": {
|
||||
"m": "Class one",
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "g"
|
||||
},
|
||||
"v": "Class one"
|
||||
}
|
||||
}, {
|
||||
"r": 11,
|
||||
"c": 3,
|
||||
"v": {
|
||||
"m": "foreign language",
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "g"
|
||||
},
|
||||
"v": "foreign language"
|
||||
}
|
||||
}, {
|
||||
"r": 11,
|
||||
"c": 4,
|
||||
"v": {
|
||||
"v": 88,
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "n"
|
||||
},
|
||||
"m": "88"
|
||||
}
|
||||
}, {
|
||||
"r": 12,
|
||||
"c": 0,
|
||||
"v": {
|
||||
"m": "first round",
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "g"
|
||||
},
|
||||
"v": "first round"
|
||||
}
|
||||
}, {
|
||||
"r": 12,
|
||||
"c": 1,
|
||||
"v": {
|
||||
"m": "Alex",
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "g"
|
||||
},
|
||||
"v": "Alex"
|
||||
}
|
||||
}, {
|
||||
"r": 12,
|
||||
"c": 2,
|
||||
"v": {
|
||||
"m": "Class one",
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "g"
|
||||
},
|
||||
"v": "Class one"
|
||||
}
|
||||
}, {
|
||||
"r": 12,
|
||||
"c": 3,
|
||||
"v": {
|
||||
"m": "science",
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "g"
|
||||
},
|
||||
"v": "science"
|
||||
}
|
||||
}, {
|
||||
"r": 12,
|
||||
"c": 4,
|
||||
"v": {
|
||||
"v": 278,
|
||||
"ct": {
|
||||
"fa": "General",
|
||||
"t": "n"
|
||||
},
|
||||
"m": "278"
|
||||
}
|
||||
}],
|
||||
"ch_width": 4748,
|
||||
"rh_height": 1790,
|
||||
"luckysheet_select_save": [{
|
||||
"row": [0, 0],
|
||||
"column": [0, 0]
|
||||
}],
|
||||
"luckysheet_selection_range": [],
|
||||
"scrollLeft": 0,
|
||||
"scrollTop": 0
|
||||
}
|
||||
|
||||
// export default sheetPivotTableData;
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,188 @@
|
||||
(function (global, factory) {
|
||||
if (typeof define === "function" && define.amd) {
|
||||
define([], factory);
|
||||
} else if (typeof exports !== "undefined") {
|
||||
factory();
|
||||
} else {
|
||||
var mod = {
|
||||
exports: {}
|
||||
};
|
||||
factory();
|
||||
global.FileSaver = mod.exports;
|
||||
}
|
||||
})(this, function () {
|
||||
"use strict";
|
||||
|
||||
/*
|
||||
* FileSaver.js
|
||||
* A saveAs() FileSaver implementation.
|
||||
*
|
||||
* By Eli Grey, http://eligrey.com
|
||||
*
|
||||
* License : https://github.com/eligrey/FileSaver.js/blob/master/LICENSE.md (MIT)
|
||||
* source : http://purl.eligrey.com/github/FileSaver.js
|
||||
*/
|
||||
// The one and only way of getting global scope in all environments
|
||||
// https://stackoverflow.com/q/3277182/1008999
|
||||
var _global = typeof window === 'object' && window.window === window ? window : typeof self === 'object' && self.self === self ? self : typeof global === 'object' && global.global === global ? global : void 0;
|
||||
|
||||
function bom(blob, opts) {
|
||||
if (typeof opts === 'undefined') opts = {
|
||||
autoBom: false
|
||||
};else if (typeof opts !== 'object') {
|
||||
console.warn('Deprecated: Expected third argument to be a object');
|
||||
opts = {
|
||||
autoBom: !opts
|
||||
};
|
||||
} // prepend BOM for UTF-8 XML and text/* types (including HTML)
|
||||
// note: your browser will automatically convert UTF-16 U+FEFF to EF BB BF
|
||||
|
||||
if (opts.autoBom && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(blob.type)) {
|
||||
return new Blob([String.fromCharCode(0xFEFF), blob], {
|
||||
type: blob.type
|
||||
});
|
||||
}
|
||||
|
||||
return blob;
|
||||
}
|
||||
|
||||
function download(url, name, opts) {
|
||||
var xhr = new XMLHttpRequest();
|
||||
xhr.open('GET', url);
|
||||
xhr.responseType = 'blob';
|
||||
|
||||
xhr.onload = function () {
|
||||
saveAs(xhr.response, name, opts);
|
||||
};
|
||||
|
||||
xhr.onerror = function () {
|
||||
console.error('could not download file');
|
||||
};
|
||||
|
||||
xhr.send();
|
||||
}
|
||||
|
||||
function corsEnabled(url) {
|
||||
var xhr = new XMLHttpRequest(); // use sync to avoid popup blocker
|
||||
|
||||
xhr.open('HEAD', url, false);
|
||||
|
||||
try {
|
||||
xhr.send();
|
||||
} catch (e) {}
|
||||
|
||||
return xhr.status >= 200 && xhr.status <= 299;
|
||||
} // `a.click()` doesn't work for all browsers (#465)
|
||||
|
||||
|
||||
function click(node) {
|
||||
try {
|
||||
node.dispatchEvent(new MouseEvent('click'));
|
||||
} catch (e) {
|
||||
var evt = document.createEvent('MouseEvents');
|
||||
evt.initMouseEvent('click', true, true, window, 0, 0, 0, 80, 20, false, false, false, false, 0, null);
|
||||
node.dispatchEvent(evt);
|
||||
}
|
||||
} // Detect WebView inside a native macOS app by ruling out all browsers
|
||||
// We just need to check for 'Safari' because all other browsers (besides Firefox) include that too
|
||||
// https://www.whatismybrowser.com/guides/the-latest-user-agent/macos
|
||||
|
||||
|
||||
var isMacOSWebView = _global.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent);
|
||||
var saveAs = _global.saveAs || ( // probably in some web worker
|
||||
typeof window !== 'object' || window !== _global ? function saveAs() {}
|
||||
/* noop */
|
||||
// Use download attribute first if possible (#193 Lumia mobile) unless this is a macOS WebView
|
||||
: 'download' in HTMLAnchorElement.prototype && !isMacOSWebView ? function saveAs(blob, name, opts) {
|
||||
var URL = _global.URL || _global.webkitURL;
|
||||
var a = document.createElement('a');
|
||||
name = name || blob.name || 'download';
|
||||
a.download = name;
|
||||
a.rel = 'noopener'; // tabnabbing
|
||||
// TODO: detect chrome extensions & packaged apps
|
||||
// a.target = '_blank'
|
||||
|
||||
if (typeof blob === 'string') {
|
||||
// Support regular links
|
||||
a.href = blob;
|
||||
|
||||
if (a.origin !== location.origin) {
|
||||
corsEnabled(a.href) ? download(blob, name, opts) : click(a, a.target = '_blank');
|
||||
} else {
|
||||
click(a);
|
||||
}
|
||||
} else {
|
||||
// Support blobs
|
||||
a.href = URL.createObjectURL(blob);
|
||||
setTimeout(function () {
|
||||
URL.revokeObjectURL(a.href);
|
||||
}, 4E4); // 40s
|
||||
|
||||
setTimeout(function () {
|
||||
click(a);
|
||||
}, 0);
|
||||
}
|
||||
} // Use msSaveOrOpenBlob as a second approach
|
||||
: 'msSaveOrOpenBlob' in navigator ? function saveAs(blob, name, opts) {
|
||||
name = name || blob.name || 'download';
|
||||
|
||||
if (typeof blob === 'string') {
|
||||
if (corsEnabled(blob)) {
|
||||
download(blob, name, opts);
|
||||
} else {
|
||||
var a = document.createElement('a');
|
||||
a.href = blob;
|
||||
a.target = '_blank';
|
||||
setTimeout(function () {
|
||||
click(a);
|
||||
});
|
||||
}
|
||||
} else {
|
||||
navigator.msSaveOrOpenBlob(bom(blob, opts), name);
|
||||
}
|
||||
} // Fallback to using FileReader and a popup
|
||||
: function saveAs(blob, name, opts, popup) {
|
||||
// Open a popup immediately do go around popup blocker
|
||||
// Mostly only available on user interaction and the fileReader is async so...
|
||||
popup = popup || open('', '_blank');
|
||||
|
||||
if (popup) {
|
||||
popup.document.title = popup.document.body.innerText = 'downloading...';
|
||||
}
|
||||
|
||||
if (typeof blob === 'string') return download(blob, name, opts);
|
||||
var force = blob.type === 'application/octet-stream';
|
||||
|
||||
var isSafari = /constructor/i.test(_global.HTMLElement) || _global.safari;
|
||||
|
||||
var isChromeIOS = /CriOS\/[\d]+/.test(navigator.userAgent);
|
||||
|
||||
if ((isChromeIOS || force && isSafari || isMacOSWebView) && typeof FileReader !== 'undefined') {
|
||||
// Safari doesn't allow downloading of blob URLs
|
||||
var reader = new FileReader();
|
||||
|
||||
reader.onloadend = function () {
|
||||
var url = reader.result;
|
||||
url = isChromeIOS ? url : url.replace(/^data:[^;]*;/, 'data:attachment/file;');
|
||||
if (popup) popup.location.href = url;else location = url;
|
||||
popup = null; // reverse-tabnabbing #460
|
||||
};
|
||||
|
||||
reader.readAsDataURL(blob);
|
||||
} else {
|
||||
var URL = _global.URL || _global.webkitURL;
|
||||
var url = URL.createObjectURL(blob);
|
||||
if (popup) popup.location = url;else location.href = url;
|
||||
popup = null; // reverse-tabnabbing #460
|
||||
|
||||
setTimeout(function () {
|
||||
URL.revokeObjectURL(url);
|
||||
}, 4E4); // 40s
|
||||
}
|
||||
});
|
||||
_global.saveAs = saveAs.saveAs = saveAs;
|
||||
|
||||
if (typeof module !== 'undefined') {
|
||||
module.exports = saveAs;
|
||||
}
|
||||
});
|
||||
Binary file not shown.
File diff suppressed because one or more lines are too long
@@ -0,0 +1,162 @@
|
||||
#luckysheet-vchart-setting-dialog {
|
||||
padding: 10px;
|
||||
position: absolute;
|
||||
overflow: hidden;
|
||||
right: 0;
|
||||
top: 0;
|
||||
width: 320px;
|
||||
height: calc(100% - 20px);
|
||||
box-shadow: 0 8px 10px -5px rgba(0, 0, 0, 0.2), 0 16px 24px 2px rgba(0, 0, 0, 0.14), 0 6px 30px 5px rgba(0, 0, 0, 0.12);
|
||||
z-index: 9999;
|
||||
background-color: #fff;
|
||||
color: #444;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.luckysheet-vchart-setting-dialog-title {
|
||||
height: 32px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
/* border-bottom: solid 1px #dadce0; */
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
|
||||
#luckysheet-vchart-setting-dialog-close {
|
||||
cursor: pointer;
|
||||
width: 20px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.luckysheet-vchart-setting-dialog-footer {
|
||||
height: 32px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.luckysheet-vchart-setting-dialog-footer span {
|
||||
margin-left: 10px;
|
||||
width: 75px;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
white-space: nowrap;
|
||||
cursor: pointer;
|
||||
background: #fff;
|
||||
border: 1px solid #dcdfe6;
|
||||
color: #606266;
|
||||
text-align: center;
|
||||
box-sizing: border-box;
|
||||
outline: none;
|
||||
transition: 0.1s;
|
||||
font-weight: 500;
|
||||
font-size: 14px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.luckysheet-vchart-setting-dialog-footer .cancel:hover {
|
||||
color: var(--luckysheet-main-color);
|
||||
background-color: var(--luckysheet-main-color-a2);
|
||||
border-color: transparent;
|
||||
}
|
||||
.luckysheet-vchart-setting-dialog-footer .confirm {
|
||||
background-color: var(--luckysheet-main-color-a8);
|
||||
border-color: transparent;
|
||||
color: #fff;
|
||||
}
|
||||
.luckysheet-vchart-setting-dialog-footer .confirm:hover {
|
||||
/* color: var(--luckysheet-main-color); */
|
||||
}
|
||||
|
||||
/* 内容区 */
|
||||
.luckysheet-vchart-setting-dialog-body {
|
||||
height: calc(100% - 32px - 32px - 10px);
|
||||
padding: 10px 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
.luckysheet-vchart-setting-dialog-body-tabs {
|
||||
height: 30px;
|
||||
border-bottom: solid #dadce0 2px;
|
||||
}
|
||||
.luckysheet-vchart-setting-dialog-body-tabs .tab {
|
||||
display: inline-block;
|
||||
height: 100%;
|
||||
padding: 0 10px;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
.luckysheet-vchart-setting-dialog-body-tabs .tab:hover,
|
||||
.luckysheet-vchart-setting-dialog-body-tabs .active {
|
||||
border-bottom: solid 2px var(--luckysheet-main-color);
|
||||
color: var(--luckysheet-main-color);
|
||||
}
|
||||
|
||||
.luckysheet-vchart-setting-dialog-body-content {
|
||||
padding: 10px;
|
||||
height: calc(100% - 30px - 20px);
|
||||
overflow: hidden;
|
||||
overflow-y: auto;
|
||||
}
|
||||
/* 滚动条样式 */
|
||||
.luckysheet-vchart-setting-dialog-body-content::-webkit-scrollbar {
|
||||
width: 4px;
|
||||
}
|
||||
/* 滑块样式 */
|
||||
.luckysheet-vchart-setting-dialog-body-content::-webkit-scrollbar-thumb {
|
||||
background-color: var(--luckysheet-main-color);
|
||||
border-radius: 2px;
|
||||
}
|
||||
/* 滚动条轨道样式 */
|
||||
.luckysheet-vchart-setting-dialog-body-content::-webkit-scrollbar-track {
|
||||
background-color: #f2f2f2;
|
||||
border-radius: 2px;
|
||||
}
|
||||
.luckysheet-vchart-setting-dialog-body-content .vchart-type-item {
|
||||
width: 48%;
|
||||
user-select: none;
|
||||
display: inline-block;
|
||||
box-shadow: 0 6px 20px var(--luckysheet-main-color-a1);
|
||||
border-radius: 8px;
|
||||
overflow: hidden;
|
||||
border: solid 2px transparent;
|
||||
transition: all 0.3s;
|
||||
cursor: pointer;
|
||||
}
|
||||
.luckysheet-vchart-setting-dialog-body-content .tips {
|
||||
user-select: none;
|
||||
font-size: 16px;
|
||||
}
|
||||
.luckysheet-vchart-setting-dialog-body-content .vchart-type-item:hover {
|
||||
border-color: var(--luckysheet-main-color);
|
||||
}
|
||||
.luckysheet-vchart-setting-dialog-body-content .vchart-type-item img {
|
||||
width: 100%;
|
||||
}
|
||||
.luckysheet-vchart-setting-dialog-body-content .vchart-type-item div {
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
background: linear-gradient(0deg, #f6f8fe00, #f6f8fe);
|
||||
height: 32px;
|
||||
line-height: 32px;
|
||||
font-size: 12px;
|
||||
line-height: 32px;
|
||||
letter-spacing: 0.639896px;
|
||||
color: #000000b3;
|
||||
}
|
||||
|
||||
/* style content */
|
||||
.luckysheet-vchart-setting-dialog-body-content .vchart-style-item {
|
||||
user-select: none;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.luckysheet-vchart-setting-dialog-body-content .vchart-style-item-label {
|
||||
padding-right: 10px;
|
||||
font-size: 12px;
|
||||
color: #909399;
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@@ -1,46 +0,0 @@
|
||||
.luckysheet-print span[role="heading"] {
|
||||
font-size: 30px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.luckysheet-print-suggest {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.luckysheet-print-title {
|
||||
font-weight: bold;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.luckysheet-print-radio {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.luckysheet-print-radio > div {
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
.luckysheet-print select {
|
||||
height: 30px;
|
||||
}
|
||||
|
||||
.luckysheet-print .luckysheet-modal-dialog-buttons {
|
||||
display: flex;
|
||||
flex-direction: row-reverse;
|
||||
}
|
||||
|
||||
.luckysheet-print-box canvas {
|
||||
display: block;
|
||||
}
|
||||
|
||||
@media print {
|
||||
:not(html, head, body, .luckysheet-print-preview, .luckysheet-print-preview *) {
|
||||
display: none;
|
||||
}
|
||||
.luckysheet-print-break {
|
||||
page-break-after: always;
|
||||
}
|
||||
#print-layout-options {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user