[FEATURE] Searchbar input 中添加 placeholder-class,支持自定义 placeholder 的样式

Open
#270 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
55/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Stale
Tech stack
typescript
Domain
frontend

Research direction

Open src/components/searchbar/searchbar.wxml and inspect the existing input element. Add the requested placeholder-class support there, then verify that consumers can provide a custom class and style the placeholder as intended.

Written by the indexing model from the issue text.

Description

https://github.com/wechat-miniprogram/weui-miniprogram/blob/master/src/components/searchbar/searchbar.wxml

希望 input 中增加一个 placeholder-class

        <input
            aria-controls="searchResult"
            type="text"
            class="weui-search-bar__input"
            placeholder-class="xxx"        <<===   支持自定义style
            placeholder="{{placeholder}}"
            value="{{value}}"
            focus="{{focus}}"
            bindblur="inputBlur"
            bindfocus="inputFocus"
            bindinput="inputChange"
        />
Dominant language
TypeScript
Stars
2.4k
Forks
549
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from wechat-miniprogram/weui-miniprogram

All issues in wechat-miniprogram/weui-miniprogram

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.