@fangzhongya/fang-ui 0.1.18 → 0.1.20

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 (105) hide show
  1. package/dist/components/forms/src/data.cjs +3 -3
  2. package/dist/components/forms/src/data.d.ts +1 -1
  3. package/dist/components/forms/src/data.js +3 -3
  4. package/dist/components/forms/src/index2.cjs +5 -3
  5. package/dist/components/forms/src/index2.js +5 -3
  6. package/dist/components/forms/src/setup.cjs +0 -7
  7. package/dist/components/forms/src/setup.js +0 -7
  8. package/dist/components/forms-div/src/data.cjs +7 -1
  9. package/dist/components/forms-div/src/data.d.ts +6 -0
  10. package/dist/components/forms-div/src/data.js +7 -1
  11. package/dist/components/forms-div/src/index2.cjs +35 -10
  12. package/dist/components/forms-div/src/index2.js +36 -11
  13. package/dist/components/forms-item/src/data.cjs +1 -1
  14. package/dist/components/forms-item/src/data.js +1 -1
  15. package/dist/components/forms-item/src/index2.cjs +4 -2
  16. package/dist/components/forms-item/src/index2.js +4 -2
  17. package/dist/components/forms-items/src/data.cjs +1 -1
  18. package/dist/components/forms-items/src/data.js +1 -1
  19. package/dist/components/forms-items/src/index2.cjs +4 -2
  20. package/dist/components/forms-items/src/index2.js +4 -2
  21. package/dist/components/global-config/src/data.cjs +12 -0
  22. package/dist/components/global-config/src/data.d.ts +12 -0
  23. package/dist/components/global-config/src/data.js +12 -0
  24. package/dist/components/index.cjs +8 -6
  25. package/dist/{index.css → components/index.css} +39 -0
  26. package/dist/components/index.d.ts +1 -0
  27. package/dist/components/index.js +2 -0
  28. package/dist/components/index.scss +1 -0
  29. package/dist/components/index2.scss +2 -2
  30. package/dist/components/list/index.css +12 -0
  31. package/dist/components/list/index.scss +15 -0
  32. package/dist/components/list/src/data.cjs +21 -2
  33. package/dist/components/list/src/data.d.ts +22 -1
  34. package/dist/components/list/src/data.js +21 -2
  35. package/dist/components/list/src/index2.cjs +61 -10
  36. package/dist/components/list/src/index2.js +61 -10
  37. package/dist/components/list/style/index2.scss +1 -0
  38. package/dist/components/page/index.css +11 -0
  39. package/dist/components/tables/common/pagin.cjs +60 -16
  40. package/dist/components/tables/common/pagin.d.ts +8 -0
  41. package/dist/components/tables/common/pagin.js +60 -16
  42. package/dist/components/tables/common/tooltip.cjs +101 -0
  43. package/dist/components/tables/common/tooltip.d.ts +6 -0
  44. package/dist/components/tables/common/tooltip.js +101 -0
  45. package/dist/components/tables/common/util.cjs +3 -3
  46. package/dist/components/tables/common/util.js +3 -3
  47. package/dist/components/tables/src/column.cjs +19 -15
  48. package/dist/components/tables/src/column.d.ts +3 -2
  49. package/dist/components/tables/src/column.js +17 -13
  50. package/dist/components/tables/src/columns3.cjs +16 -32
  51. package/dist/components/tables/src/columns3.js +15 -31
  52. package/dist/components/tables/src/data.cjs +3 -2
  53. package/dist/components/tables/src/data.d.ts +1 -0
  54. package/dist/components/tables/src/data.js +3 -2
  55. package/dist/components/tablespd/index.cjs +9 -0
  56. package/dist/components/tablespd/index.css +88 -0
  57. package/dist/components/tablespd/index.d.ts +4 -0
  58. package/dist/components/tablespd/index.js +9 -0
  59. package/dist/components/tablespd/index.scss +40 -0
  60. package/dist/components/tablespd/src/data.cjs +13 -0
  61. package/dist/components/tablespd/src/data.d.ts +18 -0
  62. package/dist/components/tablespd/src/data.js +13 -0
  63. package/dist/components/tablespd/src/index.cjs +4 -0
  64. package/dist/components/tablespd/src/index.js +4 -0
  65. package/dist/components/tablespd/src/index2.cjs +111 -0
  66. package/dist/components/tablespd/src/index2.js +111 -0
  67. package/dist/components/tablespd/style/index2.scss +4 -0
  68. package/dist/components/tablesv/src/column.cjs +4 -4
  69. package/dist/components/tablesv/src/column.js +3 -3
  70. package/dist/css/index.css +39 -0
  71. package/dist/css/list.css +12 -0
  72. package/dist/css/page.css +11 -0
  73. package/dist/css/tablespd.css +88 -0
  74. package/dist/directives/index.cjs +6 -4
  75. package/dist/directives/index.d.ts +1 -0
  76. package/dist/directives/index.js +4 -2
  77. package/dist/directives/sortable/index.cjs +45 -0
  78. package/dist/directives/sortable/index.d.ts +6 -0
  79. package/dist/directives/sortable/index.js +45 -0
  80. package/dist/expand/{chunk-XY53LCPN.js → chunk-2BLP2ANQ.js} +3 -0
  81. package/dist/expand/{chunk-IEODUGVJ.cjs → chunk-OT6GISSR.cjs} +3 -0
  82. package/dist/expand/components.cjs +5 -5
  83. package/dist/expand/components.js +1 -1
  84. package/dist/expand/config.cjs +2 -2
  85. package/dist/expand/config.js +1 -1
  86. package/dist/hooks/cssname/index.d.ts +2 -2
  87. package/dist/hooks/index.cjs +0 -1
  88. package/dist/hooks/index.js +1 -2
  89. package/dist/hooks/inherit/index.cjs +0 -8
  90. package/dist/hooks/inherit/index.d.ts +0 -1
  91. package/dist/hooks/inherit/index.js +0 -8
  92. package/dist/icons/index.json +1 -1
  93. package/dist/index.cjs +30 -26
  94. package/dist/index.js +6 -2
  95. package/dist/node_modules/.pnpm/sortablejs@1.15.6/node_modules/sortablejs/modular/sortable.esm.cjs +2758 -0
  96. package/dist/node_modules/.pnpm/sortablejs@1.15.6/node_modules/sortablejs/modular/sortable.esm.js +2758 -0
  97. package/dist/utils/vues/getAttrValue.cjs +11 -0
  98. package/dist/utils/vues/getAttrValue.d.ts +3 -0
  99. package/dist/utils/vues/getAttrValue.js +11 -0
  100. package/dist/utils/vues/index.cjs +2 -0
  101. package/dist/utils/vues/index.d.ts +1 -0
  102. package/dist/utils/vues/index.js +2 -0
  103. package/package.json +7 -5
  104. /package/dist/components/{forms-item → forms-items}/index.css +0 -0
  105. /package/dist/css/{forms-item.css → forms-items.css} +0 -0
