@funcho/ui 1.1.10 → 1.1.11

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.
Files changed (25) hide show
  1. package/README.md +4 -2
  2. package/dist/cjs/business/TreeCheckFilter/TreeCheckFilter.vue.js +2 -2
  3. package/dist/cjs/business/TreeTransfer/TreeTransfer.vue.js +5 -1
  4. package/dist/cjs/components/SelectV2/SelectV2.vue.js +3 -1
  5. package/dist/cjs/components/SubMenu/SubMenu.vue.js +3 -1
  6. package/dist/cjs/components/TableV2/TableV2.vue.js +3 -1
  7. package/dist/cjs/packages/ui/package.json.js +1 -1
  8. package/dist/esm/business/TreeCheckFilter/TreeCheckFilter.vue.mjs +2 -2
  9. package/dist/esm/business/TreeTransfer/TreeTransfer.vue.mjs +5 -1
  10. package/dist/esm/components/SelectV2/SelectV2.vue.mjs +4 -2
  11. package/dist/esm/components/SubMenu/SubMenu.vue.mjs +4 -2
  12. package/dist/esm/components/TableV2/TableV2.vue.mjs +4 -2
  13. package/dist/esm/packages/ui/package.json.mjs +1 -1
  14. package/dist/types/business/TreeCheckFilter/TreeCheckFilter.vue.d.ts +29 -2056
  15. package/dist/types/business/TreeCheckFilter/index.d.ts +3068 -9149
  16. package/dist/types/business/TreeTransfer/TreeTransfer.types.d.ts +9 -1
  17. package/dist/types/business/TreeTransfer/TreeTransfer.vue.d.ts +10369 -0
  18. package/dist/types/business/TreeTransfer/index.d.ts +10406 -0
  19. package/dist/types/components/Menu/Menu.vue.d.ts +2 -2
  20. package/dist/types/components/Menu/index.d.ts +6 -6
  21. package/dist/types/components/SelectV2/SelectV2.vue.d.ts +7 -6
  22. package/dist/types/components/Table/Table.vue.d.ts +4611 -0
  23. package/dist/types/components/TableV2/TableV2.vue.d.ts +11 -4
  24. package/dist/types/components/TableV2/index.d.ts +33 -12
  25. package/package.json +3 -3
package/README.md CHANGED
@@ -171,5 +171,7 @@ const open = ref(false);
171
171
  | 序号 | 组件名称 |
172
172
  | :---: | :--- |
173
173
  | 1 | `FcDataTable` |
174
- | 1 | `FcProForm` |
175
- | 1 | `FcSidebarMainLayout` |
174
+ | 2 | `FcProForm` |
175
+ | 3 | `FcSidebarMainLayout` |
176
+ | 4 | `FcProTreeCheckFilter` |
177
+ | 5 | `FcProTreeTransfer` |
@@ -194,12 +194,12 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
194
194
  vue.createVNode(vue.unref(index$3.FcTree), vue.mergeProps(_ctx.$attrs, {
195
195
  ref_key: "treeRef",
196
196
  ref: treeRef,
197
- "show-checkbox": "",
197
+ "show-checkbox": __props.showCheckbox,
198
198
  data: __props.data,
199
199
  "filter-node-method": filterNode,
200
200
  "node-key": __props.nodeKey,
201
201
  onCheck: handleTreeCheckChange
202
- }), null, 16, ["data", "node-key"])
202
+ }), null, 16, ["show-checkbox", "data", "node-key"])
203
203
  ]),
204
204
  _: 1
205
205
  })
@@ -93,7 +93,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
93
93
  rightProps: { default: () => ({}) }
94
94
  },
95
95
  emits: ["add", "remove"],
