Skip to content

Commit

Permalink
build v3.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
smallweis committed Oct 16, 2024
1 parent 827c359 commit 0e64346
Show file tree
Hide file tree
Showing 17 changed files with 27,009 additions and 1,539 deletions.
14,955 changes: 14,954 additions & 1 deletion examples/cdn/element-plus/index.css

Large diffs are not rendered by default.

109 changes: 70 additions & 39 deletions examples/cdn/element-plus/index.full.min.js

Large diffs are not rendered by default.

4,574 changes: 3,211 additions & 1,363 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.

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
{
"name": "@smallwei/avue",
"version": "3.5.2",
"version": "3.5.3",
"description": "A Magic Configurable Web Framework",
"main": "lib/avue.min.js",
"unpkg": "lib/avue.min.js",
"jsdelivr": "lib/avue.min.js",
"scripts": {
"bootstrap": "yarn --registry https://registry.npm.taobao.org || npm install --registry https://registry.npm.taobao.org && yarn gen:version",
"dev": "yarn gen:version && cross-env TARGET=dev gulp watch",
"dev": "pnpm gen:version && cross-env TARGET=dev gulp watch",
"gen:version": "node build/version.js",
"build": "yarn gen:version && cross-env TARGET=prod UINAME=element-ui gulp build",
"all": "yarn build && yarn dev"
"build": "pnpm gen:version && cross-env TARGET=prod UINAME=element-ui gulp build",
"all": "pnpm build && pnpm dev"
},
"keywords": [
"vue",
Expand Down Expand Up @@ -64,7 +63,8 @@
"dependencies": {
"@element-plus/icons-vue": "^2.0.6",
"countup.js": "^1.9.3",
"dayjs": "^1.10.4"
"dayjs": "^1.10.4",
"loadsh": "^0.0.4"
},
"files": [
"lib",
Expand Down
1 change: 0 additions & 1 deletion packages/element-ui/checkbox/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
@click="handleClick">
<component :is="componentName"
v-for="(item,index) in dic"
:label="item[valueKey]"
:border="border"
:size="size"
:value="item[valueKey]"
Expand Down
5 changes: 3 additions & 2 deletions packages/element-ui/crud/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ export default create({
'tab-click',
'error',
'date-change',
'grid-status-change',
'update:search',
'update:page',
'search-change',
Expand Down Expand Up @@ -567,8 +568,8 @@ export default create({
return this.tableOption[name] ? this.tableOption[name].trim() : config[name];
},
//对部分表单字段进行校验的方法
validateField (val) {
return this.$refs.dialogForm.$refs.tableForm.validateField(val);
validateField (val, fn) {
return this.$refs.dialogForm.$refs.tableForm.validateField(val, fn);
},
clearSelection () {
this.$emit('selection-clear', this.deepClone(this.tableSelect))
Expand Down
63 changes: 22 additions & 41 deletions packages/element-ui/crud/menu/header-menu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -112,47 +112,28 @@ export default create({
data () {
return {
dateCreate: false,
shortcuts: [{
text: '今日',
onClick (picker) {
const end = new Date();
const start = new Date();
start.setTime(start.getTime());
picker.$emit('pick', [start, end]);
}
}, {
text: '昨日',
onClick (picker) {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 1);
picker.$emit('pick', [start, end]);
}
}, {
text: '最近一周',
onClick (picker) {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
picker.$emit('pick', [start, end]);
}
}, {
text: '最近一个月',
onClick (picker) {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
picker.$emit('pick', [start, end]);
}
}, {
text: '最近三个月',
onClick (picker) {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
picker.$emit('pick', [start, end]);
}
}],
shortcuts: [
{
text: '今天',
value: new Date(),
},
{
text: '昨天',
value: () => {
const date = new Date();
date.setTime(date.getTime() - 3600 * 1000 * 24);
return date;
},
},
{
text: '一周前',
value: () => {
const date = new Date();
date.setTime(date.getTime() - 3600 * 1000 * 24 * 7);
return date;
},
},
],
config: config
};
},
Expand Down
2 changes: 1 addition & 1 deletion packages/element-ui/date/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
v-if="$slots.default">
</slot>
<span class="el-date-table-cell__text"
v-else>{{ cell.text }}</span>
v-else>{{ cell.renderText || cell.text }}</span>
</div>
</template>
</el-date-picker>
Expand Down
4 changes: 2 additions & 2 deletions packages/element-ui/form/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -554,8 +554,8 @@ export default create({
return isPx ? this.setPx(result) : result
},
//对部分表单字段进行校验的方法
validateField (val) {
return this.$refs.form.validateField(val);
validateField (val, fn) {
return this.$refs.form.validateField(val, fn);
},
scrollToField (val) {
return this.$refs.form.scrollToField(val);
Expand Down
1 change: 0 additions & 1 deletion packages/element-ui/radio/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
:disabled="disabled">
<component :is="componentName"
v-for="(item,index) in dic"
:label="item[valueKey]"
:value="item[valueKey]"
:border="border"
:readonly="readonly"
Expand Down
Loading

0 comments on commit 0e64346

Please sign in to comment.