@fangzhongya/fang-ui 0.1.28 → 0.1.29

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.
@@ -305,7 +305,13 @@ function useSetCompon(obj, data, optionss, compons, emit, index, scope) {
305
305
  compons
306
306
  );
307
307
  } else {
308
- return vue.h(obj.compon, componObj);
308
+ if (typeof obj.compon == "function") {
309
+ return obj.compon(componObj);
310
+ } else if (vue.isVNode(obj.compon)) {
311
+ return obj.compon;
312
+ } else {
313
+ return vue.h(obj.compon, componObj);
314
+ }
309
315
  }
310
316
  }
311
317
  }
@@ -316,9 +322,13 @@ const useGetDomValue = (obj, data, options, index) => {
316
322
  }
317
323
  return value;
318
324
  };
319
- const useGetDomLabel = (label, obj, data, slots, optionss, compons, emit, index) => {
325
+ const useGetDomLabel = (label, obj, data, slots, optionss, compons, emit, index, isComponSelected = (obj2) => true) => {
320
326
  if (label) {
321
- if (isObject.isObject(label)) {
327
+ if (typeof label == "function") {
328
+ return label();
329
+ } else if (vue.isVNode(label)) {
330
+ return label;
331
+ } else if (isObject.isObject(label)) {
322
332
  if (isArray.isArray(label)) {
323
333
  return vue.h(
324
334
  "div",
@@ -349,16 +359,18 @@ const useGetDomLabel = (label, obj, data, slots, optionss, compons, emit, index)
349
359
  return slot;
350
360
  }
351
361
  if (label.compon) {
352
- const column = useSetCompon(
353
- label,
354
- data,
355
- optionss,
356
- compons,
357
- emit,
358
- index
359
- );
360
- if (column) {
361
- return column;
362
+ if (isComponSelected(obj)) {
363
+ const column = useSetCompon(
364
+ label,
365
+ data,
366
+ optionss,
367
+ compons,
368
+ emit,
369
+ index
370
+ );
371
+ if (column) {
372
+ return column;
373
+ }
362
374
  }
363
375
  }
364
376
  return useGetDomValue(label, data, optionss, index);
@@ -391,9 +403,42 @@ function usePropsDefault(props, keyObj) {
391
403
  }
392
404
  });
393
405
  }
406
+ function useAdditional(value, add) {
407
+ if (typeof value === "string" && typeof add === "string") {
408
+ return value + add;
409
+ } else {
410
+ return vue.h(vue.Fragment, {}, [value, add]);
411
+ }
412
+ }
413
+ function getVNodeContent(vnode) {
414
+ const container = document.createElement("div");
415
+ vue.render(vnode, container);
416
+ const textContent = container.textContent || "";
417
+ vue.render(null, container);
418
+ return textContent;
419
+ }
420
+ function getLabelText(label) {
421
+ if (typeof label == "undefined") {
422
+ return "";
423
+ } else if (typeof label == "string") {
424
+ return label;
425
+ } else if (typeof label == "function") {
426
+ label = label();
427
+ }
428
+ if (vue.isVNode(label)) {
429
+ return getVNodeContent(label);
430
+ } else if (label instanceof Array) {
431
+ return label.join("");
432
+ } else {
433
+ return (label == null ? void 0 : label.toString()) || "";
434
+ }
435
+ }
394
436
  exports.getFormRule = getFormRule;
437
+ exports.getLabelText = getLabelText;
395
438
  exports.getOnObjs = getOnObjs;
439
+ exports.getVNodeContent = getVNodeContent;
396
440
  exports.setFormDefaultValue = setFormDefaultValue;
441
+ exports.useAdditional = useAdditional;
397
442
  exports.useGetDomLabel = useGetDomLabel;
398
443
  exports.useGetDomValue = useGetDomValue;
399
444
  exports.useHide = useHide;
@@ -1,4 +1,4 @@
1
- import { Component, VNode, RendererNode, RendererElement } from 'vue';
1
+ import { Component, VNode } from 'vue';
2
2
  export declare function useVueValue(v: any, key: string | Function): any;
3
3
  export declare function useSetValue(v: any, key: string | Function, value: any): any;
4
4
  export declare function getFormRule(obj: ListObj): string | undefined;
@@ -11,13 +11,36 @@ type Compons = {
11
11
  [key: string]: Component;
12
12
  };
13
13
  export declare function useSetSlot(obj: ListObj, data: ObjAny, slots: ObjAny, index?: number, scope?: ObjAny): any;
14
- export declare function useSetCompon(obj: ListObj, data: ObjAny, optionss: ObjAny, compons: Compons, emit: Function, index?: number, scope?: ObjAny): VNode< RendererNode, RendererElement, {
15
- [key: string]: any;
16
- }> | undefined;
14
+ export declare function useSetCompon(obj: ListObj, data: ObjAny, optionss: ObjAny, compons: Compons, emit: Function, index?: number, scope?: ObjAny): any;
17
15
  export declare const useGetDomValue: (obj: ListObj, data: ObjAny, options: ObjAny, index?: number) => any;
18
- export declare const useGetDomLabel: (label: string | ListObj | undefined, obj: ListObj, data: ObjAny, slots: ObjAny, optionss: ObjAny, compons: Compons, emit: Function, index: number) => string | VNode;
16
+ export declare const useGetDomLabel: (label: string | ListObj | VNode | Function | undefined, obj: ListObj, data: ObjAny, slots: ObjAny, optionss: ObjAny, compons: Compons, emit: Function, index: number, isComponSelected?: (obj: ListObj) => boolean) => any;
19
17
  export declare function useObjComponSelected(obj: ListObj, props: ObjAny): any;
18
+ /**
19
+ * 设置获取默认值
20
+ * @param props
21
+ * @param keyObj
22
+ * @returns
23
+ */
20
24
  export declare function usePropsDefault(props: any, keyObj: {
21
25
  [key: string]: () => any;
22
26
  }): any;
27
+ /**
28
+ * 追加内容
29
+ * @param value
30
+ * @param add
31
+ * @returns
32
+ */
33
+ export declare function useAdditional(value: string | VNode, add: string | VNode): string | VNode;
34
+ /**
35
+ * 获取VNode的展示文本
36
+ * @param vnode
37
+ * @returns
38
+ */
39
+ export declare function getVNodeContent(vnode: VNode): string;
40
+ /**
41
+ * 获取label的展示文本
42
+ * @param label
43
+ * @returns
44
+ */
45
+ export declare function getLabelText(label: string | ListObj | VNode | Function | undefined): string;
23
46
  export {};
@@ -1,4 +1,4 @@
1
- import { h, resolveComponent, computed, useAttrs } from "vue";
1
+ import { h, resolveComponent, computed, useAttrs, isVNode, Fragment, render } from "vue";
2
2
  import { isHTMLTag, isSVGTag } from "@vue/shared";
3
3
  import "../../utils/index.js";
4
4
  import { isObject } from "@fangzhongya/utils/basic/object/isObject";
@@ -303,7 +303,13 @@ function useSetCompon(obj, data, optionss, compons, emit, index, scope) {
303
303
  compons
304
304
  );
305
305
  } else {
306
- return h(obj.compon, componObj);
306
+ if (typeof obj.compon == "function") {
307
+ return obj.compon(componObj);
308
+ } else if (isVNode(obj.compon)) {
309
+ return obj.compon;
310
+ } else {
311
+ return h(obj.compon, componObj);
312
+ }
307
313
  }
308
314
  }
309
315
  }
@@ -314,9 +320,13 @@ const useGetDomValue = (obj, data, options, index) => {
314
320
  }
315
321
  return value;
316
322
  };
