@fangzhongya/fang-ui 0.1.19 → 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 (106) 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 +1 -1
  9. package/dist/components/forms-div/src/data.js +1 -1
  10. package/dist/components/forms-div/src/index2.cjs +7 -1
  11. package/dist/components/forms-div/src/index2.js +7 -1
  12. package/dist/components/forms-item/src/data.cjs +1 -1
  13. package/dist/components/forms-item/src/data.js +1 -1
  14. package/dist/components/forms-item/src/index2.cjs +4 -2
  15. package/dist/components/forms-item/src/index2.js +4 -2
  16. package/dist/components/forms-items/src/data.cjs +1 -1
  17. package/dist/components/forms-items/src/data.js +1 -1
  18. package/dist/components/forms-items/src/index2.cjs +4 -2
  19. package/dist/components/forms-items/src/index2.js +4 -2
  20. package/dist/components/global-config/src/data.cjs +12 -0
  21. package/dist/components/global-config/src/data.d.ts +12 -0
  22. package/dist/components/global-config/src/data.js +12 -0
  23. package/dist/components/index.cjs +8 -6
  24. package/dist/{index.css → components/index.css} +39 -22
  25. package/dist/components/index.d.ts +1 -0
  26. package/dist/components/index.js +2 -0
  27. package/dist/components/index.scss +2 -2
  28. package/dist/components/index2.scss +2 -2
  29. package/dist/components/list/index.css +12 -0
  30. package/dist/components/list/index.scss +15 -0
  31. package/dist/components/list/src/data.cjs +21 -2
  32. package/dist/components/list/src/data.d.ts +22 -1
  33. package/dist/components/list/src/data.js +21 -2
  34. package/dist/components/list/src/index2.cjs +61 -10
  35. package/dist/components/list/src/index2.js +61 -10
  36. package/dist/components/list/style/index2.scss +1 -0
  37. package/dist/components/page/index.css +11 -0
  38. package/dist/components/tables/common/pagin.cjs +60 -16
  39. package/dist/components/tables/common/pagin.d.ts +8 -0
  40. package/dist/components/tables/common/pagin.js +60 -16
  41. package/dist/components/tables/common/tooltip.cjs +101 -0
  42. package/dist/components/tables/common/tooltip.d.ts +6 -0
  43. package/dist/components/tables/common/tooltip.js +101 -0
  44. package/dist/components/tables/common/util.cjs +3 -3
  45. package/dist/components/tables/common/util.js +3 -3
  46. package/dist/components/tables/src/column.cjs +19 -15
  47. package/dist/components/tables/src/column.d.ts +3 -2
  48. package/dist/components/tables/src/column.js +17 -13
  49. package/dist/components/tables/src/columns3.cjs +16 -32
  50. package/dist/components/tables/src/columns3.js +15 -31
  51. package/dist/components/tables/src/data.cjs +3 -2
  52. package/dist/components/tables/src/data.d.ts +1 -0
  53. package/dist/components/tables/src/data.js +3 -2
  54. package/dist/components/tablespd/index.cjs +9 -0
  55. package/dist/components/tablespd/index.css +88 -0
  56. package/dist/components/tablespd/index.d.ts +4 -0
  57. package/dist/components/tablespd/index.js +9 -0
  58. package/dist/components/tablespd/index.scss +40 -0
  59. package/dist/components/tablespd/src/data.cjs +13 -0
  60. package/dist/components/tablespd/src/data.d.ts +18 -0
  61. package/dist/components/tablespd/src/data.js +13 -0
  62. package/dist/components/tablespd/src/index.cjs +4 -0
  63. package/dist/components/tablespd/src/index.js +4 -0
  64. package/dist/components/tablespd/src/index2.cjs +111 -0
  65. package/dist/components/tablespd/src/index2.js +111 -0
  66. package/dist/components/tablespd/style/index2.scss +4 -0
  67. package/dist/components/tablesv/src/column.cjs +4 -4
  68. package/dist/components/tablesv/src/column.js +3 -3
  69. package/dist/css/index.css +39 -22
  70. package/dist/css/list.css +12 -0
  71. package/dist/css/page.css +11 -0
  72. package/dist/css/tablespd.css +88 -0
  73. package/dist/directives/index.cjs +6 -4
  74. package/dist/directives/index.d.ts +1 -0
  75. package/dist/directives/index.js +4 -2
  76. package/dist/directives/sortable/index.cjs +45 -0
  77. package/dist/directives/sortable/index.d.ts +6 -0
  78. package/dist/directives/sortable/index.js +45 -0
  79. package/dist/expand/{chunk-XY53LCPN.js → chunk-2BLP2ANQ.js} +3 -0
  80. package/dist/expand/{chunk-IEODUGVJ.cjs → chunk-OT6GISSR.cjs} +3 -0
  81. package/dist/expand/components.cjs +5 -5
  82. package/dist/expand/components.js +1 -1
  83. package/dist/expand/config.cjs +2 -2
  84. package/dist/expand/config.js +1 -1
  85. package/dist/hooks/cssname/index.d.ts +2 -2
  86. package/dist/hooks/index.cjs +0 -1
  87. package/dist/hooks/index.js +1 -2
  88. package/dist/hooks/inherit/index.cjs +0 -8
  89. package/dist/hooks/inherit/index.d.ts +0 -1
  90. package/dist/hooks/inherit/index.js +0 -8
  91. package/dist/icons/index.json +1 -1
  92. package/dist/index.cjs +30 -26
  93. package/dist/index.js +6 -2
  94. package/dist/node_modules/.pnpm/sortablejs@1.15.6/node_modules/sortablejs/modular/sortable.esm.cjs +2758 -0
  95. package/dist/node_modules/.pnpm/sortablejs@1.15.6/node_modules/sortablejs/modular/sortable.esm.js +2758 -0
  96. package/dist/utils/vues/getAttrValue.cjs +11 -0
  97. package/dist/utils/vues/getAttrValue.d.ts +3 -0
  98. package/dist/utils/vues/getAttrValue.js +11 -0
  99. package/dist/utils/vues/index.cjs +2 -0
  100. package/dist/utils/vues/index.d.ts +1 -0
  101. package/dist/utils/vues/index.js +2 -0
  102. package/package.json +7 -5
  103. /package/dist/components/{forms-item → forms-items}/index.css +0 -0
  104. /package/dist/components/{date-picker → global-config}/index.css +0 -0
  105. /package/dist/css/{forms-item.css → forms-items.css} +0 -0
  106. /package/dist/css/{date-picker.css → global-config.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
  () => {
@@ -56,7 +56,7 @@ const dataProps = {
56
56
  }
57
57
  }
58
58
  };