96
- setup(__props, { emit: __emit }) {
96
+ setup(__props, { expose: __expose, emit: __emit }) {
97
97
  const ns = useNamespace.useNamespace("pro-tree-transfer");
98
98
  const leftTreeRef = vue.ref();
99
99
  const rightTreeRef = vue.ref();
@@ -122,6 +122,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
122
122
  const nodes = rightTreeRef.value?.getCheckedNodes(false, false) || [];
123
123
  emits("remove", rightTreeRef.value, nodes, keys);
124
124
  };
125
+ __expose({
126
+ leftTreeRef,
127
+ rightTreeRef
128
+ });
125
129
  return (_ctx, _cache) => {
126
130
  return vue.openBlock(), vue.createElementBlock("div", {
127
131
  class: vue.normalizeClass(vue.unref(ns).b())
@@ -12,6 +12,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
12
12
  },
13
13
  __name: "SelectV2",
14
14
  setup(__props, { expose: __expose }) {
15
+ const attrs = vue.useAttrs();
16
+ const selectBindProps = vue.computed(() => attrs);
15
17
  const elRef = vue.ref();
16
18
  __expose(
17
19
  new Proxy(
@@ -27,7 +29,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
27
29
  )
28
30
  );
29
31
  return (_ctx, _cache) => {
30
- return vue.openBlock(), vue.createBlock(vue.unref(index.ElSelectV2), vue.mergeProps(_ctx.$attrs, {
32
+ return vue.openBlock(), vue.createBlock(vue.unref(index.ElSelectV2), vue.mergeProps(selectBindProps.value, {
31
33
  ref_key: "elRef",
32
34
  ref: elRef
33
35
  }), vue.createSlots({ _: 2 }, [
@@ -12,6 +12,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
12
12
  },
13
13
  __name: "SubMenu",
14
14
  setup(__props, { expose: __expose }) {
15
+ const attrs = vue.useAttrs();
16
+ const subMenuBindProps = vue.computed(() => attrs);
15
17
  const elRef = vue.ref();
16
18
  __expose(
17
19
  new Proxy(
@@ -27,7 +29,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
27
29
  )
28
30
  );
29
31
  return (_ctx, _cache) => {
30
- return vue.openBlock(), vue.createBlock(vue.unref(index.ElSubMenu), vue.mergeProps(_ctx.$attrs, {
32
+ return vue.openBlock(), vue.createBlock(vue.unref(index.ElSubMenu), vue.mergeProps(subMenuBindProps.value, {
31
33
  ref_key: "elRef",
32
34
  ref: elRef
33
35
  }), vue.createSlots({ _: 2 }, [
@@ -16,6 +16,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
16
16
  headerHeight: { default: 40 }
17
17
  },
18
18
  setup(__props, { expose: __expose }) {
19
+ const attrs = vue.useAttrs();
20
+ const tableBindProps = vue.computed(() => attrs);
19
21
  const elRef = vue.ref();
20
22
  __expose(
21
23
  new Proxy(
@@ -31,7 +33,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
31
33
  )
32
34
  );
33
35
  return (_ctx, _cache) => {
34
- return vue.openBlock(), vue.createBlock(vue.unref(index.ElTableV2), vue.mergeProps(_ctx.$attrs, {
36
+ return vue.openBlock(), vue.createBlock(vue.unref(index.ElTableV2), vue.mergeProps(tableBindProps.value, {
35
37
  ref_key: "elRef",
36
38
  ref: elRef,
37
39
  "row-height": __props.rowHeight,
@@ -2,6 +2,6 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const version = "1.1.10";
5
+ const version = "1.1.11";
6
6
 
7
7
  exports.version = version;
@@ -190,12 +190,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
190
190
  createVNode(unref(FcTree), mergeProps(_ctx.$attrs, {
191
191
  ref_key: "treeRef",
192
192
  ref: treeRef,
193
- "show-checkbox": "",
193
+ "show-checkbox": __props.showCheckbox,
194
194
  data: __props.data,
195
195
  "filter-node-method": filterNode,
196
196
  "node-key": __props.nodeKey,
197
197
  onCheck: handleTreeCheckChange
198
- }), null, 16, ["data", "node-key"])
198
+ }), null, 16, ["show-checkbox", "data", "node-key"])
199
199
  ]),
200
200
  _: 1
201
201
  })
@@ -89,7 +89,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
89
89
  rightProps: { default: () => ({}) }
90
90
  },
91
91
  emits: ["add", "remove"],
92
- setup(__props, { emit: __emit }) {
92
+ setup(__props, { expose: __expose, emit: __emit }) {
93
93
  const ns = useNamespace("pro-tree-transfer");
94
94
  const leftTreeRef = ref();
95
95
  const rightTreeRef = ref();
@@ -118,6 +118,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
118
118
  const nodes = rightTreeRef.value?.getCheckedNodes(false, false) || [];
119
119
  emits("remove", rightTreeRef.value, nodes, keys);
120
120
  };
121
+ __expose({
122
+ leftTreeRef,
123
+ rightTreeRef
124
+ });
121
125
  return (_ctx, _cache) => {
122
126
  return openBlock(), createElementBlock("div", {
123
127
  class: normalizeClass(unref(ns).b())
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, createBlock, openBlock, unref, mergeProps, createSlots, renderList, withCtx, renderSlot, normalizeProps, guardReactiveProps } from 'vue';
1
+ import { defineComponent, useAttrs, computed, ref, createBlock, openBlock, unref, mergeProps, createSlots, renderList, withCtx, renderSlot, normalizeProps, guardReactiveProps } from 'vue';
2
2
  import { ElSelectV2 } from '../../node_modules/.pnpm/element-plus@2.13.5_patch_hash_415fe9eaeb4c26121ef1304c7dfbfaa75441fcd0d7ca1a8beb1acd12_87ac520f28bb40f5a8b03aa48269c150/node_modules/element-plus/es/components/select-v2/index.mjs';
3
3
  import '../../_virtual/dayjs.min.mjs';
4
4
 
@@ -8,6 +8,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
8
8
  },
9
9
  __name: "SelectV2",
10
10
  setup(__props, { expose: __expose }) {
11
+ const attrs = useAttrs();
12
+ const selectBindProps = computed(() => attrs);
11
13
  const elRef = ref();
12
14
  __expose(
13
15
  new Proxy(
@@ -23,7 +25,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
23
25
  )
24
26
  );
25
27
  return (_ctx, _cache) => {
26
- return openBlock(), createBlock(unref(ElSelectV2), mergeProps(_ctx.$attrs, {
28
+ return openBlock(), createBlock(unref(ElSelectV2), mergeProps(selectBindProps.value, {
27
29
  ref_key: "elRef",
28
30
  ref: elRef
29
31
  }), createSlots({ _: 2 }, [
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, createBlock, openBlock, unref, mergeProps, createSlots, renderList, withCtx, renderSlot, normalizeProps, guardReactiveProps } from 'vue';
1
+ import { defineComponent, useAttrs, computed, ref, createBlock, openBlock, unref, mergeProps, createSlots, renderList, withCtx, renderSlot, normalizeProps, guardReactiveProps } from 'vue';
2
2
  import { ElSubMenu } from '../../node_modules/.pnpm/element-plus@2.13.5_patch_hash_415fe9eaeb4c26121ef1304c7dfbfaa75441fcd0d7ca1a8beb1acd12_87ac520f28bb40f5a8b03aa48269c150/node_modules/element-plus/es/components/menu/index.mjs';
3
3
  import '../../_virtual/dayjs.min.mjs';
4
4
 
@@ -8,6 +8,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
8
8
  },
9
9
  __name: "SubMenu",
10
10
  setup(__props, { expose: __expose }) {
11
+ const attrs = useAttrs();
12
+ const subMenuBindProps = computed(() => attrs);
11
13
  const elRef = ref();
12
14
  __expose(
13
15
  new Proxy(
@@ -23,7 +25,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
23
25
  )
24
26
  );
25
27
  return (_ctx, _cache) => {
26
- return openBlock(), createBlock(unref(ElSubMenu), mergeProps(_ctx.$attrs, {
28
+ return openBlock(), createBlock(unref(ElSubMenu), mergeProps(subMenuBindProps.value, {
27
29
  ref_key: "elRef",
28
30
  ref: elRef
29
31
  }), createSlots({ _: 2 }, [
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, createBlock, openBlock, unref, mergeProps, createSlots, renderList, withCtx, renderSlot, normalizeProps, guardReactiveProps } from 'vue';
1
+ import { defineComponent, useAttrs, computed, ref, createBlock, openBlock, unref, mergeProps, createSlots, renderList, withCtx, renderSlot, normalizeProps, guardReactiveProps } from 'vue';
2
2
  import { ElTableV2 } from '../../node_modules/.pnpm/element-plus@2.13.5_patch_hash_415fe9eaeb4c26121ef1304c7dfbfaa75441fcd0d7ca1a8beb1acd12_87ac520f28bb40f5a8b03aa48269c150/node_modules/element-plus/es/components/table-v2/index.mjs';
3
3
  import '../../_virtual/dayjs.min.mjs';
4
4
 
@@ -12,6 +12,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
12
12
  headerHeight: { default: 40 }
13
13
  },
14
14
  setup(__props, { expose: __expose }) {
15
+ const attrs = useAttrs();
16
+ const tableBindProps = computed(() => attrs);
15
17
  const elRef = ref();
16
18
  __expose(
17
19
  new Proxy(
@@ -27,7 +29,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
27
29
  )
28
30
  );
29
31
  return (_ctx, _cache) => {
30
- return openBlock(), createBlock(unref(ElTableV2), mergeProps(_ctx.$attrs, {
32
+ return openBlock(), createBlock(unref(ElTableV2), mergeProps(tableBindProps.value, {
31
33
  ref_key: "elRef",
32
34
  ref: elRef,
33
35
  "row-height": __props.rowHeight,
@@ -1,3 +1,3 @@
1
- const version = "1.1.10";
1
+ const version = "1.1.11";
2
2
 
3
3
  export { version };