WebApp【公共组件库】@前端(For Git Submodule)
Tevin
2022-03-02 cb3098b11e63171ea13865e9ea67e19fe15ef079
Merge branch 'master' of ssh://dev.zhiheiot.com:29418/mob-components
4 files modified
35 ■■■■ changed files
forms/datePicker/CDatePicker.vue 10 ●●●● patch | view | raw | blame | history
forms/datePicker/cDatePicker.scss 1 ●●●● patch | view | raw | blame | history
forms/select/CSelect.vue 20 ●●●● patch | view | raw | blame | history
forms/select/cSelect.scss 4 ●●●● patch | view | raw | blame | history
forms/datePicker/CDatePicker.vue
@@ -6,7 +6,7 @@
<template>
    <view
        class="c-date-picker"
        :class="readyOnly ? 'read-only':''"
        :class="readOnly ? 'read-only':''"
    >
        <CDateRangeAction
            v-if="mode==='dateRange'"
@@ -23,7 +23,7 @@
                :placeholder="placeholder"
            >
                <view
                    v-show="!readyOnly"
                    v-show="!readOnly"
                    class="at-icon at-icon-chevron-right"
                />
            </AtInput>
@@ -43,7 +43,7 @@
                :placeholder="placeholder"
            >
                <view
                    v-show="!readyOnly"
                    v-show="!readOnly"
                    class="at-icon at-icon-chevron-right"
                />
            </AtInput>
@@ -65,7 +65,7 @@
                    :placeholder="placeholder"
                >
                    <view
                        v-show="!readyOnly"
                        v-show="!readOnly"
                        class="at-icon at-icon-chevron-right"
                    />
                </AtInput>
@@ -104,7 +104,7 @@
        // 结束日期
        limitEnd: String,
        // 是否只读
        readyOnly: {
        readOnly: {
            type: Boolean,
            default: false,
        },
forms/datePicker/cDatePicker.scss
@@ -8,6 +8,7 @@
.c-date-picker {
    &.read-only {
        pointer-events: none;
        background-color: #fafafa;
    }
    .at-input__input {
        .weui-input {
forms/select/CSelect.vue
@@ -4,7 +4,10 @@
 */
<template>
    <view class="c-select">
    <view
        class="c-select"
        :class="readOnly ? 'read-only':''"
    >
        <!-- 下拉选择模式 -->
        <view
            v-if="!selectByPage"
@@ -28,7 +31,10 @@
                    :placeholder="placeholder"
                    :value="selected"
                >
                    <view class="at-icon at-icon-chevron-right" />
                    <view
                        v-show="!readOnly"
                        class="at-icon at-icon-chevron-right"
                    />
                </AtInput>
            </picker>
            <view class="c-select-slot">
@@ -49,7 +55,10 @@
                :placeholder="placeholder"
                :value="choose.name"
            >
                <view class="at-icon at-icon-chevron-right" />
                <view
                    v-show="!readOnly"
                    class="at-icon at-icon-chevron-right"
                />
            </AtInput>
        </view>
    </view>
@@ -77,6 +86,11 @@
        selectByPage: String,
        // 页面模式下,选择完成后的回调
        onSelectFromPage: Function,
        // 只读模式
        readOnly: {
            type: Boolean,
            default: false,
        },
    },
    data() {
        return {
forms/select/cSelect.scss
@@ -6,6 +6,10 @@
@import "../../common/sassMixin";
.c-select {
    &.read-only {
        pointer-events: none;
        background-color: #fafafa;
    }
    .at-input__input {
        .weui-input {
            pointer-events: none;