@ddwl/ddwl-ui 1.0.19 → 1.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,22 @@
1
+ ## [1.0.21](https://121.40.23.60:51888/frontend/ddwl-ui/compare/v1.0.20...v1.0.21) (2025-07-16)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * d-import-file 默认提示文案上传格式/文件大小跟随props ([a41f7d3](https://121.40.23.60:51888/frontend/ddwl-ui/commits/a41f7d386d4b3a860190772a001fb3c36c76864f))
7
+
8
+
9
+
10
+ ## [1.0.20](https://121.40.23.60:51888/frontend/ddwl-ui/compare/v1.0.19...v1.0.20) (2025-07-11)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * 修复d-dialog/d-drawer title透传出现tootip问题 ([92d477e](https://121.40.23.60:51888/frontend/ddwl-ui/commits/92d477eb5846622b96305053d1d06fa1896fb498))
16
+ * 修复d-form direction属性为line时布局错乱问题 ([0329f88](https://121.40.23.60:51888/frontend/ddwl-ui/commits/0329f888f8fc4bd61c328179fe2ae0965ef57543))
17
+
18
+
19
+
1
20
  ## [1.0.19](https://121.40.23.60:51888/frontend/ddwl-ui/compare/v1.0.18...v1.0.19) (2025-07-09)
2
21
 
3
22
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ddwl/ddwl-ui",
3
- "version": "1.0.19",
3
+ "version": "1.0.21",
4
4
  "private": false,
5
5
  "main": "src/main.js",
6
6
  "description": "ddwl组件库",
@@ -4,6 +4,7 @@
4
4
  :class="fullscreen ? 'cover-screen-dialog' : ''"
5
5
  class="d-dialog"
6
6
  v-bind="$attrs"
7
+ :title="title"
7
8
  :close-on-click-modal="closeOnClickModal"
8
9
  :visible.sync="visible"
9
10
  :width="width"
@@ -46,6 +47,10 @@ export default {
46
47
  type: Boolean,
47
48
  default: false
48
49
  },
50
+ title: {
51
+ type: String,
52
+ default: ''
53
+ },
49
54
  closeOnClickModal: {
50
55
  type: Boolean,
51
56
  default: false
@@ -2,6 +2,7 @@
2
2
  <template>
3
3
  <el-drawer
4
4
  v-bind="$attrs"
5
+ :title="title"
5
6
  :close-on-click-modal="false"
6
7
  :visible.sync="visible"
7
8
  :size="width"
@@ -45,6 +46,10 @@ export default {
45
46
  type: Boolean,
46
47
  default: false
47
48
  },
49
+ title: {
50
+ type: String,
51
+ default: ''
52
+ },
48
53
  showButton: {
49
54
  type: Boolean,
50
55
  default: true
@@ -23,7 +23,7 @@
23
23
  :class="{ 'custom-form-item-top': item.direction === 'vertical' || direction === 'vertical' }"
24
24
  :label="item.label"
25
25
  :prop="item.prop"
26
- :label-width="item.direction === 'line' ? (item.labelWidth || labelWidth) : '100%'"
26
+ :label-width="(item.direction === 'line' || direction === 'line') ? (item.labelWidth || labelWidth) : '100%'"
27
27
  :rules="item.rules || (item.required ? [{ required: true, message: placeholder(item) }] : null)"
28
28
  v-bind="item.itemProps"
29
29
  >
@@ -49,7 +49,7 @@
49
49
  </el-button>
50
50
  </el-form>
51
51
  <slot>
52
- <p>1. 支持导入格式为xlsxxls的文件,且文件大小不可超过5M</p>
52
+ <p>1. 支持导入格式为{{ fileType.join('') }}的文件,且文件大小不可超过{{ fileSize }}M</p>
53
53
  <p>2. 模板的表头不可更改,不可删除</p>
54
54
  <p>3. 若导入数据存在编码一致的情况则会更新原有数据</p>
55
55
  <p>4. 若导入过程中有问题,需调整模板内容后再重新导入</p>