@ddwl/ddwl-ui 1.0.6 → 1.0.8

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,21 @@
1
+ ## [1.0.8](https://121.40.23.60:51888/frontend/ddwl-ui/compare/v1.0.7...v1.0.8) (2025-07-04)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * slot name修改 ([c0789c5](https://121.40.23.60:51888/frontend/ddwl-ui/commits/c0789c5583fbe55de63c01f2f9dbb36c038765b2))
7
+
8
+
9
+
10
+ ## [1.0.7](https://121.40.23.60:51888/frontend/ddwl-ui/compare/v1.0.6...v1.0.7) (2025-07-04)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * 字典参数绑定 ([0ea73e5](https://121.40.23.60:51888/frontend/ddwl-ui/commits/0ea73e5924b0dae3b9b8d3b58ed93f9a7121af6f))
16
+
17
+
18
+
1
19
  ## [1.0.6](https://121.40.23.60:51888/frontend/ddwl-ui/compare/v1.0.5...v1.0.6) (2025-07-04)
2
20
 
3
21
 
package/package.json CHANGED
@@ -1,11 +1,14 @@
1
1
  {
2
2
  "name": "@ddwl/ddwl-ui",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
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",
@@ -5,6 +5,7 @@
5
5
 
6
6
  <script>
7
7
  export default {
8
+ // eslint-disable-next-line vue/multi-word-component-names
8
9
  name: 'Dict',
9
10
  components: {},
10
11
  props: {
@@ -29,10 +30,10 @@ export default {
29
30
  computed: {
30
31
  dictText () {
31
32
  if (Array.isArray(this.row[this.props])) {
32
- const result = this.$enum.getLabels(this.code, this.row[this.props])
33
+ const result = this.$DDWL.enum.getLabels(this.code, this.row[this.props])
33
34
  return result?.length ? result.join(',') : ''
34
35
  } else {
35
- return this.$enum.getLabel(this.code, this.row[this.props])
36
+ return this.$DDWL.enum.getLabel(this.code, this.row[this.props])
36
37
  }
37
38
  }
38
39
  },
@@ -8,6 +8,7 @@
8
8
  import FileUpload from '../../packages/upload'
9
9
 
10
10
  export default {
11
+ // eslint-disable-next-line vue/multi-word-component-names
11
12
  name: 'File',
12
13
  components: { FileUpload },
13
14
  props: {
@@ -16,7 +16,8 @@
16
16
  <script>
17
17
  import SvgIcon from '../../packages/svg-icon'
18
18
  export default {
19
- name: 'IconSlot',
19
+ // eslint-disable-next-line vue/multi-word-component-names
20
+ name: 'Icon',
20
21
  components: { SvgIcon },
21
22
  props: {
22
23
  row: {
package/src/main.js CHANGED
@@ -43,7 +43,8 @@ const components = [
43
43
  const install = (Vue, opts = {}) => {
44
44
 
45
45
  Vue.prototype.$DDWL = {
46
- upload: opts.upload
46
+ upload: opts.upload,
47
+ enum: opts.enum
47
48
  }
48
49
 
49
50
  if (install.installed) return
@@ -19,14 +19,14 @@
19
19
  <div v-if="showButton" class="ar">
20
20
  <el-button
21
21
  type="primary"
22
- :icon="submitBtnIcon"
22
+ :icon="submitButtonIcon"
23
23
  :loading="loading"
24
24
  @click="submit"
25
25
  >
26
- {{ submitBtnText }}
26
+ {{ submitButtonText }}
27
27
  </el-button>
28
28
  <el-button @click="cancel">
29
- {{ cancelBtnText }}
29
+ {{ cancelButtonText }}
30
30
  </el-button>
31
31
  </div>
32
32
  </template>
@@ -18,14 +18,14 @@
18
18
  <div v-if="showButton" class="ar mt16">
19
19
  <el-button
20
20
  type="primary"
21
- :icon="submitBtnIcon"
21
+ :icon="submitButtonIcon"
22
22
  :loading="loading"
23
23
  @click="submit"
24
24
  >
25
- {{ submitBtnText }}
25
+ {{ submitButtonText }}
26
26
  </el-button>
27
27
  <el-button @click="cancel">
28
- {{ cancelBtnText }}
28
+ {{ cancelButtonText }}
29
29
  </el-button>
30
30
  </div>
31
31
  </div>