diff --git a/frontend/src/api/commonAjax.js b/frontend/src/api/commonAjax.js deleted file mode 100644 index ea149fb020..0000000000 --- a/frontend/src/api/commonAjax.js +++ /dev/null @@ -1,38 +0,0 @@ -import request from '@/utils/request' - -export function post(url, data) { - return request({ - url: url, - method: 'post', - loading: true, - data - }) -} - -export function get(url) { - return request({ - url: url, - method: 'get', - loading: true - }) -} - -export function fileUpload(url, file, files, param) { - const formData = new FormData() - if (file) { - formData.append('file', file) - } - if (files) { - files.forEach(f => { - formData.append('files', f) - }) - } - formData.append('request', new Blob([JSON.stringify(param)], { type: 'application/json' })) - return request({ - method: 'POST', - loading: true, - url: url, - data: formData - }) -} -export default { fileUpload } diff --git a/frontend/src/components/IconSelect/index.vue b/frontend/src/components/IconSelect/index.vue deleted file mode 100644 index 29055d477f..0000000000 --- a/frontend/src/components/IconSelect/index.vue +++ /dev/null @@ -1,85 +0,0 @@ - - - - - - diff --git a/frontend/src/components/IconSelect/requireIcons.js b/frontend/src/components/IconSelect/requireIcons.js deleted file mode 100644 index 8c073d39e1..0000000000 --- a/frontend/src/components/IconSelect/requireIcons.js +++ /dev/null @@ -1,11 +0,0 @@ - -const req = require.context('@/icons/svg', false, /\.svg$/) -const requireAll = requireContext => requireContext.keys() - -const re = /\.\/(.*)\.svg/ - -const icons = requireAll(req).map(i => { - return i.match(re)[1] -}) - -export default icons diff --git a/frontend/src/components/asyncSoltComponent/index.vue b/frontend/src/components/asyncSoltComponent/index.vue deleted file mode 100644 index 4db8a5468c..0000000000 --- a/frontend/src/components/asyncSoltComponent/index.vue +++ /dev/null @@ -1,76 +0,0 @@ - - - diff --git a/frontend/src/components/breadcrumb/index.vue b/frontend/src/components/breadcrumb/index.vue deleted file mode 100644 index c920645c89..0000000000 --- a/frontend/src/components/breadcrumb/index.vue +++ /dev/null @@ -1,92 +0,0 @@ - - - - - diff --git a/frontend/src/components/business/ElSelectAll/index.vue b/frontend/src/components/business/ElSelectAll/index.vue deleted file mode 100644 index 9254ee3b59..0000000000 --- a/frontend/src/components/business/ElSelectAll/index.vue +++ /dev/null @@ -1,128 +0,0 @@ - - - diff --git a/frontend/src/components/business/complexTable/index.vue b/frontend/src/components/business/complexTable/index.vue deleted file mode 100644 index 57a50c528d..0000000000 --- a/frontend/src/components/business/complexTable/index.vue +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - diff --git a/frontend/src/components/business/conditionTable/index.vue b/frontend/src/components/business/conditionTable/index.vue deleted file mode 100644 index 2d1d535cf7..0000000000 --- a/frontend/src/components/business/conditionTable/index.vue +++ /dev/null @@ -1,98 +0,0 @@ - - - - - diff --git a/frontend/src/components/business/treeTable/index.vue b/frontend/src/components/business/treeTable/index.vue deleted file mode 100644 index 2a07e24da6..0000000000 --- a/frontend/src/components/business/treeTable/index.vue +++ /dev/null @@ -1,115 +0,0 @@ - - - - - diff --git a/frontend/src/components/canvas/assets/iconfont/demo.css b/frontend/src/components/canvas/assets/iconfont/demo.css deleted file mode 100644 index b7af3aa35d..0000000000 --- a/frontend/src/components/canvas/assets/iconfont/demo.css +++ /dev/null @@ -1,539 +0,0 @@ -/* 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; -} diff --git a/frontend/src/components/canvas/assets/iconfont/demo_index.html b/frontend/src/components/canvas/assets/iconfont/demo_index.html deleted file mode 100644 index 70918ca7c4..0000000000 --- a/frontend/src/components/canvas/assets/iconfont/demo_index.html +++ /dev/null @@ -1,307 +0,0 @@ - - - - - IconFont Demo - - - - - - - - - - - -
-

- -
-
-
    - -
  • - -
    向右旋转
    -
    
    -
  • - -
  • - -
    图片
    -
    
    -
  • - -
  • - -
    -
    
    -
  • - -
  • - -
    矩形
    -
    
    -
  • - -
  • - -
    文本
    -
    
    -
  • - -
  • - -
    按钮
    -
    
    -
  • - -
-
-

Unicode 引用

-
- -

Unicode 是字体在网页端最原始的应用方式,特点是:

-
    -
  • 兼容性最好,支持 IE6+,及所有现代浏览器。
  • -
  • 支持按字体的方式去动态调整图标大小,颜色等等。
  • -
  • 但是因为是字体,所以不支持多色。只能使用平台里单色的图标,就算项目里有多色图标也会自动去色。
  • -
-
-

注意:新版 iconfont 支持多色图标,这些多色图标在 Unicode 模式下将不能使用,如果有需求建议使用symbol 的引用方式

-
-

Unicode 使用步骤如下:

-

第一步:拷贝项目下面生成的 @font-face

-
@font-face {
-  font-family: 'iconfont';
-  src: url('iconfont.eot');
-  src: url('iconfont.eot?#iefix') format('embedded-opentype'),
-      url('iconfont.woff2') format('woff2'),
-      url('iconfont.woff') format('woff'),
-      url('iconfont.ttf') format('truetype');
-}
-
-

第二步:定义使用 iconfont 的样式

-
.iconfont {
-  font-family: "iconfont" !important;
-  font-size: 16px;
-  font-style: normal;
-  -webkit-font-smoothing: antialiased;
-  -moz-osx-font-smoothing: grayscale;
-}
-
-

第三步:挑选相应图标并获取字体编码,应用于页面

-
-<span class="iconfont">&#x33;</span>
-
-
-

"iconfont" 是你项目下的 font-family。可以通过编辑项目查看,默认是 "iconfont"。

-
-
-
-
-
    - -
  • - -
    - 向右旋转 -
    -
    .icon-xiangyouxuanzhuan -
    -
  • - -
  • - -
    - 图片 -
    -
    .icon-tupian -
    -
  • - -
  • - -
    - 锁 -
    -
    .icon-suo -
    -
  • - -
  • - -
    - 矩形 -
    -
    .icon-juxing -
    -
  • - -
  • - -
    - 文本 -
    -
    .icon-wenben -
    -
  • - -
  • - -
    - 按钮 -
    -
    .icon-button -
    -
  • - -
-
-

font-class 引用

-
- -

font-class 是 Unicode 使用方式的一种变种,主要是解决 Unicode 书写不直观,语意不明确的问题。

-

与 Unicode 使用方式相比,具有如下特点:

-
    -
  • 兼容性良好,支持 IE8+,及所有现代浏览器。
  • -
  • 相比于 Unicode 语意明确,书写更直观。可以很容易分辨这个 icon 是什么。
  • -
  • 因为使用 class 来定义图标,所以当要替换图标时,只需要修改 class 里面的 Unicode 引用。
  • -
  • 不过因为本质上还是使用的字体,所以多色图标还是不支持的。
  • -
-

使用步骤如下:

-

第一步:引入项目下面生成的 fontclass 代码:

-
<link rel="stylesheet" href="./iconfont.css">
-
-

第二步:挑选相应图标并获取类名,应用于页面:

-
<span class="iconfont icon-xxx"></span>
-
-
-

" - iconfont" 是你项目下的 font-family。可以通过编辑项目查看,默认是 "iconfont"。

-
-
-
-
-
    - -
  • - -
    向右旋转
    -
    #icon-xiangyouxuanzhuan
    -
  • - -
  • - -
    图片
    -
    #icon-tupian
    -
  • - -
  • - -
    -
    #icon-suo
    -
  • - -
  • - -
    矩形
    -
    #icon-juxing
    -
  • - -
  • - -
    文本
    -
    #icon-wenben
    -
  • - -
  • - -
    按钮
    -
    #icon-button
    -
  • - -
-
-

Symbol 引用

-
- -

这是一种全新的使用方式,应该说这才是未来的主流,也是平台目前推荐的用法。相关介绍可以参考这篇文章 - 这种用法其实是做了一个 SVG 的集合,与另外两种相比具有如下特点:

-
    -
  • 支持多色图标了,不再受单色限制。
  • -
  • 通过一些技巧,支持像字体那样,通过 font-size, color 来调整样式。
  • -
  • 兼容性较差,支持 IE9+,及现代浏览器。
  • -
  • 浏览器渲染 SVG 的性能一般,还不如 png。
  • -
-

使用步骤如下:

-

第一步:引入项目下面生成的 symbol 代码:

-
<script src="./iconfont.js"></script>
-
-

第二步:加入通用 CSS 代码(引入一次就行):

-
<style>
-.icon {
-  width: 1em;
-  height: 1em;
-  vertical-align: -0.15em;
-  fill: currentColor;
-  overflow: hidden;
-}
-</style>
-
-

第三步:挑选相应图标并获取类名,应用于页面:

-
<svg class="icon" aria-hidden="true">
-  <use xlink:href="#icon-xxx"></use>
-</svg>
-
-
-
- -
-
- - - diff --git a/frontend/src/components/canvas/components/AnimationList.vue b/frontend/src/components/canvas/components/AnimationList.vue deleted file mode 100644 index a8fe652a1a..0000000000 --- a/frontend/src/components/canvas/components/AnimationList.vue +++ /dev/null @@ -1,123 +0,0 @@ - - - - - diff --git a/frontend/src/components/canvas/components/AttrList.vue b/frontend/src/components/canvas/components/AttrList.vue deleted file mode 100644 index fd5486f318..0000000000 --- a/frontend/src/components/canvas/components/AttrList.vue +++ /dev/null @@ -1,153 +0,0 @@ - - - - - - diff --git a/frontend/src/components/canvas/components/AttrListExtend.vue b/frontend/src/components/canvas/components/AttrListExtend.vue deleted file mode 100644 index deedb76788..0000000000 --- a/frontend/src/components/canvas/components/AttrListExtend.vue +++ /dev/null @@ -1,204 +0,0 @@ - - - - - - diff --git a/frontend/src/components/canvas/components/ComponentList.vue b/frontend/src/components/canvas/components/ComponentList.vue deleted file mode 100644 index ec757d1fa2..0000000000 --- a/frontend/src/components/canvas/components/ComponentList.vue +++ /dev/null @@ -1,73 +0,0 @@ - - - - - diff --git a/frontend/src/components/canvas/components/EventList.vue b/frontend/src/components/canvas/components/EventList.vue deleted file mode 100644 index 32d9c200f6..0000000000 --- a/frontend/src/components/canvas/components/EventList.vue +++ /dev/null @@ -1,99 +0,0 @@ - - - - - diff --git a/frontend/src/components/canvas/components/Modal.vue b/frontend/src/components/canvas/components/Modal.vue deleted file mode 100644 index 894a51e9cb..0000000000 --- a/frontend/src/components/canvas/components/Modal.vue +++ /dev/null @@ -1,56 +0,0 @@ - - - - - diff --git a/frontend/src/components/canvas/components/editor/Hyperlinks.vue b/frontend/src/components/canvas/components/editor/Hyperlinks.vue deleted file mode 100644 index 9751e10900..0000000000 --- a/frontend/src/components/canvas/components/editor/Hyperlinks.vue +++ /dev/null @@ -1,148 +0,0 @@ - - - - - diff --git a/frontend/src/components/canvas/components/editor/PreviewMobile.vue b/frontend/src/components/canvas/components/editor/PreviewMobile.vue deleted file mode 100644 index bebde5aabb..0000000000 --- a/frontend/src/components/canvas/components/editor/PreviewMobile.vue +++ /dev/null @@ -1,295 +0,0 @@ - - - - - diff --git a/frontend/src/components/canvas/components/editor/SettingMenuTest.vue b/frontend/src/components/canvas/components/editor/SettingMenuTest.vue deleted file mode 100644 index 7b488f6e62..0000000000 --- a/frontend/src/components/canvas/components/editor/SettingMenuTest.vue +++ /dev/null @@ -1,204 +0,0 @@ - - - - - diff --git a/frontend/src/components/canvas/components/editor/index.vue b/frontend/src/components/canvas/components/editor/index.vue deleted file mode 100644 index 913e10f2e1..0000000000 --- a/frontend/src/components/canvas/components/editor/index.vue +++ /dev/null @@ -1,1896 +0,0 @@ - - - - - diff --git a/frontend/src/components/canvas/customComponent/LinkJumpSetDialog.vue b/frontend/src/components/canvas/customComponent/LinkJumpSetDialog.vue deleted file mode 100644 index 06d1892347..0000000000 --- a/frontend/src/components/canvas/customComponent/LinkJumpSetDialog.vue +++ /dev/null @@ -1,69 +0,0 @@ - - - - - diff --git a/frontend/src/components/canvas/index.vue b/frontend/src/components/canvas/index.vue deleted file mode 100644 index e2e06ddf5e..0000000000 --- a/frontend/src/components/canvas/index.vue +++ /dev/null @@ -1,158 +0,0 @@ - - - - - diff --git a/frontend/src/components/canvas/styles/reset.css b/frontend/src/components/canvas/styles/reset.css deleted file mode 100644 index 3c0d4df5fc..0000000000 --- a/frontend/src/components/canvas/styles/reset.css +++ /dev/null @@ -1,52 +0,0 @@ -body, -button, -input, -p, -li, -ol, -ul, -div, -section, -article, -td, -th, -span, -textarea, -form, -footer, -header, -nav, -main, -address, -aside, -pre, -canvas { - margin: 0; - padding: 0; - box-sizing: border-box; -} - -body { - overflow: hidden; -} - -li { - list-style: none; -} - -#app { - /*overflow: hidden;*/ -} - -.el-tabs { - height: 100%; -} - -.el-tabs__content { - height: calc(100% - 55px); - overflow: auto; -} - -.el-tabs__nav-scroll { - padding-left: 20px; -} diff --git a/frontend/src/components/canvas/utils/animationClassData.js b/frontend/src/components/canvas/utils/animationClassData.js deleted file mode 100644 index 5ab527b6df..0000000000 --- a/frontend/src/components/canvas/utils/animationClassData.js +++ /dev/null @@ -1,94 +0,0 @@ -export default [ - { - label: '进入', - children: [ - { label: '渐显', value: 'fadeIn' }, - { label: '向右进入', value: 'fadeInLeft' }, - { label: '向左进入', value: 'fadeInRight' }, - { label: '向上进入', value: 'fadeInUp' }, - { label: '向下进入', value: 'fadeInDown' }, - { label: '向右长距进入', value: 'fadeInLeftBig' }, - { label: '向左长距进入', value: 'fadeInRightBig' }, - { label: '向上长距进入', value: 'fadeInUpBig' }, - { label: '向下长距进入', value: 'fadeInDownBig' }, - { label: '旋转进入', value: 'rotateIn' }, - { label: '左顺时针旋转', value: 'rotateInDownLeft' }, - { label: '右逆时针旋转', value: 'rotateInDownRight' }, - { label: '左逆时针旋转', value: 'rotateInUpLeft' }, - { label: '右逆时针旋转', value: 'rotateInUpRight' }, - { label: '弹入', value: 'bounceIn' }, - { label: '向右弹入', value: 'bounceInLeft' }, - { label: '向左弹入', value: 'bounceInRight' }, - { label: '向上弹入', value: 'bounceInUp' }, - { label: '向下弹入', value: 'bounceInDown' }, - { label: '光速从右进入', value: 'lightSpeedInRight' }, - { label: '光速从左进入', value: 'lightSpeedInLeft' }, - { label: '光速从右退出', value: 'lightSpeedOutRight' }, - { label: '光速从左退出', value: 'lightSpeedOutLeft' }, - { label: 'Y轴旋转', value: 'flip' }, - { label: '中心X轴旋转', value: 'flipInX' }, - { label: '中心Y轴旋转', value: 'flipInY' }, - { label: '左长半径旋转', value: 'rollIn' }, - { label: '由小变大进入', value: 'zoomIn' }, - { label: '左变大进入', value: 'zoomInLeft' }, - { label: '右变大进入', value: 'zoomInRight' }, - { label: '向上变大进入', value: 'zoomInUp' }, - { label: '向下变大进入', value: 'zoomInDown' }, - { label: '向右滑动展开', value: 'slideInLeft' }, - { label: '向左滑动展开', value: 'slideInRight' }, - { label: '向上滑动展开', value: 'slideInUp' }, - { label: '向下滑动展开', value: 'slideInDown' } - ] - }, - { - label: '强调', - children: [ - { label: '弹跳', value: 'bounce' }, - { label: '闪烁', value: 'flash' }, - { label: '放大缩小', value: 'pulse' }, - { label: '放大缩小弹簧', value: 'rubberBand' }, - { label: '左右晃动', value: 'headShake' }, - { label: '左右扇形摇摆', value: 'swing' }, - { label: '放大晃动缩小', value: 'tada' }, - { label: '扇形摇摆', value: 'wobble' }, - { label: '左右上下晃动', value: 'jello' }, - { label: 'Y轴旋转', value: 'flip' } - ] - }, - { - label: '退出', - children: [ - { label: '渐隐', value: 'fadeOut' }, - { label: '向左退出', value: 'fadeOutLeft' }, - { label: '向右退出', value: 'fadeOutRight' }, - { label: '向上退出', value: 'fadeOutUp' }, - { label: '向下退出', value: 'fadeOutDown' }, - { label: '向左长距退出', value: 'fadeOutLeftBig' }, - { label: '向右长距退出', value: 'fadeOutRightBig' }, - { label: '向上长距退出', value: 'fadeOutUpBig' }, - { label: '向下长距退出', value: 'fadeOutDownBig' }, - { label: '旋转退出', value: 'rotateOut' }, - { label: '左顺时针旋转', value: 'rotateOutDownLeft' }, - { label: '右逆时针旋转', value: 'rotateOutDownRight' }, - { label: '左逆时针旋转', value: 'rotateOutUpLeft' }, - { label: '右逆时针旋转', value: 'rotateOutUpRight' }, - { label: '弹出', value: 'bounceOut' }, - { label: '向左弹出', value: 'bounceOutLeft' }, - { label: '向右弹出', value: 'bounceOutRight' }, - { label: '向上弹出', value: 'bounceOutUp' }, - { label: '向下弹出', value: 'bounceOutDown' }, - { label: '中心X轴旋转', value: 'flipOutX' }, - { label: '中心Y轴旋转', value: 'flipOutY' }, - { label: '左长半径旋转', value: 'rollOut' }, - { label: '由小变大退出', value: 'zoomOut' }, - { label: '左变大退出', value: 'zoomOutLeft' }, - { label: '右变大退出', value: 'zoomOutRight' }, - { label: '向上变大退出', value: 'zoomOutUp' }, - { label: '向下变大退出', value: 'zoomOutDown' }, - { label: '向左滑动收起', value: 'slideOutLeft' }, - { label: '向右滑动收起', value: 'slideOutRight' }, - { label: '向上滑动收起', value: 'slideOutUp' }, - { label: '向下滑动收起', value: 'slideOutDown' } - ] - } -] diff --git a/frontend/src/components/dataease/dragbar/DeBottom2TopDragBar.vue b/frontend/src/components/dataease/dragbar/DeBottom2TopDragBar.vue deleted file mode 100644 index 229efd2a32..0000000000 --- a/frontend/src/components/dataease/dragbar/DeBottom2TopDragBar.vue +++ /dev/null @@ -1,30 +0,0 @@ - - - - - diff --git a/frontend/src/components/dataease/dragbar/DeRight2LeftDragBar.vue b/frontend/src/components/dataease/dragbar/DeRight2LeftDragBar.vue deleted file mode 100644 index 73250bd947..0000000000 --- a/frontend/src/components/dataease/dragbar/DeRight2LeftDragBar.vue +++ /dev/null @@ -1,31 +0,0 @@ - - - - - diff --git a/frontend/src/components/deViewSelect/dom.js b/frontend/src/components/deViewSelect/dom.js deleted file mode 100644 index 0077c09474..0000000000 --- a/frontend/src/components/deViewSelect/dom.js +++ /dev/null @@ -1,32 +0,0 @@ - -export const on = (function() { - if (document.addEventListener) { - return function(element, event, handler) { - if (element && event && handler) { - element.addEventListener(event, handler, false) - } - } - } else { - return function(element, event, handler) { - if (element && event && handler) { - element.attachEvent('on' + event, handler) - } - } - } -})() -export const off = (function() { - if (document.removeEventListener) { - return function(element, event, handler) { - if (element && event) { - element.removeEventListener(event, handler, false) - } - } - } else { - return function(element, event, handler) { - if (element && event) { - element.detachEvent('on' + event, handler) - } - } - } -})() - diff --git a/frontend/src/components/doc/index.vue b/frontend/src/components/doc/index.vue deleted file mode 100644 index f39e68135f..0000000000 --- a/frontend/src/components/doc/index.vue +++ /dev/null @@ -1,19 +0,0 @@ - - - diff --git a/frontend/src/components/gridButton/index.vue b/frontend/src/components/gridButton/index.vue deleted file mode 100644 index 729d9e47a4..0000000000 --- a/frontend/src/components/gridButton/index.vue +++ /dev/null @@ -1,44 +0,0 @@ - - - diff --git a/frontend/src/components/hamburger/index.vue b/frontend/src/components/hamburger/index.vue deleted file mode 100644 index 2fe8862c13..0000000000 --- a/frontend/src/components/hamburger/index.vue +++ /dev/null @@ -1,47 +0,0 @@ - - - - - diff --git a/frontend/src/components/pagination/index.vue b/frontend/src/components/pagination/index.vue deleted file mode 100644 index 4e2749b3c2..0000000000 --- a/frontend/src/components/pagination/index.vue +++ /dev/null @@ -1,104 +0,0 @@ - - - - - diff --git a/frontend/src/components/screenfull/index.vue b/frontend/src/components/screenfull/index.vue deleted file mode 100644 index fc970653ca..0000000000 --- a/frontend/src/components/screenfull/index.vue +++ /dev/null @@ -1,63 +0,0 @@ - - - - - diff --git a/frontend/src/components/sizeSelect/index.vue b/frontend/src/components/sizeSelect/index.vue deleted file mode 100644 index dae9876809..0000000000 --- a/frontend/src/components/sizeSelect/index.vue +++ /dev/null @@ -1,67 +0,0 @@ - - - diff --git a/frontend/src/components/themePicker/index.vue b/frontend/src/components/themePicker/index.vue deleted file mode 100644 index 1bd21b4364..0000000000 --- a/frontend/src/components/themePicker/index.vue +++ /dev/null @@ -1,169 +0,0 @@ - - - - - diff --git a/frontend/src/directive/DataPermission/index.js b/frontend/src/directive/DataPermission/index.js deleted file mode 100644 index 681a63f34c..0000000000 --- a/frontend/src/directive/DataPermission/index.js +++ /dev/null @@ -1,16 +0,0 @@ -function checkDataPermission(el, binding, vnode) { - // eslint-disable-next-line no-unused-vars - const dataPermission = vnode.privileges - // eslint-disable-next-line no-unused-vars - const { value } = binding - el.parentNode && el.parentNode.removeChild(el) -} - -export default { - inserted(el, binding, vnode) { - checkDataPermission(el, binding, vnode) - }, - update(el, binding, vnode) { - checkDataPermission(el, binding, vnode) - } -} diff --git a/frontend/src/lang/es.js b/frontend/src/lang/es.js deleted file mode 100755 index 477af736cb..0000000000 --- a/frontend/src/lang/es.js +++ /dev/null @@ -1,175 +0,0 @@ -export default { - route: { - dashboard: 'Panel de control', - documentation: 'Documentación', - guide: 'Guía', - permission: 'Permisos', - rolePermission: 'Permisos de rol', - pagePermission: 'Permisos de la página', - directivePermission: 'Permisos de la directiva', - icons: 'Iconos', - components: 'Components', - tinymce: 'Tinymce', - markdown: 'Markdown', - jsonEditor: 'Editor JSON', - dndList: 'Lista Dnd', - splitPane: 'Panel dividido', - avatarUpload: 'Subir avatar', - dropzone: 'Subir ficheros', - sticky: 'Sticky', - countTo: 'CountTo', - componentMixin: 'Mixin', - backToTop: 'Ir arriba', - dragDialog: 'Drag Dialog', - dragSelect: 'Drag Select', - dragKanban: 'Drag Kanban', - charts: 'Gráficos', - keyboardChart: 'Keyboard Chart', - lineChart: 'Gráfico de líneas', - mixChart: 'Mix Chart', - example: 'Ejemplo', - nested: 'Rutas anidadass', - menu1: 'Menu 1', - 'menu1-1': 'Menu 1-1', - 'menu1-2': 'Menu 1-2', - 'menu1-2-1': 'Menu 1-2-1', - 'menu1-2-2': 'Menu 1-2-2', - 'menu1-3': 'Menu 1-3', - menu2: 'Menu 2', - Table: 'Tabla', - dynamicTable: 'Tabla dinámica', - dragTable: 'Arrastrar tabla', - inlineEditTable: 'Editor', - complexTable: 'Complex Table', - tab: 'Pestaña', - form: 'Formulario', - createArticle: 'Crear artículo', - editArticle: 'Editar artículo', - articleList: 'Listado de artículos', - errorPages: 'Páginas de error', - page401: '401', - page404: '404', - errorLog: 'Registro de errores', - excel: 'Excel', - exportExcel: 'Exportar a Excel', - selectExcel: 'Export seleccionado', - mergeHeader: 'Merge Header', - uploadExcel: 'Subir Excel', - zip: 'Zip', - pdf: 'PDF', - exportZip: 'Exportar a Zip', - theme: 'Tema', - clipboardDemo: 'Clipboard', - i18n: 'I18n', - externalLink: 'Enlace externo', - profile: 'Profile' - }, - navbar: { - logOut: 'Salir', - dashboard: 'Panel de control', - github: 'Github', - theme: 'Tema', - size: 'Tamaño global', - profile: 'Profile' - }, - login: { - title: 'Formulario de acceso', - logIn: 'Acceso', - username: 'Usuario', - password: 'Contraseña', - any: 'nada', - thirdparty: 'Conectar con', - thirdpartyTips: 'No se puede simular en local, así que combine su propia simulación de negocios. ! !' - }, - documentation: { - documentation: 'Documentación', - github: 'Repositorio Github' - }, - permission: { - addRole: 'Nuevo rol', - editPermission: 'Permiso de edición', - roles: 'Tus permisos', - switchRoles: 'Cambiar permisos', - tips: 'In some cases it is not suitable to use v-permission, such as element Tab component or el-table-column and other asynchronous rendering dom cases which can only be achieved by manually setting the v-if.', - delete: 'Borrar', - confirm: 'Confirmar', - cancel: 'Cancelar' - }, - guide: { - description: 'The guide page is useful for some people who entered the project for the first time. You can briefly introduce the features of the project. Demo is based on ', - button: 'Ver guía' - }, - components: { - documentation: 'Documentación', - tinymceTips: 'Rich text editor is a core part of management system, but at the same time is a place with lots of problems. In the process of selecting rich texts, I also walked a lot of detours. The common rich text editors in the market are basically used, and the finally chose Tinymce. See documentation for more detailed rich text editor comparisons and introductions.', - dropzoneTips: 'Because my business has special needs, and has to upload images to qiniu, so instead of a third party, I chose encapsulate it by myself. It is very simple, you can see the detail code in @/components/Dropzone.', - stickyTips: 'when the page is scrolled to the preset position will be sticky on the top.', - backToTopTips1: 'When the page is scrolled to the specified position, the Back to Top button appears in the lower right corner', - backToTopTips2: 'You can customize the style of the button, show / hide, height of appearance, height of the return. If you need a text prompt, you can use element-ui el-tooltip elements externally', - imageUploadTips: 'Since I was using only the vue@1 version, and it is not compatible with mockjs at the moment, I modified it myself, and if you are going to use it, it is better to use official version.' - }, - table: { - dynamicTips1: 'Fixed header, sorted by header order', - dynamicTips2: 'Not fixed header, sorted by click order', - dragTips1: 'Orden por defecto', - dragTips2: 'The after dragging order', - title: 'Título', - importance: 'Importancia', - type: 'Tipo', - remark: 'Remark', - search: 'Buscar', - add: 'Añadir', - export: 'Exportar', - reviewer: 'reviewer', - id: 'ID', - date: 'Fecha', - author: 'Author', - readings: 'Lector', - status: 'Estado', - actions: 'Acciones', - edit: 'Editar', - publish: 'Publicar', - draft: 'Draft', - delete: 'Eliminar', - cancel: 'Cancelar', - confirm: 'Confirmar' - }, - example: { - warning: 'Creating and editing pages cannot be cached by keep-alive because keep-alive include does not currently support caching based on routes, so it is currently cached based on component name. If you want to achieve a similar caching effect, you can use a browser caching scheme such as localStorage. Or do not use keep-alive include to cache all pages directly. See details' - }, - errorLog: { - tips: 'Please click the bug icon in the upper right corner', - description: 'Now the management system are basically the form of the spa, it enhances the user experience, but it also increases the possibility of page problems, a small negligence may lead to the entire page deadlock. Fortunately Vue provides a way to catch handling exceptions, where you can handle errors or report exceptions.', - documentation: 'Documento de introducción' - }, - excel: { - export: 'Exportar', - selectedExport: 'Exportar seleccionados', - placeholder: 'Por favor escribe un nombre de fichero' - }, - zip: { - export: 'Exportar', - placeholder: 'Por favor escribe un nombre de fichero' - }, - pdf: { - tips: 'Here we use window.print() to implement the feature of downloading pdf.' - }, - theme: { - change: 'Cambiar tema', - documentation: 'Documentación del tema', - tips: 'Tips: It is different from the theme-pick on the navbar is two different skinning methods, each with different application scenarios. Refer to the documentation for details.' - }, - tagsView: { - refresh: 'Actualizar', - close: 'Cerrar', - closeOthers: 'Cerrar otros', - closeAll: 'Cerrar todos' - }, - settings: { - title: 'Page style setting', - theme: 'Theme Color', - tagsView: 'Open Tags-View', - fixedHeader: 'Fixed Header', - sidebarLogo: 'Sidebar Logo' - } -} diff --git a/frontend/src/lang/ja.js b/frontend/src/lang/ja.js deleted file mode 100644 index 7dccd1246b..0000000000 --- a/frontend/src/lang/ja.js +++ /dev/null @@ -1,175 +0,0 @@ -export default { - route: { - dashboard: 'トップ', - documentation: 'ドキュメント', - guide: 'ガイド', - permission: '権限', - rolePermission: '権限ロール', - pagePermission: 'ページ権限', - directivePermission: 'ディレクティブ権限', - icons: 'アイコン', - components: 'コンポーネント', - tinymce: 'TinyMCE', - markdown: 'Markdown', - jsonEditor: 'JSON Editor', - dndList: 'Drag-And-Drop', - splitPane: 'パネル', - avatarUpload: 'アバターアップロード', - dropzone: 'Dropzone', - sticky: 'Sticky', - countTo: 'Count To', - componentMixin: 'コンポーネントMixin', - backToTop: 'BackToTop', - dragDialog: 'Drag Dialog', - dragSelect: 'Drag Select', - dragKanban: 'Drag 看板', - charts: 'チャート', - keyboardChart: 'Keyboardチャート', - lineChart: 'Lineチャート', - mixChart: 'Mixチャート', - example: 'Example', - nested: 'Nested Routes', - menu1: 'メニュー1', - 'menu1-1': 'メニュー 1-1', - 'menu1-2': 'メニュー 1-2', - 'menu1-2-1': 'メニュー 1-2-1', - 'menu1-2-2': 'メニュー 1-2-2', - 'menu1-3': 'メニュー 1-3', - menu2: 'メニュー 2', - Table: 'Table', - dynamicTable: '可変 Table', - dragTable: 'Drag Table', - inlineEditTable: 'Inline Edit Table', - complexTable: 'Complex Table', - tab: 'Tab', - form: 'フォーム', - createArticle: '投稿作成', - editArticle: '投稿編集', - articleList: '投稿リスト', - errorPages: 'エラーページ', - page401: '401', - page404: '404', - errorLog: 'エラーログ', - excel: 'Excel', - exportExcel: '一括エクスポート', - selectExcel: '複数選択エクスポート', - mergeHeader: 'ヘッダーマージ', - uploadExcel: 'アップロード', - zip: 'Zip', - pdf: 'PDF', - exportZip: 'Export Zip', - theme: 'テーマ変更', - clipboardDemo: 'Clipboard', - i18n: '多言語', - externalLink: '外部リンク', - profile: 'プロフィール' - }, - navbar: { - dashboard: 'トップ', - github: 'GitHub', - logOut: 'ログアウト', - profile: 'プロフィール', - theme: 'テーマ変更', - size: '画面サイズ' - }, - login: { - title: 'ユーザログイン', - logIn: 'ログイン', - username: 'ユーザ名', - password: 'パスワード', - any: 'password', - thirdparty: '外部IDでログイン', - thirdpartyTips: 'ローカル環境ではログインできません。実装が必要です。' - }, - documentation: { - documentation: 'ドキュメント', - github: 'Github Link' - }, - permission: { - addRole: 'ロール追加', - editPermission: 'ロール変更', - roles: 'ロール', - switchRoles: 'ロール切替', - tips: 'v-permissionは使えない時があります。例えば: Element-UI の el-tab、 el-table-column 及び他の dom。v-ifを使う必要があります。', - delete: '削除', - confirm: '確認', - cancel: 'キャンセル' - }, - guide: { - description: 'ガイドは各機能の説明です。', - button: 'ガイドを見る' - }, - components: { - documentation: 'ドキュメント', - tinymceTips: 'tinymceは管理画面に重要な機能ですが、その同時に落とし穴がありあす。tinymceを使う道のりが大変でした。Tinymceを使う時に各自のプロジェクト状況で判断が必要です。ドキュメントはこちら', - dropzoneTips: 'Third partyのパッケージを使わず、独自の実装しています。詳細は @/components/Dropzone', - stickyTips: 'ページの指定位置へスクロールした場合、表示されます。', - backToTopTips1: 'トップへスクロールが表示されます。', - backToTopTips2: 'ボタンのスタイルはカスタマイズできます。例えば、show/hide、height、position。 またはElementのel-tooltipを使って、ツールチップを実装できます。', - imageUploadTips: 'mockjsは使えないため、カスタマイズしています。公式の最新バージョンを使ってください。' - }, - table: { - dynamicTips1: '先頭は固定、最後に追加', - dynamicTips2: '戦後に追加せず、指定列に追加', - dragTips1: 'デフォルト順番', - dragTips2: 'Drag後の順番', - title: 'タイトル', - importance: '重要', - type: 'タイプ', - remark: '評価', - search: '検索', - add: '追加', - export: 'エクスポート', - reviewer: 'レビュアー', - id: '番号', - date: '日時', - author: '作成者', - readings: '閲覧数', - status: 'ステータス', - actions: '操作', - edit: '編集', - publish: '公開', - draft: '下書き', - delete: 'キャンセル', - cancel: 'キャンセル', - confirm: '確認' - }, - example: { - warning: '新規作成と編集画面は keep-alive を使えないです。keep-alive の include はrouteのキャッシュは使えないです。そのため、component name を使ってキャッシュさせるようにします。このようなキャッシュ機能を作りたい場合,localStorageを使う手があります。もしくは keep-alive の includeを使って、全ページキャッシュする方法はあります。' - }, - errorLog: { - tips: '右上のbugアイコンをクリックしてください。', - description: '管理画面はspaを使う場合が多い、ユーザ体現向上はできますが、想定外エラーが発生する場合があります。Vueはそのエラーハンドリング機能を提供し、エラーレポートができます。', - documentation: 'ドキュメント' - }, - excel: { - export: 'エクスポート', - selectedExport: 'エクスポート対象を選択してください。', - placeholder: 'ファイル名を入力してください。' - }, - zip: { - export: 'エクスポート', - placeholder: 'ファイル名を入力してください。' - }, - pdf: { - tips: 'window.print() を使ってPDFダウンロードしています。' - }, - theme: { - change: 'テーマ切替', - documentation: 'ドキュメント', - tips: 'Tips: テーマの切り替え方法はnavbarのtheme-pickと異なります、使い方はドキュメントを確認してください。' - }, - tagsView: { - refresh: '更新', - close: '閉じる', - closeOthers: 'その他閉じる', - closeAll: 'すべて閉じる' - }, - settings: { - title: 'システムテーマ', - theme: 'テーマ色', - tagsView: 'Tags-View 開く', - fixedHeader: 'Fixed Header', - sidebarLogo: 'Sidebar Logo' - } -} diff --git a/frontend/src/plugins/Blob.js b/frontend/src/plugins/Blob.js deleted file mode 100644 index 5ffc1337fd..0000000000 --- a/frontend/src/plugins/Blob.js +++ /dev/null @@ -1,210 +0,0 @@ -/* eslint-disable */ -/* Blob.js*/ - -/*global self, unescape */ -/*jslint bitwise: true, regexp: true, confusion: true, es5: true, vars: true, white: true, - plusplus: true */ - -/*! @source http://purl.eligrey.com/github/Blob.js/blob/master/Blob.js */ - -(function (view) { - "use strict"; - - view.URL = view.URL || view.webkitURL; - - if (view.Blob && view.URL) { - try { - new Blob; - return; - } catch (e) { - } - } - - // Internally we use a BlobBuilder implementation to base Blob off of - // in order to support older browsers that only have BlobBuilder - var BlobBuilder = view.BlobBuilder || view.WebKitBlobBuilder || view.MozBlobBuilder || (function (view) { - var - get_class = function (object) { - return Object.prototype.toString.call(object).match(/^\[object\s(.*)\]$/)[1]; - } - , FakeBlobBuilder = function BlobBuilder() { - this.data = []; - } - , FakeBlob = function Blob(data, type, encoding) { - this.data = data; - this.size = data.length; - this.type = type; - this.encoding = encoding; - } - , FBB_proto = FakeBlobBuilder.prototype - , FB_proto = FakeBlob.prototype - , FileReaderSync = view.FileReaderSync - , FileException = function (type) { - this.code = this[this.name = type]; - } - , file_ex_codes = ( - "NOT_FOUND_ERR SECURITY_ERR ABORT_ERR NOT_READABLE_ERR ENCODING_ERR " - + "NO_MODIFICATION_ALLOWED_ERR INVALID_STATE_ERR SYNTAX_ERR" - ).split(" ") - , file_ex_code = file_ex_codes.length - , real_URL = view.URL || view.webkitURL || view - , real_create_object_URL = real_URL.createObjectURL - , real_revoke_object_URL = real_URL.revokeObjectURL - , URL = real_URL - , btoa = view.btoa - , atob = view.atob - - , ArrayBuffer = view.ArrayBuffer - , Uint8Array = view.Uint8Array - - , origin = /^[\w-]+:\/*\[?[\w\.:-]+\]?(?::[0-9]+)?/ - ; - FakeBlob.fake = FB_proto.fake = true; - while (file_ex_code--) { - FileException.prototype[file_ex_codes[file_ex_code]] = file_ex_code + 1; - } - // Polyfill URL - if (!real_URL.createObjectURL) { - URL = view.URL = function (uri) { - var - uri_info = document.createElementNS("http://www.w3.org/1999/xhtml", "a") - , uri_origin - ; - uri_info.href = uri; - if (!("origin" in uri_info)) { - if (uri_info.protocol.toLowerCase() === "data:") { - uri_info.origin = null; - } else { - uri_origin = uri.match(origin); - uri_info.origin = uri_origin && uri_origin[1]; - } - } - return uri_info; - }; - } - URL.createObjectURL = function (blob) { - var - type = blob.type - , data_URI_header - ; - if (type === null) { - type = "application/octet-stream"; - } - if (blob instanceof FakeBlob) { - data_URI_header = "data:" + type; - if (blob.encoding === "base64") { - return data_URI_header + ";base64," + blob.data; - } else if (blob.encoding === "URI") { - return data_URI_header + "," + decodeURIComponent(blob.data); - } - if (btoa) { - return data_URI_header + ";base64," + btoa(blob.data); - } else { - return data_URI_header + "," + encodeURIComponent(blob.data); - } - } else if (real_create_object_URL) { - return real_create_object_URL.call(real_URL, blob); - } - }; - URL.revokeObjectURL = function (object_URL) { - if (object_URL.substring(0, 5) !== "data:" && real_revoke_object_URL) { - real_revoke_object_URL.call(real_URL, object_URL); - } - }; - FBB_proto.append = function (data/*, endings*/) { - var bb = this.data; - // decode data to a binary string - if (Uint8Array && (data instanceof ArrayBuffer || data instanceof Uint8Array)) { - var - str = "" - , buf = new Uint8Array(data) - , i = 0 - , buf_len = buf.length - ; - for (; i < buf_len; i++) { - str += String.fromCharCode(buf[i]); - } - bb.push(str); - } else if (get_class(data) === "Blob" || get_class(data) === "File") { - if (FileReaderSync) { - var fr = new FileReaderSync; - bb.push(fr.readAsBinaryString(data)); - } else { - // async FileReader won't work as BlobBuilder is sync - throw new FileException("NOT_READABLE_ERR"); - } - } else if (data instanceof FakeBlob) { - if (data.encoding === "base64" && atob) { - bb.push(atob(data.data)); - } else if (data.encoding === "URI") { - bb.push(decodeURIComponent(data.data)); - } else if (data.encoding === "raw") { - bb.push(data.data); - } - } else { - if (typeof data !== "string") { - data += ""; // convert unsupported types to strings - } - // decode UTF-16 to binary string - bb.push(unescape(encodeURIComponent(data))); - } - }; - FBB_proto.getBlob = function (type) { - if (!arguments.length) { - type = null; - } - return new FakeBlob(this.data.join(""), type, "raw"); - }; - FBB_proto.toString = function () { - return "[object BlobBuilder]"; - }; - FB_proto.slice = function (start, end, type) { - var args = arguments.length; - if (args < 3) { - type = null; - } - return new FakeBlob( - this.data.slice(start, args > 1 ? end : this.data.length) - , type - , this.encoding - ); - }; - FB_proto.toString = function () { - return "[object Blob]"; - }; - FB_proto.close = function () { - this.size = 0; - delete this.data; - }; - return FakeBlobBuilder; - }(view)); - - view.Blob = function (blobParts, options) { - var type = options ? (options.type || "") : ""; - var builder = new BlobBuilder(); - if (blobParts) { - for (var i = 0, len = blobParts.length; i < len; i++) { - if (Uint8Array && blobParts[i] instanceof Uint8Array) { - builder.append(blobParts[i].buffer); - } - else { - builder.append(blobParts[i]); - } - } - } - var blob = builder.getBlob(type); - if (!blob.slice && blob.webkitSlice) { - blob.slice = blob.webkitSlice; - } - return blob; - }; - - var getPrototypeOf = Object.getPrototypeOf || function (object) { - return object.__proto__; - }; - view.Blob.prototype = getPrototypeOf(new view.Blob()); - }( - typeof self !== "undefined" && self - || typeof window !== "undefined" && window - || this - )); \ No newline at end of file diff --git a/frontend/src/plugins/Export2Excel.js b/frontend/src/plugins/Export2Excel.js deleted file mode 100644 index f0e998b019..0000000000 --- a/frontend/src/plugins/Export2Excel.js +++ /dev/null @@ -1,137 +0,0 @@ -require('script-loader!file-saver') -/* 这里的路径换成自己的 */ -require('@/plugins/Blob.js') -require('script-loader!xlsx/dist/xlsx.core.min') - -function generateArray(table) { - var out = [] - var rows = table.querySelectorAll('tr') - var ranges = [] - for (var R = 0; R < rows.length; ++R) { - var outRow = [] - var row = rows[R] - var columns = row.querySelectorAll('td') - for (var C = 0; C < columns.length; ++C) { - var cell = columns[C] - var colspan = cell.getAttribute('colspan') - var rowspan = cell.getAttribute('rowspan') - var cellValue = cell.innerText - if (cellValue !== '' && cellValue === +cellValue) cellValue = +cellValue - - // Skip ranges - ranges.forEach(function(range) { - if (R >= range.s.r && R <= range.e.r && outRow.length >= range.s.c && outRow.length <= range.e.c) { - for (var i = 0; i <= range.e.c - range.s.c; ++i) outRow.push(null) - } - }) - - // Handle Row Span - if (rowspan || colspan) { - rowspan = rowspan || 1 - colspan = colspan || 1 - ranges.push({ s: { r: R, c: outRow.length }, e: { r: R + rowspan - 1, c: outRow.length + colspan - 1 }}) - } - - // Handle Value - outRow.push(cellValue !== '' ? cellValue : null) - - // Handle Colspan - if (colspan) for (var k = 0; k < colspan - 1; ++k) outRow.push(null) - } - out.push(outRow) - } - return [out, ranges] -} - -function datenum(v, date1904) { - if (date1904) v += 1462 - var epoch = Date.parse(v) - return (epoch - new Date(Date.UTC(1899, 11, 30))) / (24 * 60 * 60 * 1000) -} - -function sheet_from_array_of_arrays(data, opts) { - var ws = {} - var range = { s: { c: 10000000, r: 10000000 }, e: { c: 0, r: 0 }} - for (var R = 0; R !== data.length; ++R) { - for (var C = 0; C !== data[R].length; ++C) { - if (range.s.r > R) range.s.r = R - if (range.s.c > C) range.s.c = C - if (range.e.r < R) range.e.r = R - if (range.e.c < C) range.e.c = C - var cell = { v: data[R][C] } - if (cell.v === null) continue - // eslint-disable-next-line - var cell_ref = XLSX.utils.encode_cell({ c: C, r: R }) - - if (typeof cell.v === 'number') cell.t = 'n' - else if (typeof cell.v === 'boolean') cell.t = 'b' - else if (cell.v instanceof Date) { - cell.t = 'n' - // eslint-disable-next-line - cell.z = XLSX.SSF._table[14] - cell.v = datenum(cell.v) - } else cell.t = 's' - - ws[cell_ref] = cell - } - } - // eslint-disable-next-line - if (range.s.c < 10000000) ws['!ref'] = XLSX.utils.encode_range(range) - return ws -} - -function Workbook() { - if (!(this instanceof Workbook)) return new Workbook() - this.SheetNames = [] - this.Sheets = {} -} - -function s2ab(s) { - var buf = new ArrayBuffer(s.length) - var view = new Uint8Array(buf) - for (var i = 0; i !== s.length; ++i) view[i] = s.charCodeAt(i) & 0xFF - return buf -} - -export function export_table_to_excel(id) { - var theTable = document.getElementById(id) - var oo = generateArray(theTable) - var ranges = oo[1] - - /* original data */ - var data = oo[0] - var ws_name = 'SheetJS' - - var wb = new Workbook(); var ws = sheet_from_array_of_arrays(data) - - /* add ranges to worksheet */ - // ws['!cols'] = ['apple', 'banan']; - ws['!merges'] = ranges - - /* add worksheet to workbook */ - wb.SheetNames.push(ws_name) - wb.Sheets[ws_name] = ws - // eslint-disable-next-line - var wbout = XLSX.write(wb, { bookType: 'xlsx', bookSST: false, type: 'binary' }) - // eslint-disable-next-line - saveAs(new Blob([s2ab(wbout)], { type: 'application/octet-stream' }), 'test.xlsx') -} - -export function export_json_to_excel(th, jsonData, defaultTitle) { - /* original data */ - - var data = jsonData - data.unshift(th) - var ws_name = 'SheetJS' - - var wb = new Workbook(); var ws = sheet_from_array_of_arrays(data) - - /* add worksheet to workbook */ - wb.SheetNames.push(ws_name) - wb.Sheets[ws_name] = ws - // eslint-disable-next-line - var wbout = XLSX.write(wb, { bookType: 'xlsx', bookSST: false, type: 'binary' }) - var title = defaultTitle || '列表' - // eslint-disable-next-line - saveAs(new Blob([s2ab(wbout)], { type: 'application/octet-stream' }), title + '.xlsx') -} diff --git a/frontend/src/styles/deicon/demo.css b/frontend/src/styles/deicon/demo.css deleted file mode 100644 index a67054a0a0..0000000000 --- a/frontend/src/styles/deicon/demo.css +++ /dev/null @@ -1,539 +0,0 @@ -/* 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; -} diff --git a/frontend/src/styles/deicon/demo_index.html b/frontend/src/styles/deicon/demo_index.html deleted file mode 100644 index 767b048576..0000000000 --- a/frontend/src/styles/deicon/demo_index.html +++ /dev/null @@ -1,2925 +0,0 @@ - - - - - iconfont Demo - - - - - - - - - - - - - -
-

- - -

- -
-
-
    - -
  • - -
    application
    -
    &#xe89e;
    -
  • - -
  • - -
    data-source-24
    -
    &#xe6ef;
    -
  • - -
  • - -
    重置
    -
    &#xe63c;
    -
  • - -
  • - -
    None_Select
    -
    &#xe638;
    -
  • - -
  • - -
    button_right
    -
    &#xe635;
    -
  • - -
  • - -
    icon-maybe
    -
    &#xe631;
    -
  • - -
  • - -
    icon_up-left_outlined
    -
    &#xe632;
    -
  • - -
  • - -
    close
    -
    &#xe633;
    -
  • - -
  • - -
    Frame 3425
    -
    &#xe634;
    -
  • - -
  • - -
    icon-filter
    -
    &#xe636;
    -
  • - -
  • - -
    icon_Batch_outlined
    -
    &#xe630;
    -
  • - -
  • - -
    icon_clear_outlined
    -
    &#xe61d;
    -
  • - -
  • - -
    icon_dialpad_outlined
    -
    &#xe61e;
    -
  • - -
  • - -
    icon_effects_outlined
    -
    &#xe620;
    -
  • - -
  • - -
    icon_magnify_outlined
    -
    &#xe621;
    -
  • - -
  • - -
    icon_moments-categories_outlined
    -
    &#xe623;
    -
  • - -
  • - -
    icon_pc_outlined
    -
    &#xe626;
    -
  • - -
  • - -
    icon_phone_outlined
    -
    &#xe627;
    -
  • - -
  • - -
    icon_redo_outlined
    -
    &#xe629;
    -
  • - -
  • - -
    icon_undo_outlined
    -
    &#xe62b;
    -
  • - -
  • - -
    icon-more
    -
    &#xe62e;
    -
  • - -
  • - -
    icon-quicksetting
    -
    &#xe62f;
    -
  • - -
  • - -
    square-selected
    -
    &#xe73e;
    -
  • - -
  • - -
    italic
    -
    &#xe777;
    -
  • - -
  • - -
    箭头
    -
    &#xe622;
    -
  • - -
  • - -
    magic-line
    -
    &#xe63a;
    -
  • - -
  • - -
    更多
    -
    &#xe60c;
    -
  • - -
  • - -
    清空
    -
    &#xe61c;
    -
  • - -
  • - -
    查看
    -
    &#xe610;
    -
  • - -
  • - -
    outline-redo
    -
    &#xe68c;
    -
  • - -
  • - -
    outline-undo
    -
    &#xe68d;
    -
  • - -
  • - -
    定位
    -
    &#xe60a;
    -
  • - -
  • - -
    富文本框
    -
    &#xe670;
    -
  • - -
  • - -
    下架
    -
    &#xe6e5;
    -
  • - -
  • - -
    上架
    -
    &#xe6e6;
    -
  • - -
  • - -
    发布
    -
    &#xe71f;
    -
  • - -
  • - -
    批量操作
    -
    &#xe61b;
    -
  • - -
  • - -
    图片
    -
    &#xe666;
    -
  • - -
  • - -
    超链接
    -
    &#xe6e4;
    -
  • - -
  • - -
    跳转
    -
    &#xe618;
    -
  • - -
  • - -
    跳转
    -
    &#xe616;
    -
  • - -
  • - -
    网格\表格
    -
    &#xe60b;
    -
  • - -
  • - -
    关闭网格
    -
    &#xe609;
    -
  • - -
  • - -
    流媒体,媒体列表
    -
    &#xe607;
    -
  • - -
  • - -
    iframe
    -
    &#xe6de;
    -
  • - -
  • - -
    参数
    -
    &#xe6d7;
    -
  • - -
  • - -
    更换
    -
    &#xe606;
    -
  • - -
  • - -
    发送邮件
    -
    &#xe605;
    -
  • - -
  • - -
    github
    -
    &#xe6f8;
    -
  • - -
  • - -
    电话
    -
    &#xe681;
    -
  • - -
  • - -
    关闭
    -
    &#xe60d;
    -
  • - -
  • - -
    矩形
    -
    &#xe67e;
    -
  • - -
  • - -
    移动端
    -
    &#xe653;
    -
  • - -
  • - -
    video
    -
    &#xe625;
    -
  • - -
  • - -
    悬浮按钮发动态
    -
    &#xe6e8;
    -
  • - -
  • - -
    吸附选择
    -
    &#xe697;
    -
  • - -
  • - -
    margin
    -
    &#xe902;
    -
  • - -
  • - -
    padding
    -
    &#xe91b;
    -
  • - -
  • - -
    时间
    -
    &#xe665;
    -
  • - -
  • - -
    时间格式转换
    -
    &#xe6fb;
    -
  • - -
  • - -
    超链接
    -
    &#xe9b2;
    -
  • - -
  • - -
    科学技术
    -
    &#xe60f;
    -
  • - -
  • - -
    符号-数据矩阵
    -
    &#xe69c;
    -
  • - -
  • - -
    视图矩阵_o
    -
    &#xeb85;
    -
  • - -
  • - -
    悬浮
    -
    &#xe62c;
    -
  • - -
  • - -
    右悬浮-选中
    -
    &#xe6db;
    -
  • - -
  • - -
    悬浮
    -
    &#xe6f6;
    -
  • - -
  • - -
    悬浮按钮
    -
    &#xe8e6;
    -
  • - -
  • - -
    右悬浮-选中
    -
    &#xeb86;
    -
  • - -
  • - -
    44.tabs
    -
    &#xe62a;
    -
  • - -
  • - -
    洗浴
    -
    &#xe619;
    -
  • - -
  • - -
    线性图标-取消下钻
    -
    &#xe973;
    -
  • - -
  • - -
    线性图标-取消下钻
    -
    &#xe6ed;
    -
  • - -
  • - -
    联动
    -
    &#xe6f7;
    -
  • - -
  • - -
    下钻
    -
    &#xe613;
    -
  • - -
  • - -
    上钻
    -
    &#xe61f;
    -
  • - -
  • - -
    取消联动
    -
    &#xe637;
    -
  • - -
  • - -
    edit-2
    -
    &#xe604;
    -
  • - -
  • - -
    edit-2
    -
    &#xe612;
    -
  • - -
  • - -
    详情
    -
    &#xe706;
    -
  • - -
  • - -
    弧形框
    -
    &#xe603;
    -
  • - -
  • - -
    弧形框
    -
    &#xe602;
    -
  • - -
  • - -
    透明
    -
    &#xe642;
    -
  • - -
  • - -
    弧度
    -
    &#xe61a;
    -
  • - -
  • - -
    放大
    -
    &#xe62d;
    -
  • - -
  • - -
    设 置
    -
    &#xe696;
    -
  • - -
  • - -
    屏幕_全屏
    -
    &#xe655;
    -
  • - -
  • - -
    font-weight-bold
    -
    &#xe659;
    -
  • - -
  • - -
    letter_spacing
    -
    &#xe601;
    -
  • - -
  • - -
    letter-spacing
    -
    &#xe679;
    -
  • - -
  • - -
    字体颜色
    -
    &#xe60e;
    -
  • - -
  • - -
    format_letter_spacing_2
    -
    &#xe6c3;
    -
  • - -
  • - -
    font_size
    -
    &#xe710;
    -
  • - -
  • - -
    居中
    -
    &#xe972;
    -
  • - -
  • - -
    居右
    -
    &#xe608;
    -
  • - -
  • - -
    居左
    -
    &#xe688;
    -
  • - -
  • - -
    实线
    -
    &#xe64a;
    -
  • - -
  • - -
    画笔
    -
    &#xe640;
    -
  • - -
  • - -
    点线
    -
    &#xe614;
    -
  • - -
  • - -
    虚线
    -
    &#xe617;
    -
  • - -
  • - -
    背景色‘
    -
    &#xe600;
    -
  • - -
  • - -
    矩形
    -
    &#xe648;
    -
  • - -
  • - -
    text
    -
    &#xe959;
    -
  • - -
  • - -
    picture
    -
    &#xe643;
    -
  • - -
  • - -
    输入
    -
    &#xe6ab;
    -
  • - -
  • - -
    -
    &#xe628;
    -
  • - -
  • - -
    查询搜索
    -
    &#xe615;
    -
  • - -
  • - -
    季度
    -
    &#xe624;
    -
  • - -
  • - -
    数字顺序
    -
    &#xe7de;
    -
  • - -
  • - -
    树列表
    -
    &#xe6a6;
    -
  • - -
  • - -
    日期
    -
    &#xe639;
    -
  • - -
  • - -
    左侧-区间
    -
    &#xe6dd;
    -
  • - -
  • - -
    列表
    -
    &#xe66f;
    -
  • - -
  • - -
    下拉框
    -
    &#xe8ca;
    -
  • - -
  • - -
    下拉树
    -
    &#xe8d0;
    -
  • - -
  • - -
    重置
    -
    &#xe611;
    -
  • - -
  • - -
    -
    &#xe691;
    -
  • - -
  • - -
    -
    &#xe692;
    -
  • - -
  • - -
    -
    &#xe695;
    -
  • - -
-
-

Unicode 引用

-
- -

Unicode 是字体在网页端最原始的应用方式,特点是:

-
    -
  • 支持按字体的方式去动态调整图标大小,颜色等等。
  • -
  • 默认情况下不支持多色,直接添加多色图标会自动去色。
  • -
-
-

注意:新版 iconfont 支持两种方式引用多色图标:SVG symbol 引用方式和彩色字体图标模式。(使用彩色字体图标需要在「编辑项目」中开启「彩色」选项后并重新生成。)

-
-

Unicode 使用步骤如下:

-

第一步:拷贝项目下面生成的 @font-face

-
@font-face {
-  font-family: 'iconfont';
-  src: url('iconfont.woff2?t=1662616551987') format('woff2'),
-       url('iconfont.woff?t=1662616551987') format('woff'),
-       url('iconfont.ttf?t=1662616551987') format('truetype');
-}
-
-

第二步:定义使用 iconfont 的样式

-
.iconfont {
-  font-family: "iconfont" !important;
-  font-size: 16px;
-  font-style: normal;
-  -webkit-font-smoothing: antialiased;
-  -moz-osx-font-smoothing: grayscale;
-}
-
-

第三步:挑选相应图标并获取字体编码,应用于页面

-
-<span class="iconfont">&#x33;</span>
-
-
-

"iconfont" 是你项目下的 font-family。可以通过编辑项目查看,默认是 "iconfont"。

-
-
-
-
-
    - -
  • - -
    - application -
    -
    .icon-application -
    -
  • - -
  • - -
    - data-source-24 -
    -
    .icon-datasource-select -
    -
  • - -
  • - -
    - 重置 -
    -
    .icon-zhongzhi2 -
    -
  • - -
  • - -
    - None_Select -
    -
    .icon-None_Select -
    -
  • - -
  • - -
    - button_right -
    -
    .icon-button_right -
    -
  • - -
  • - -
    - icon-maybe -
    -
    .icon-icon-maybe -
    -
  • - -
  • - -
    - icon_up-left_outlined -
    -
    .icon-icon_up-left_outlined -
    -
  • - -
  • - -
    - close -
    -
    .icon-close -
    -
  • - -
  • - -
    - Frame 3425 -
    -
    .icon-a-Frame3425 -
    -
  • - -
  • - -
    - icon-filter -
    -
    .icon-icon-filter -
    -
  • - -
  • - -
    - icon_Batch_outlined -
    -
    .icon-icon_Batch_outlined -
    -
  • - -
  • - -
    - icon_clear_outlined -
    -
    .icon-icon_clear_outlined -
    -
  • - -
  • - -
    - icon_dialpad_outlined -
    -
    .icon-icon_dialpad_outlined -
    -
  • - -
  • - -
    - icon_effects_outlined -
    -
    .icon-icon_effects_outlined -
    -
  • - -
  • - -
    - icon_magnify_outlined -
    -
    .icon-icon_magnify_outlined -
    -
  • - -
  • - -
    - icon_moments-categories_outlined -
    -
    .icon-icon_moments-categories_outlined -
    -
  • - -
  • - -
    - icon_pc_outlined -
    -
    .icon-icon_pc_outlined -
    -
  • - -
  • - -
    - icon_phone_outlined -
    -
    .icon-icon_phone_outlined -
    -
  • - -
  • - -
    - icon_redo_outlined -
    -
    .icon-icon_redo_outlined -
    -
  • - -
  • - -
    - icon_undo_outlined -
    -
    .icon-icon_undo_outlined -
    -
  • - -
  • - -
    - icon-more -
    -
    .icon-icon-more -
    -
  • - -
  • - -
    - icon-quicksetting -
    -
    .icon-icon-quicksetting -
    -
  • - -
  • - -
    - square-selected -
    -
    .icon-square-selected -
    -
  • - -
  • - -
    - italic -
    -
    .icon-italic -
    -
  • - -
  • - -
    - 箭头 -
    -
    .icon-jiantou -
    -
  • - -
  • - -
    - magic-line -
    -
    .icon-magic-line -
    -
  • - -
  • - -
    - 更多 -
    -
    .icon-gengduo -
    -
  • - -
  • - -
    - 清空 -
    -
    .icon-qingkong -
    -
  • - -
  • - -
    - 查看 -
    -
    .icon-chakan -
    -
  • - -
  • - -
    - outline-redo -
    -
    .icon-outline-redo -
    -
  • - -
  • - -
    - outline-undo -
    -
    .icon-outline-undo -
    -
  • - -
  • - -
    - 定位 -
    -
    .icon-dingwei -
    -
  • - -
  • - -
    - 富文本框 -
    -
    .icon-fuwenbenkuang -
    -
  • - -
  • - -
    - 下架 -
    -
    .icon-unpublish -
    -
  • - -
  • - -
    - 上架 -
    -
    .icon-publish -
    -
  • - -
  • - -
    - 发布 -
    -
    .icon-fabu -
    -
  • - -
  • - -
    - 批量操作 -
    -
    .icon-piliang-copy -
    -
  • - -
  • - -
    - 图片 -
    -
    .icon-tupian -
    -
  • - -
  • - -
    - 超链接 -
    -
    .icon-chaolianjie1 -
    -
  • - -
  • - -
    - 跳转 -
    -
    .icon-com-jump -
    -
  • - -
  • - -
    - 跳转 -
    -
    .icon-component-tiaozhuan -
    -
  • - -
  • - -
    - 网格\表格 -
    -
    .icon-wangge-open -
    -
  • - -
  • - -
    - 关闭网格 -
    -
    .icon-wangge-close -
    -
  • - -
  • - -
    - 流媒体,媒体列表 -
    -
    .icon-a-liumeitimeitiliebiao -
    -
  • - -
  • - -
    - iframe -
    -
    .icon-iframe -
    -
  • - -
  • - -
    - 参数 -
    -
    .icon-canshu -
    -
  • - -
  • - -
    - 更换 -
    -
    .icon-genghuan -
    -
  • - -
  • - -
    - 发送邮件 -
    -
    .icon-fasongyoujian -
    -
  • - -
  • - -
    - github -
    -
    .icon-github -
    -
  • - -
  • - -
    - 电话 -
    -
    .icon-dianhua -
    -
  • - -
  • - -
    - 关闭 -
    -
    .icon-guanbi -
    -
  • - -
  • - -
    - 矩形 -
    -
    .icon-juxing1 -
    -
  • - -
  • - -
    - 移动端 -
    -
    .icon-yidongduan -
    -
  • - -
  • - -
    - video -
    -
    .icon-video -
    -
  • - -
  • - -
    - 悬浮按钮发动态 -
    -
    .icon-xuanfuanniufadongtai -
    -
  • - -
  • - -
    - 吸附选择 -
    -
    .icon-xifuxuanze -
    -
  • - -
  • - -
    - margin -
    -
    .icon-margin -
    -
  • - -
  • - -
    - padding -
    -
    .icon-padding -
    -
  • - -
  • - -
    - 时间 -
    -
    .icon-shijian -
    -
  • - -
  • - -
    - 时间格式转换 -
    -
    .icon-shijiangeshizhuanhuan -
    -
  • - -
  • - -
    - 超链接 -
    -
    .icon-chaolianjie -
    -
  • - -
  • - -
    - 科学技术 -
    -
    .icon-kexuejishu -
    -
  • - -
  • - -
    - 符号-数据矩阵 -
    -
    .icon-shujujuzhen -
    -
  • - -
  • - -
    - 视图矩阵_o -
    -
    .icon-shitujuzhen_o -
    -
  • - -
  • - -
    - 悬浮 -
    -
    .icon-xuanfu1 -
    -
  • - -
  • - -
    - 右悬浮-选中 -
    -
    .icon-youxuanfu-copy -
    -
  • - -
  • - -
    - 悬浮 -
    -
    .icon-xuanfu -
    -
  • - -
  • - -
    - 悬浮按钮 -
    -
    .icon-xuanfuanniu -
    -
  • - -
  • - -
    - 右悬浮-选中 -
    -
    .icon-youxuanfu-copy-copy -
    -
  • - -
  • - -
    - 44.tabs -
    -
    .icon-tabs -
    -
  • - -
  • - -
    - 洗浴 -
    -
    .icon-xiyu -
    -
  • - -
  • - -
    - 线性图标-取消下钻 -
    -
    .icon-quxiaoshangzuan -
    -
  • - -
  • - -
    - 线性图标-取消下钻 -
    -
    .icon-quxiaoxiazuan -
    -
  • - -
  • - -
    - 联动 -
    -
    .icon-linkage -
    -
  • - -
  • - -
    - 下钻 -
    -
    .icon-xiazuan -
    -
  • - -
  • - -
    - 上钻 -
    -
    .icon-shangzuan -
    -
  • - -
  • - -
    - 取消联动 -
    -
    .icon-quxiaoliandong -
    -
  • - -
  • - -
    - edit-2 -
    -
    .icon-edit-outline -
    -
  • - -
  • - -
    - edit-2 -
    -
    .icon-edit -
    -
  • - -
  • - -
    - 详情 -
    -
    .icon-xiangqing1 -
    -
  • - -
  • - -
    - 弧形框 -
    -
    .icon-weibiaoti-1 -
    -
  • - -
  • - -
    - 弧形框 -
    -
    .icon-weibiaoti- -
    -
  • - -
  • - -
    - 透明 -
    -
    .icon-touming -
    -
  • - -
  • - -
    - 弧度 -
    -
    .icon-fangxing- -
    -
  • - -
  • - -
    - 放大 -
    -
    .icon-fangda -
    -
  • - -
  • - -
    - 设 置 -
    -
    .icon-shezhi -
    -
  • - -
  • - -
    - 屏幕_全屏 -
    -
    .icon-quanping1 -
    -
  • - -
  • - -
    - font-weight-bold -
    -
    .icon-font-weight-bold -
    -
  • - -
  • - -
    - letter_spacing -
    -
    .icon-letter_spacing -
    -
  • - -
  • - -
    - letter-spacing -
    -
    .icon-letter-spacing -
    -
  • - -
  • - -
    - 字体颜色 -
    -
    .icon-zimua -
    -
  • - -
  • - -
    - format_letter_spacing_2 -
    -
    .icon-format_letter_spacing_ -
    -
  • - -
  • - -
    - font_size -
    -
    .icon-font_size -
    -
  • - -
  • - -
    - 居中 -
    -
    .icon-align-center -
    -
  • - -
  • - -
    - 居右 -
    -
    .icon-juyou -
    -
  • - -
  • - -
    - 居左 -
    -
    .icon-juzuo -
    -
  • - -
  • - -
    - 实线 -
    -
    .icon-solid_line -
    -
  • - -
  • - -
    - 画笔 -
    -
    .icon-huabi -
    -
  • - -
  • - -
    - 点线 -
    -
    .icon-dianxian -
    -
  • - -
  • - -
    - 虚线 -
    -
    .icon-xuxian -
    -
  • - -
  • - -
    - 背景色‘ -
    -
    .icon-beijingse1 -
    -
  • - -
  • - -
    - 矩形 -
    -
    .icon-juxing -
    -
  • - -
  • - -
    - text -
    -
    .icon-text -
    -
  • - -
  • - -
    - picture -
    -
    .icon-picture -
    -
  • - -
  • - -
    - 输入 -
    -
    .icon-shuru -
    -
  • - -
  • - -
    - 树 -
    -
    .icon-tree -
    -
  • - -
  • - -
    - 查询搜索 -
    -
    .icon-chaxunsousuo -
    -
  • - -
  • - -
    - 季度 -
    -
    .icon-jidu -
    -
  • - -
  • - -
    - 数字顺序 -
    -
    .icon-shuzishunxu -
    -
  • - -
  • - -
    - 树列表 -
    -
    .icon-Group- -
    -
  • - -
  • - -
    - 日期 -
    -
    .icon-riqi -
    -
  • - -
  • - -
    - 左侧-区间 -
    -
    .icon-zuoce-qujian -
    -
  • - -
  • - -
    - 列表 -
    -
    .icon-liebiao -
    -
  • - -
  • - -
    - 下拉框 -
    -
    .icon-xialakuang -
    -
  • - -
  • - -
    - 下拉树 -
    -
    .icon-xialashu -
    -
  • - -
  • - -
    - 重置 -
    -
    .icon-zhongzhi -
    -
  • - -
  • - -
    - 日 -
    -
    .icon-ri -
    -
  • - -
  • - -
    - 年 -
    -
    .icon-nian -
    -
  • - -
  • - -
    - 月 -
    -
    .icon-yue -
    -
  • - -
-
-

font-class 引用

-
- -

font-class 是 Unicode 使用方式的一种变种,主要是解决 Unicode 书写不直观,语意不明确的问题。

-

与 Unicode 使用方式相比,具有如下特点:

-
    -
  • 相比于 Unicode 语意明确,书写更直观。可以很容易分辨这个 icon 是什么。
  • -
  • 因为使用 class 来定义图标,所以当要替换图标时,只需要修改 class 里面的 Unicode 引用。
  • -
-

使用步骤如下:

-

第一步:引入项目下面生成的 fontclass 代码:

-
<link rel="stylesheet" href="./iconfont.css">
-
-

第二步:挑选相应图标并获取类名,应用于页面:

-
<span class="iconfont icon-xxx"></span>
-
-
-

" - iconfont" 是你项目下的 font-family。可以通过编辑项目查看,默认是 "iconfont"。

-
-
-
-
-
    - -
  • - -
    application
    -
    #icon-application
    -
  • - -
  • - -
    data-source-24
    -
    #icon-datasource-select
    -
  • - -
  • - -
    重置
    -
    #icon-zhongzhi2
    -
  • - -
  • - -
    None_Select
    -
    #icon-None_Select
    -
  • - -
  • - -
    button_right
    -
    #icon-button_right
    -
  • - -
  • - -
    icon-maybe
    -
    #icon-icon-maybe
    -
  • - -
  • - -
    icon_up-left_outlined
    -
    #icon-icon_up-left_outlined
    -
  • - -
  • - -
    close
    -
    #icon-close
    -
  • - -
  • - -
    Frame 3425
    -
    #icon-a-Frame3425
    -
  • - -
  • - -
    icon-filter
    -
    #icon-icon-filter
    -
  • - -
  • - -
    icon_Batch_outlined
    -
    #icon-icon_Batch_outlined
    -
  • - -
  • - -
    icon_clear_outlined
    -
    #icon-icon_clear_outlined
    -
  • - -
  • - -
    icon_dialpad_outlined
    -
    #icon-icon_dialpad_outlined
    -
  • - -
  • - -
    icon_effects_outlined
    -
    #icon-icon_effects_outlined
    -
  • - -
  • - -
    icon_magnify_outlined
    -
    #icon-icon_magnify_outlined
    -
  • - -
  • - -
    icon_moments-categories_outlined
    -
    #icon-icon_moments-categories_outlined
    -
  • - -
  • - -
    icon_pc_outlined
    -
    #icon-icon_pc_outlined
    -
  • - -
  • - -
    icon_phone_outlined
    -
    #icon-icon_phone_outlined
    -
  • - -
  • - -
    icon_redo_outlined
    -
    #icon-icon_redo_outlined
    -
  • - -
  • - -
    icon_undo_outlined
    -
    #icon-icon_undo_outlined
    -
  • - -
  • - -
    icon-more
    -
    #icon-icon-more
    -
  • - -
  • - -
    icon-quicksetting
    -
    #icon-icon-quicksetting
    -
  • - -
  • - -
    square-selected
    -
    #icon-square-selected
    -
  • - -
  • - -
    italic
    -
    #icon-italic
    -
  • - -
  • - -
    箭头
    -
    #icon-jiantou
    -
  • - -
  • - -
    magic-line
    -
    #icon-magic-line
    -
  • - -
  • - -
    更多
    -
    #icon-gengduo
    -
  • - -
  • - -
    清空
    -
    #icon-qingkong
    -
  • - -
  • - -
    查看
    -
    #icon-chakan
    -
  • - -
  • - -
    outline-redo
    -
    #icon-outline-redo
    -
  • - -
  • - -
    outline-undo
    -
    #icon-outline-undo
    -
  • - -
  • - -
    定位
    -
    #icon-dingwei
    -
  • - -
  • - -
    富文本框
    -
    #icon-fuwenbenkuang
    -
  • - -
  • - -
    下架
    -
    #icon-unpublish
    -
  • - -
  • - -
    上架
    -
    #icon-publish
    -
  • - -
  • - -
    发布
    -
    #icon-fabu
    -
  • - -
  • - -
    批量操作
    -
    #icon-piliang-copy
    -
  • - -
  • - -
    图片
    -
    #icon-tupian
    -
  • - -
  • - -
    超链接
    -
    #icon-chaolianjie1
    -
  • - -
  • - -
    跳转
    -
    #icon-com-jump
    -
  • - -
  • - -
    跳转
    -
    #icon-component-tiaozhuan
    -
  • - -
  • - -
    网格\表格
    -
    #icon-wangge-open
    -
  • - -
  • - -
    关闭网格
    -
    #icon-wangge-close
    -
  • - -
  • - -
    流媒体,媒体列表
    -
    #icon-a-liumeitimeitiliebiao
    -
  • - -
  • - -
    iframe
    -
    #icon-iframe
    -
  • - -
  • - -
    参数
    -
    #icon-canshu
    -
  • - -
  • - -
    更换
    -
    #icon-genghuan
    -
  • - -
  • - -
    发送邮件
    -
    #icon-fasongyoujian
    -
  • - -
  • - -
    github
    -
    #icon-github
    -
  • - -
  • - -
    电话
    -
    #icon-dianhua
    -
  • - -
  • - -
    关闭
    -
    #icon-guanbi
    -
  • - -
  • - -
    矩形
    -
    #icon-juxing1
    -
  • - -
  • - -
    移动端
    -
    #icon-yidongduan
    -
  • - -
  • - -
    video
    -
    #icon-video
    -
  • - -
  • - -
    悬浮按钮发动态
    -
    #icon-xuanfuanniufadongtai
    -
  • - -
  • - -
    吸附选择
    -
    #icon-xifuxuanze
    -
  • - -
  • - -
    margin
    -
    #icon-margin
    -
  • - -
  • - -
    padding
    -
    #icon-padding
    -
  • - -
  • - -
    时间
    -
    #icon-shijian
    -
  • - -
  • - -
    时间格式转换
    -
    #icon-shijiangeshizhuanhuan
    -
  • - -
  • - -
    超链接
    -
    #icon-chaolianjie
    -
  • - -
  • - -
    科学技术
    -
    #icon-kexuejishu
    -
  • - -
  • - -
    符号-数据矩阵
    -
    #icon-shujujuzhen
    -
  • - -
  • - -
    视图矩阵_o
    -
    #icon-shitujuzhen_o
    -
  • - -
  • - -
    悬浮
    -
    #icon-xuanfu1
    -
  • - -
  • - -
    右悬浮-选中
    -
    #icon-youxuanfu-copy
    -
  • - -
  • - -
    悬浮
    -
    #icon-xuanfu
    -
  • - -
  • - -
    悬浮按钮
    -
    #icon-xuanfuanniu
    -
  • - -
  • - -
    右悬浮-选中
    -
    #icon-youxuanfu-copy-copy
    -
  • - -
  • - -
    44.tabs
    -
    #icon-tabs
    -
  • - -
  • - -
    洗浴
    -
    #icon-xiyu
    -
  • - -
  • - -
    线性图标-取消下钻
    -
    #icon-quxiaoshangzuan
    -
  • - -
  • - -
    线性图标-取消下钻
    -
    #icon-quxiaoxiazuan
    -
  • - -
  • - -
    联动
    -
    #icon-linkage
    -
  • - -
  • - -
    下钻
    -
    #icon-xiazuan
    -
  • - -
  • - -
    上钻
    -
    #icon-shangzuan
    -
  • - -
  • - -
    取消联动
    -
    #icon-quxiaoliandong
    -
  • - -
  • - -
    edit-2
    -
    #icon-edit-outline
    -
  • - -
  • - -
    edit-2
    -
    #icon-edit
    -
  • - -
  • - -
    详情
    -
    #icon-xiangqing1
    -
  • - -
  • - -
    弧形框
    -
    #icon-weibiaoti-1
    -
  • - -
  • - -
    弧形框
    -
    #icon-weibiaoti-
    -
  • - -
  • - -
    透明
    -
    #icon-touming
    -
  • - -
  • - -
    弧度
    -
    #icon-fangxing-
    -
  • - -
  • - -
    放大
    -
    #icon-fangda
    -
  • - -
  • - -
    设 置
    -
    #icon-shezhi
    -
  • - -
  • - -
    屏幕_全屏
    -
    #icon-quanping1
    -
  • - -
  • - -
    font-weight-bold
    -
    #icon-font-weight-bold
    -
  • - -
  • - -
    letter_spacing
    -
    #icon-letter_spacing
    -
  • - -
  • - -
    letter-spacing
    -
    #icon-letter-spacing
    -
  • - -
  • - -
    字体颜色
    -
    #icon-zimua
    -
  • - -
  • - -
    format_letter_spacing_2
    -
    #icon-format_letter_spacing_
    -
  • - -
  • - -
    font_size
    -
    #icon-font_size
    -
  • - -
  • - -
    居中
    -
    #icon-align-center
    -
  • - -
  • - -
    居右
    -
    #icon-juyou
    -
  • - -
  • - -
    居左
    -
    #icon-juzuo
    -
  • - -
  • - -
    实线
    -
    #icon-solid_line
    -
  • - -
  • - -
    画笔
    -
    #icon-huabi
    -
  • - -
  • - -
    点线
    -
    #icon-dianxian
    -
  • - -
  • - -
    虚线
    -
    #icon-xuxian
    -
  • - -
  • - -
    背景色‘
    -
    #icon-beijingse1
    -
  • - -
  • - -
    矩形
    -
    #icon-juxing
    -
  • - -
  • - -
    text
    -
    #icon-text
    -
  • - -
  • - -
    picture
    -
    #icon-picture
    -
  • - -
  • - -
    输入
    -
    #icon-shuru
    -
  • - -
  • - -
    -
    #icon-tree
    -
  • - -
  • - -
    查询搜索
    -
    #icon-chaxunsousuo
    -
  • - -
  • - -
    季度
    -
    #icon-jidu
    -
  • - -
  • - -
    数字顺序
    -
    #icon-shuzishunxu
    -
  • - -
  • - -
    树列表
    -
    #icon-Group-
    -
  • - -
  • - -
    日期
    -
    #icon-riqi
    -
  • - -
  • - -
    左侧-区间
    -
    #icon-zuoce-qujian
    -
  • - -
  • - -
    列表
    -
    #icon-liebiao
    -
  • - -
  • - -
    下拉框
    -
    #icon-xialakuang
    -
  • - -
  • - -
    下拉树
    -
    #icon-xialashu
    -
  • - -
  • - -
    重置
    -
    #icon-zhongzhi
    -
  • - -
  • - -
    -
    #icon-ri
    -
  • - -
  • - -
    -
    #icon-nian
    -
  • - -
  • - -
    -
    #icon-yue
    -
  • - -
-
-

Symbol 引用

-
- -

这是一种全新的使用方式,应该说这才是未来的主流,也是平台目前推荐的用法。相关介绍可以参考这篇文章 - 这种用法其实是做了一个 SVG 的集合,与另外两种相比具有如下特点:

-
    -
  • 支持多色图标了,不再受单色限制。
  • -
  • 通过一些技巧,支持像字体那样,通过 font-size, color 来调整样式。
  • -
  • 兼容性较差,支持 IE9+,及现代浏览器。
  • -
  • 浏览器渲染 SVG 的性能一般,还不如 png。
  • -
-

使用步骤如下:

-

第一步:引入项目下面生成的 symbol 代码:

-
<script src="./iconfont.js"></script>
-
-

第二步:加入通用 CSS 代码(引入一次就行):

-
<style>
-.icon {
-  width: 1em;
-  height: 1em;
-  vertical-align: -0.15em;
-  fill: currentColor;
-  overflow: hidden;
-}
-</style>
-
-

第三步:挑选相应图标并获取类名,应用于页面:

-
<svg class="icon" aria-hidden="true">
-  <use xlink:href="#icon-xxx"></use>
-</svg>
-
-
-
- -
-
- - - diff --git a/frontend/src/styles/vdrr/common.scss b/frontend/src/styles/vdrr/common.scss deleted file mode 100644 index b003d6c898..0000000000 --- a/frontend/src/styles/vdrr/common.scss +++ /dev/null @@ -1,123 +0,0 @@ -* { - padding: 0; - margin: 0; -} - -// 滚动条 -::-webkit-scrollbar { - width: 4px; - height: 4px; -} - -::-webkit-scrollbar-thumb { - box-shadow: inset 0 0 5px rgba(0, 0, 0, .5); - border-radius: 10px; - background: #ffffff; -} - -::-webkit-scrollbar-track { - border-radius: 10px; - box-shadow: inset 0 0 5px rgba(0, 0, 0, .5); - background: #141414; -} - -// 文字对齐 -.text-left { - text-align: left; -} - -.text-center { - text-align: center; -} - -.text-right { - text-align: right; -} - -// 首页 -#app { - display: flex; - flex-direction: row; - -} - -#menu { - width: 275px; - min-width: 200px; - max-width: 500px; - height: 100vh; - overflow-y: auto; - overflow-x: hidden; - - .el-menu { - border: none; - - .el-submenu__title { - height: 40px; - line-height: 40px; - } - - .el-menu-item { - height: 28px; - line-height: 28px; - } - } -} - -#view { - flex: 1; - min-width: 500px; - padding: 10px 35px 0 35px; - height: 100vh; - overflow-y: auto; - overflow-x: hidden; - display: flex; - flex-direction: column; - align-items: center; - box-sizing: border-box; - position: relative; -} - - -.drag-bar { - position: absolute; - top: 0; - left: 0; - height: 100vh; - width: 5px; - z-index: 99; - border-left: 1px solid #ccc; - cursor: ew-resize -} - -.view-box { - width: 100%; -} - -#toolbar { - left: 0; - top: 0; - height: 24px; - padding: 5px; - border: 1px solid #999; - border-bottom: none; - background-color: #CCC; - z-index: 999; -} - -.container { - width: 100%; - height: 600px; - border: 1px solid #000; - - position: relative; - box-sizing: border-box -} - -.vdr { - border: 1px dashed; -} - -.vdrr { - border: 1px dashed; -} diff --git a/frontend/src/styles/vdrr/customize.scss b/frontend/src/styles/vdrr/customize.scss deleted file mode 100644 index f7265b502f..0000000000 --- a/frontend/src/styles/vdrr/customize.scss +++ /dev/null @@ -1,147 +0,0 @@ -.pattern-contaienr { - border: 1px solid #ccc; - width: 576px; - height: 324px; -} - -.iconPistion { - border-width: 2px; - border-style: solid; - border-color: #409eff; - background-color: rgba(128, 128, 128, 0.5); - box-sizing: border-box; - - .icon-slot { - font-size: 12px; - } -} - -.patternContent { - display: flex; - - .patternLeft { - margin: 10px; - } - - .patternRight { - width: 400px; - margin: 10px; - } -} - - -.icon-slot { - width: 100%; - height: 100%; - - .status { - text-align: left; - color: #000; - } - - .order { - position: absolute; - left: 50%; - top: 50%; - transform: translate(-50%, -50%); - } -} - -.activePattern { - border-style: solid; - border-color: #08de05; -} - - -.drag-handle, -.drag-cancel { - padding: 6px; - margin: 6px; - background-color: #CCC; - border: 2px solid; -} - -.drag-handle:hover { - cursor: move; -} - -.drag-cancel:hover { - cursor: not-allowed; -} - -.my-handle-class { - position: absolute; - border: 1px solid black; - border-radius: 50%; - height: 14px; - width: 14px; - font-size: 1em; - line-height: 1em; - box-sizing: border-box; - -webkit-transition: all 300ms linear; - -ms-transition: all 300ms linear; - transition: all 300ms linear; -} - -.my-handle-class-tl { - top: -14px; - left: -14px; - cursor: nw-resize; -} - -.my-handle-class-tm { - top: -14px; - left: 50%; - margin-left: -7px; - cursor: n-resize; -} - -.my-handle-class-tr { - top: -14px; - right: -14px; - cursor: ne-resize; -} - -.my-handle-class-ml { - top: 50%; - margin-top: -7px; - left: -14px; - cursor: w-resize; -} - -.my-handle-class-mr { - top: 50%; - margin-top: -7px; - right: -14px; - cursor: e-resize; -} - -.my-handle-class-bl { - bottom: -14px; - left: -14px; - cursor: sw-resize; -} - -.my-handle-class-bm { - bottom: -14px; - left: 50%; - margin-left: -7px; - cursor: s-resize; -} - -.my-handle-class-br { - bottom: -14px; - right: -14px; - cursor: se-resize; -} - -.my-handle-class-tl:hover, -.my-handle-class-tm:hover, -.my-handle-class-tr:hover, -.my-handle-class-ml:hover, -.my-handle-class-mr:hover, -.my-handle-class-bl:hover, -.my-handle-class-bm:hover, -.my-handle-class-br:hover { - transform: scale(1.4); -} diff --git a/frontend/src/styles/vdrr/highlight.scss b/frontend/src/styles/vdrr/highlight.scss deleted file mode 100644 index 766e70839a..0000000000 --- a/frontend/src/styles/vdrr/highlight.scss +++ /dev/null @@ -1,50 +0,0 @@ -// 添加行号样式 -pre.hljs { - padding: 8px 2px; - border-radius: 5px; - position: relative; - - ol { - list-style: decimal; - margin: 0; - margin-left: 40px; - padding: 0; - - li { - list-style: decimal-leading-zero; - position: relative; - padding-left: 10px; - - .line-num { - position: absolute; - left: -40px; - top: 0; - width: 40px; - height: 100%; - border-right: 1px solid rgba(0, 0, 0, .66); - } - } - } - - b.name { - position: absolute; - top: 2px; - right: 12px; - z-index: 10; - color: #999; - pointer-events: none; - } -} - - - -span.hljs-tag, -span.hljs-name { - color: #eb333c; -} - - -span.hljs-string { - color: #b4aa34; - -} \ No newline at end of file diff --git a/frontend/src/styles/vdrr/markdown.scss b/frontend/src/styles/vdrr/markdown.scss deleted file mode 100644 index a278a71075..0000000000 --- a/frontend/src/styles/vdrr/markdown.scss +++ /dev/null @@ -1,247 +0,0 @@ -.markdown-render { - html { - font-size: 16px; - } - - body { - font-family: "Open Sans", "Clear Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; - color: rgb(51, 51, 51); - line-height: 1.6; - } - - a { - color: #4183C4; - } - - h1, - h2, - h3, - h4, - h5, - h6 { - position: relative; - margin-top: 1rem; - margin-bottom: 1rem; - font-weight: bold; - line-height: 1.4; - cursor: text; - } - - h1:hover a.anchor, - h2:hover a.anchor, - h3:hover a.anchor, - h4:hover a.anchor, - h5:hover a.anchor, - h6:hover a.anchor { - text-decoration: none; - } - - h1 tt, - h1 code { - font-size: inherit; - } - - h2 tt, - h2 code { - font-size: inherit; - } - - h3 tt, - h3 code { - font-size: inherit; - } - - h4 tt, - h4 code { - font-size: inherit; - } - - h5 tt, - h5 code { - font-size: inherit; - } - - h6 tt, - h6 code { - font-size: inherit; - } - - h1 { - padding-bottom: .3em; - font-size: 2.0m; - line-height: 1.2; - border-bottom: 1px solid #eee; - } - - h2 { - padding-bottom: .3em; - font-size: 1.66em; - line-height: 1.225; - border-bottom: 1px solid #eee; - } - - h3 { - font-size: 1.33em; - line-height: 1.43; - } - - h4 { - font-size: 1.11em; - } - - h5 { - font-size: 1em; - } - - h6 { - font-size: .8m; - color: #777; - } - - p, - blockquote, - ul, - ol, - dl, - table { - margin: 0.8em 0; - } - - li>ol, - li>ul { - margin: 0 0; - } - - hr { - height: 2px; - padding: 0; - margin: 16px 0; - background-color: #e7e7e7; - border: 0 none; - overflow: hidden; - box-sizing: content-box; - } - - li p.first { - display: inline-block; - } - - ul, - ol { - padding-left: 30px; - } - - ul:first-child, - ol:first-child { - margin-top: 0; - } - - ul:last-child, - ol:last-child { - margin-bottom: 0; - } - - blockquote { - border-left: 4px solid #dfe2e5; - padding: 0 15px; - color: #777777; - } - - blockquote blockquote { - padding-right: 0; - } - - table { - padding: 0; - word-break: initial; - } - - table tr { - border-top: 1px solid #dfe2e5; - margin: 0; - padding: 0; - } - - table tr:nth-child(2n), - thead { - background-color: #f8f8f8; - } - - table tr th { - font-weight: bold; - border: 1px solid #dfe2e5; - border-bottom: 0; - margin: 0; - padding: 6px 13px; - } - - table tr td { - border: 1px solid #dfe2e5; - margin: 0; - padding: 6px 13px; - } - - table tr th:first-child, - table tr td:first-child { - margin-top: 0; - } - - table tr th:last-child, - table tr td:last-child { - margin-bottom: 0; - } - - tt { - border: 1px solid #e7eaed; - background-color: #f8f8f8; - border-radius: 3px; - padding: 0; - padding: 2px 4px 0px 4px; - font-size: .9em; - } - - code { - background-color: #f3f4f4; - padding: 0 2px 0 2px; - font-size: 16px; - } - - - @media print { - html { - font-size: 13px; - } - - table, - pre { - page-break-inside: avoid; - } - - pre { - word-wrap: break-word; - } - } - - - - pre { - padding: 1rem; - font-size: 100%; - line-height: 1.45; - background-color:#f7f7f7; - border: 0; - border-radius: 3px; - color: #777777; - margin-top: 0 !important; - } - - blockquote { - border-left-color: rgba(85, 85, 85, 0.12); - } - - header, - footer { - font-family: "Segoe UI", "Arial", sans-serif; - } - -} \ No newline at end of file