Skip to content

Commit

Permalink
build v3.4.7
Browse files Browse the repository at this point in the history
  • Loading branch information
smallweis committed Jul 5, 2024
1 parent 9cc63b1 commit fb43159
Show file tree
Hide file tree
Showing 14 changed files with 96 additions and 55 deletions.
26 changes: 13 additions & 13 deletions lib/avue.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions lib/avue.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/index.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@smallwei/avue",
"version": "3.4.6",
"version": "3.4.7",
"description": "A Magic Configurable Web Framework",
"main": "lib/avue.min.js",
"unpkg": "lib/avue.min.js",
Expand Down Expand Up @@ -71,4 +71,4 @@
"README.md",
"LICENSE"
]
}
}
4 changes: 4 additions & 0 deletions packages/element-ui/cascader/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,14 @@ export default create({
return {
label: this.labelKey,
value: this.valueKey,
disabled: this.disabledKey,
children: this.childrenKey,
checkStrictly: this.checkStrictly,
multiple: this.multiple,
emitPath: this.emitPath,
expandTrigger: this.props.expandTrigger,
hoverThreshold: this.props.hoverThreshold,
leaf: this.leafKey,
lazy: this.lazy,
lazyLoad: (node, resolve) => {
let callback = (list) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/element-ui/crud/column/column-default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
:index="indexMethod"
align="center">
<template #="{$index}">
{{ $index+1 }}
{{ indexMethod($index)}}
</template>
</component>
</template>
Expand Down
3 changes: 3 additions & 0 deletions packages/element-ui/crud/grid/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ export default create({
}
},
methods: {
doLayout () {
},
clearSelection () {
this.checkList = []
this.checkListChange(this.checkList)
Expand Down
3 changes: 2 additions & 1 deletion packages/element-ui/crud/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,7 @@ export default create({
methods: {
handleGridShow () {
this.gridShow = !this.gridShow
this.$emit('grid-status-change', this.gridShow)
},
handleValidate (prop, valid, msg) {
if (!this.listError[prop]) this.listError[prop] = { valid: false, msg: '' }
Expand Down Expand Up @@ -903,7 +904,7 @@ export default create({
} else if (type == 'column' && !this.isColumnSort) {
return
}
}
} else if (!el) return
if (!window.Sortable) {
packages.logs("Sortable")
return
Expand Down
2 changes: 2 additions & 0 deletions packages/element-ui/input-icon/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<div v-if="box">
<el-dialog class="avue-dialog"
:title="placeholder"
:before-close="beforeClose"
:append-to-body="$AVUE.appendToBody"
lock-scroll
v-model="box"
Expand Down Expand Up @@ -65,6 +66,7 @@ export default create({
},
mixins: [props(), event(), locale],
props: {
beforeClose: Function,
prefixIcon: {
type: String
},
Expand Down
2 changes: 2 additions & 0 deletions packages/element-ui/input-map/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<div v-if="box">
<el-dialog class="avue-dialog"
:width="dialogWidth"
:before-close="beforeClose"
:append-to-body="$AVUE.appendToBody"
lock-scroll
:title="placeholder"
Expand Down Expand Up @@ -63,6 +64,7 @@ export default create({
name: "input-map",
mixins: [props(), event(), locale],
props: {
beforeClose: Function,
mapChange: Function,
prefixIcon: {
type: String
Expand Down
1 change: 0 additions & 1 deletion packages/element-ui/input-number/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
:readonly="readonly"
:controls-position="controlsPosition"
:controls="controls"
:label="placeholder"
:disabled="disabled"></el-input-number>
</template>

Expand Down
12 changes: 9 additions & 3 deletions packages/element-ui/input-table/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<el-dialog class="avue-dialog"
:class="b()"
:width="dialogWidth"
:before-close="beforeClose"
:append-to-body="$AVUE.appendToBody"
lock-scroll
:title="placeholder"
Expand All @@ -32,6 +33,7 @@
@selection-change="handleSelectionChange"
:rowClassName="handleRowClassName"
@current-row-change="handleCurrentChange"
v-model:search="search"
v-model:page="page"></avue-crud>
<span class="avue-dialog__footer">
<el-button type="primary"
Expand All @@ -57,6 +59,7 @@ export default create({
return {
object: [],
active: [],
search: {},
page: {},
loading: false,
box: false,
Expand All @@ -65,6 +68,7 @@ export default create({
};
},
props: {
beforeClose: Function,
prefixIcon: {
type: String
},
Expand Down Expand Up @@ -145,10 +149,12 @@ export default create({
handleShow () {
this.$refs.main.blur();
if (this.disabled || this.readonly) return;
this.search = {}
this.page = {
currentPage: 1,
total: 0
}
this.data = []
this.box = true;
},
setVal () {
Expand All @@ -173,14 +179,14 @@ export default create({
handleSearchChange (form, done) {
this.loading = true;
this.page.currentPage = 1;
this.onList({ data: form }, () => {
this.onList({}, () => {
done && done()
})
},
onList (params = {}, callback) {
onList (params, callback) {
this.loading = true;
if (typeof this.onLoad == 'function') {
this.onLoad(Object.assign({ page: this.page }, params), data => {
this.onLoad({ page: this.page, data: this.search }, data => {
callback && callback()
this.page.total = data.total;
this.data = data.data
Expand Down
2 changes: 1 addition & 1 deletion src/version.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const version = '3.4.6'
export const version = '3.4.7'
84 changes: 54 additions & 30 deletions styles/src/element-ui/group.scss
Original file line number Diff line number Diff line change
@@ -1,59 +1,81 @@
.avue-group{
.avue-group {
width: 100%;
.el-collapse,.el-collapse-item__wrap{
border-color:#fff;

.el-collapse,
.el-collapse-item__wrap {
border-color: #fff;
}
.el-collapse-item__header{

.el-collapse-item__header {
width: 100%;
height: inherit;
border:none;
border-bottom:1px solid #eee;
border: none;
border-bottom: 1px solid #eee;
margin-bottom: 20px;
}
.el-collapse-item__content,.van-collapse-item__content{

.el-collapse-item__content,
.van-collapse-item__content {
padding-bottom: 0;
}
.van-collapse-item__content{

.van-collapse-item__content {
padding: 0 2px;
}
&--arrow{
.el-collapse-item__arrow,.van-icon-arrow {
display: none;

&--arrow {

.el-collapse-item__arrow,
.van-icon-arrow {
display: none;
}
}
.van-hairline--top-bottom::after, .van-hairline-unset--top-bottom::after{

.van-hairline--top-bottom::after,
.van-hairline-unset--top-bottom::after {
display: none;
}
.van-collapse-item__title{

.van-collapse-item__title {
padding: 0 10px;
display: flex;
align-items: center;
&::after{
left:0 !important;

&::after {
left: 0 !important;
}
}
&--none{

&--none {
margin: 0 !important;
border:none !important;
border: none !important;
}
&--header{
.el-collapse-item__header{

&--header {

&>.el-collapse>.el-collapse-item>.el-collapse-item__header,
&>.el-collapse>.el-collapse-item>div>.el-collapse-item__header {
display: none;
}
}
&--collapse{
.el-collapse-item__arrow,.el-collapse-item__header{

&--collapse {

.el-collapse-item__arrow,
.el-collapse-item__header {
display: flex !important;
}
}

&__item {
margin-bottom: 10px;
background-color: #fff;
border-bottom: 1px solid #eee;
border-radius: 5px;
box-sizing: border-box;

&:last-child {
border-bottom: none;
border-bottom: none;
}
}

Expand All @@ -64,15 +86,17 @@
height: 50px;
line-height: 50px;
box-sizing: border-box;
}
}

&__icon {
margin-right: 8px;
font-size: 20px;
color: rgba(0, 0, 0, 0.85);
margin-right: 8px;
font-size: 20px;
color: rgba(0, 0, 0, 0.85);
}

&__title {
font-size: 16px;
font-weight: 500;
color: rgba(0, 0, 0, 0.85);
font-size: 16px;
font-weight: 500;
color: rgba(0, 0, 0, 0.85);
}
}
}

0 comments on commit fb43159

Please sign in to comment.