@ddwl/ddwl-ui 1.0.2 → 1.0.6
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 +32 -0
- package/bump.config.js +6 -0
- package/package.json +7 -4
- package/src/lib/slots/icon.vue +4 -3
- package/src/packages/descriptions/index.vue +2 -2
- package/src/packages/dialog/index.vue +3 -3
- package/src/packages/drawer/index.vue +3 -3
- 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/drag.png +0 -0
- package/src/packages/table/index.vue +10 -10
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
## [1.0.6](https://121.40.23.60:51888/frontend/ddwl-ui/compare/v1.0.5...v1.0.6) (2025-07-04)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* d-table/d-descriptions/d-form关键字参数名修改 ([69ea8ce](https://121.40.23.60:51888/frontend/ddwl-ui/commits/69ea8cef41ce4d8504e166e00bdd0b561ba0788f))
|
|
7
|
+
* d-table拖拽参数名修改 ([1b62a8d](https://121.40.23.60:51888/frontend/ddwl-ui/commits/1b62a8df5019b1666e791776ce32d6b4773c66ae))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## [1.0.5](https://121.40.23.60:51888/frontend/ddwl-ui/compare/v1.0.4...v1.0.5) (2025-07-04)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* d-table drag图标替换 ([d7c71d5](https://121.40.23.60:51888/frontend/ddwl-ui/commits/d7c71d5be5abe51b73a8443442d9772622d3970d))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
## 1.0.4 (2025-07-04)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Features
|
|
24
|
+
|
|
25
|
+
* ddwl-ui基础组件库 ([e948fbc](https://121.40.23.60:51888/frontend/ddwl-ui/commits/e948fbcafaf5143d7145de55ca2a72bd75b3f892))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
## 1.0.2 (2025-07-04)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
package/bump.config.js
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ddwl/ddwl-ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "src/main.js",
|
|
6
6
|
"description": "ddwl组件库",
|
|
@@ -8,12 +8,14 @@
|
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"scripts": {
|
|
10
10
|
"dev": "vue-cli-service serve",
|
|
11
|
-
"build": "vue-cli-service build"
|
|
11
|
+
"build": "vue-cli-service build",
|
|
12
|
+
"release": "bumpp -r && npm publish --access=public"
|
|
12
13
|
},
|
|
13
14
|
"dependencies": {
|
|
14
15
|
"@vue/eslint-config-standard": "^8.0.1",
|
|
15
16
|
"core-js": "^3.8.3",
|
|
16
17
|
"crypto-js": "^4.2.0",
|
|
18
|
+
"dayjs": "^1.11.13",
|
|
17
19
|
"element-ui": "2.15.14",
|
|
18
20
|
"lodash": "^4.17.21",
|
|
19
21
|
"sass": "^1.22.10",
|
|
@@ -21,8 +23,7 @@
|
|
|
21
23
|
"sass-resources-loader": "^2.2.5",
|
|
22
24
|
"sortablejs": "^1.15.3",
|
|
23
25
|
"svg-sprite-loader": "^6.0.11",
|
|
24
|
-
"vue": "^2.7.14"
|
|
25
|
-
"dayjs": "^1.11.13"
|
|
26
|
+
"vue": "^2.7.14"
|
|
26
27
|
},
|
|
27
28
|
"devDependencies": {
|
|
28
29
|
"@babel/core": "^7.12.16",
|
|
@@ -31,6 +32,8 @@
|
|
|
31
32
|
"@vue/cli-plugin-eslint": "~5.0.0",
|
|
32
33
|
"@vue/cli-service": "~5.0.0",
|
|
33
34
|
"babel-eslint": "^10.1.0",
|
|
35
|
+
"bumpp": "^10.2.0",
|
|
36
|
+
"conventional-changelog-cli": "^5.0.0",
|
|
34
37
|
"eslint": "^7.32.0",
|
|
35
38
|
"eslint-plugin-vue": "^8.0.3",
|
|
36
39
|
"vue-template-compiler": "^2.6.14"
|
package/src/lib/slots/icon.vue
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<!-- image -->
|
|
6
6
|
<img v-if="type === 'image'" class="icon-image" :src="icon" alt="">
|
|
7
7
|
<!-- svg -->
|
|
8
|
-
<svg-icon v-else-if="type === 'svg'" :style="{ color }" class="icon-svg" :icon
|
|
8
|
+
<svg-icon v-else-if="type === 'svg'" :style="{ color }" class="icon-svg" :icon="icon" />
|
|
9
9
|
<!-- iconfont -->
|
|
10
10
|
<i v-else class="icon-iconfont" :style="{ color }" :class="`${icon}`"></i>
|
|
11
11
|
</div>
|
|
@@ -14,9 +14,10 @@
|
|
|
14
14
|
</template>
|
|
15
15
|
|
|
16
16
|
<script>
|
|
17
|
+
import SvgIcon from '../../packages/svg-icon'
|
|
17
18
|
export default {
|
|
18
|
-
name: '
|
|
19
|
-
components: {},
|
|
19
|
+
name: 'IconSlot',
|
|
20
|
+
components: { SvgIcon },
|
|
20
21
|
props: {
|
|
21
22
|
row: {
|
|
22
23
|
type: Object,
|
|
@@ -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>
|
|
@@ -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
|
},
|
|
@@ -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;">
|
|
Binary file
|
|
@@ -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,20 +55,20 @@
|
|
|
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"
|
|
67
67
|
>
|
|
68
|
-
<
|
|
68
|
+
<img
|
|
69
69
|
class="table-drag-icon"
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
src="./drag.png"
|
|
71
|
+
>
|
|
72
72
|
</el-table-column>
|
|
73
73
|
</el-table>
|
|
74
74
|
<!-- 分页器 -->
|
|
@@ -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
|
// 是否开启自动请求
|