Commit 9d5f6a2d by limin

Merge branch 'master' of http://192.168.3.233:8090/npm/glsx-components into master

2 parents 4ab79b62 04e5aa31
No preview for this file type
No preview for this file type
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
{ {
"name": "glsx-components", "name": "glsx-components",
"description": "glsx vue components", "description": "glsx vue components",
"version": "1.0.3", "version": "1.0.7",
"author": "limin <17653212@qq.com>", "author": "limin <17653212@qq.com>",
"license": "MIT", "license": "MIT",
"main": "dist/glsx-components.common.js", "main": "dist/glsx-components.common.js",
......
...@@ -3,53 +3,53 @@ ...@@ -3,53 +3,53 @@
</template> </template>
<script> <script>
import { Postmate } from "glsx-common"; import { Postmate } from 'glsx-common'
export default { export default {
name: "GLExternal", name: 'GLExternal',
props: { props: {
url: { url: {
type: String, type: String,
required: true, required: true
}, },
subscribe: { subscribe: {
type: Function, type: Function,
default: null, default: null
}, }
}, },
data() { data() {
return { return {
container: null, container: null
}; }
}, },
mounted() { mounted() {
this.container = this.$refs["adapter-frame"]; this.container = this.$refs['adapter-frame']
this.create(); this.create()
}, },
methods: { methods: {
create() { create() {
if (!this.url) throw new Error("url为空"); if (!this.url) throw new Error('url为空')
this.container.innerHTML = ""; this.container.innerHTML = ''
var postmate = new Postmate({ var postmate = new Postmate({
container: this.container, container: this.container,
url: this.url, url: this.url,
name: "adapter-frame", name: 'adapter-frame',
classListArray: ["gl-external-adapter-frame"], classListArray: ['gl-external-adapter-frame']
}) })
.then((child) => { .then(child => {
child.get("height").then((height) => { child.get('height').then(height => {
child.frame.setAttribute("scrolling", "no"); child.frame.setAttribute('scrolling', 'no')
child.frame.style.height = `${height+14}px`; child.frame.style.height = `${height + 14}px`
});
this.subscribe && this.subscribe(child);
}) })
.catch((err) => { this.subscribe && this.subscribe(child)
console.log(err); })
throw new Error("连接失败: " + this.url); .catch(err => {
}); console.log(err)
}, throw new Error('连接失败: ' + this.url)
}, })
}; }
}
}
</script> </script>
<style> <style>
.gl-external-adapter-frame { .gl-external-adapter-frame {
......
$defaultColor: #5850FF; $defaultColor: #5850ff;
$lightColor: #7973ff; $lightColor: #7973ff;
$dackColor: #4f48e6; $dackColor: #4f48e6;
...@@ -7,7 +7,7 @@ $dackColor: #4f48e6; ...@@ -7,7 +7,7 @@ $dackColor: #4f48e6;
.el-button { .el-button {
padding: 12px 20px; padding: 12px 20px;
font-size: 14px; font-size: 14px;
border-radius: 4px border-radius: 4px;
} }
.el-button:hover, .el-button:hover,
...@@ -24,7 +24,7 @@ $dackColor: #4f48e6; ...@@ -24,7 +24,7 @@ $dackColor: #4f48e6;
} }
.el-button.is-round { .el-button.is-round {
padding: 12px 20px padding: 12px 20px;
} }
.el-button--primary { .el-button--primary {
...@@ -49,7 +49,7 @@ $dackColor: #4f48e6; ...@@ -49,7 +49,7 @@ $dackColor: #4f48e6;
.el-button.is-plain:focus, .el-button.is-plain:focus,
.el-button.is-plain:hover { .el-button.is-plain:hover {
background: #FFF; background: #fff;
border-color: $lightColor; border-color: $lightColor;
color: $lightColor; color: $lightColor;
} }
...@@ -92,7 +92,6 @@ $dackColor: #4f48e6; ...@@ -92,7 +92,6 @@ $dackColor: #4f48e6;
line-height: 28px; line-height: 28px;
} }
/* 输入框 下拉框 选择器 开关 单选 多选*/ /* 输入框 下拉框 选择器 开关 单选 多选*/
.el-input__inner:focus { .el-input__inner:focus {
...@@ -153,6 +152,7 @@ $dackColor: #4f48e6; ...@@ -153,6 +152,7 @@ $dackColor: #4f48e6;
.el-button--text { .el-button--text {
color: $defaultColor; color: $defaultColor;
padding: 0px;
} }
.el-select-dropdown__item.selected { .el-select-dropdown__item.selected {
...@@ -160,6 +160,10 @@ $dackColor: #4f48e6; ...@@ -160,6 +160,10 @@ $dackColor: #4f48e6;
font-weight: bold; font-weight: bold;
} }
.el-textarea__inner:focus {
border-color: $dackColor;
}
.el-switch.is-checked .el-switch__core { .el-switch.is-checked .el-switch__core {
border-color: $defaultColor; border-color: $defaultColor;
background-color: $defaultColor; background-color: $defaultColor;
...@@ -170,6 +174,13 @@ $dackColor: #4f48e6; ...@@ -170,6 +174,13 @@ $dackColor: #4f48e6;
background: #fff; background: #fff;
} }
.el-radio-button__orig-radio:checked + .el-radio-button__inner {
background-color: $defaultColor;
border-color: $defaultColor;
-webkit-box-shadow: -1px 0 0 0 $defaultColor;
box-shadow: -1px 0 0 0 $defaultColor;
}
.el-radio__inner:after { .el-radio__inner:after {
background-color: $defaultColor; background-color: $defaultColor;
width: 10px; width: 10px;
...@@ -180,7 +191,11 @@ $dackColor: #4f48e6; ...@@ -180,7 +191,11 @@ $dackColor: #4f48e6;
border-color: $defaultColor; border-color: $defaultColor;
} }
.el-radio__input.is-checked+.el-radio__label { .el-radio__input.is-checked + .el-radio__label {
color: $defaultColor;
}
.el-radio-button__inner:hover {
color: $defaultColor; color: $defaultColor;
} }
...@@ -193,7 +208,7 @@ $dackColor: #4f48e6; ...@@ -193,7 +208,7 @@ $dackColor: #4f48e6;
border-color: $defaultColor; border-color: $defaultColor;
} }
.el-checkbox__input.is-checked+.el-checkbox__label { .el-checkbox__input.is-checked + .el-checkbox__label {
color: $defaultColor; color: $defaultColor;
} }
...@@ -207,13 +222,12 @@ $dackColor: #4f48e6; ...@@ -207,13 +222,12 @@ $dackColor: #4f48e6;
border-color: $defaultColor; border-color: $defaultColor;
} }
/* 标签*/ /* 标签*/
.el-tag { .el-tag {
color: $lightColor; color: $lightColor;
background: #E6E9FF; background: #e6e9ff;
border: 1px solid #5850FF; border: 1px solid #5850ff;
} }
.el-tag .el-tag__close { .el-tag .el-tag__close {
...@@ -224,7 +238,6 @@ $dackColor: #4f48e6; ...@@ -224,7 +238,6 @@ $dackColor: #4f48e6;
background-color: $lightColor; background-color: $lightColor;
} }
/* 面包屑*/ /* 面包屑*/
.el-breadcrumb__inner a, .el-breadcrumb__inner a,
...@@ -240,7 +253,7 @@ $dackColor: #4f48e6; ...@@ -240,7 +253,7 @@ $dackColor: #4f48e6;
.el-breadcrumb__inner { .el-breadcrumb__inner {
font-weight: 700; font-weight: 700;
color: #3A3A3A; color: #3a3a3a;
} }
.el-breadcrumb__item:last-child .el-breadcrumb__inner, .el-breadcrumb__item:last-child .el-breadcrumb__inner,
...@@ -248,15 +261,14 @@ $dackColor: #4f48e6; ...@@ -248,15 +261,14 @@ $dackColor: #4f48e6;
.el-breadcrumb__item:last-child .el-breadcrumb__inner a:hover, .el-breadcrumb__item:last-child .el-breadcrumb__inner a:hover,
.el-breadcrumb__item:last-child .el-breadcrumb__inner:hover { .el-breadcrumb__item:last-child .el-breadcrumb__inner:hover {
font-weight: 700; font-weight: 700;
color: #3A3A3A; color: #3a3a3a;
} }
/* 树形 */ /* 树形 */
.el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content { .el-tree--highlight-current .el-tree-node.is-current > .el-tree-node__content {
color: $defaultColor; color: $defaultColor;
background-color: #F2F5FA; background-color: #f2f5fa;
height: 34px; height: 34px;
} }
...@@ -264,19 +276,18 @@ $dackColor: #4f48e6; ...@@ -264,19 +276,18 @@ $dackColor: #4f48e6;
height: 34px; height: 34px;
} }
/* 表格 */ /* 表格 */
.el-table--medium .el-table__cell { .el-table--medium .el-table__cell {
padding: 8.5px 0px; padding: 16px 0px;
} }
.el-table .cell { .el-table .cell {
line-height: 36px; line-height: 20px;
} }
.el-table .el-table__header tr { .el-table .el-table__header tr {
background: #F4F6FC; background: #f4f6fc;
font-size: 14px; font-size: 14px;
font-weight: 500; font-weight: 500;
color: #333333; color: #333333;
...@@ -284,7 +295,7 @@ $dackColor: #4f48e6; ...@@ -284,7 +295,7 @@ $dackColor: #4f48e6;
} }
.el-table th.el-table__cell { .el-table th.el-table__cell {
background: #F4F6FC; background: #f4f6fc;
font-size: 14px; font-size: 14px;
font-weight: 600; font-weight: 600;
color: #333333; color: #333333;
...@@ -299,25 +310,24 @@ $dackColor: #4f48e6; ...@@ -299,25 +310,24 @@ $dackColor: #4f48e6;
} }
.el-table--striped .el-table__body tr.el-table__row--striped.current-row td.el-table__cell { .el-table--striped .el-table__body tr.el-table__row--striped.current-row td.el-table__cell {
background-color: #F4F3FF; background-color: #f4f3ff;
} }
.el-table__body tr.current-row>td.el-table__cell { .el-table__body tr.current-row > td.el-table__cell {
background-color: #F4F3FF; background-color: #f4f3ff;
} }
.el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell { .el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell {
background: #fff; background: #fff;
} }
.el-table__body tr.hover-row.current-row>td.el-table__cell, .el-table__body tr.hover-row.current-row > td.el-table__cell,
.el-table__body tr.hover-row.el-table__row--striped.current-row>td.el-table__cell, .el-table__body tr.hover-row.el-table__row--striped.current-row > td.el-table__cell,
.el-table__body tr.hover-row.el-table__row--striped>td.el-table__cell, .el-table__body tr.hover-row.el-table__row--striped > td.el-table__cell,
.el-table__body tr.hover-row>td.el-table__cell { .el-table__body tr.hover-row > td.el-table__cell {
background-color: #F4F3FF; background-color: #f4f3ff;
} }
/* 分页 */ /* 分页 */
.el-pager li.active { .el-pager li.active {
...@@ -355,6 +365,17 @@ $dackColor: #4f48e6; ...@@ -355,6 +365,17 @@ $dackColor: #4f48e6;
margin-left: 10px; margin-left: 10px;
} }
.el-pagination.is-background .el-pager li:not(.disabled):hover {
color: $defaultColor;
}
.el-drawer__header {
font-size: 22px;
font-weight: 600;
color: #333333;
line-height: 30px;
}
.el-form-item__label { .el-form-item__label {
font-size: 14px; font-size: 14px;
font-weight: 400; font-weight: 400;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!