WebApp【公共组件库】@前端(For Git Submodule)
Tevin
2023-07-31 ad01ea7d8ea42d9df787b6847c2d4272c5740c5b
plugins/filter/CFilter.vue
@@ -4,7 +4,10 @@
 */
<template>
    <view class="c-filter">
    <view
        class="c-filter"
        ref="filter"
    >
        <view
            class="c-filter-bar"
            v-if="bar"
@@ -116,8 +119,6 @@
            filterRes: this.filterData || {},
            // 抽屉显示隐藏
            drawerShow: false,
            // 抽屉内容显示隐藏(抽屉展开动画完成后再渲染表单,否则出现动画卡顿)
            // drawerDisplay: false,
            // 面板项有已选
            itemsFilled: false,
            // 本次打开是否有改变
@@ -127,7 +128,6 @@
    methods: {
        handleOpen() {
            this.drawerShow = true;
            // $(this.$refs.drawer).addClass('on');
        },
        handleBarChange(name, value) {
            this.$set(this.filterRes, name, value);
@@ -171,7 +171,6 @@
            this.onChange(this.filterRes);
        },
        handleFinish() {
            // $(this.$refs.drawer).removeClass('on');
            this.drawerShow = false;
            // 有项目改变时,发送变化
            if (this.itemsChanged) {
@@ -180,6 +179,8 @@
            }
        },
    },
    mounted() {},
    mounted() {
        $(this.$refs.filter).parent().css({ transform: 'translate(0,0);' });
    },
};
</script>