This commit is contained in:
ln1778 2024-09-12 19:23:13 +08:00
parent 1d6e67d6ed
commit bd2b674dc6
9 changed files with 22 additions and 21 deletions

View File

@ -1,6 +1,6 @@
{
"name": "ag-element-ui",
"version": "0.1.13",
"version": "0.1.17",
"main": "packages/index.js",
"scripts": {
"dev": "vue-cli-service serve",

View File

@ -38,7 +38,7 @@
<agMultifunctionSearch v-bind="item" v-model="formValue[item.enName]" v-if="item.type=='ag-multifunction-search'" size="small" clearable/>
<agQuery v-bind="item" v-model="formValue[item.enName]" v-if="item.type=='ag-query'" size="small" clearable/>
<ag-mution-checkbox :datas="item.datas" v-bind="item" :placeholder="item.placeholder" v-model="formValue[item.enName]" v-if="item.type=='ag-mution-checkbox'" size="small"> </ag-mution-checkbox>
<ag-multion-datte-picker v-bind="item" v-model="formValue[item.enName]" v-if="item.type=='ag-multion-datte-picker'" size="small"/>
<ag-multion-date-picker v-bind="item" v-model="formValue[item.enName]" v-if="item.type=='ag-multion-datte-picker'" size="small"/>
</div>
</el-form-item>
</ag-col>
@ -65,13 +65,13 @@ import agColorPicker from './../../agColorPicker/src/index.vue';
import agNumberRange from './../../agNumberRange/src/index.vue';
import agMultifunctionSearch from './../../agMultifunctionSearch/src/index.vue';
import agQuery from './../../agQuery/src/index.vue';
import agMultionDattePicker from '../../agMultionDattePicker';
import agMultionDatePicker from '../../agMultionDatePicker';
export default{
name:"agForm",
components:{
agMultionDattePicker,
agMultionDatePicker,
agInput:agInput,
agDatePicker,
agSelect,

View File

@ -0,0 +1,9 @@
import agMultionDatePicker from './src';
// 为组件提供 install 安装方法,供按需引入
agMultionDatePicker.install = function (Vue) {
Vue.component(agMultionDatePicker.name, agMultionDatePicker)
}
// 导出组件
export default agMultionDatePicker;

View File

@ -29,7 +29,7 @@ import agSelect from "../../agSelect/src/index.vue";
import agDatePicker from "../../agDatePicker/src/index.vue";
export default {
name: "agMultionDattePicker",
name: "agMultionDatePicker",
components: {
agSelect,
agDatePicker,

View File

@ -1,9 +0,0 @@
import agMultionDattePicker from './src';
// 为组件提供 install 安装方法,供按需引入
agMultionDattePicker.install = function (Vue) {
Vue.component(agMultionDattePicker.name, agMultionDattePicker)
}
// 导出组件
export default agMultionDattePicker;

View File

@ -10,8 +10,7 @@
<div v-else>
{{scope.row[item.prop]}}
</div>
</template>
</template>
</el-table-column>
</el-table>
<div class="agtablefooter">

View File

@ -208,8 +208,10 @@
this.$emit('onRemove',file,this.imageList);
},
handlePictureCardPreview(file) {
this.dialogImageUrl = file.url;
this.dialogVisible = true;
if(file.type.indexOf('image/')>-1){
this.dialogImageUrl = file.url;
this.dialogVisible = true;
}
},
onUpdate(e){
if(this.limit<=this.imageList.length){

View File

@ -15,7 +15,7 @@ import agMutionCheckbox from './agMutionCheckbox';
import agMultifunctionSearch from './agMultifunctionSearch';
import agDatePicker from "./agDatePicker";
import agNumberRange from "./agNumberRange";
import agMultionDattePicker from "./agMultionDattePicker";
import agMultionDatePicker from "./agMultionDatePicker";
// 注册组件
@ -38,7 +38,7 @@ import agMultionDattePicker from "./agMultionDattePicker";
agMutionCheckbox,
agMultifunctionSearch,
agNumberRange,
agMultionDattePicker
agMultionDatePicker
]
// 定义 install 方法,接收 Vue 作为参数(使用 use 注册插件,那么所有的组件都会被注册)

View File

@ -68,7 +68,7 @@
</el-select>
<el-button slot="append" icon="el-icon-search"></el-button>
</el-input> -->
<ag-multion-datte-picker size="small"
<ag-multion-date-picker size="small"
ref="ttt"
v-model="datevalues"
:showExtra="true"