@@ -114,12 +114,12 @@ const dataProps = {
114
114
  type: Boolean
115
115
  },
116
116
  /**
117
- * @props { String } interval='6px'
117
+ * @props { String } interval='8px'
118
118
  * 查询模式的上下间距
119
119
  */
120
120
  interval: {
121
121
  type: String,
122
- default: "6px"
122
+ default: "8px"
123
123
  },
124
124
  /**
125
125
  * @props { String } intervalHorizon
@@ -205,7 +205,7 @@ const dataEmits = [
205
205
  "buts",
206
206
  // : (obj: ObjAny, dataForm: ObjAny, index: number, event: Event) => {},
207
207
  /**
208
- * @emits upform (dataForm:[ObjAny]form值)
208
+ * @emits upform (value:any, obj:[ListObj]列对象)
209
209
  * 表单数据变动
210
210
  */
211
211
  "upform"
@@ -127,7 +127,7 @@ export declare const dataProps: {
127
127
  type: BooleanConstructor;
128
128
  };
129
129
  /**
130
- * @props { String } interval='6px'
130
+ * @props { String } interval='8px'
131
131
  * 查询模式的上下间距
132
132
  */
133
133
  interval: {
@@ -112,12 +112,12 @@ const dataProps = {
112
112
  type: Boolean
113
113
  },
114
114
  /**
115
- * @props { String } interval='6px'
115
+ * @props { String } interval='8px'
116
116
  * 查询模式的上下间距
117
117
  */
118
118
  interval: {
119
119
  type: String,
120
- default: "6px"
120
+ default: "8px"
121
121
  },
122
122
  /**
123
123
  * @props { String } intervalHorizon
@@ -203,7 +203,7 @@ const dataEmits = [
203
203
  "buts",
204
204
  // : (obj: ObjAny, dataForm: ObjAny, index: number, event: Event) => {},
205
205
  /**
206
- * @emits upform (dataForm:[ObjAny]form值)
206
+ * @emits upform (value:any, obj:[ListObj]列对象)
207
207
  * 表单数据变动
208
208
  */
209
209
  "upform"
@@ -105,7 +105,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
105
105
  "label-position": vue.unref(props).labelPosition == "auto" ? void 0 : vue.unref(props).labelPosition,
106
106
  ref_key: "refForm",
107
107
  ref: refForm,
108
- onSubmit: _cache[2] || (_cache[2] = vue.withModifiers(() => {
108
+ onSubmit: _cache[4] || (_cache[4] = vue.withModifiers(() => {
109
109
  }, ["prevent"]))
110
110
  }), {
111
111
  default: vue.withCtx(() => [
@@ -126,7 +126,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
126
126
  optionss: vue.unref(props).options,
127
127
  valueobj: vue.unref(dataForm),
128
128
  modelValue: vue.unref(dataForm),
129
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(dataForm) ? dataForm.value = $event : null)
129
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(dataForm) ? dataForm.value = $event : null),
130
+ onUpform: _cache[1] || (_cache[1] = (...arr) => emit("upform", ...arr))
130
131
  }, vue.createSlots({ _: 2 }, [
131
132
  vue.renderList(Object.keys(vue.unref(slots)), (k) => {
132
133
  return {
@@ -142,7 +143,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
142
143
  optionss: vue.unref(props).options,
143
144
  valueobj: vue.unref(dataForm),
144
145
  modelValue: vue.unref(dataForm),
145
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.isRef(dataForm) ? dataForm.value = $event : null)
146
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => vue.isRef(dataForm) ? dataForm.value = $event : null),
147
+ onUpform: _cache[3] || (_cache[3] = (...arr) => emit("upform", ...arr))
146
148
  }, vue.createSlots({ _: 2 }, [
147
149
  vue.renderList(Object.keys(vue.unref(slots)), (k) => {
148
150
  return {
@@ -103,7 +103,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
103
103
  "label-position": unref(props).labelPosition == "auto" ? void 0 : unref(props).labelPosition,
104
104
  ref_key: "refForm",
105
105
  ref: refForm,
106
- onSubmit: _cache[2] || (_cache[2] = withModifiers(() => {
106
+ onSubmit: _cache[4] || (_cache[4] = withModifiers(() => {
107
107
  }, ["prevent"]))
108
108
  }), {
109
109
  default: withCtx(() => [
@@ -124,7 +124,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
124
124
  optionss: unref(props).options,
125
125
  valueobj: unref(dataForm),
126
126
  modelValue: unref(dataForm),
127
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(dataForm) ? dataForm.value = $event : null)
127
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(dataForm) ? dataForm.value = $event : null),
128
+ onUpform: _cache[1] || (_cache[1] = (...arr) => emit("upform", ...arr))
128
129
  }, createSlots({ _: 2 }, [
129
130
  renderList(Object.keys(unref(slots)), (k) => {
130
131
  return {
@@ -140,7 +141,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
140
141
  optionss: unref(props).options,
141
142
  valueobj: unref(dataForm),
142
143
  modelValue: unref(dataForm),
143
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(dataForm) ? dataForm.value = $event : null)
144
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(dataForm) ? dataForm.value = $event : null),
145
+ onUpform: _cache[3] || (_cache[3] = (...arr) => emit("upform", ...arr))
144
146
  }, createSlots({ _: 2 }, [
145
147
  renderList(Object.keys(unref(slots)), (k) => {
146
148
  return {
@@ -157,13 +157,6 @@ function setUp(props, emit, cs, refForm, getLocale) {
157
157
  return rules;
158
158
  }
159
159
  const dataRules = vue.ref(getRules());
160
- vue.watch(
161
- () => dataForm.value,
162
- () => {
163
- emit("upform", dataForm.value);
164
- },
165
- { deep: true }
166
- );
167
160
  vue.watch(
168
161
  () => props.list.length,
169
162
  () => {
@@ -155,13 +155,6 @@ function setUp(props, emit, cs, refForm, getLocale) {
155
155
  return rules;
156
156
  }
157
157
  const dataRules = ref(getRules());
158
- watch(
159
- () => dataForm.value,
160
- () => {
161
- emit("upform", dataForm.value);
162
- },
163
- { deep: true }
164
- );
165
158
  watch(
166
159
  () => props.list.length,
167
160
  () => {
@@ -29,6 +29,12 @@ const dataProps = {
29
29
  valueobj: {
30
30
  type: Object
31
31
  },
32
+ compon: {
33
+ type: [String, Object]
34
+ },
35
+ componValueName: {
36
+ type: String
37
+ },
32
38
  /**
33
39
  * 传入值
34
40
  * @props { Object } modelValue={} ( )
@@ -50,7 +56,7 @@ const dataProps = {
50
56
  }
51
57
  }
52
58
  };
53
- const dataEmits = ["update:modelValue", "list-events"];
59
+ const dataEmits = ["update:modelValue", "list-events", "upform"];
54
60
  const dataSlot = {
55
61
  default: "default"
56
62
  };
@@ -27,6 +27,12 @@ export declare const dataProps: {
27
27
  valueobj: {
28
28
  type: ObjectConstructor;
29
29
  };
30
+ compon: {
31
+ type: (ObjectConstructor | StringConstructor)[];
32
+ };
33
+ componValueName: {
34
+ type: StringConstructor;
35
+ };
30
36
  /**
31
37
  * 传入值
32
38
  * @props { Object } modelValue={} ( )
@@ -27,6 +27,12 @@ const dataProps = {
27
27
  valueobj: {
28
28
  type: Object
29
29
  },
30
+ compon: {
31
+ type: [String, Object]
32
+ },
33
+ componValueName: {
34
+ type: String
35
+ },
30
36
  /**
31
37
  * 传入值
32
38
  * @props { Object } modelValue={} ( )
@@ -48,7 +54,7 @@ const dataProps = {
48
54
  }
49
55
  }
50
56
  };
51
- const dataEmits = ["update:modelValue", "list-events"];
57
+ const dataEmits = ["update:modelValue", "list-events", "upform"];
52
58
  const dataSlot = {
53
59
  default: "default"
54
60
  };
@@ -32,6 +32,31 @@ const _sfc_main = vue.defineComponent({
32
32
  }
33
33
  return o;
34
34
  });
35
+ const record = vue.ref();
36
+ const setPropComputedValue = (prop, computed2, value2) => {
37
+ if (!isEqual.isEqual(prop, computed2)) {
38
+ if (prop !== record.value) {
39
+ if (props.computed instanceof Array) {
40
+ props.computed.forEach((k, i) => {
41
+ if (prop instanceof Array) {
42
+ value2[k] = prop[i];
43
+ } else {
44
+ value2[k] = prop ? prop[k] : void 0;
45
+ }
46
+ });
47
+ } else if (props.computed.set) {
48
+ props.computed.set(prop, value2, props);
49
+ }
50
+ } else {
51
+ if (props.pars) {
52
+ objValue.setObjValue(value2, props.prop, computed2);
53
+ } else {
54
+ value2[props.prop] = computed2;
55
+ }
56
+ }
57
+ }
58
+ record.value = prop;
59
+ };
35
60
  const binds = vue.computed(() => {
36
61
  const obj = { ...props.config, ...formvalue.value };
37
62
  const binds2 = {};
@@ -68,13 +93,7 @@ const _sfc_main = vue.defineComponent({
68
93
  c = props.computed.get(r, v, props);
69
94
  }
70
95
  if (prop) {
71
- if (!isEqual.isEqual(c, r)) {
72
- if (props.pars) {
73
- objValue.setObjValue(v, prop, c);
74
- } else {
75
- v[prop] = c;
76
- }
77
- }
96
+ setPropComputedValue(r, c, v);
78
97
  }
79
98
  r = c;
80
99
  }
@@ -109,6 +128,9 @@ const _sfc_main = vue.defineComponent({
109
128
  if (!props.orig) {
110
129
  emit("update:modelValue", v);
111
130
  }
131
+ if (props.compon != "items") {
132
+ emit("upform", value2, props, v);
133
+ }
112
134
  }
113
135
  });
114
136
  const options = vue.computed(() => {
@@ -127,8 +149,8 @@ const _sfc_main = vue.defineComponent({
127
149
  }
128
150
  });
129
151
  const render = () => {
130
- const compon = props.compon || "input";
131
- const componValueName = "modelValue";
152
+ const compon = props.compon || prs.compon || "input";
153
+ const componValueName = prs.componValueName || "modelValue";
132
154
  const componObj = {
133
155
  ...binds.value,
134
156
  ...use.getOnObjs(
@@ -144,7 +166,10 @@ const _sfc_main = vue.defineComponent({
144
166
  optionss: prs.optionss,
145
167
  valueobj: prs.valueobj,
146
168
  [componValueName]: value.value,
147
- ["onUpdate:" + componValueName]: (v) => value.value = v
169
+ ["onUpdate:" + componValueName]: (v) => value.value = v,
170
+ ["onUpform"]: (...arr) => {
171
+ emit("upform", ...arr);
172
+ }
148
173
  };
149
174
  if (typeof compon == "string") {
150
175
  const tcom = lineToLargeHump.lineToLargeHump(compon);
@@ -1,4 +1,4 @@
1
- import { defineComponent, inject, computed, h, resolveComponent } from "vue";
1
+ import { defineComponent, inject, computed, ref, h, resolveComponent } from "vue";
2
2
  import { name, dataProps, dataEmits, dataExpose } from "./data.js";
3
3
  import "../../../utils/index.js";
4
4
  import { useCssName } from "../../../hooks/cssname/index.js";
@@ -30,6 +30,31 @@ const _sfc_main = defineComponent({
30
30
  }
31
31
  return o;
32
32
  });
33
+ const record = ref();
34
+ const setPropComputedValue = (prop, computed2, value2) => {
35
+ if (!isEqual(prop, computed2)) {
36
+ if (prop !== record.value) {
37
+ if (props.computed instanceof Array) {
38
+ props.computed.forEach((k, i) => {
39
+ if (prop instanceof Array) {
40
+ value2[k] = prop[i];
41
+ } else {
42
+ value2[k] = prop ? prop[k] : void 0;
43
+ }
44
+ });
45
+ } else if (props.computed.set) {
46
+ props.computed.set(prop, value2, props);
47
+ }
48
+ } else {
49
+ if (props.pars) {
50
+ setObjValue(value2, props.prop, computed2);
51
+ } else {
52
+ value2[props.prop] = computed2;
53
+ }
54
+ }
55
+ }
56
+ record.value = prop;
57
+ };
33
58
  const binds = computed(() => {
34
59
  const obj = { ...props.config, ...formvalue.value };
35
60
  const binds2 = {};
@@ -66,13 +91,7 @@ const _sfc_main = defineComponent({
66
91
  c = props.computed.get(r, v, props);
67
92
  }
68
93
  if (prop) {
69
- if (!isEqual(c, r)) {
70
- if (props.pars) {
71
- setObjValue(v, prop, c);
72
- } else {
73
- v[prop] = c;
74
- }
75
- }
94
+ setPropComputedValue(r, c, v);
76
95
  }
77
96
  r = c;
78
97
  }
@@ -107,6 +126,9 @@ const _sfc_main = defineComponent({
107
126
  if (!props.orig) {
108
127
  emit("update:modelValue", v);
109
128
  }
129
+ if (props.compon != "items") {
130
+ emit("upform", value2, props, v);
131
+ }
110
132
  }
111
133
  });
112
134
  const options = computed(() => {
@@ -125,8 +147,8 @@ const _sfc_main = defineComponent({
125
147
  }
126
148
  });
127
149
  const render = () => {
128
- const compon = props.compon || "input";
129
- const componValueName = "modelValue";
150
+ const compon = props.compon || prs.compon || "input";
151
+ const componValueName = prs.componValueName || "modelValue";
130
152
  const componObj = {
131
153
  ...binds.value,
132
154
  ...getOnObjs(
@@ -142,7 +164,10 @@ const _sfc_main = defineComponent({
142
164
  optionss: prs.optionss,
143
165
  valueobj: prs.valueobj,
144
166
  [componValueName]: value.value,
145
- ["onUpdate:" + componValueName]: (v) => value.value = v
167
+ ["onUpdate:" + componValueName]: (v) => value.value = v,
168
+ ["onUpform"]: (...arr) => {
169
+ emit("upform", ...arr);
170
+ }
146
171
  };
147
172
  if (typeof compon == "string") {
148
173
  const tcom = lineToLargeHump(compon);
@@ -59,7 +59,7 @@ const dataProps = {
59
59
  }
60
60
  }
61
61
  };
62
- const dataEmits = ["update:modelValue"];
62
+ const dataEmits = ["update:modelValue", "upform"];
63
63
  const dataSlot = {
64
64
  default: "default"
65
65
  };
@@ -57,7 +57,7 @@ const dataProps = {
57
57
  }
58
58
  }
59
59
  };
60
- const dataEmits = ["update:modelValue"];
60
+ const dataEmits = ["update:modelValue", "upform"];
61
61
  const dataSlot = {
62
62
  default: "default"
63
63
  };
@@ -69,8 +69,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
69
69
  listobj: vue.unref(props),
70
70
  optionss: vue.unref(prs).optionss,
71
71
  valueobj: vue.unref(prs).valueobj,
72
+ onUpform: _cache[0] || (_cache[0] = (...arr) => emit("upform", ...arr)),
72
73
  modelValue: value.value,
73
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event)
74
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => value.value = $event)
74
75
  }, vue.createSlots({ _: 2 }, [
75
76
  vue.renderList(Object.keys(vue.unref(slots)), (k) => {
76
77
  return {
@@ -109,7 +110,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
109
110
  optionss: vue.unref(prs).optionss,
110
111
  valueobj: vue.unref(prs).valueobj,
111
112
  modelValue: value.value,
112
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => value.value = $event)
113
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => value.value = $event),
114
+ onUpform: _cache[3] || (_cache[3] = (...arr) => emit("upform", ...arr))
113
115
  }, vue.createSlots({ _: 2 }, [
114
116
  vue.renderList(Object.keys(vue.unref(slots)), (k) => {
115
117
  return {
@@ -67,8 +67,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
67
67
  listobj: unref(props),
68
68
  optionss: unref(prs).optionss,
69
69
  valueobj: unref(prs).valueobj,
70
+ onUpform: _cache[0] || (_cache[0] = (...arr) => emit("upform", ...arr)),
70
71
  modelValue: value.value,
71
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event)
72
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => value.value = $event)
72
73
  }, createSlots({ _: 2 }, [
73
74
  renderList(Object.keys(unref(slots)), (k) => {
74
75
  return {
@@ -107,7 +108,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
107
108
  optionss: unref(prs).optionss,
108
109
  valueobj: unref(prs).valueobj,
109
110
  modelValue: value.value,
110
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => value.value = $event)
111
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => value.value = $event),
112
+ onUpform: _cache[3] || (_cache[3] = (...arr) => emit("upform", ...arr))
111
113
  }, createSlots({ _: 2 }, [
112
114
  renderList(Object.keys(unref(slots)), (k) => {
113
115
  return {
@@ -37,7 +37,7 @@ const dataProps = {
37
37
  type: null
38
38
  }
39
39
  };
40
- const dataEmits = ["update:modelValue"];
40
+ const dataEmits = ["update:modelValue", "upform"];
41
41
  const dataSlot = {
42
42
  default: "default"
43
43
  };
@@ -35,7 +35,7 @@ const dataProps = {
35
35
  type: null
36
36
  }
37
37
  };
38
- const dataEmits = ["update:modelValue"];
38
+ const dataEmits = ["update:modelValue", "upform"];
39
39
  const dataSlot = {
40
40
  default: "default"
41
41
  };
@@ -87,7 +87,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
87
87
  optionss: vue.unref(prs).optionss,
88
88
  valueobj: vue.unref(prs).valueobj,
89
89
  modelValue: value.value,
90
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event)
90
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
91
+ onUpform: _cache[1] || (_cache[1] = (...arr) => emit("upform", ...arr))
91
92
  }), vue.createSlots({ _: 2 }, [
92
93
  vue.renderList(Object.keys(vue.unref(slots)), (k, i) => {
93
94
  return {
@@ -105,7 +106,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
105
106
  optionss: vue.unref(prs).optionss,
106
107
  valueobj: vue.unref(prs).valueobj,
107
108
  modelValue: value.value,
108
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => value.value = $event)
109
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => value.value = $event),
110
+ onUpform: _cache[3] || (_cache[3] = (...arr) => emit("upform", ...arr))
109
111
  }), vue.createSlots({ _: 2 }, [
110
112
  vue.renderList(Object.keys(vue.unref(slots)), (k, i) => {
111
113
  return {
@@ -85,7 +85,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
85
85
  optionss: unref(prs).optionss,
86
86
  valueobj: unref(prs).valueobj,
87
87
  modelValue: value.value,
88
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event)
88
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
89
+ onUpform: _cache[1] || (_cache[1] = (...arr) => emit("upform", ...arr))
89
90
  }), createSlots({ _: 2 }, [
90
91
  renderList(Object.keys(unref(slots)), (k, i) => {
91
92
  return {
@@ -103,7 +104,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
103
104
  optionss: unref(prs).optionss,
104
105
  valueobj: unref(prs).valueobj,
105
106
  modelValue: value.value,
106
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => value.value = $event)
107
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => value.value = $event),
108
+ onUpform: _cache[3] || (_cache[3] = (...arr) => emit("upform", ...arr))
107
109
  }), createSlots({ _: 2 }, [
108
110
  renderList(Object.keys(unref(slots)), (k, i) => {
109
111
  return {
@@ -59,12 +59,24 @@ const dataProps = buildProps.buildProps({
59
59
  type: String,
60
60
  default: enums.DefaultConfig.alias
61
61
  },
62
+ /**
63
+ * @props { Boolean } isPropsConfig
64
+ * @description 是否支持props配置
65
+ */
62
66
  isPropsConfig: {
63
67
  type: Boolean
64
68
  },
69
+ /**
70
+ * @props { Boolean } isAttrsConfig
71
+ * @description 是否支持attr的配置
72
+ */
65
73
  isAttrsConfig: {
66
74
  type: Boolean
67
75
  },
76
+ /**
77
+ * @props { Object } defaultConfig
78
+ * @description 配置的数据
79
+ */
68
80
  defaultConfig: {
69
81
  type: Object,
70
82
  default() {
@@ -57,12 +57,24 @@ export declare const dataProps: {
57
57
  type: StringConstructor;
58
58
  default: DefaultConfig;
59
59
  };
60
+ /**
61
+ * @props { Boolean } isPropsConfig
62
+ * @description 是否支持props配置
63
+ */
60
64
  isPropsConfig: {
61
65
  type: BooleanConstructor;
62
66
  };
67
+ /**
68
+ * @props { Boolean } isAttrsConfig
69
+ * @description 是否支持attr的配置
70
+ */
63
71
  isAttrsConfig: {
64
72
  type: BooleanConstructor;
65
73
  };
74
+ /**
75
+ * @props { Object } defaultConfig
76
+ * @description 配置的数据
77
+ */
66
78
  defaultConfig: {
67
79
  type: () => {
68
80
  [key: string]: ObjAny;
@@ -57,12 +57,24 @@ const dataProps = buildProps({
57
57
  type: String,
58
58
  default: DefaultConfig.alias
59
59
  },
60
+ /**
61
+ * @props { Boolean } isPropsConfig
62
+ * @description 是否支持props配置
63
+ */
60
64
  isPropsConfig: {
61
65
  type: Boolean
62
66
  },
67
+ /**
68
+ * @props { Boolean } isAttrsConfig
69
+ * @description 是否支持attr的配置
70
+ */
63
71
  isAttrsConfig: {
64
72
  type: Boolean
65
73
  },
74
+ /**
75
+ * @props { Object } defaultConfig
76
+ * @description 配置的数据
77
+ */
66
78
  defaultConfig: {
67
79
  type: Object,
68
80
  default() {
@@ -132,9 +132,10 @@ const index$2I = require("./listsp/index.cjs");
132
132
  const index$2J = require("./paging/index.cjs");
133
133
  const index$2K = require("./tables/index.cjs");
134
134
  const index$2L = require("./tablesp/index.cjs");
135
- const index$2M = require("./tabless/index.cjs");
136
- const index$2N = require("./tablesv/index.cjs");
137
- const index$2O = require("./tablesvp/index.cjs");
135
+ const index$2M = require("./tablespd/index.cjs");
136
+ const index$2N = require("./tabless/index.cjs");
137
+ const index$2O = require("./tablesv/index.cjs");
138
+ const index$2P = require("./tablesvp/index.cjs");
138
139
  const index$1 = require("element-plus/es/components/button/index");
139
140
  const index$3 = require("element-plus/es/components/card/index");
140
141
  const index$5 = require("element-plus/es/components/color-picker/index");
@@ -311,9 +312,10 @@ exports.Listsp = index$2I.Listsp;
311
312
  exports.Paging = index$2J.Paging;
312
313
  exports.Tables = index$2K.Tables;
313
314
  exports.Tablesp = index$2L.Tablesp;
314
- exports.Tabless = index$2M.Tabless;
315
- exports.Tablesv = index$2N.Tablesv;
316
- exports.Tablesvp = index$2O.Tablesvp;
315
+ exports.Tablespd = index$2M.Tablespd;
316
+ exports.Tabless = index$2N.Tabless;
317
+ exports.Tablesv = index$2O.Tablesv;
318
+ exports.Tablesvp = index$2P.Tablesvp;
317
319
  Object.keys(index$1).forEach((k) => {
318
320
  if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
319
321
  enumerable: true,
@@ -1109,6 +1109,17 @@
1109
1109
  .list-div .list-table .list-table-th {
1110
1110
  text-align: left;
1111
1111
  }
1112
+ .list-div .list-table .list-table-value {
1113
+ word-break: break-all;
1114
+ white-space: normal;
1115
+ display: block;
1116
+ max-height: var(--list-row-max-height);
1117
+ display: -webkit-box;
1118
+ -webkit-line-clamp: var(--list-line-clamp); /* 显示的行数 */
1119
+ -webkit-box-orient: vertical;
1120
+ overflow: hidden;
1121
+ text-overflow: ellipsis;
1122
+ }
1112
1123
  .list-div .list-table.right .list-table-th {
1113
1124
  text-align: right;
1114
1125
  }
@@ -1669,6 +1680,34 @@
1669
1680
  justify-content: flex-end;
1670
1681
  }
1671
1682
 
1683
+ .tablespd {
1684
+ width: 100%;
1685
+ flex: 1;
1686
+ display: flex;
1687
+ flex-direction: column;
1688
+ }
1689
+ .tablespd-main {
1690
+ display: flex;
1691
+ flex-direction: column;
1692
+ flex: 1;
1693
+ width: 100%;
1694
+ }
1695
+ .tablespd-main.is-radio .el-table__header .el-table-column--selection .el-checkbox {
1696
+ display: none;
1697
+ }
1698
+ .tablespd-main.is-scroll .v-scroll-add {
1699
+ text-align: center;
1700
+ padding: 10px;
1701
+ color: #999;
1702
+ background-color: #eee;
1703
+ }
1704
+ .tablespd-paginat {
1705
+ overflow: hidden;
1706
+ }
1707
+ .tablespd-paginat .el-pagination {
1708
+ justify-content: flex-end;
1709
+ }
1710
+
1672
1711
  .tabless {
1673
1712
  width: 100%;
1674
1713
  flex: 1;
@@ -129,6 +129,7 @@ export * from './listsp/index';
129
129
  export * from './paging/index';
130
130
  export * from './tables/index';
131
131
  export * from './tablesp/index';
132
+ export * from './tablespd/index';
132
133
  export * from './tabless/index';
133
134
  export * from './tablesv/index';
134
135
  export * from './tablesvp/index';