317
- const useGetDomLabel = (label, obj, data, slots, optionss, compons, emit, index) => {
323
+ const useGetDomLabel = (label, obj, data, slots, optionss, compons, emit, index, isComponSelected = (obj2) => true) => {
318
324
  if (label) {
319
- if (isObject(label)) {
325
+ if (typeof label == "function") {
326
+ return label();
327
+ } else if (isVNode(label)) {
328
+ return label;
329
+ } else if (isObject(label)) {
320
330
  if (isArray(label)) {
321
331
  return h(
322
332
  "div",
@@ -347,16 +357,18 @@ const useGetDomLabel = (label, obj, data, slots, optionss, compons, emit, index)
347
357
  return slot;
348
358
  }
349
359
  if (label.compon) {
350
- const column = useSetCompon(
351
- label,
352
- data,
353
- optionss,
354
- compons,
355
- emit,
356
- index
357
- );
358
- if (column) {
359
- return column;
360
+ if (isComponSelected(obj)) {
361
+ const column = useSetCompon(
362
+ label,
363
+ data,
364
+ optionss,
365
+ compons,
366
+ emit,
367
+ index
368
+ );
369
+ if (column) {
370
+ return column;
371
+ }
360
372
  }
361
373
  }
362
374
  return useGetDomValue(label, data, optionss, index);
@@ -389,10 +401,43 @@ function usePropsDefault(props, keyObj) {
389
401
  }
390
402
  });
391
403
  }
404
+ function useAdditional(value, add) {
405
+ if (typeof value === "string" && typeof add === "string") {
406
+ return value + add;
407
+ } else {
408
+ return h(Fragment, {}, [value, add]);
409
+ }
410
+ }
411
+ function getVNodeContent(vnode) {
412
+ const container = document.createElement("div");
413
+ render(vnode, container);
414
+ const textContent = container.textContent || "";
415
+ render(null, container);
416
+ return textContent;
417
+ }
418
+ function getLabelText(label) {
419
+ if (typeof label == "undefined") {
420
+ return "";
421
+ } else if (typeof label == "string") {
422
+ return label;
423
+ } else if (typeof label == "function") {
424
+ label = label();
425
+ }
426
+ if (isVNode(label)) {
427
+ return getVNodeContent(label);
428
+ } else if (label instanceof Array) {
429
+ return label.join("");
430
+ } else {
431
+ return (label == null ? void 0 : label.toString()) || "";
432
+ }
433
+ }
392
434
  export {
393
435
  getFormRule,
436
+ getLabelText,
394
437
  getOnObjs,
438
+ getVNodeContent,
395
439
  setFormDefaultValue,
440
+ useAdditional,
396
441
  useGetDomLabel,
397
442
  useGetDomValue,
398
443
  useHide,
@@ -120,8 +120,9 @@ function setUp(props, emit, cs, refForm, getLocale) {
120
120
  }
121
121
  }
122
122
  obj.config = obj.config ?? {};
123
+ const labeltext = obj.labelText ?? use.getLabelText(obj.label);
123
124
  if (((_a = obj.config) == null ? void 0 : _a.placeholder) === void 0) {
124
- obj.config.placeholder = (trigger == 1 ? getLocale("form.import") : getLocale("form.select")) + obj.label;
125
+ obj.config.placeholder = (trigger == 1 ? getLocale("form.import") : getLocale("form.select")) + labeltext;
125
126
  }
126
127
  if (((_b = obj.config) == null ? void 0 : _b.clearable) === void 0) {
127
128
  obj.config.clearable = true;
@@ -133,6 +134,7 @@ function setUp(props, emit, cs, refForm, getLocale) {
133
134
  rules[p] = obj.rules;
134
135
  } else if (obj.rule) {
135
136
  rules[p] = util.getRule(
137
+ labeltext,
136
138
  trigger,
137
139
  obj,
138
140
  dataForm,
@@ -2,7 +2,7 @@ import { dataHandle } from "./data.js";
2
2
  import { provides, changes } from "../common/config.js";
3
3
  import { getRule } from "./util.js";
4
4
  import "../../../utils/css.js";
5
- import { setFormDefaultValue, getFormRule } from "../../common/use.js";
5
+ import { setFormDefaultValue, getLabelText, getFormRule } from "../../common/use.js";
6
6
  import "../../../utils/index.js";
7
7
  import { computed, provide, isProxy, ref, watch } from "vue";
8
8
  import { useCompons } from "../../../hooks/compons/index.js";
@@ -118,8 +118,9 @@ function setUp(props, emit, cs, refForm, getLocale) {
118
118
  }
119
119
  }
120
120
  obj.config = obj.config ?? {};
121
+ const labeltext = obj.labelText ?? getLabelText(obj.label);
121
122
  if (((_a = obj.config) == null ? void 0 : _a.placeholder) === void 0) {
122
- obj.config.placeholder = (trigger == 1 ? getLocale("form.import") : getLocale("form.select")) + obj.label;
123
+ obj.config.placeholder = (trigger == 1 ? getLocale("form.import") : getLocale("form.select")) + labeltext;
123
124
  }
124
125
  if (((_b = obj.config) == null ? void 0 : _b.clearable) === void 0) {
125
126
  obj.config.clearable = true;
@@ -131,6 +132,7 @@ function setUp(props, emit, cs, refForm, getLocale) {
131
132
  rules[p] = obj.rules;
132
133
  } else if (obj.rule) {
133
134
  rules[p] = getRule(
135
+ labeltext,
134
136
  trigger,
135
137
  obj,
136
138
  dataForm,
@@ -19,9 +19,8 @@ function _interopNamespaceDefault(e) {
19
19
  return Object.freeze(n);
20
20
  }
21
21
  const judge__namespace = /* @__PURE__ */ _interopNamespaceDefault(judge);
22
- function getRule(trigger, obj, data, refForm, getLocale) {
22
+ function getRule(name, trigger, obj, data, refForm, getLocale) {
23
23
  var _a;
24
- const name = obj.label;
25
24
  let multiple = obj.multiple ?? ((_a = obj.config) == null ? void 0 : _a.multiple);
26
25
  const rule = obj.rule;
27
26
  if (typeof multiple != "boolean") {
@@ -18,5 +18,5 @@ export type Rules = {
18
18
  * @param {any} refForm 表单引用
19
19
  * @returns {{ required: boolean, validator: Function, trigger: string }}
20
20
  */
21
- export declare function getRule(trigger: number, obj: ListObj, data: any, refForm: any, getLocale: Function): Rule;
21
+ export declare function getRule(name: string, trigger: number, obj: ListObj, data: any, refForm: any, getLocale: Function): Rule;
22
22
  export {};
@@ -1,8 +1,7 @@
1
1
  import { useHide } from "../../common/use.js";
2
2
  import * as judge from "@fangzhongya/utils/judge/judge";
3
- function getRule(trigger, obj, data, refForm, getLocale) {
3
+ function getRule(name, trigger, obj, data, refForm, getLocale) {
4
4
  var _a;
5
- const name = obj.label;
6
5
  let multiple = obj.multiple ?? ((_a = obj.config) == null ? void 0 : _a.multiple);
7
6
  const rule = obj.rule;
8
7
  if (typeof multiple != "boolean") {
@@ -180,7 +180,13 @@ const _sfc_main = vue.defineComponent({
180
180
  return vue.h(vue.resolveComponent(compon), componObj, slots);
181
181
  }
182
182
  } else {
183
- return vue.h(compon, componObj, slots);
183
+ if (typeof compon == "function") {
184
+ return compon(componObj, slots);
185
+ } else if (vue.isVNode(compon)) {
186
+ return compon;
187
+ } else {
188
+ return vue.h(compon, componObj, slots);
189
+ }
184
190
  }
185
191
  };
186
192
  const setSslot = () => {
@@ -1,4 +1,4 @@
1
- import { defineComponent, computed, ref, h, resolveComponent } from "vue";
1
+ import { defineComponent, computed, ref, h, resolveComponent, isVNode } 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";
@@ -178,7 +178,13 @@ const _sfc_main = defineComponent({
178
178
  return h(resolveComponent(compon), componObj, slots);
179
179
  }
180
180
  } else {
181
- return h(compon, componObj, slots);
181
+ if (typeof compon == "function") {
182
+ return compon(componObj, slots);
183
+ } else if (isVNode(compon)) {
184
+ return compon;
185
+ } else {
186
+ return h(compon, componObj, slots);
187
+ }
182
188
  }
183
189
  };
184
190
  const setSslot = () => {
@@ -28,7 +28,7 @@ function render(props, emit, slots, form) {
28
28
  colon = ":";
29
29
  }
30
30
  if (label) {
31
- return label + colon;
31
+ return use.useAdditional(label, colon);
32
32
  }
33
33
  }
34
34
  return label;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, inject } from "vue";
2
- import { useGetDomLabel } from "../../common/use.js";
2
+ import { useGetDomLabel, useAdditional } from "../../common/use.js";
3
3
  import { provides } from "../../forms/common/config.js";
4
4
  import { useComponsGet } from "../../../hooks/compons/index.js";
5
5
  function render(props, emit, slots, form) {
@@ -26,7 +26,7 @@ function render(props, emit, slots, form) {
26
26
  colon = ":";
27
27
  }
28
28
  if (label) {
29
- return label + colon;
29
+ return useAdditional(label, colon);
30
30
  }
31
31
  }
32
32
  return label;
@@ -121,5 +121,4 @@
121
121
  @use './tablespd/index.scss' as *;
122
122
  @use './tabless/index.scss' as *;
123
123
  @use './tablesv/index.scss' as *;
124
- @use './tablesvp/index.scss' as *;
125
- @use './tablesvpd/index.scss' as *;
124
+ @use './tablesvp/index.scss' as *;
@@ -2,8 +2,6 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  require("vue");
4
4
  const use = require("../../common/use.cjs");
5
- require("../../../utils/util.cjs");
6
- const isObject = require("@fangzhongya/utils/basic/object/isObject");
7
5
  const setClass = (item, data, index) => {
8
6
  const v = data[item.state ?? item.prop];
9
7
  if (item.setcss) {
@@ -37,29 +35,17 @@ function setSslot(obj, data, props, compons, emit, slots, isComponSelected, inde
37
35
  function setLabel(obj, props, compons, emit, slots, isComponSelected, index) {
38
36
  let label = obj.label ?? "";
39
37
  if (label) {
40
- if (isObject.isObject(label)) {
41
- label = Object.assign({}, obj, label);
42
- const slot = use.useSetSlot(label, props.value, slots, index);
43
- if (slot) {
44
- return slot;
45
- }
46
- if (label.compon) {
47
- if (isComponSelected(obj)) {
48
- const column = use.useSetCompon(
49
- label,
50
- props.value,
51
- props.optionss,
52
- compons,
53
- emit,
54
- index
55
- );
56
- if (column) {
57
- return column;
58
- }
59
- }
60
- }
61
- label = use.useGetDomValue(label, props.value, props.optionss, index);
62
- }
38
+ label = use.useGetDomLabel(
39
+ label,
40
+ obj,
41
+ props.value,
42
+ slots,
43
+ props.optionss,
44
+ compons,
45
+ emit,
46
+ index || 0,
47
+ isComponSelected
48
+ );
63
49
  }
64
50
  let colon = props.colon;
65
51
  if (colon) {
@@ -67,7 +53,7 @@ function setLabel(obj, props, compons, emit, slots, isComponSelected, index) {
67
53
  colon = ":";
68
54
  }
69
55
  if (label) {
70
- return label + colon;
56
+ return use.useAdditional(label, colon);
71
57
  }
72
58
  }
73
59
  return label;
@@ -4,5 +4,5 @@ type Compons = {
4
4
  };
5
5
  export declare const setClass: (item: ListObj, data: ObjStr, index: number) => any;
6
6
  export declare function setSslot(obj: ListObj, data: ObjAny, props: ObjAny, compons: Compons, emit: Function, slots: ObjAny, isComponSelected: Function, index?: number): any;
7
- export declare function setLabel(obj: ListObj, props: ObjAny, compons: Compons, emit: Function, slots: ObjAny, isComponSelected: Function, index?: number): any;
7
+ export declare function setLabel(obj: ObjAny, props: ObjAny, compons: Compons, emit: Function, slots: ObjAny, isComponSelected: (obj: ObjAny) => boolean, index?: number): any;
8
8
  export {};
@@ -1,7 +1,5 @@
1
1
  import "vue";
2
- import { useSetSlot, useSetCompon, useGetDomValue } from "../../common/use.js";
3
- import "../../../utils/util.js";
4
- import { isObject } from "@fangzhongya/utils/basic/object/isObject";
2
+ import { useSetSlot, useSetCompon, useGetDomValue, useGetDomLabel, useAdditional } from "../../common/use.js";
5
3
  const setClass = (item, data, index) => {
6
4
  const v = data[item.state ?? item.prop];
7
5
  if (item.setcss) {
@@ -35,29 +33,17 @@ function setSslot(obj, data, props, compons, emit, slots, isComponSelected, inde
35
33
  function setLabel(obj, props, compons, emit, slots, isComponSelected, index) {
36
34
  let label = obj.label ?? "";
37
35
  if (label) {
38
- if (isObject(label)) {
39
- label = Object.assign({}, obj, label);
40
- const slot = useSetSlot(label, props.value, slots, index);
41
- if (slot) {
42
- return slot;
43
- }
44
- if (label.compon) {
45
- if (isComponSelected(obj)) {
46
- const column = useSetCompon(
47
- label,
48
- props.value,
49
- props.optionss,
50
- compons,
51
- emit,
52
- index
53
- );
54
- if (column) {
55
- return column;
56
- }
57
- }
58
- }
59
- label = useGetDomValue(label, props.value, props.optionss, index);
60
- }
36
+ label = useGetDomLabel(
37
+ label,
38
+ obj,
39
+ props.value,
40
+ slots,
41
+ props.optionss,
42
+ compons,
43
+ emit,
44
+ index || 0,
45
+ isComponSelected
46
+ );
61
47
  }
62
48
  let colon = props.colon;
63
49
  if (colon) {
@@ -65,7 +51,7 @@ function setLabel(obj, props, compons, emit, slots, isComponSelected, index) {
65
51
  colon = ":";
66
52
  }
67
53
  if (label) {
68
- return label + colon;
54
+ return useAdditional(label, colon);
69
55
  }
70
56
  }
71
57
  return label;
@@ -224,6 +224,7 @@ export declare const useInit: (props: ExtractPropTypes<typeof dataProps>, emit:
224
224
  default?: any;
225
225
  value?: any;
226
226
  label?: string | /*elided*/ any | undefined;
227
+ labelText?: string | undefined;
227
228
  hideLabel?: boolean | undefined;
228
229
  prop?: string | undefined;
229
230
  slot?: string | undefined;
@@ -256,6 +257,7 @@ export declare const useInit: (props: ExtractPropTypes<typeof dataProps>, emit:
256
257
  default?: any;
257
258
  value?: any;
258
259
  label?: string | /*elided*/ any | undefined;
260
+ labelText?: string | undefined;
259
261
  hideLabel?: boolean | undefined;
260
262
  prop?: string | undefined;
261
263
  slot?: string | undefined;
@@ -1,7 +1,5 @@
1
1
  import { VNode, RendererNode, RendererElement } from 'vue';
2
- export declare function setHeader(obj: ListObj, scope: ObjAny, slots: ObjAny, emit: Function, props: ObjAny, index: number): string | VNode<RendererNode, RendererElement, {
3
- [key: string]: any;
4
- }>;
2
+ export declare function setHeader(obj: ListObj, scope: ObjAny, slots: ObjAny, emit: Function, props: ObjAny, index: number): any;
5
3
  export declare function getTableColumn(obj: ListObj, emit: Function, props: ObjAny, slots: ObjAny, index: number, def?: Function): VNode<RendererNode, RendererElement, {
6
4
  [key: string]: any;
7
5
  }>;
@@ -1,8 +1,6 @@
1
1
  import { VNode, RendererNode, RendererElement } from 'vue';
2
2
  export declare function setProps(obj: ListObj, props: ObjAny): ObjAny;
3
- export declare function setHeader(obj: ListObj, scope: ObjAny, slots: ObjAny, emit: Function, props: ObjAny, index: number): string | VNode<RendererNode, RendererElement, {
4
- [key: string]: any;
5
- }>;
3
+ export declare function setHeader(obj: ListObj, scope: ObjAny, slots: ObjAny, emit: Function, props: ObjAny, index: number): any;
6
4
  export declare function columnRender(obj: ListObj, emit: Function, props: ObjAny, slots: ObjAny, index: number): VNode<RendererNode, RendererElement, {
7
5
  [key: string]: any;
8
6
  }>;
@@ -1872,32 +1872,4 @@
1872
1872
  }
1873
1873
  .tablesvp-paginat .el-pagination {
1874
1874
  justify-content: flex-end;
1875
- }
1876
-
1877
- .tablesvpd {
1878
- width: 100%;
1879
- height: var(--tablesvpd-height);
1880
- display: flex;
1881
- flex-direction: column;
1882
- }
1883
- .tablesvpd-main {
1884
- display: flex;
1885
- flex-direction: column;
1886
- flex: 1;
1887
- width: 100%;
1888
- }
1889
- .tablesvpd-main.is-radio .el-table__header .el-table-column--selection .el-checkbox {
1890
- display: none;
1891
- }
1892
- .tablesvpd-main.is-scroll .v-scroll-add {
1893
- text-align: center;
1894
- padding: 10px;
1895
- color: #999;
1896
- background-color: #eee;
1897
- }
1898
- .tablesvpd-paginat {
1899
- overflow: hidden;
1900
- }
1901
- .tablesvpd-paginat .el-pagination {
1902
- justify-content: flex-end;
1903
1875
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "prefix": "fang-ui",
3
3
  "info": {},
4
- "lastModified": 1763474711826,
4
+ "lastModified": 1763520174611,
5
5
  "icons": {
6
6
  "bar": {
7
7
  "body": " <path fill=\"currentColor\" d=\"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z\" ></path> "
package/dist/index.css CHANGED
@@ -1872,32 +1872,4 @@
1872
1872
  }
1873
1873
  .tablesvp-paginat .el-pagination {
1874
1874
  justify-content: flex-end;
1875
- }
1876
-
1877
- .tablesvpd {
1878
- width: 100%;
1879
- height: var(--tablesvpd-height);
1880
- display: flex;
1881
- flex-direction: column;
1882
- }
1883
- .tablesvpd-main {
1884
- display: flex;
1885
- flex-direction: column;
1886
- flex: 1;
1887
- width: 100%;
1888
- }
1889
- .tablesvpd-main.is-radio .el-table__header .el-table-column--selection .el-checkbox {
1890
- display: none;
1891
- }
1892
- .tablesvpd-main.is-scroll .v-scroll-add {
1893
- text-align: center;
1894
- padding: 10px;
1895
- color: #999;
1896
- background-color: #eee;
1897
- }
1898
- .tablesvpd-paginat {
1899
- overflow: hidden;
1900
- }
1901
- .tablesvpd-paginat .el-pagination {
1902
- justify-content: flex-end;
1903
1875
  }
package/dist/type.d.ts CHANGED
@@ -67,6 +67,10 @@ type ListObj = {
67
67
  * 展示字段名称
68
68
  */
69
69
  label?: string | ListObj;
70
+ /**
71
+ * 展示字段名称的文本,用来校验提示,输入框提示
72
+ */
73
+ labelText?: string;
70
74
  hideLabel?: boolean;
71
75
  /**
72
76
  * 表单取值字段名称
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fangzhongya/fang-ui",
3
3
  "private": false,
4
- "version": "0.1.28",
4
+ "version": "0.1.29",
5
5
  "type": "module",
6
6
  "description ": "fang-ui",
7
7
  "keywords": [
@@ -51,10 +51,10 @@
51
51
  "vue-tsc": "^3.1.4",
52
52
  "vxe-table": "4.6.20",
53
53
  "@fang-ui/components": "0.0.1-0",
54
- "@fang-ui/hooks": "0.0.1-0",
55
- "@fang-ui/locale": "0.0.1-0",
56
54
  "@fang-ui/directives": "0.0.1-0",
55
+ "@fang-ui/hooks": "0.0.1-0",
57
56
  "@fang-ui/icons": "0.0.1-0",
57
+ "@fang-ui/locale": "0.0.1-0",
58
58
  "@fang-ui/theme": "0.0.1-0",
59
59
  "@fang-ui/types": "0.0.1-0",
60
60
  "@fang-ui/utils": "0.0.1-0"
File without changes