@ddwl/ddwl-ui 1.0.5 → 1.0.7
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 +19 -0
- package/bump.config.js +1 -1
- package/package.json +5 -2
- package/src/lib/slots/dict.vue +3 -3
- package/src/lib/slots/file.vue +1 -1
- package/src/main.js +2 -1
- package/src/packages/descriptions/index.vue +2 -2
- package/src/packages/dialog/index.vue +6 -6
- package/src/packages/drawer/index.vue +6 -6
- package/src/packages/form/index.vue +4 -4
- package/src/packages/form-item/index.vue +3 -3
- package/src/packages/search-form/index.vue +2 -2
- package/src/packages/search-table/index.vue +1 -1
- package/src/packages/table/index.vue +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
## [1.0.7](https://121.40.23.60:51888/frontend/ddwl-ui/compare/v1.0.6...v1.0.7) (2025-07-04)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* 字典参数绑定 ([0ea73e5](https://121.40.23.60:51888/frontend/ddwl-ui/commits/0ea73e5924b0dae3b9b8d3b58ed93f9a7121af6f))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
## [1.0.6](https://121.40.23.60:51888/frontend/ddwl-ui/compare/v1.0.5...v1.0.6) (2025-07-04)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* d-table/d-descriptions/d-form关键字参数名修改 ([69ea8ce](https://121.40.23.60:51888/frontend/ddwl-ui/commits/69ea8cef41ce4d8504e166e00bdd0b561ba0788f))
|
|
16
|
+
* d-table拖拽参数名修改 ([1b62a8d](https://121.40.23.60:51888/frontend/ddwl-ui/commits/1b62a8df5019b1666e791776ce32d6b4773c66ae))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
1
20
|
## [1.0.5](https://121.40.23.60:51888/frontend/ddwl-ui/compare/v1.0.4...v1.0.5) (2025-07-04)
|
|
2
21
|
|
|
3
22
|
|
package/bump.config.js
CHANGED
package/package.json
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ddwl/ddwl-ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "src/main.js",
|
|
6
6
|
"description": "ddwl组件库",
|
|
7
7
|
"author": "dingshengfei",
|
|
8
8
|
"license": "MIT",
|
|
9
|
+
"publishConfig": {
|
|
10
|
+
"registry": "https://registry.npmjs.org"
|
|
11
|
+
},
|
|
9
12
|
"scripts": {
|
|
10
13
|
"dev": "vue-cli-service serve",
|
|
11
14
|
"build": "vue-cli-service build",
|
|
12
|
-
"release": "bumpp -r"
|
|
15
|
+
"release": "bumpp -r && npm publish --access=public"
|
|
13
16
|
},
|
|
14
17
|
"dependencies": {
|
|
15
18
|
"@vue/eslint-config-standard": "^8.0.1",
|
package/src/lib/slots/dict.vue
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
<script>
|
|
7
7
|
export default {
|
|
8
|
-
name: '
|
|
8
|
+
name: 'DictSlot',
|
|
9
9
|
components: {},
|
|
10
10
|
props: {
|
|
11
11
|
row: {
|
|
@@ -29,10 +29,10 @@ export default {
|
|
|
29
29
|
computed: {
|
|
30
30
|
dictText () {
|
|
31
31
|
if (Array.isArray(this.row[this.props])) {
|
|
32
|
-
const result = this.$enum.getLabels(this.code, this.row[this.props])
|
|
32
|
+
const result = this.$DDWL.enum.getLabels(this.code, this.row[this.props])
|
|
33
33
|
return result?.length ? result.join(',') : ''
|
|
34
34
|
} else {
|
|
35
|
-
return this.$enum.getLabel(this.code, this.row[this.props])
|
|
35
|
+
return this.$DDWL.enum.getLabel(this.code, this.row[this.props])
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
},
|
package/src/lib/slots/file.vue
CHANGED
package/src/main.js
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
>
|
|
10
10
|
<el-descriptions-item
|
|
11
11
|
v-for="item in config"
|
|
12
|
-
:key="item.
|
|
12
|
+
:key="item.prop"
|
|
13
13
|
v-bind="item"
|
|
14
14
|
v-on="$listeners"
|
|
15
15
|
>
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
:row="data"
|
|
26
26
|
/>
|
|
27
27
|
<item-render v-else-if="item.render" :scope="data" :render="item.render" />
|
|
28
|
-
<span v-else>{{ data[item.
|
|
28
|
+
<span v-else>{{ data[item.prop] }}</span>
|
|
29
29
|
</template>
|
|
30
30
|
</el-descriptions-item>
|
|
31
31
|
</el-descriptions>
|
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
<div v-if="showButton" class="ar">
|
|
20
20
|
<el-button
|
|
21
21
|
type="primary"
|
|
22
|
-
:icon="
|
|
22
|
+
:icon="submitButtonIcon"
|
|
23
23
|
:loading="loading"
|
|
24
24
|
@click="submit"
|
|
25
25
|
>
|
|
26
|
-
{{
|
|
26
|
+
{{ submitButtonText }}
|
|
27
27
|
</el-button>
|
|
28
28
|
<el-button @click="cancel">
|
|
29
|
-
{{
|
|
29
|
+
{{ cancelButtonText }}
|
|
30
30
|
</el-button>
|
|
31
31
|
</div>
|
|
32
32
|
</template>
|
|
@@ -54,15 +54,15 @@ export default {
|
|
|
54
54
|
type: Boolean,
|
|
55
55
|
default: true
|
|
56
56
|
},
|
|
57
|
-
|
|
57
|
+
submitButtonText: {
|
|
58
58
|
type: String,
|
|
59
59
|
default: '确定'
|
|
60
60
|
},
|
|
61
|
-
|
|
61
|
+
submitButtonIcon: {
|
|
62
62
|
type: String,
|
|
63
63
|
default: ''
|
|
64
64
|
},
|
|
65
|
-
|
|
65
|
+
cancelButtonText: {
|
|
66
66
|
type: String,
|
|
67
67
|
default: '取消'
|
|
68
68
|
},
|
|
@@ -18,14 +18,14 @@
|
|
|
18
18
|
<div v-if="showButton" class="ar mt16">
|
|
19
19
|
<el-button
|
|
20
20
|
type="primary"
|
|
21
|
-
:icon="
|
|
21
|
+
:icon="submitButtonIcon"
|
|
22
22
|
:loading="loading"
|
|
23
23
|
@click="submit"
|
|
24
24
|
>
|
|
25
|
-
{{
|
|
25
|
+
{{ submitButtonText }}
|
|
26
26
|
</el-button>
|
|
27
27
|
<el-button @click="cancel">
|
|
28
|
-
{{
|
|
28
|
+
{{ cancelButtonText }}
|
|
29
29
|
</el-button>
|
|
30
30
|
</div>
|
|
31
31
|
</div>
|
|
@@ -49,15 +49,15 @@ export default {
|
|
|
49
49
|
type: Boolean,
|
|
50
50
|
default: true
|
|
51
51
|
},
|
|
52
|
-
|
|
52
|
+
submitButtonText: {
|
|
53
53
|
type: String,
|
|
54
54
|
default: '确定'
|
|
55
55
|
},
|
|
56
|
-
|
|
56
|
+
submitButtonIcon: {
|
|
57
57
|
type: String,
|
|
58
58
|
default: ''
|
|
59
59
|
},
|
|
60
|
-
|
|
60
|
+
cancelButtonText: {
|
|
61
61
|
type: String,
|
|
62
62
|
default: '取消'
|
|
63
63
|
},
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<component
|
|
15
15
|
:is="grid ? 'el-col' : 'div'"
|
|
16
16
|
v-if="!item.hide"
|
|
17
|
-
:key="item.
|
|
17
|
+
:key="item.prop"
|
|
18
18
|
:class="item.className"
|
|
19
19
|
:span="item.span || 24"
|
|
20
20
|
>
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
class="d-form-item"
|
|
23
23
|
:class="{ 'custom-form-item-top': item.direction === 'vertical' || direction === 'vertical' }"
|
|
24
24
|
:label="item.label"
|
|
25
|
-
:prop="item.
|
|
25
|
+
:prop="item.prop"
|
|
26
26
|
:label-width="item.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"
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
:class="item.innerClass"
|
|
39
39
|
:style="item.style"
|
|
40
40
|
>
|
|
41
|
-
{{ item.text || source[item.
|
|
41
|
+
{{ item.text || source[item.prop] }}
|
|
42
42
|
</div>
|
|
43
43
|
<template v-else>
|
|
44
|
-
<form-item :ref="item.
|
|
44
|
+
<form-item :ref="item.prop" v-model="source[item.prop]" :config="item" />
|
|
45
45
|
</template>
|
|
46
46
|
<span v-if="item.sufText" class="ml8">{{ item.sufText }}</span>
|
|
47
47
|
</el-form-item>
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
</el-radio-group>
|
|
25
25
|
<el-cascader
|
|
26
26
|
v-if="config.component === 'el-cascader'"
|
|
27
|
-
:ref="config.
|
|
27
|
+
:ref="config.prop"
|
|
28
28
|
v-model="value"
|
|
29
29
|
:style="{
|
|
30
30
|
width: config.width
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
<component
|
|
59
59
|
:is="config.component"
|
|
60
60
|
v-else
|
|
61
|
-
:ref="config.
|
|
61
|
+
:ref="config.prop"
|
|
62
62
|
v-model.trim="value"
|
|
63
63
|
:style="{
|
|
64
64
|
width: config.width
|
|
@@ -178,7 +178,7 @@ export default {
|
|
|
178
178
|
if (this.config.component === 'el-cascader') {
|
|
179
179
|
this.$nextTick(() => {
|
|
180
180
|
// el-cascader搜索勾选bug,需要nextTick后才能正常使用getCheckedNodes
|
|
181
|
-
data = this.$refs[this.config.
|
|
181
|
+
data = this.$refs[this.config.prop].getCheckedNodes()
|
|
182
182
|
const emitPath = (this.config.props && this.config.props.props && this.config.props.props.emitPath !== undefined) ? this.config.props.props.emitPath : true
|
|
183
183
|
const multiple = this.config.props && this.config.props.props && this.config.props.props.multiple
|
|
184
184
|
if (emitPath) {
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<el-col
|
|
6
6
|
v-for="(item, index) in list"
|
|
7
7
|
v-show="showCol(index)"
|
|
8
|
-
:key="item.
|
|
8
|
+
:key="item.prop"
|
|
9
9
|
:span="item.span || Math.floor(24 / cell)"
|
|
10
10
|
class="col-item"
|
|
11
11
|
>
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
<div class="search-item-label">
|
|
14
14
|
{{ item.label }}
|
|
15
15
|
</div>
|
|
16
|
-
<form-item v-model="form[item.
|
|
16
|
+
<form-item v-model="form[item.prop]" :config="item" />
|
|
17
17
|
</div>
|
|
18
18
|
</el-col>
|
|
19
19
|
<el-col :span="hiddenIndex === list.length || expend ? emptySpan : 0" style="height: 68px;">
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<div
|
|
4
4
|
:key="key"
|
|
5
5
|
v-loading="loading"
|
|
6
|
-
:class="
|
|
6
|
+
:class="draggable && 'drag-query-table'"
|
|
7
7
|
>
|
|
8
8
|
<el-table
|
|
9
9
|
ref="table"
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
</el-table-column>
|
|
38
38
|
<el-table-column
|
|
39
39
|
v-for="column in visibleColumns"
|
|
40
|
-
:key="column.
|
|
40
|
+
:key="column.prop"
|
|
41
41
|
v-bind="column"
|
|
42
42
|
v-on="$listeners"
|
|
43
43
|
>
|
|
@@ -55,12 +55,12 @@
|
|
|
55
55
|
:render="column.render"
|
|
56
56
|
/>
|
|
57
57
|
<template v-else>
|
|
58
|
-
{{ scope.row[column.
|
|
58
|
+
{{ scope.row[column.prop] }}
|
|
59
59
|
</template>
|
|
60
60
|
</template>
|
|
61
61
|
</el-table-column>
|
|
62
62
|
<el-table-column
|
|
63
|
-
v-if="
|
|
63
|
+
v-if="draggable"
|
|
64
64
|
label=""
|
|
65
65
|
width="55"
|
|
66
66
|
align="center"
|
|
@@ -153,7 +153,7 @@ export default {
|
|
|
153
153
|
type: Boolean
|
|
154
154
|
},
|
|
155
155
|
// 是否拖拽
|
|
156
|
-
|
|
156
|
+
draggable: {
|
|
157
157
|
default: false,
|
|
158
158
|
type: Boolean
|
|
159
159
|
},
|
|
@@ -213,7 +213,7 @@ export default {
|
|
|
213
213
|
return
|
|
214
214
|
}
|
|
215
215
|
this.handleRequestData(val)
|
|
216
|
-
if (this.
|
|
216
|
+
if (this.draggable) {
|
|
217
217
|
this.$nextTick(() => {
|
|
218
218
|
this.initSortable()
|
|
219
219
|
})
|
|
@@ -236,7 +236,7 @@ export default {
|
|
|
236
236
|
this.pageSize = 9999999
|
|
237
237
|
}
|
|
238
238
|
// 注册表格拖拽
|
|
239
|
-
if (this.
|
|
239
|
+
if (this.draggable) {
|
|
240
240
|
this.initSortable()
|
|
241
241
|
}
|
|
242
242
|
// 是否开启自动请求
|