@fangzhongya/fang-ui 0.0.98 → 0.0.99

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 (221) hide show
  1. package/dist/components/alert/src/index2.cjs +11 -11
  2. package/dist/components/array/src/index2.cjs +45 -45
  3. package/dist/components/audios/src/index2.cjs +54 -54
  4. package/dist/components/autocomplete/src/index2.cjs +11 -11
  5. package/dist/components/box/src/index2.cjs +21 -21
  6. package/dist/components/box-adjust/index.css +17 -0
  7. package/dist/components/box-adjust/index.scss +18 -0
  8. package/dist/components/box-adjust/src/data.cjs +17 -1
  9. package/dist/components/box-adjust/src/data.d.ts +16 -0
  10. package/dist/components/box-adjust/src/data.js +17 -1
  11. package/dist/components/box-adjust/src/index2.cjs +69 -35
  12. package/dist/components/box-adjust/src/index2.js +37 -3
  13. package/dist/components/box-local/src/index2.cjs +20 -20
  14. package/dist/components/box-mask/src/index2.cjs +5 -5
  15. package/dist/components/box-teleport/src/index2.cjs +5 -5
  16. package/dist/components/box-title/src/index2.cjs +15 -15
  17. package/dist/components/button/src/index2.cjs +11 -11
  18. package/dist/components/buttons/src/index2.cjs +20 -20
  19. package/dist/components/card/src/index2.cjs +11 -11
  20. package/dist/components/cascader/src/index2.cjs +11 -11
  21. package/dist/components/cascader-panel/src/index2.cjs +11 -11
  22. package/dist/components/cascaders/src/index2.cjs +17 -17
  23. package/dist/components/checkbox/src/index2.cjs +11 -11
  24. package/dist/components/checkbox-button/src/index2.cjs +11 -11
  25. package/dist/components/checkbox-group/src/index2.cjs +11 -11
  26. package/dist/components/checks/src/index2.cjs +31 -31
  27. package/dist/components/choice-select/src/index2.cjs +5 -5
  28. package/dist/components/collapse/src/index2.cjs +11 -11
  29. package/dist/components/collapse-item/src/index2.cjs +11 -11
  30. package/dist/components/color-picker/src/index2.cjs +11 -11
  31. package/dist/components/common/list.cjs +5 -5
  32. package/dist/components/common/use.cjs +5 -5
  33. package/dist/components/company-select/src/index2.cjs +19 -19
  34. package/dist/components/config-provider/src/index2.cjs +11 -11
  35. package/dist/components/date-picker/src/index2.cjs +11 -11
  36. package/dist/components/date-picker/style/element.scss +1 -1
  37. package/dist/components/date-picker-panel/src/index2.cjs +11 -11
  38. package/dist/components/dates/src/index2.cjs +12 -12
  39. package/dist/components/dates-divide/src/index2.cjs +20 -20
  40. package/dist/components/dates-picker/src/index2.cjs +15 -15
  41. package/dist/components/dates2/src/index2.cjs +26 -26
  42. package/dist/components/department-select/src/index2.cjs +10 -10
  43. package/dist/components/dialog/src/index2.cjs +11 -11
  44. package/dist/components/dialogs/src/index2.cjs +23 -23
  45. package/dist/components/divider/src/index2.cjs +11 -11
  46. package/dist/components/drawer/src/index2.cjs +11 -11
  47. package/dist/components/dropdown/src/index2.cjs +11 -11
  48. package/dist/components/dropdown-item/src/index2.cjs +11 -11
  49. package/dist/components/dropdown-menu/src/index2.cjs +11 -11
  50. package/dist/components/edit/src/index2.cjs +24 -24
  51. package/dist/components/edit-float/src/index2.cjs +40 -40
  52. package/dist/components/form/src/index2.cjs +11 -11
  53. package/dist/components/form-item/src/index2.cjs +11 -11
  54. package/dist/components/forms/index.css +22 -0
  55. package/dist/components/forms/src/index2.cjs +65 -65
  56. package/dist/components/forms/src/setup.cjs +12 -12
  57. package/dist/components/forms-div/src/index2.cjs +11 -11
  58. package/dist/components/forms-drag/src/index2.cjs +73 -73
  59. package/dist/components/forms-item/src/index2.cjs +45 -45
  60. package/dist/components/forms-item/src/label.cjs +4 -4
  61. package/dist/components/forms-items/src/index2.cjs +23 -23
  62. package/dist/components/full-screen/src/index2.cjs +11 -11
  63. package/dist/components/global-config/src/index.cjs +5 -5
  64. package/dist/components/history/src/index2.cjs +26 -26
  65. package/dist/components/icon/src/index2.cjs +23 -23
  66. package/dist/components/icon-picker/src/index2.cjs +52 -52
  67. package/dist/components/iframe/src/data.cjs +1 -1
  68. package/dist/components/iframe/src/data.js +1 -1
  69. package/dist/components/iframe/src/index2.cjs +15 -10
  70. package/dist/components/iframe/src/index2.js +5 -0
  71. package/dist/components/image/src/index2.cjs +11 -11
  72. package/dist/components/image-viewer/src/index2.cjs +11 -11
  73. package/dist/components/images/src/index2.cjs +17 -17
  74. package/dist/components/input/src/index2.cjs +11 -11
  75. package/dist/components/input-array/src/index2.cjs +38 -38
  76. package/dist/components/input-history/src/index2.cjs +47 -47
  77. package/dist/components/input-history/src/util.cjs +4 -4
  78. package/dist/components/input-num/src/index2.cjs +17 -17
  79. package/dist/components/input-number/src/index2.cjs +11 -11
  80. package/dist/components/input-select/src/index2.cjs +51 -51
  81. package/dist/components/input-tag/src/index2.cjs +11 -11
  82. package/dist/components/inputs/src/index2.cjs +17 -17
  83. package/dist/components/keep-com/src/index2.cjs +16 -16
  84. package/dist/components/labels/src/index2.cjs +13 -13
  85. package/dist/components/list/src/index2.cjs +24 -24
  86. package/dist/components/lists/src/index2.cjs +51 -51
  87. package/dist/components/listsp/src/index2.cjs +35 -35
  88. package/dist/components/mention/src/index2.cjs +11 -11
  89. package/dist/components/menu/src/index2.cjs +11 -11
  90. package/dist/components/menu-item/src/index2.cjs +11 -11
  91. package/dist/components/menu-item-group/src/index2.cjs +11 -11
  92. package/dist/components/menus/src/index2.cjs +16 -16
  93. package/dist/components/menus/src/menu-ll2.cjs +11 -11
  94. package/dist/components/no-data/src/index2.cjs +5 -5
  95. package/dist/components/option/src/index2.cjs +10 -10
  96. package/dist/components/option-group/src/index2.cjs +11 -11
  97. package/dist/components/page/index.css +22 -0
  98. package/dist/components/page/src/index2.cjs +77 -77
  99. package/dist/components/page/src/set-column2.cjs +54 -54
  100. package/dist/components/pagination/src/index2.cjs +11 -11
  101. package/dist/components/paging/src/index2.cjs +13 -13
  102. package/dist/components/popconfirm/src/index2.cjs +11 -11
  103. package/dist/components/popover/src/index2.cjs +11 -11
  104. package/dist/components/popup/src/index2.cjs +29 -29
  105. package/dist/components/radio/src/index2.cjs +11 -11
  106. package/dist/components/radio-button/src/index2.cjs +11 -11
  107. package/dist/components/radio-group/src/index2.cjs +11 -11
  108. package/dist/components/retract/src/index2.cjs +14 -14
  109. package/dist/components/right-key/src/index2.cjs +30 -30
  110. package/dist/components/role-select/src/index2.cjs +38 -38
  111. package/dist/components/scrollbar/src/index2.cjs +11 -11
  112. package/dist/components/seamless-scroll/src/index2.cjs +24 -24
  113. package/dist/components/select/src/index2.cjs +11 -11
  114. package/dist/components/select-dialog/src/index2.cjs +65 -65
  115. package/dist/components/select-popover/src/index2.cjs +41 -41
  116. package/dist/components/select-scroll/src/index2.cjs +30 -30
  117. package/dist/components/selector/src/index2.cjs +39 -39
  118. package/dist/components/selects/src/index2.cjs +20 -20
  119. package/dist/components/slider/src/index2.cjs +11 -11
  120. package/dist/components/sliders/src/index2.cjs +13 -13
  121. package/dist/components/stick-div/src/index2.cjs +17 -17
  122. package/dist/components/stick-edge/src/index2.cjs +10 -10
  123. package/dist/components/stick-window/src/index2.cjs +22 -22
  124. package/dist/components/sub-menu/src/index2.cjs +10 -10
  125. package/dist/components/switch/src/index2.cjs +11 -11
  126. package/dist/components/switchs/src/index2.cjs +15 -15
  127. package/dist/components/tab-pane/src/index2.cjs +11 -11
  128. package/dist/components/table/src/index2.cjs +11 -11
  129. package/dist/components/table-column/src/index2.cjs +11 -11
  130. package/dist/components/tables/common/img2.cjs +7 -7
  131. package/dist/components/tables/common/pagin.cjs +16 -16
  132. package/dist/components/tables/common/table-but2.cjs +10 -10
  133. package/dist/components/tables/common/table-color2.cjs +7 -7
  134. package/dist/components/tables/common/table-list2.cjs +9 -9
  135. package/dist/components/tables/common/util.cjs +2 -2
  136. package/dist/components/tables/src/column.cjs +5 -5
  137. package/dist/components/tables/src/columns2.cjs +2 -2
  138. package/dist/components/tables/src/columns3.cjs +2 -2
  139. package/dist/components/tables/src/index2.cjs +29 -29
  140. package/dist/components/tablesp/src/index2.cjs +36 -36
  141. package/dist/components/tabless/src/index2.cjs +49 -49
  142. package/dist/components/tablesv/src/column.cjs +16 -16
  143. package/dist/components/tablesv/src/columns2.cjs +2 -2
  144. package/dist/components/tablesv/src/columns3.cjs +2 -2
  145. package/dist/components/tablesv/src/index2.cjs +30 -30
  146. package/dist/components/tablesvp/src/index2.cjs +30 -30
  147. package/dist/components/tabs/src/index2.cjs +11 -11
  148. package/dist/components/tag/src/index2.cjs +11 -11
  149. package/dist/components/text/src/index2.cjs +11 -11
  150. package/dist/components/text/style/element.scss +1 -1
  151. package/dist/components/texts/src/index2.cjs +8 -8
  152. package/dist/components/time-picker/src/index2.cjs +11 -11
  153. package/dist/components/time-select/src/index2.cjs +11 -11
  154. package/dist/components/tooltip/src/index2.cjs +11 -11
  155. package/dist/components/transfer/src/index2.cjs +11 -11
  156. package/dist/components/tree/src/index2.cjs +11 -11
  157. package/dist/components/tree-select/src/index2.cjs +11 -11
  158. package/dist/components/tree-select-box/src/index2.cjs +29 -29
  159. package/dist/components/upload/src/index2.cjs +11 -11
  160. package/dist/components/uploads/index.css +22 -0
  161. package/dist/components/uploads/index.scss +23 -0
  162. package/dist/components/uploads/src/index2.cjs +128 -138
  163. package/dist/components/uploads/src/index2.js +61 -71
  164. package/dist/components/uploads/src/util.cjs +80 -0
  165. package/dist/components/uploads/src/util.d.ts +10 -0
  166. package/dist/components/uploads/src/util.js +80 -0
  167. package/dist/components/uploads/src/views.cjs +4 -0
  168. package/dist/components/uploads/src/views.js +4 -0
  169. package/dist/components/uploads/src/views2.cjs +77 -0
  170. package/dist/components/uploads/src/views2.js +77 -0
  171. package/dist/components/user-select/src/index2.cjs +99 -99
  172. package/dist/components/videos/src/index2.cjs +97 -97
  173. package/dist/components/window/src/index2.cjs +61 -61
  174. package/dist/css/box-adjust.css +17 -0
  175. package/dist/css/forms.css +22 -0
  176. package/dist/css/index.css +39 -0
  177. package/dist/css/page.css +22 -0
  178. package/dist/css/uploads.css +22 -0
  179. package/dist/directives/scroll/index.cjs +6 -24
  180. package/dist/directives/scroll/index.js +1 -3
  181. package/dist/hooks/event-aliass/index.cjs +2 -2
  182. package/dist/hooks/full-screen/index.cjs +5 -5
  183. package/dist/hooks/global-config/index.cjs +8 -8
  184. package/dist/hooks/inherit/index.cjs +2 -2
  185. package/dist/hooks/locale/index.cjs +7 -7
  186. package/dist/icons/iconify.cjs +3 -3
  187. package/dist/icons/index.css +79 -79
  188. package/dist/icons/index.json +35 -35
  189. package/dist/icons/vue/bar.cjs +3 -3
  190. package/dist/icons/vue/below.cjs +3 -3
  191. package/dist/icons/vue/bicycle.cjs +3 -3
  192. package/dist/icons/vue/bottom-left.cjs +4 -4
  193. package/dist/icons/vue/bottom-right.cjs +4 -4
  194. package/dist/icons/vue/bottom.cjs +3 -3
  195. package/dist/icons/vue/catalogue.cjs +5 -5
  196. package/dist/icons/vue/clear.cjs +5 -5
  197. package/dist/icons/vue/close.cjs +3 -3
  198. package/dist/icons/vue/delete.cjs +3 -3
  199. package/dist/icons/vue/document.cjs +5 -5
  200. package/dist/icons/vue/down.cjs +3 -3
  201. package/dist/icons/vue/download.cjs +3 -3
  202. package/dist/icons/vue/edit.cjs +5 -5
  203. package/dist/icons/vue/enter.cjs +3 -3
  204. package/dist/icons/vue/frame.cjs +3 -3
  205. package/dist/icons/vue/left.cjs +3 -3
  206. package/dist/icons/vue/mute.cjs +3 -3
  207. package/dist/icons/vue/pause.cjs +4 -4
  208. package/dist/icons/vue/play.cjs +3 -3
  209. package/dist/icons/vue/plus.cjs +3 -3
  210. package/dist/icons/vue/retreat.cjs +3 -3
  211. package/dist/icons/vue/right.cjs +3 -3
  212. package/dist/icons/vue/sound.cjs +4 -4
  213. package/dist/icons/vue/star.cjs +4 -4
  214. package/dist/icons/vue/up.cjs +3 -3
  215. package/dist/icons/vue/views.cjs +5 -5
  216. package/dist/icons/vue/views.js +2 -2
  217. package/dist/index.css +39 -0
  218. package/dist/utils/vues/common.cjs +2 -2
  219. package/package.json +3 -3
  220. /package/dist/components/{alert → divider}/index.css +0 -0
  221. /package/dist/css/{alert.css → divider.css} +0 -0
