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` -