yuang-framework-ui-pc 1.1.72 → 1.1.74

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.
@@ -10,7 +10,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
10
10
  default: any;
11
11
  };
12
12
  }>, {
13
- showDialog: () => void;
13
+ showDialog: () => Promise<void>;
14
14
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
15
15
  change: (uimsRoleList: UimsRole[]) => void;
16
16
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
@@ -32,6 +32,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
32
32
  initList: initList.value
33
33
  }));
34
34
  const init = async () => {
35
+ initList.value = [];
35
36
  if (modelValue.value) {
36
37
  if (!componentParam.value.isMultiple) {
37
38
  if (modelValue.value != "0") {
@@ -56,7 +57,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
56
57
  }
57
58
  isInitSuccess.value = true;
58
59
  };
59
- const showDialog = () => {
60
+ const showDialog = async () => {
61
+ await init();
60
62
  isShowDialog.value = true;
61
63
  };
62
64
  const hideDialog = () => {
@@ -27,7 +27,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
27
27
  align: "center",
28
28
  fixed: "left",
29
29
  selectable: (row) => {
30
- return !row.isRoleExistsUser;
30
+ return !row.isUserExistsRole;
31
31
  }
32
32
  },
33
33
  {
@@ -10,7 +10,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
10
10
  default: any;
11
11
  };
12
12
  }>, {
13
- showDialog: () => void;
13
+ showDialog: () => Promise<void>;
14
14
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
15
15
  change: (uimsUserList: UimsUser[]) => void;
16
16
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
@@ -34,6 +34,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
34
34
  initSelectionList: initSelectionList.value
35
35
  }));
36
36
  const init = async () => {
37
+ initList.value = [];
37
38
  if (modelValue.value) {
38
39
  if (!componentParam.value.isMultiple) {
39
40
  if (modelValue.value != "0") {
@@ -58,7 +59,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
58
59
  }
59
60
  isInitSuccess.value = true;
60
61
  };
61
- const showDialog = () => {
62
+ const showDialog = async () => {
63
+ await init();
62
64
  isShowDialog.value = true;
63
65
  };
64
66
  const hideDialog = () => {
@@ -33,6 +33,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
33
33
  initList: initList.value
34
34
  }));
35
35
  const init = async () => {
36
+ initList.value = [];
36
37
  if (modelValue.value) {
37
38
  if (!componentParam.value.isMultiple) {
38
39
  if (modelValue.value != "0") {
@@ -57,7 +58,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
57
58
  }
58
59
  isInitSuccess.value = true;
59
60
  };
60
- const showDialog = () => {
61
+ const showDialog = async () => {
62
+ await init();
61
63
  isShowDialog.value = true;
62
64
  };
63
65
  const hideDialog = () => {
@@ -10,7 +10,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
10
10
  default: any;
11
11
  };
12
12
  }>, {
13
- showDialog: () => void;
13
+ showDialog: () => Promise<void>;
14
14
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
15
15
  change: (uimsRoleList: UimsRole[]) => void;
16
16
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
@@ -28,7 +28,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
28
28
  align: "center",
29
29
  fixed: "left",
30
30
  selectable: (row) => {
31
- return !row.isRoleExistsUser;
31
+ return !row.isUserExistsRole;
32
32
  }
33
33
  },
34
34
  {
@@ -35,6 +35,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
35
35
  initSelectionList: initSelectionList.value
36
36
  }));
37
37
  const init = async () => {
38
+ initList.value = [];
38
39
  if (modelValue.value) {
39
40
  if (!componentParam.value.isMultiple) {
40
41
  if (modelValue.value != "0") {
@@ -59,7 +60,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
59
60
  }
60
61
  isInitSuccess.value = true;
61
62
  };
62
- const showDialog = () => {
63
+ const showDialog = async () => {
64
+ await init();
63
65
  isShowDialog.value = true;
64
66
  };
65
67
  const hideDialog = () => {
@@ -10,7 +10,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
10
10
  default: any;
11
11
  };
12
12
  }>, {
13
- showDialog: () => void;
13
+ showDialog: () => Promise<void>;
14
14
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
15
15
  change: (uimsUserList: UimsUser[]) => void;
16
16
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yuang-framework-ui-pc",
3
- "version": "1.1.72",
3
+ "version": "1.1.74",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite --host --config vite.global.ts --mode dev",