Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【loremore 组件 可以增加一个手动点击模式】 #717

Open
wlxweb opened this issue Nov 17, 2024 · 0 comments
Open

【loremore 组件 可以增加一个手动点击模式】 #717

wlxweb opened this issue Nov 17, 2024 · 0 comments
Labels
feature 新特性

Comments

@wlxweb
Copy link

wlxweb commented Nov 17, 2024

这个功能解决了什么问题?

增加手动模式,让用户决定是否需要继续夹杂

你期望的 API 是什么样子的?

  <view :class="['wd-loadmore', customClass]" :style="customStyle" @click="reload">
    <wd-divider v-if="state === 'finished'">{{ finishedText || translate('finished') }}</wd-divider>
    <block v-if="state === 'error'">
      <text class="wd-loadmore__text">{{ errorText || translate('error') }}</text>
      <text class="wd-loadmore__text is-light">{{ translate('retry') }}</text>
      <wd-icon name="refresh" custom-class="wd-loadmore__refresh" />
    </block>
    <block v-if="state === 'loading'">
      <wd-loading v-bind="customLoadingProps" />
      <text class="wd-loadmore__text">{{ loadingText || translate('loading') }}</text>
    </block>
    <block v-if="!state">
      <wd-loading v-bind="customLoadingProps" />
      <text class="wd-loadmore__text">点击加载更多</text>
    </block>
  </view>
</template>
@wlxweb wlxweb added the feature: need confirm 待确认的新特性 label Nov 17, 2024
@Moonofweisheng Moonofweisheng added feature 新特性 and removed feature: need confirm 待确认的新特性 labels Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 新特性
Projects
None yet
Development

No branches or pull requests

2 participants