@@ -1,22 +1,22 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const vues = require("vue");
3
+ const vue = require("vue");
4
4
  const data = require("./data.cjs");
5
5
  const index$2 = require("../../../hooks/cssname/index.cjs");
6
6
  const index$1 = require("../../../hooks/locale/index.cjs");
7
7
  const index = require("../../../hooks/inherit/index.cjs");
8
- const _sfc_main = /* @__PURE__ */ vues.defineComponent({
8
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
9
9
  __name: "index",
10
10
  props: data.dataProps,
11
11
  emits: data.dataEmits,
12
12
  setup(__props, { expose: __expose, emit: __emit }) {
13
- const attrs = index.useInherit(vues.useAttrs());
13
+ const attrs = index.useInherit(vue.useAttrs());
14
14
  const { getLocale } = index$1.useLocale();
15
15
  const cs = index$2.useCssName("keep-com");
16
16
  const props = __props;
17
17
  const emit = __emit;
18
- const hideComs = vues.reactive([]);
19
- const value = vues.computed(() => {
18
+ const hideComs = vue.reactive([]);
19
+ const value = vue.computed(() => {
20
20
  return props.is;
21
21
  });
22
22
  const sethideComs = () => {
@@ -25,7 +25,7 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
25
25
  if (!hideComs.map((o) => o.name).includes(name)) {
26
26
  hideComs.push({
27
27
  name,
28
- component: vues.h(vues.resolveComponent(name), {
28
+ component: vue.h(vue.resolveComponent(name), {
29
29
  ...attrs.assem,
30
30
  style: {
31
31
  display: value.value != name ? "block" : "none"
@@ -35,7 +35,7 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
35
35
  }
36
36
  }
37
37
  };
38
- vues.watch(
38
+ vue.watch(
39
39
  [
40
40
  () => props.is,
41
41
  () => props.hides,
@@ -51,24 +51,24 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
51
51
  deep: true
52
52
  }
53
53
  );
54
- const HideComponent = vues.defineComponent({
54
+ const HideComponent = vue.defineComponent({
55
55
  props: {},
56
56
  setup() {
57
- return vues.h("div", {}, hideComs);
57
+ return vue.h("div", {}, hideComs);
58
58
  }
59
59
  });
60
60
  __expose({
61
61
  ...data.dataExpose
62
62
  });
63
63
  return (_ctx, _cache) => {
64
- return vues.openBlock(), vues.createElementBlock("div", vues.mergeProps({
65
- class: vues.unref(cs).z()
66
- }, vues.unref(attrs).root), [
67
- vues.withDirectives(vues.createVNode(vues.unref(HideComponent), null, null, 512), [
68
- [vues.vShow, props.hides.includes(props.is)]
64
+ return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
65
+ class: vue.unref(cs).z()
66
+ }, vue.unref(attrs).root), [
67
+ vue.withDirectives(vue.createVNode(vue.unref(HideComponent), null, null, 512), [
68
+ [vue.vShow, props.hides.includes(props.is)]
69
69
  ]),
70
- vues.withDirectives((vues.openBlock(), vues.createBlock(vues.resolveDynamicComponent(props.is), vues.normalizeProps(vues.guardReactiveProps(vues.unref(attrs).assem)), null, 16)), [
71
- [vues.vShow, !props.hides.includes(props.is)]
70
+ vue.withDirectives((vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(props.is), vue.normalizeProps(vue.guardReactiveProps(vue.unref(attrs).assem)), null, 16)), [
71
+ [vue.vShow, !props.hides.includes(props.is)]
72
72
  ])
73
73
  ], 16);
74
74
  };
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const vues = require("vue");
3
+ const vue = require("vue");
4
4
  const index$2 = require("../../checks/index.cjs");
5
5
  const index$1 = require("../../selects/index.cjs");
6
6
  const use = require("../../common/use.cjs");
7
7
  const index = require("../../../hooks/cssname/index.cjs");
8
8
  const data = require("./data.cjs");
9
9
  const wholeClass = "labels-li-whole";
10
- const _sfc_main = /* @__PURE__ */ vues.defineComponent({
10
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
11
11
  __name: "index",
12
12
  props: data.dataProps,
13
13
  emits: data.dataEmits,
@@ -15,7 +15,7 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
15
15
  const cs = index.useCssName("labels");
16
16
  const props = __props;
17
17
  const emit = __emit;
18
- const comps = vues.computed(() => {
18
+ const comps = vue.computed(() => {
19
19
  if (props.select) {
20
20
  return index$1.Selects;
21
21
  } else {
@@ -36,7 +36,7 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
36
36
  }
37
37
  }
38
38
  const wholeValue = "__Symbol('whole')__" + (/* @__PURE__ */ new Date()).valueOf();
39
- const options = vues.computed(() => {
39
+ const options = vue.computed(() => {
40
40
  const opts = [...props.options];
41
41
  if (!props.nowhole) {
42
42
  const obj = {
@@ -52,7 +52,7 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
52
52
  }
53
53
  return opts;
54
54
  });
55
- const valueMultiple = vues.computed({
55
+ const valueMultiple = vue.computed({
56
56
  get() {
57
57
  if (value.value !== void 0) {
58
58
  if (value.value.length === props.options.filter((item) => !item.disabled).length) {
@@ -95,20 +95,20 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
95
95
  }
96
96
  }
97
97
  return (_ctx, _cache) => {
98
- return vues.openBlock(), vues.createElementBlock("div", {
99
- class: vues.normalizeClass([vues.unref(cs).z(), vues.unref(cs).is("compact", props.compact)])
98
+ return vue.openBlock(), vue.createElementBlock("div", {
99
+ class: vue.normalizeClass([vue.unref(cs).z(), vue.unref(cs).is("compact", props.compact)])
100
100
  }, [
101
- vues.unref(multiple) ? (vues.openBlock(), vues.createBlock(vues.resolveDynamicComponent(comps.value), vues.mergeProps({ key: 0 }, props, {
102
- class: [vues.unref(cs).z("whole")],
101
+ vue.unref(multiple) ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(comps.value), vue.mergeProps({ key: 0 }, props, {
102
+ class: [vue.unref(cs).z("whole")],
103
103
  options: options.value,
104
104
  modelValue: valueMultiple.value,
105
105
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => valueMultiple.value = $event),
106
- multiple: vues.unref(multiple),
106
+ multiple: vue.unref(multiple),
107
107
  onClickMultiple: onClickWholes
108
- }), null, 16, ["class", "options", "modelValue", "multiple"])) : (vues.openBlock(), vues.createBlock(vues.resolveDynamicComponent(comps.value), vues.mergeProps({ key: 1 }, props, {
108
+ }), null, 16, ["class", "options", "modelValue", "multiple"])) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(comps.value), vue.mergeProps({ key: 1 }, props, {
109
109
  options: options.value,
110
- modelValue: vues.unref(value),
111
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vues.isRef(value) ? value.value = $event : null)
110
+ modelValue: vue.unref(value),
111
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.isRef(value) ? value.value = $event : null)
112
112
  }), null, 16, ["options", "modelValue"]))
113
113
  ], 2);
114
114
  };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const vues = require("vue");
3
+ const vue = require("vue");
4
4
  const util = require("./util.cjs");
5
5
  const css = require("../../common/css.cjs");
6
6
  const use = require("../../common/use.cjs");
@@ -12,7 +12,7 @@ const img_vue_vue_type_script_setup_true_lang = require("../../tables/common/img
12
12
  const Components = {
13
13
  Img: img_vue_vue_type_script_setup_true_lang.default
14
14
  };
15
- const _sfc_main = vues.defineComponent({
15
+ const _sfc_main = vue.defineComponent({
16
16
  emits: data.dataEmits,
17
17
  components: Components,
18
18
  expose: data.dataExpose,
@@ -20,9 +20,9 @@ const _sfc_main = vues.defineComponent({
20
20
  setup(props, { emit, slots }) {
21
21
  const compons$1 = compons.getCompons(props.compons);
22
22
  const cs = index.useCssName("list");
23
- const isfocus = vues.ref(false);
24
- const rowObj = vues.ref();
25
- const borderColor = vues.computed(() => {
23
+ const isfocus = vue.ref(false);
24
+ const rowObj = vue.ref();
25
+ const borderColor = vue.computed(() => {
26
26
  const d = "#ccc";
27
27
  if (typeof props.border === "boolean") {
28
28
  return d;
@@ -67,19 +67,19 @@ const _sfc_main = vues.defineComponent({
67
67
  }
68
68
  }
69
69
  if (is) {
70
- arr.push(vues.h("tr", {}, trs));
70
+ arr.push(vue.h("tr", {}, trs));
71
71
  trs = [];
72
72
  }
73
73
  trs.push(...getTd(obj, index2));
74
74
  if (lin >= props.column) {
75
- arr.push(vues.h("tr", {}, trs));
75
+ arr.push(vue.h("tr", {}, trs));
76
76
  trs = [];
77
77
  lin = 0;
78
78
  }
79
79
  }
80
80
  });
81
81
  if (trs.length > 0) {
82
- arr.push(vues.h("tr", {}, trs));
82
+ arr.push(vue.h("tr", {}, trs));
83
83
  }
84
84
  return arr;
85
85
  };
@@ -105,9 +105,9 @@ const _sfc_main = vues.defineComponent({
105
105
  }
106
106
  }
107
107
  if (is) {
108
- arr.push(vues.h("tr", {}, trls));
108
+ arr.push(vue.h("tr", {}, trls));
109
109
  trls = [];
110
- arr.push(vues.h("tr", {}, trvs));
110
+ arr.push(vue.h("tr", {}, trvs));
111
111
  trvs = [];
112
112
  }
113
113
  if (obj.isdiv) {
@@ -117,8 +117,8 @@ const _sfc_main = vues.defineComponent({
117
117
  trvs.push(getValue(obj, index2));
118
118
  }
119
119
  if (lin >= props.column) {
120
- arr.push(vues.h("tr", {}, trls));
121
- arr.push(vues.h("tr", {}, trvs));
120
+ arr.push(vue.h("tr", {}, trls));
121
+ arr.push(vue.h("tr", {}, trvs));
122
122
  trls = [];
123
123
  trvs = [];
124
124
  lin = 0;
@@ -126,13 +126,13 @@ const _sfc_main = vues.defineComponent({
126
126
  }
127
127
  });
128
128
  if (trls.length > 0) {
129
- arr.push(vues.h("tr", {}, trls));
130
- arr.push(vues.h("tr", {}, trvs));
129
+ arr.push(vue.h("tr", {}, trls));
130
+ arr.push(vue.h("tr", {}, trvs));
131
131
  }
132
132
  return arr;
133
133
  };
134
134
  const getlabel = (obj, index2) => {
135
- return vues.h(
135
+ return vue.h(
136
136
  "th",
137
137
  {
138
138
  style: {
@@ -152,7 +152,7 @@ const _sfc_main = vues.defineComponent({
152
152
  }
153
153
  },
154
154
  [
155
- vues.h(
155
+ vue.h(
156
156
  "span",
157
157
  {
158
158
  class: cs.z("table-label")
@@ -175,7 +175,7 @@ const _sfc_main = vues.defineComponent({
175
175
  const getChildrenValue = (obj, index2) => {
176
176
  if (obj.children) {
177
177
  return [
178
- vues.h(
178
+ vue.h(
179
179
  "div",
180
180
  {
181
181
  class: cs.z("table-children")
@@ -187,7 +187,7 @@ const _sfc_main = vues.defineComponent({
187
187
  ];
188
188
  } else {
189
189
  return [
190
- vues.h(
190
+ vue.h(
191
191
  "span",
192
192
  {
193
193
  class: cs.z("table-value")
@@ -209,7 +209,7 @@ const _sfc_main = vues.defineComponent({
209
209
  }
210
210
  };
211
211
  const getValue = (obj, index2, isRow) => {
212
- return vues.h(
212
+ return vue.h(
213
213
  "td",
214
214
  {
215
215
  style: css.setStyles(obj, props.value, props),
@@ -237,14 +237,14 @@ const _sfc_main = vues.defineComponent({
237
237
  }
238
238
  if (props.labelPosition == "auto") {
239
239
  return [
240
- vues.h(
240
+ vue.h(
241
241
  "td",
242
242
  {
243
243
  colspan: setColspan(obj),
244
244
  class: cs.is("whole", obj.whole)
245
245
  },
246
246
  [
247
- vues.h(
247
+ vue.h(
248
248
  "div",
249
249
  {
250
250
  class: cs.z("table-auto")
@@ -280,7 +280,7 @@ const _sfc_main = vues.defineComponent({
280
280
  };
281
281
  const renderValue = () => {
282
282
  if (props.list && props.list.length > 0) {
283
- return vues.h(
283
+ return vue.h(
284
284
  "div",
285
285
  {
286
286
  class: cs.z("div"),
@@ -294,7 +294,7 @@ const _sfc_main = vues.defineComponent({
294
294
  // },
295
295
  },
296
296
  [
297
- vues.h(
297
+ vue.h(
298
298
  "table",
299
299
  {
300
300
  class: [
@@ -318,7 +318,7 @@ const _sfc_main = vues.defineComponent({
318
318
  return "";
319
319
  }
320
320
  };
321
- vues.onMounted(() => {
321
+ vue.onMounted(() => {
322
322
  if (window) {
323
323
  window.addEventListener("click", () => {
324
324
  isfocus.value = false;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const vues = require("vue");
3
+ const vue = require("vue");
4
4
  const data = require("./data.cjs");
5
5
  const index$3 = require("../../card/index.cjs");
6
6
  require("../../loading/index.cjs");
@@ -13,20 +13,20 @@ require("../../../utils/css.cjs");
13
13
  const setObjStyle = require("@fangzhongya/utils/css/setObjStyle");
14
14
  const index$6 = require("../../loading/src/index.cjs");
15
15
  const _hoisted_1 = ["onClick"];
16
- const _sfc_main = /* @__PURE__ */ vues.defineComponent({
16
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
17
17
  __name: "index",
18
18
  props: data.dataProps,
19
19
  emits: data.dataEmits,
20
20
  setup(__props, { expose: __expose, emit: __emit }) {
21
- const slots = vues.useSlots();
22
- const attrs = index.useInherit(vues.useAttrs());
21
+ const slots = vue.useSlots();
22
+ const attrs = index.useInherit(vue.useAttrs());
23
23
  const { getLocale } = index$1.useLocale();
24
24
  const cs = index$2.useCssName("lists");
25
25
  const props = __props;
26
26
  const emit = __emit;
27
- const header = vues.ref([]);
28
- const footer = vues.ref([]);
29
- const dataList = vues.ref([]);
27
+ const header = vue.ref([]);
28
+ const footer = vue.ref([]);
29
+ const dataList = vue.ref([]);
30
30
  const setList = () => {
31
31
  const list = props.list || [];
32
32
  list.forEach((obj) => {
@@ -44,7 +44,7 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
44
44
  }
45
45
  });
46
46
  };
47
- vues.watch(
47
+ vue.watch(
48
48
  [() => props.list, () => {
49
49
  var _a;
50
50
  return (_a = props.list) == null ? void 0 : _a.length;
@@ -80,7 +80,7 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
80
80
  }
81
81
  return arr;
82
82
  };
83
- const rows = vues.ref();
83
+ const rows = vue.ref();
84
84
  const onClick = (item, index2) => {
85
85
  if (attrs.assem.ischecked) {
86
86
  const i = selections.value.indexOf(item);
@@ -122,7 +122,7 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
122
122
  }
123
123
  return setObjStyle.setObjStyle(vst, obj);
124
124
  }
125
- const selections = vues.ref([]);
125
+ const selections = vue.ref([]);
126
126
  function toggleRowSelection(item, is) {
127
127
  if (is) {
128
128
  selections.value.push(item);
@@ -146,34 +146,34 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
146
146
  toggleRowSelection
147
147
  });
148
148
  return (_ctx, _cache) => {
149
- return vues.openBlock(), vues.createElementBlock("div", vues.mergeProps({
150
- class: vues.unref(cs).z(),
151
- style: vues.unref(cs).vdo({
149
+ return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
150
+ class: vue.unref(cs).z(),
151
+ style: vue.unref(cs).vdo({
152
152
  interval: props.interval
153
153
  })
154
- }, vues.unref(attrs).root), [
155
- vues.withDirectives((vues.openBlock(), vues.createElementBlock("div", {
156
- class: vues.normalizeClass([
157
- vues.unref(cs).z("list"),
158
- vues.unref(cs).is("absolute", props.adaptive),
159
- vues.unref(cs).zis("list", "column", props.rowColumn > 1)
154
+ }, vue.unref(attrs).root), [
155
+ vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
156
+ class: vue.normalizeClass([
157
+ vue.unref(cs).z("list"),
158
+ vue.unref(cs).is("absolute", props.adaptive),
159
+ vue.unref(cs).zis("list", "column", props.rowColumn > 1)
160
160
  ]),
161
- style: vues.normalizeStyle({
161
+ style: vue.normalizeStyle({
162
162
  height: props.height
163
163
  })
164
164
  }, [
165
- props.value && props.value.length > 0 ? (vues.openBlock(true), vues.createElementBlock(vues.Fragment, { key: 0 }, vues.renderList(props.value, (item, index2) => {
166
- return vues.openBlock(), vues.createElementBlock("div", {
167
- class: vues.normalizeClass([
168
- vues.unref(cs).z("list-item"),
169
- vues.unref(cs).is("active", rows.value === item),
170
- vues.unref(cs).is("selected", selections.value.includes(item))
165
+ props.value && props.value.length > 0 ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 0 }, vue.renderList(props.value, (item, index2) => {
166
+ return vue.openBlock(), vue.createElementBlock("div", {
167
+ class: vue.normalizeClass([
168
+ vue.unref(cs).z("list-item"),
169
+ vue.unref(cs).is("active", rows.value === item),
170
+ vue.unref(cs).is("selected", selections.value.includes(item))
171
171
  ]),
172
- style: vues.normalizeStyle(setStyles(item)),
172
+ style: vue.normalizeStyle(setStyles(item)),
173
173
  onClick: ($event) => onClick(item, index2)
174
174
  }, [
175
- vues.renderSlot(_ctx.$slots, vues.unref(data.dataSlot).default, {
176
- config: vues.unref(attrs).assem,
175
+ vue.renderSlot(_ctx.$slots, vue.unref(data.dataSlot).default, {
176
+ config: vue.unref(attrs).assem,
177
177
  value: item,
178
178
  index: index2,
179
179
  list: props.list,
@@ -182,21 +182,21 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
182
182
  options: props.options,
183
183
  compons: props.compons
184
184
  }, () => [
185
- vues.createVNode(vues.unref(index$3.Card), null, vues.createSlots({
186
- default: vues.withCtx(() => [
187
- vues.createVNode(vues.unref(index$4.List), vues.mergeProps({ ref_for: true }, vues.unref(attrs).assem, {
185
+ vue.createVNode(vue.unref(index$3.Card), null, vue.createSlots({
186
+ default: vue.withCtx(() => [
187
+ vue.createVNode(vue.unref(index$4.List), vue.mergeProps({ ref_for: true }, vue.unref(attrs).assem, {
188
188
  value: item,
189
189
  list: setListValue(dataList.value, index2),
190
190
  options: props.options,
191
191
  compons: props.compons
192
- }), vues.createSlots({ _: 2 }, [
193
- vues.renderList(Object.keys(vues.unref(slots)).filter(
192
+ }), vue.createSlots({ _: 2 }, [
193
+ vue.renderList(Object.keys(vue.unref(slots)).filter(
194
194
  (v) => !["no-data"].includes(v)
195
195
  ), (k) => {
196
196
  return {
197
197
  name: k,
198
- fn: vues.withCtx((scope) => [
199
- vues.renderSlot(_ctx.$slots, k, vues.mergeProps({ ref_for: true }, scope))
198
+ fn: vue.withCtx((scope) => [
199
+ vue.renderSlot(_ctx.$slots, k, vue.mergeProps({ ref_for: true }, scope))
200
200
  ])
201
201
  };
202
202
  })
@@ -206,20 +206,20 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
206
206
  }, [
207
207
  header.value.length > 0 ? {
208
208
  name: "header",
209
- fn: vues.withCtx(() => [
210
- vues.createVNode(vues.unref(index$4.List), vues.mergeProps({ ref_for: true }, vues.unref(attrs).assem, {
209
+ fn: vue.withCtx(() => [
210
+ vue.createVNode(vue.unref(index$4.List), vue.mergeProps({ ref_for: true }, vue.unref(attrs).assem, {
211
211
  value: item,
212
212
  list: setListValue(header.value, index2),
213
213
  options: props.options,
214
214
  compons: props.compons
215
- }), vues.createSlots({ _: 2 }, [
216
- vues.renderList(Object.keys(vues.unref(slots)).filter(
215
+ }), vue.createSlots({ _: 2 }, [
216
+ vue.renderList(Object.keys(vue.unref(slots)).filter(
217
217
  (v) => !["no-data"].includes(v)
218
218
  ), (k) => {
219
219
  return {
220
220
  name: k,
221
- fn: vues.withCtx((scope) => [
222
- vues.renderSlot(_ctx.$slots, k, vues.mergeProps({ ref_for: true }, scope))
221
+ fn: vue.withCtx((scope) => [
222
+ vue.renderSlot(_ctx.$slots, k, vue.mergeProps({ ref_for: true }, scope))
223
223
  ])
224
224
  };
225
225
  })
@@ -229,20 +229,20 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
229
229
  } : void 0,
230
230
  footer.value.length > 0 ? {
231
231
  name: "footer",
232
- fn: vues.withCtx(() => [
233
- vues.createVNode(vues.unref(index$4.List), vues.mergeProps({ ref_for: true }, vues.unref(attrs).assem, {
232
+ fn: vue.withCtx(() => [
233
+ vue.createVNode(vue.unref(index$4.List), vue.mergeProps({ ref_for: true }, vue.unref(attrs).assem, {
234
234
  value: item,
235
235
  list: setListValue(footer.value, index2),
236
236
  options: props.options,
237
237
  compons: props.compons
238
- }), vues.createSlots({ _: 2 }, [
239
- vues.renderList(Object.keys(vues.unref(slots)).filter(
238
+ }), vue.createSlots({ _: 2 }, [
239
+ vue.renderList(Object.keys(vue.unref(slots)).filter(
240
240
  (v) => !["no-data"].includes(v)
241
241
  ), (k) => {
242
242
  return {
243
243
  name: k,
244
- fn: vues.withCtx((scope) => [
245
- vues.renderSlot(_ctx.$slots, k, vues.mergeProps({ ref_for: true }, scope))
244
+ fn: vue.withCtx((scope) => [
245
+ vue.renderSlot(_ctx.$slots, k, vue.mergeProps({ ref_for: true }, scope))
246
246
  ])
247
247
  };
248
248
  })
@@ -253,11 +253,11 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
253
253
  ]), 1024)
254
254
  ])
255
255
  ], 14, _hoisted_1);
256
- }), 256)) : vues.renderSlot(_ctx.$slots, vues.unref(data.dataSlot).noData, { key: 1 }, () => [
257
- vues.createVNode(vues.unref(index$5.NoData))
256
+ }), 256)) : vue.renderSlot(_ctx.$slots, vue.unref(data.dataSlot).noData, { key: 1 }, () => [
257
+ vue.createVNode(vue.unref(index$5.NoData))
258
258
  ])
259
259
  ], 6)), [
260
- [vues.unref(index$6.vLoading), props.loading]
260
+ [vue.unref(index$6.vLoading), props.loading]
261
261
  ])
262
262
  ], 16);
263
263
  };
@@ -1,23 +1,23 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const vues = require("vue");
3
+ const vue = require("vue");
4
4
  const index$2 = require("../../lists/index.cjs");
5
5
  const index$4 = require("../../paging/index.cjs");
6
6
  const index$3 = require("../../../directives/scroll/index.cjs");
7
7
  const pagin = require("../../tables/common/pagin.cjs");
8
8
  const index$1 = require("../../../hooks/cssname/index.cjs");
9
9
  const index = require("../../../hooks/locale/index.cjs");
10
- const _sfc_main = /* @__PURE__ */ vues.defineComponent({
10
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
11
11
  __name: "index",
12
12
  props: pagin.dataProps,
13
13
  emits: pagin.dataEmit,
14
14
  setup(__props, { expose: __expose, emit: __emit }) {
15
15
  const { getLocale } = index.useLocale();
16
16
  const cs = index$1.useCssName("listsp");
17
- const slots = vues.useSlots();
17
+ const slots = vue.useSlots();
18
18
  const props = __props;
19
19
  const emit = __emit;
20
- const refTable = vues.ref();
20
+ const refTable = vue.ref();
21
21
  const {
22
22
  height,
23
23
  getSelection,
@@ -49,52 +49,52 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
49
49
  });
50
50
  return (_ctx, _cache) => {
51
51
  var _a, _b, _c;
52
- return vues.openBlock(), vues.createElementBlock("div", {
53
- class: vues.normalizeClass(vues.unref(cs).z()),
54
- style: vues.normalizeStyle({
55
- height: vues.unref(height) == "100%" ? vues.unref(height) : ""
52
+ return vue.openBlock(), vue.createElementBlock("div", {
53
+ class: vue.normalizeClass(vue.unref(cs).z()),
54
+ style: vue.normalizeStyle({
55
+ height: vue.unref(height) == "100%" ? vue.unref(height) : ""
56
56
  })
57
57
  }, [
58
- vues.withDirectives((vues.openBlock(), vues.createBlock(vues.unref(index$2.Lists), vues.mergeProps(vues.unref(tableConfig).config, vues.toHandlers(vues.unref(formEvent)), {
59
- height: vues.unref(height),
58
+ vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(index$2.Lists), vue.mergeProps(vue.unref(tableConfig).config, vue.toHandlers(vue.unref(formEvent)), {
59
+ height: vue.unref(height),
60
60
  ref_key: "refTable",
61
61
  ref: refTable,
62
62
  class: [
63
- vues.unref(cs).z("main"),
64
- vues.unref(cs).is("scroll", vues.unref(paginat).is && vues.unref(paginat).scroll)
63
+ vue.unref(cs).z("main"),
64
+ vue.unref(cs).is("scroll", vue.unref(paginat).is && vue.unref(paginat).scroll)
65
65
  ],
66
- "scroll-selector": "." + vues.unref(cs).c("lists", "list"),
67
- size: (_a = vues.unref(tableConfig).config) == null ? void 0 : _a.size,
68
- paginat: vues.unref(paginat),
69
- value: vues.unref(data).list,
70
- list: vues.unref(tableList),
71
- loading: ((_b = vues.unref(tableConfig).config) == null ? void 0 : _b.noloading) || vues.unref(paginat).scroll && vues.unref(paginat).current > 1 ? false : vues.unref(loading),
66
+ "scroll-selector": "." + vue.unref(cs).c("lists", "list"),
67
+ size: (_a = vue.unref(tableConfig).config) == null ? void 0 : _a.size,
68
+ paginat: vue.unref(paginat),
69
+ value: vue.unref(data).list,
70
+ list: vue.unref(tableList),
71
+ loading: ((_b = vue.unref(tableConfig).config) == null ? void 0 : _b.noloading) || vue.unref(paginat).scroll && vue.unref(paginat).current > 1 ? false : vue.unref(loading),
72
72
  options: props.options,
73
73
  compons: props.compons,
74
- onSortChange: vues.unref(onSortChange),
75
- onListEvents: vues.unref(onListEvents),
76
- onSelect: vues.unref(onSelect),
77
- onRowClick: vues.unref(onRowClick),
78
- onSelectionChange: vues.unref(onChange)
79
- }), vues.createSlots({ _: 2 }, [
80
- vues.renderList(Object.keys(vues.unref(slots)), (k) => {
74
+ onSortChange: vue.unref(onSortChange),
75
+ onListEvents: vue.unref(onListEvents),
76
+ onSelect: vue.unref(onSelect),
77
+ onRowClick: vue.unref(onRowClick),
78
+ onSelectionChange: vue.unref(onChange)
79
+ }), vue.createSlots({ _: 2 }, [
80
+ vue.renderList(Object.keys(vue.unref(slots)), (k) => {
81
81
  return {
82
82
  name: k,
83
- fn: vues.withCtx((scope) => [
84
- vues.renderSlot(_ctx.$slots, k, vues.normalizeProps(vues.guardReactiveProps(scope)))
83
+ fn: vue.withCtx((scope) => [
84
+ vue.renderSlot(_ctx.$slots, k, vue.normalizeProps(vue.guardReactiveProps(scope)))
85
85
  ])
86
86
  };
87
87
  })
88
88
  ]), 1040, ["height", "class", "scroll-selector", "size", "paginat", "value", "list", "loading", "options", "compons", "onSortChange", "onListEvents", "onSelect", "onRowClick", "onSelectionChange"])), [
89
- [vues.unref(index$3.default), vues.unref(scroll)]
89
+ [vue.unref(index$3.default), vue.unref(scroll)]
90
90
  ]),
91
- ((_c = vues.unref(paginat)) == null ? void 0 : _c.is) && !vues.unref(paginat).scroll ? (vues.openBlock(), vues.createBlock(vues.unref(index$4.Paging), vues.mergeProps({ key: 0 }, vues.unref(pagconfig), {
92
- class: vues.unref(cs).z("paginat"),
93
- paginat: vues.unref(paginat),
94
- total: vues.unref(data).total,
95
- onSizeChange: vues.unref(onSizeChange),
96
- onCurrentChange: vues.unref(onCurrentChange)
97
- }), null, 16, ["class", "paginat", "total", "onSizeChange", "onCurrentChange"])) : vues.createCommentVNode("", true)
91
+ ((_c = vue.unref(paginat)) == null ? void 0 : _c.is) && !vue.unref(paginat).scroll ? (vue.openBlock(), vue.createBlock(vue.unref(index$4.Paging), vue.mergeProps({ key: 0 }, vue.unref(pagconfig), {
92
+ class: vue.unref(cs).z("paginat"),
93
+ paginat: vue.unref(paginat),
94
+ total: vue.unref(data).total,
95
+ onSizeChange: vue.unref(onSizeChange),
96
+ onCurrentChange: vue.unref(onCurrentChange)
97
+ }), null, 16, ["class", "paginat", "total", "onSizeChange", "onCurrentChange"])) : vue.createCommentVNode("", true)
98
98
  ], 6);
99
99
  };
100
100
  }