WebApp【公共组件库】@前端(For Git Submodule)
Tevin
2021-04-23 1072e5fcf457a1184c8e4b81e311f9e2f875b86d
forms/select/CSelect.vue
@@ -26,7 +26,10 @@
                <view class="at-icon at-icon-chevron-right" />
            </AtInput>
        </picker>
        <view v-else-if="selectByPage.length > 5">
        <view
            v-else-if="selectByPage.length > 5"
            @tap="evt => onGoToSelectorPage()"
        >
            <AtInput
                :name="itemRes.name"
                :title="itemRes.label"
@@ -35,7 +38,6 @@
                :error="itemRes.error"
                :placeholder="placeholder"
                :value="chose.name"
                :onFocus="evt=>onGoToSelectorPage()"
            >
                <view class="at-icon at-icon-chevron-right" />
            </AtInput>
@@ -105,6 +107,9 @@
            } else {
                url += '?mode=CSelect';
            }
            if (this.chose && typeof this.chose.value !== 'undefined') {
                url += '&value=' + JSON.stringify(this.chose.value);
            }
            Taro.navigateTo({
                url,
                events: {
@@ -115,7 +120,7 @@
                            value,
                        };
                        this.itemRes.onChange(value);
                        this.onSelectFromPage(data);
                        this.onSelectFromPage && this.onSelectFromPage(data);
                    },
                },
            });