From 3780ef9f6b74df523b504f90cfa3bcfe8e829ae9 Mon Sep 17 00:00:00 2001 From: chenjiajian <770230504@qq.com> Date: Mon, 8 May 2023 14:15:40 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=A2=9E=E5=8A=A0tag=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Readme.md | 4 +- src/index.js | 1 + src/progress/index.js | 13 +-- src/result/index.js | 5 +- src/tag/index.js | 216 ++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 224 insertions(+), 15 deletions(-) create mode 100644 src/tag/index.js diff --git a/Readme.md b/Readme.md index 6563594..00eb3fe 100644 --- a/Readme.md +++ b/Readme.md @@ -16,7 +16,7 @@ - @bd/core 针对`web components`的核心封装库, 以数据驱动, 可以更方便的开发 wc 组件 -### 开发进度 && 计划 (39/55) +### 开发进度 && 计划 (40/55) - [x] `wc-card` 卡片组件 - [x] `wc-space` 间隔组件 @@ -64,7 +64,7 @@ - [x] `wc-steps` 步骤条组件 - [x] `wc-timeline` 时间线组件 - [ ] `wc-layout` 布局组件 -- [ ] `wc-tag` 标签组件 +- [x] `wc-tag` 标签组件 - [ ] `wc-tooltip` 文字提示组件 - [x] `wc-popconfirm` 气泡确认框组件 - [ ] `wc-chatbubble` 聊天气泡组件 diff --git a/src/index.js b/src/index.js index a6a7688..4abf854 100644 --- a/src/index.js +++ b/src/index.js @@ -23,3 +23,4 @@ import './tabs/index.js' import './timeline/index.js' import './result/index.js' import './progress/index.js' +import './tag/index.js' diff --git a/src/progress/index.js b/src/progress/index.js index 82cf453..853e8c6 100644 --- a/src/progress/index.js +++ b/src/progress/index.js @@ -4,7 +4,7 @@ * @date 2023/04/28 16:14:10 */ -import { css, html, Component, styleMap, svg } from '@bd/core' +import { css, html, Component, styleMap } from '@bd/core' class Progress extends Component { static props = { @@ -57,12 +57,6 @@ class Progress extends Component { default: false, attribute: true }, - - format: { - type: Function, - default: null, - attribute: false - }, 'back-color': { type: String, default: '#ebeef5', @@ -89,13 +83,14 @@ class Progress extends Component { :host([type='line']) { width: 100%; .progress-text { - width: auto; + width: 40px; margin-left: 5px; display: inline-block; } } .progress-bar { display: inline-block; + width: 100%; vertical-align: middle; } .bar-outer, @@ -271,7 +266,7 @@ class Progress extends Component { } return html` -