59
- const dataEmits = ["update:modelValue", "list-events"];
59
+ const dataEmits = ["update:modelValue", "list-events", "upform"];
60
60
  const dataSlot = {
61
61
  default: "default"
62
62
  };
@@ -54,7 +54,7 @@ const dataProps = {
54
54
  }
55
55
  }
56
56
  };
57
- const dataEmits = ["update:modelValue", "list-events"];
57
+ const dataEmits = ["update:modelValue", "list-events", "upform"];
58
58
  const dataSlot = {
59
59
  default: "default"
60
60
  };
@@ -128,6 +128,9 @@ const _sfc_main = vue.defineComponent({
128
128
  if (!props.orig) {
129
129
  emit("update:modelValue", v);
130
130
  }
131
+ if (props.compon != "items") {
132
+ emit("upform", value2, props, v);
133
+ }
131
134
  }
132
135
  });
133
136
  const options = vue.computed(() => {
@@ -163,7 +166,10 @@ const _sfc_main = vue.defineComponent({
163
166
  optionss: prs.optionss,
164
167
  valueobj: prs.valueobj,
165
168
  [componValueName]: value.value,
166
- ["onUpdate:" + componValueName]: (v) => value.value = v
169
+ ["onUpdate:" + componValueName]: (v) => value.value = v,
170
+ ["onUpform"]: (...arr) => {
171
+ emit("upform", ...arr);
172
+ }
167
173
  };
168
174
  if (typeof compon == "string") {
169
175
  const tcom = lineToLargeHump.lineToLargeHump(compon);
@@ -126,6 +126,9 @@ const _sfc_main = defineComponent({
126
126
  if (!props.orig) {
127
127
  emit("update:modelValue", v);
128
128
  }
129
+ if (props.compon != "items") {
130
+ emit("upform", value2, props, v);
131
+ }
129
132
  }
130
133
  });
131
134
  const options = computed(() => {
@@ -161,7 +164,10 @@ const _sfc_main = defineComponent({
161
164
  optionss: prs.optionss,
162
165
  valueobj: prs.valueobj,
163
166
  [componValueName]: value.value,
164
- ["onUpdate:" + componValueName]: (v) => value.value = v
167
+ ["onUpdate:" + componValueName]: (v) => value.value = v,
168
+ ["onUpform"]: (...arr) => {
169
+ emit("upform", ...arr);
170
+ }
165
171
  };
166
172
  if (typeof compon == "string") {
167
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;
@@ -1772,26 +1811,4 @@
1772
1811
  left: 0;
1773
1812
  z-index: 1;
1774
1813
  opacity: 0;
1775
- }
1776
-
1777
- .tablesvp {
1778
- width: 100%;
1779
- height: var(--tablesvp-height);
1780
- display: flex;
1781
- flex-direction: column;
1782
- }
1783
- .tablesvp-main {
1784
- display: flex;
1785
- flex-direction: column;
1786
- flex: 1;
1787
- width: 100%;
1788
- }
1789
- .tablesvp-main.is-radio .el-table__header .el-table-column--selection .el-checkbox {
1790
- display: none;
1791
- }
1792
- .tablesvp-paginat {
1793
- overflow: hidden;
1794
- }
1795
- .tablesvp-paginat .el-pagination {
1796
- justify-content: flex-end;
1797
1814
  }
@@ -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';
@@ -130,6 +130,7 @@ import { Listsp } from "./listsp/index.js";
130
130
  import { Paging } from "./paging/index.js";
131
131
  import { Tables } from "./tables/index.js";
132
132
  import { Tablesp } from "./tablesp/index.js";
133
+ import { Tablespd } from "./tablespd/index.js";
133
134
  import { Tabless } from "./tabless/index.js";
134
135
  import { Tablesv } from "./tablesv/index.js";
135
136
  import { Tablesvp } from "./tablesvp/index.js";
@@ -294,6 +295,7 @@ export {
294
295
  TableColumn,
295
296
  Tables,
296
297
  Tablesp,
298
+ Tablespd,
297
299
  Tabless,
298
300
  Tablesv,
299
301
  Tablesvp,
@@ -116,6 +116,6 @@
116
116
  @use './paging/index.scss' as *;
117
117
  @use './tables/index.scss' as *;
118
118
  @use './tablesp/index.scss' as *;
119
+ @use './tablespd/index.scss' as *;
119
120
  @use './tabless/index.scss' as *;
120
- @use './tablesv/index.scss' as *;
121
- @use './tablesvp/index.scss' as *;
121
+ @use './tablesv/index.scss' as *;
@@ -116,6 +116,6 @@
116
116
  @use './paging/style/index2.scss' as *;
117
117
  @use './tables/style/index2.scss' as *;
118
118
  @use './tablesp/style/index2.scss' as *;
119
+ @use './tablespd/style/index2.scss' as *;
119
120
  @use './tabless/style/index2.scss' as *;
120
- @use './tablesv/style/index2.scss' as *;
121
- @use './tablesvp/style/index2.scss' as *;
121
+ @use './tablesv/style/index2.scss' as *;
@@ -1,3 +1,4 @@
1
+ @charset "UTF-8";
1
2
  :root {
2
3
  --on: rgb(91, 189, 246);
3
4
  --color-primary: #409eff;
@@ -85,6 +86,17 @@
85
86
  .list-div .list-table .list-table-th {
86
87
  text-align: left;
87
88
  }
89
+ .list-div .list-table .list-table-value {
90
+ word-break: break-all;
91
+ white-space: normal;
92
+ display: block;
93
+ max-height: var(--list-row-max-height);
94
+ display: -webkit-box;
95
+ -webkit-line-clamp: var(--list-line-clamp); /* 显示的行数 */
96
+ -webkit-box-orient: vertical;
97
+ overflow: hidden;
98
+ text-overflow: ellipsis;
99
+ }
88
100
  .list-div .list-table.right .list-table-th {
89
101
  text-align: right;
90
102
  }
@@ -88,6 +88,21 @@ $list: 'list';
88
88
  .#{z($list, 'table-th')} {
89
89
  text-align: left;
90
90
  }
91
+
92
+ .#{z($list, 'table-value')} {
93
+ word-break: break-all;
94
+ white-space: normal;
95
+ display: block;
96
+
97
+ max-height: var(vdm('row-max-height', $list));
98
+ display: -webkit-box;
99
+ -webkit-line-clamp: var(
100
+ vdm('line-clamp', $list)
101
+ ); /* 显示的行数 */
102
+ -webkit-box-orient: vertical;
103
+ overflow: hidden;
104
+ text-overflow: ellipsis;
105
+ }
91
106
  &.right {
92
107
  .#{z($list, 'table-th')} {
93
108
  text-align: right;
@@ -76,6 +76,9 @@ const dataProps = {
76
76
  align: {
77
77
  type: String
78
78
  },
79
+ showOverflow: {
80
+ type: [Boolean, String]
81
+ },
79
82
  /**
80
83
  * @props { String } labelAlign ( )
81
84
  * 标签展示左右位置
@@ -83,6 +86,13 @@ const dataProps = {
83
86
  labelAlign: {
84
87
  type: String
85
88
  },
89
+ /**
90
+ * @props { String } items ( )
91
+ * 展示上下位置
92
+ */
93
+ items: {
94
+ type: String
95
+ },
86
96
  /**
87
97
  * @props { String } labelItems=center ( )
88
98
  * 标签展示上下位置
@@ -91,8 +101,17 @@ const dataProps = {
91
101
  type: String,
92
102
  default: "center"
93
103
  },
94
- items: {
95
- type: String
104
+ /**
105
+ * @props { String } rowMaxHeight ( )
106
+ * 最大高度
107
+ */
108
+ rowMaxHeight: { type: String },
109
+ /**
110
+ * @props { Number } lineClamp ( )
111
+ * 超出几行隐藏
112
+ */
113
+ lineClamp: {
114
+ type: Number
96
115
  },
97
116
  /**
98
117
  * @props { Boolean, String } border=true ( )