Skip to content

Commit

Permalink
build v2.9.3
Browse files Browse the repository at this point in the history
  • Loading branch information
smallweis committed Mar 18, 2022
1 parent 8089e06 commit 9061ea1
Show file tree
Hide file tree
Showing 55 changed files with 670 additions and 723 deletions.
1 change: 1 addition & 0 deletions build/alias.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ module.exports = {
plugin: resolve('src/plugin'),
utils: resolve('src/utils'),
mixins: resolve('packages/mixins'),
common: resolve('packages/core'),
packages: resolve('packages')
};
131 changes: 32 additions & 99 deletions examples/element-ui/dialog/dialog.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,89 +29,18 @@
data() {
return {
option: {
labelWidth: 150,
formHeight: 200,
submitText: '完成',
column: [
{
label: "房产证号",
prop: "name1",
suffixIcon: 'el-icon-tickets',
prefixIcon: 'el-icon-tickets',
rules: [{
required: true,
message: "请输入部门名称",
trigger: "blur"
}],
},

{
label: "土地来源",
prop: "type",
type: "select",


},
{
label: "是否有配偶",
prop: "grade1",
type: "checkbox",
},
{
label: "证件类型",
prop: "idType",
type: "select",

},
{
label: "证件号码",
prop: "idNumber",

label: "姓名",
prop: "name",
span: 24,
rules: [{
required: true,
message: "请输入证件号",
message: "请输入姓名",
trigger: "blur"
}],
},
{
label: "姓名",
prop: "customerName",
mock: {
type: 'name'
},
},
{
label: "出生日期",
prop: "dat3e",
type: "date",
format: 'yyyy-MM-dd',
valueFormat: 'yyyy-MM-dd',
mock: {
type: 'datetime',
format: 'yyyy-MM-dd'
},
},
{
label: "手机号",


prop: "tel",
type: 'input'
},
{
label: "配偶是否共有人",
prop: "grad2e1",
type: "checkbox",

},
{
label: "是否有其他共有人",
prop: "gr2ad2e1",
type: "checkbox",

}

]
}]
}]
},
form: {}
}
Expand All @@ -120,41 +49,45 @@
showDialog() {
this.$DialogForm.show({
title: '弹窗页面',
width: '80%',
width: '30%',
menuPosition: 'right',
option: this.option,
beforeClose: () => {
beforeClose: (done) => {
this.$message.success('关闭前方法')
done()
},
}).then(res => {
console.log(res.data);
this.$message.success('关闭等待框')
setTimeout(() => {
res.done()
callback: (res) => {
console.log(res.data);
this.$message.success('关闭等待框')
setTimeout(() => {
this.$message.success('关闭弹窗')
res.close()
res.done()
setTimeout(() => {
this.$message.success('关闭弹窗')
res.close()
}, 1000)
}, 1000)
}, 1000)
});
}
})

},
showDialog1() {
this.$DialogForm.show({
title: '弹窗页面(带上数据)',
width: '50%',
data: { name1: '测试数据' },
option: this.option
}).then(res => {
console.log(res.data);
this.$message.success('关闭等待框')
setTimeout(() => {
res.done()
data: { name: '测试数据' },
option: this.option,
callback: (res) => {
console.log(res.data);
this.$message.success('关闭等待框')
setTimeout(() => {
this.$message.success('关闭弹窗')
res.close()
res.done()
setTimeout(() => {
this.$message.success('关闭弹窗')
res.close()
}, 1000)
}, 1000)
}, 1000)
});
}
})
}
}
})
Expand Down
8 changes: 4 additions & 4 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ const webpack = require("webpack");
const webpackConf = require("./build/build.js");

// 构建webpack配置
gulp.task("webpack", async function () {
await webpack(webpackConf, function (err, stats) {
gulp.task("webpack", async function() {
await webpack(webpackConf, function(err, stats) {
if (err) {
console.log(err);
}
});
});

// 处理样式的配置
gulp.task("compile", function () {
gulp.task("compile", function() {
return gulp
.src("./styles/index.scss")
.pipe(sass.sync())
Expand All @@ -33,7 +33,7 @@ gulp.task("compile", function () {
gulp.task("build", gulp.series(["webpack", "compile"]));

// 监听文件变化
gulp.task("watch", async function () {
gulp.task("watch", async function() {
gulp.watch(["./src/**", "./packages/**"], gulp.series(["webpack"]));
gulp.watch(["./styles/**"], gulp.series(["compile"]));
});
Loading

0 comments on commit 9061ea1

Please sign in to comment.