From 5a678cce1b157411f20fbddfaed49c7bc8d9fba7 Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期四, 07 十一月 2024 17:03:13 +0800 Subject: [PATCH] 修改为生产模式 --- miniprogram_npm/tdesign-miniprogram/input/README.md | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 51 insertions(+), 2 deletions(-) diff --git a/miniprogram_npm/tdesign-miniprogram/input/README.md b/miniprogram_npm/tdesign-miniprogram/input/README.md index c91ade1..d9c1dff 100644 --- a/miniprogram_npm/tdesign-miniprogram/input/README.md +++ b/miniprogram_npm/tdesign-miniprogram/input/README.md @@ -6,6 +6,7 @@ --- <span class="coverages-badge" style="margin-right: 10px"><img src="https://img.shields.io/badge/coverages%3A%20lines-97%25-blue" /></span><span class="coverages-badge" style="margin-right: 10px"><img src="https://img.shields.io/badge/coverages%3A%20functions-88%25-blue" /></span><span class="coverages-badge" style="margin-right: 10px"><img src="https://img.shields.io/badge/coverages%3A%20statements-97%25-blue" /></span><span class="coverages-badge" style="margin-right: 10px"><img src="https://img.shields.io/badge/coverages%3A%20branches-92%25-blue" /></span> + ## 寮曞叆 鍏ㄥ眬寮曞叆锛屽湪 miniprogram 鏍圭洰褰曚笅鐨刞app.json`涓厤缃紝灞�閮ㄥ紩鍏ワ紝鍦ㄩ渶瑕佸紩鍏ョ殑椤甸潰鎴栫粍浠剁殑`index.json`涓厤缃�� @@ -17,6 +18,12 @@ ``` ## 浠g爜婕旂ず + +<a href="https://developers.weixin.qq.com/s/Id60eimj76Ss" title="鍦ㄥ紑鍙戣�呭伐鍏蜂腑棰勮鏁堟灉" target="_blank" rel="noopener noreferrer"> 鍦ㄥ紑鍙戣�呭伐鍏蜂腑棰勮鏁堟灉 </a> + +<blockquote style="background-color: #d9e1ff; font-size: 15px; line-height: 26px;margin: 16px 0 0;padding: 16px; border-radius: 6px; color: #0052d9" > +<p>Tips: 璇风‘淇濆紑鍙戣�呭伐鍏蜂负鎵撳紑鐘舵�併�傚鍏ュ紑鍙戣�呭伐鍏峰悗锛屼緷娆℃墽琛岋細npm i > 鏋勫缓npm鍖� > 鍕鹃�� "灏咼S缂栬瘧鎴怑S5"</p> +</blockquote> ### 01 缁勪欢绫诲瀷 @@ -72,8 +79,8 @@ {{ custom }} - ## API + ### Input Props 鍚嶇О | 绫诲瀷 | 榛樿鍊� | 璇存槑 | 蹇呬紶 @@ -82,9 +89,9 @@ layout | String | horizontal | 鏍囬杈撳叆妗嗗竷灞�鏂瑰紡銆傚彲閫夐」锛歷ertical/horizontal | N borderless | Boolean | false | 鏄惁寮�鍚棤杈规妯″紡 | N clearable | Boolean / Object | false | 鏄惁鍙竻绌猴紝榛樿涓嶅惎鍔ㄣ�傚�间负 `true` 琛ㄧず浣跨敤榛樿娓呴櫎绌烘寜閽紝鍊间负 `Object` 琛ㄧず閫忎紶鑷� `icon` | N +clear-trigger | String | always | 娓呯┖鍥炬爣瑙﹀彂鏂瑰紡锛屼粎鍦ㄨ緭鍏ユ鏈夊�兼椂鏈夋晥銆傚彲閫夐」锛歛lways / focus | N disabled | Boolean | false | 鏄惁绂佺敤杈撳叆妗� | N error-message | String | - | 宸插簾寮冦�傞敊璇彁绀烘枃鏈紝鍊间负绌轰笉鏄剧ず锛堝簾寮冨睘鎬э紝濡傛灉闇�瑕侊紝璇锋洿涓轰娇鐢� status 鍜� tips锛� | N -external-classes | Array | - | 缁勪欢绫诲悕锛岀敤浜庤缃粍浠跺灞傚厓绱犮�佽緭鍏ユ銆佸崰浣嶇銆侀敊璇俊鎭瓑鍏冪礌绫诲悕銆俙['t-class','t-class-prefix-icon', 't-class-label', 't-class-input', 't-class-clearable', 't-class-suffix', 't-class-suffix-icon', 't-class-tips']` | N format | Function | - | 銆愬紑鍙戜腑銆戞寚瀹氳緭鍏ユ灞曠ず鍊肩殑鏍煎紡銆俆S 绫诲瀷锛歚InputFormatType` `type InputFormatType = (value: InputValue) => number | string`銆俒璇︾粏绫诲瀷瀹氫箟](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/input/type.ts) | N label | String / Slot | - | 宸︿晶鏂囨湰銆� | N maxcharacter | Number | - | 鐢ㄦ埛鏈�澶氬彲浠ヨ緭鍏ョ殑瀛楃涓暟锛屼竴涓腑鏂囨眽瀛楄〃绀轰袱涓瓧绗﹂暱搴︺�俙maxcharacter` 鍜� `maxlength` 浜岄�変竴浣跨敤 | N @@ -133,3 +140,45 @@ keyboardheightchange | `(height: number, duration: number)` | 閿洏楂樺害鍙戠敓鍙樺寲鐨勬椂鍊欒Е鍙戞浜嬩欢 nicknamereview | `(pass: boolean, timeout: boolean)`| 鐢ㄦ埛鏄电О瀹℃牳瀹屾瘯鍚庤Е鍙戯紝浠呭湪 type 涓� "nickname" 鏃舵湁鏁� click `v0.32.0`| `(trigger: InputTrigger)` | 鐐瑰嚮浜嬩欢銆俒璇︾粏绫诲瀷瀹氫箟](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/input/type.ts)銆�<br/>`type InputTrigger = 'suffix' \| 'suffix-icon';`<br/> + +### CellGroup 澶栭儴鏍峰紡绫� + +绫诲悕 | 璇存槑 +-- | -- +t-class | 鏍硅妭鐐规牱寮忕被 +t-class-prefix-icon | 鍓嶇疆鍥炬爣鏍峰紡绫� +t-class-label | 鏍囬鏍峰紡绫� +t-class-input | 鏍囬鏍峰紡绫� +t-class-clearable | 鏍囬鏍峰紡绫� +t-class-suffix | 鍚庣疆鏍峰紡绫� +t-class-suffix-icon | 鍚庣疆鍥炬爣鏍峰紡绫� +t-class-tips | 鎻愮ず鏍峰紡绫� + +### CSS 鍙橀噺 + +缁勪欢鎻愪緵浜嗕笅鍒� CSS 鍙橀噺锛屽彲鐢ㄤ簬鑷畾涔夋牱寮忋�� +鍚嶇О | 榛樿鍊� | 鎻忚堪 +-- | -- | -- +--td-input-bg-color | @bg-color-container | - +--td-input-border-color | @component-stroke | - +--td-input-border-left-space | 32rpx | - +--td-input-border-radius | @radius-default | - +--td-input-border-right-space | 0 | - +--td-input-default-text-color | @font-gray-1 | - +--td-input-default-tips-color | @font-gray-3 | - +--td-input-disabled-text-color | @text-color-disabled | - +--td-input-error-text-color | @error-color | - +--td-input-error-tips-color | @error-color | - +--td-input-label-max-width | 5em | - +--td-input-label-min-width | 2em | - +--td-input-label-text-color | @font-gray-1 | - +--td-input-placeholder-text-color | @text-color-placeholder | - +--td-input-placeholder-text-font-size | @font-size-m | - +--td-input-prefix-icon-color | @font-gray-1 | - +--td-input-success-text-color | @success-color | - +--td-input-success-tips-color | @success-color | - +--td-input-suffix-icon-color | @font-gray-3 | - +--td-input-suffix-text-color | @font-gray-1 | - +--td-input-vertical-padding | 32rpx | - +--td-input-warning-text-color | @warning-color | - +--td-input-warning-tips-color | @warning-color | - -- Gitblit v1.9.3