@fangzhongya/fang-ui 0.0.70 → 0.0.71
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.
- package/dist/components/alert/src/index2.cjs +10 -10
- package/dist/components/array/src/index2.cjs +45 -45
- package/dist/components/autocomplete/src/index2.cjs +10 -10
- package/dist/components/box/src/index2.cjs +21 -21
- package/dist/components/box-adjust/src/index2.cjs +27 -27
- package/dist/components/box-local/src/index2.cjs +20 -20
- package/dist/components/box-mask/src/index2.cjs +5 -5
- package/dist/components/box-teleport/src/index2.cjs +5 -5
- package/dist/components/box-title/src/index2.cjs +15 -15
- package/dist/components/button/src/index2.cjs +9 -9
- package/dist/components/buttons/src/index2.cjs +20 -20
- package/dist/components/card/src/index2.cjs +10 -10
- package/dist/components/cascader/src/index2.cjs +10 -10
- package/dist/components/cascader-panel/src/index2.cjs +10 -10
- package/dist/components/cascaders/src/index2.cjs +17 -17
- package/dist/components/checkbox/src/index2.cjs +10 -10
- package/dist/components/checkbox-group/src/index2.cjs +10 -10
- package/dist/components/checks/src/index2.cjs +31 -31
- package/dist/components/choice-select/src/index2.cjs +5 -5
- package/dist/components/collapse/src/index2.cjs +10 -10
- package/dist/components/collapse-item/src/index2.cjs +10 -10
- package/dist/components/color-picker/src/index2.cjs +10 -10
- package/dist/components/common/list.cjs +5 -5
- package/dist/components/common/use.cjs +5 -5
- package/dist/components/company-select/src/index2.cjs +19 -19
- package/dist/components/config-provider/src/index2.cjs +10 -10
- package/dist/components/date-picker/src/index2.cjs +10 -10
- package/dist/components/dates/src/index2.cjs +12 -12
- package/dist/components/dates-divide/src/index2.cjs +20 -20
- package/dist/components/dates-picker/src/index2.cjs +15 -15
- package/dist/components/dates2/src/index2.cjs +26 -26
- package/dist/components/department-select/src/index2.cjs +11 -11
- package/dist/components/dialog/src/index2.cjs +10 -10
- package/dist/components/dialogs/src/index2.cjs +23 -23
- package/dist/components/divider/src/index2.cjs +10 -10
- package/dist/components/drawer/src/index2.cjs +10 -10
- package/dist/components/dropdown/src/index2.cjs +10 -10
- package/dist/components/dropdown-item/src/index2.cjs +10 -10
- package/dist/components/dropdown-menu/src/index2.cjs +10 -10
- package/dist/components/edit/src/index2.cjs +24 -24
- package/dist/components/edit-float/src/index2.cjs +40 -40
- package/dist/components/form/src/index2.cjs +10 -10
- package/dist/components/form-item/src/index2.cjs +10 -10
- package/dist/components/forms/src/index2.cjs +65 -65
- package/dist/components/forms/src/setup.cjs +12 -12
- package/dist/components/forms-div/src/index2.cjs +11 -11
- package/dist/components/forms-drag/src/index2.cjs +73 -73
- package/dist/components/forms-item/src/index2.cjs +45 -45
- package/dist/components/forms-item/src/label.cjs +4 -4
- package/dist/components/forms-items/src/index2.cjs +23 -23
- package/dist/components/global-config/src/index.cjs +5 -5
- package/dist/components/history/src/index2.cjs +26 -26
- package/dist/components/icon/src/index2.cjs +23 -23
- package/dist/components/icon-picker/src/index2.cjs +52 -52
- package/dist/components/iframe/src/index2.cjs +10 -10
- package/dist/components/image/src/index2.cjs +10 -10
- package/dist/components/images/src/index2.cjs +16 -16
- package/dist/components/input/src/index2.cjs +10 -10
- package/dist/components/input-array/src/index2.cjs +38 -38
- package/dist/components/input-history/src/index2.cjs +48 -48
- package/dist/components/input-history/src/util.cjs +4 -4
- package/dist/components/input-num/src/index2.cjs +17 -17
- package/dist/components/input-number/src/index2.cjs +10 -10
- package/dist/components/input-select/src/index2.cjs +51 -51
- package/dist/components/input-tag/src/index2.cjs +10 -10
- package/dist/components/inputs/src/index2.cjs +17 -17
- package/dist/components/keep-com/src/index2.cjs +16 -16
- package/dist/components/labels/src/index2.cjs +13 -13
- package/dist/components/list/src/index2.cjs +24 -24
- package/dist/components/lists/src/index2.cjs +51 -51
- package/dist/components/listsp/src/index2.cjs +34 -34
- package/dist/components/mention/src/index2.cjs +10 -10
- package/dist/components/menus/src/index2.cjs +16 -16
- package/dist/components/menus/src/menu-ll2.cjs +11 -11
- package/dist/components/no-data/src/index2.cjs +5 -5
- package/dist/components/option/src/index2.cjs +9 -9
- package/dist/components/option-group/src/index2.cjs +10 -10
- package/dist/components/page/src/index2.cjs +77 -77
- package/dist/components/page/src/set-column2.cjs +54 -54
- package/dist/components/pagination/src/index2.cjs +10 -10
- package/dist/components/paging/src/index2.cjs +13 -13
- package/dist/components/popconfirm/src/index2.cjs +10 -10
- package/dist/components/popover/src/index2.cjs +10 -10
- package/dist/components/popup/src/index2.cjs +29 -29
- package/dist/components/radio/src/index2.cjs +10 -10
- package/dist/components/radio-group/src/index2.cjs +10 -10
- package/dist/components/retract/src/index2.cjs +14 -14
- package/dist/components/right-key/src/index2.cjs +30 -30
- package/dist/components/role-select/src/index2.cjs +38 -38
- package/dist/components/seamless-scroll/src/index2.cjs +24 -24
- package/dist/components/select/src/index2.cjs +10 -10
- package/dist/components/select-dialog/src/index2.cjs +65 -65
- package/dist/components/select-popover/src/index2.cjs +42 -42
- package/dist/components/select-scroll/src/index2.cjs +30 -30
- package/dist/components/selector/src/index2.cjs +39 -39
- package/dist/components/selects/src/index2.cjs +20 -20
- package/dist/components/slider/src/index2.cjs +10 -10
- package/dist/components/stick-div/src/index2.cjs +17 -17
- package/dist/components/stick-edge/src/index2.cjs +10 -10
- package/dist/components/stick-window/src/index2.cjs +22 -22
- package/dist/components/switch/src/index2.cjs +10 -10
- package/dist/components/switchs/src/index2.cjs +15 -15
- package/dist/components/tab-pane/src/index2.cjs +10 -10
- package/dist/components/tables/common/img2.cjs +7 -7
- package/dist/components/tables/common/pagin.cjs +16 -16
- package/dist/components/tables/common/table-but2.cjs +10 -10
- package/dist/components/tables/common/table-color2.cjs +7 -7
- package/dist/components/tables/common/table-list2.cjs +9 -9
- package/dist/components/tables/common/util.cjs +2 -2
- package/dist/components/tables/src/column.cjs +5 -5
- package/dist/components/tables/src/columns2.cjs +2 -2
- package/dist/components/tables/src/columns3.cjs +2 -2
- package/dist/components/tables/src/index2.cjs +29 -29
- package/dist/components/tablesp/src/index2.cjs +35 -35
- package/dist/components/tabless/src/index2.cjs +48 -48
- package/dist/components/tablesv/src/column.cjs +16 -16
- package/dist/components/tablesv/src/columns2.cjs +2 -2
- package/dist/components/tablesv/src/columns3.cjs +2 -2
- package/dist/components/tablesv/src/index2.cjs +30 -30
- package/dist/components/tablesvp/src/index2.cjs +30 -30
- package/dist/components/tabs/src/index2.cjs +10 -10
- package/dist/components/text/src/index2.cjs +8 -8
- package/dist/components/time-picker/src/index2.cjs +10 -10
- package/dist/components/time-select/src/index2.cjs +10 -10
- package/dist/components/tooltip/src/index2.cjs +10 -10
- package/dist/components/transfer/src/index2.cjs +10 -10
- package/dist/components/tree/src/index2.cjs +10 -10
- package/dist/components/tree-select/src/index2.cjs +10 -10
- package/dist/components/tree-select-box/src/index2.cjs +29 -29
- package/dist/components/upload/src/index2.cjs +10 -10
- package/dist/components/user-select/src/index2.cjs +99 -99
- package/dist/components/window/src/index2.cjs +61 -61
- package/dist/directives/scroll/index.cjs +24 -6
- package/dist/directives/scroll/index.js +3 -1
- package/dist/hooks/event-aliass/index.cjs +2 -2
- package/dist/hooks/global-config/index.cjs +8 -8
- package/dist/hooks/inherit/index.cjs +2 -2
- package/dist/hooks/locale/index.cjs +7 -7
- package/dist/icons/iconify.cjs +3 -3
- package/dist/icons/index.css +39 -39
- package/dist/icons/index.json +10 -10
- package/dist/icons/vue/bar.cjs +3 -3
- package/dist/icons/vue/below.cjs +3 -3
- package/dist/icons/vue/bicycle.cjs +3 -3
- package/dist/icons/vue/bottom-left.cjs +4 -4
- package/dist/icons/vue/bottom-right.cjs +4 -4
- package/dist/icons/vue/bottom.cjs +3 -3
- package/dist/icons/vue/clear.cjs +5 -5
- package/dist/icons/vue/close.cjs +3 -3
- package/dist/icons/vue/edit.cjs +5 -5
- package/dist/icons/vue/frame.cjs +3 -3
- package/dist/icons/vue/left.cjs +3 -3
- package/dist/icons/vue/right.cjs +3 -3
- package/dist/icons/vue/star.cjs +4 -4
- package/dist/utils/vues/common.cjs +2 -2
- package/package.json +5 -5
- /package/dist/components/{forms-item → forms-items}/index.css +0 -0
- /package/dist/css/{forms-item.css → forms-items.css} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const
|
|
3
|
+
const vues = require("vue");
|
|
4
4
|
const index$1 = require("../../../hooks/cssname/index.cjs");
|
|
5
5
|
const index$5 = require("../../forms/index.cjs");
|
|
6
6
|
const index$8 = require("../../tablesp/index.cjs");
|
|
@@ -14,7 +14,7 @@ require("./set-column.cjs");
|
|
|
14
14
|
const urls = require("../../common/urls.cjs");
|
|
15
15
|
const index = require("../../../hooks/locale/index.cjs");
|
|
16
16
|
const setColumn_vue_vue_type_script_setup_true_lang = require("./set-column2.cjs");
|
|
17
|
-
const _sfc_main = /* @__PURE__ */
|
|
17
|
+
const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
18
18
|
__name: "index",
|
|
19
19
|
props: data.dataProps,
|
|
20
20
|
emits: data.dataEmits,
|
|
@@ -23,8 +23,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
23
23
|
const props = __props;
|
|
24
24
|
const emit = __emit;
|
|
25
25
|
const cs = index$1.useCssName("page");
|
|
26
|
-
const slots =
|
|
27
|
-
const tableRef =
|
|
26
|
+
const slots = vues.useSlots();
|
|
27
|
+
const tableRef = vues.ref();
|
|
28
28
|
let listObj = {};
|
|
29
29
|
const getListObj = () => {
|
|
30
30
|
const value = {};
|
|
@@ -75,8 +75,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
75
75
|
filtration(value, array);
|
|
76
76
|
return value;
|
|
77
77
|
};
|
|
78
|
-
const query =
|
|
79
|
-
const isSenior =
|
|
78
|
+
const query = vues.ref(props.value);
|
|
79
|
+
const isSenior = vues.ref(false);
|
|
80
80
|
const getListQuery = () => {
|
|
81
81
|
var _a;
|
|
82
82
|
const v = (_a = props.config.query) == null ? void 0 : _a.list;
|
|
@@ -90,7 +90,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
92
|
};
|
|
93
|
-
const listQuery =
|
|
93
|
+
const listQuery = vues.ref([]);
|
|
94
94
|
const setListQuery = () => {
|
|
95
95
|
var _a;
|
|
96
96
|
const list2 = getListQuery();
|
|
@@ -137,7 +137,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
137
137
|
}
|
|
138
138
|
setListQuery();
|
|
139
139
|
};
|
|
140
|
-
const butQuery =
|
|
140
|
+
const butQuery = vues.ref([]);
|
|
141
141
|
const getButQuery = () => {
|
|
142
142
|
var _a;
|
|
143
143
|
const arr = [
|
|
@@ -163,7 +163,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
163
163
|
}
|
|
164
164
|
return arr;
|
|
165
165
|
};
|
|
166
|
-
const tableConfig =
|
|
166
|
+
const tableConfig = vues.ref({});
|
|
167
167
|
const getTableConfig = () => {
|
|
168
168
|
const config = props.config.table || {};
|
|
169
169
|
config.config = {
|
|
@@ -183,11 +183,11 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
183
183
|
return true;
|
|
184
184
|
});
|
|
185
185
|
};
|
|
186
|
-
const setList =
|
|
186
|
+
const setList = vues.ref([]);
|
|
187
187
|
const setSetList = () => {
|
|
188
188
|
setList.value = getList();
|
|
189
189
|
};
|
|
190
|
-
const tableList =
|
|
190
|
+
const tableList = vues.computed(() => {
|
|
191
191
|
var _a;
|
|
192
192
|
const arr = [];
|
|
193
193
|
if (((_a = props.config.table) == null ? void 0 : _a.operation) !== false) {
|
|
@@ -355,11 +355,11 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
357
|
};
|
|
358
|
-
const selection =
|
|
358
|
+
const selection = vues.ref([]);
|
|
359
359
|
const onRowClick = (row) => {
|
|
360
360
|
console.log("点击列表行", row);
|
|
361
361
|
};
|
|
362
|
-
const formRef =
|
|
362
|
+
const formRef = vues.ref();
|
|
363
363
|
const dataSlot = {
|
|
364
364
|
top: "top",
|
|
365
365
|
footer: "footer",
|
|
@@ -393,7 +393,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
393
393
|
});
|
|
394
394
|
};
|
|
395
395
|
setSlots();
|
|
396
|
-
const dialog =
|
|
396
|
+
const dialog = vues.reactive({
|
|
397
397
|
visible: false,
|
|
398
398
|
type: "add",
|
|
399
399
|
// or 'edit'
|
|
@@ -499,11 +499,11 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
499
499
|
}
|
|
500
500
|
}
|
|
501
501
|
};
|
|
502
|
-
const listForm =
|
|
502
|
+
const listForm = vues.ref([]);
|
|
503
503
|
const setListForm = () => {
|
|
504
504
|
listForm.value = getListForm();
|
|
505
505
|
};
|
|
506
|
-
const details =
|
|
506
|
+
const details = vues.reactive({
|
|
507
507
|
visible: false,
|
|
508
508
|
value: {}
|
|
509
509
|
});
|
|
@@ -516,11 +516,11 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
516
516
|
return getList();
|
|
517
517
|
}
|
|
518
518
|
};
|
|
519
|
-
const list =
|
|
519
|
+
const list = vues.ref([]);
|
|
520
520
|
const setListDetails = () => {
|
|
521
521
|
list.value = getListDetails();
|
|
522
522
|
};
|
|
523
|
-
|
|
523
|
+
vues.watch(
|
|
524
524
|
() => props.config,
|
|
525
525
|
(newValue) => {
|
|
526
526
|
var _a, _b, _c, _d;
|
|
@@ -547,7 +547,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
547
547
|
deep: true
|
|
548
548
|
}
|
|
549
549
|
);
|
|
550
|
-
|
|
550
|
+
vues.watch(
|
|
551
551
|
() => props.list,
|
|
552
552
|
() => {
|
|
553
553
|
var _a, _b, _c, _d;
|
|
@@ -570,17 +570,17 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
570
570
|
);
|
|
571
571
|
return (_ctx, _cache) => {
|
|
572
572
|
var _a, _b, _c;
|
|
573
|
-
return
|
|
574
|
-
class:
|
|
573
|
+
return vues.openBlock(), vues.createElementBlock("div", {
|
|
574
|
+
class: vues.normalizeClass(vues.unref(cs).z())
|
|
575
575
|
}, [
|
|
576
|
-
|
|
577
|
-
title: (dialog.type == "add" ?
|
|
576
|
+
vues.createVNode(vues.unref(index$4.Dialogs), {
|
|
577
|
+
title: (dialog.type == "add" ? vues.unref(getLocale)("page.add") : vues.unref(getLocale)("page.edit")) + props.config.name,
|
|
578
578
|
modelValue: dialog.visible,
|
|
579
579
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => dialog.visible = $event),
|
|
580
580
|
onConfirm
|
|
581
581
|
}, {
|
|
582
|
-
default:
|
|
583
|
-
dialog.visible ? (
|
|
582
|
+
default: vues.withCtx(() => [
|
|
583
|
+
dialog.visible ? (vues.openBlock(), vues.createBlock(vues.unref(index$5.Forms), vues.mergeProps({ key: 0 }, props.config.form, {
|
|
584
584
|
ref_key: "formRef",
|
|
585
585
|
ref: formRef,
|
|
586
586
|
modelValue: dialog.value,
|
|
@@ -589,39 +589,39 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
589
589
|
compons: props.compons,
|
|
590
590
|
list: listForm.value,
|
|
591
591
|
buts: []
|
|
592
|
-
}),
|
|
593
|
-
|
|
592
|
+
}), vues.createSlots({ _: 2 }, [
|
|
593
|
+
vues.renderList(formSlots, (k) => {
|
|
594
594
|
return {
|
|
595
595
|
name: k,
|
|
596
|
-
fn:
|
|
597
|
-
|
|
596
|
+
fn: vues.withCtx((scope) => [
|
|
597
|
+
vues.unref(slots)["form-" + k] ? vues.renderSlot(_ctx.$slots, "form-" + k, vues.normalizeProps(vues.mergeProps({ key: 0 }, scope))) : vues.renderSlot(_ctx.$slots, k, vues.normalizeProps(vues.mergeProps({ key: 1 }, scope)))
|
|
598
598
|
])
|
|
599
599
|
};
|
|
600
600
|
})
|
|
601
|
-
]), 1040, ["modelValue", "options", "compons", "list"])) :
|
|
601
|
+
]), 1040, ["modelValue", "options", "compons", "list"])) : vues.createCommentVNode("", true)
|
|
602
602
|
]),
|
|
603
603
|
_: 3
|
|
604
604
|
}, 8, ["title", "modelValue"]),
|
|
605
|
-
|
|
606
|
-
title: props.config.name +
|
|
605
|
+
vues.createVNode(vues.unref(index$4.Dialogs), {
|
|
606
|
+
title: props.config.name + vues.unref(getLocale)("page.details"),
|
|
607
607
|
modelValue: details.visible,
|
|
608
608
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => details.visible = $event),
|
|
609
609
|
"no-footer": ""
|
|
610
610
|
}, {
|
|
611
|
-
default:
|
|
611
|
+
default: vues.withCtx(() => {
|
|
612
612
|
var _a2;
|
|
613
613
|
return [
|
|
614
|
-
|
|
614
|
+
vues.createVNode(vues.unref(index$6.List), vues.mergeProps((_a2 = props.config.details) == null ? void 0 : _a2.config, {
|
|
615
615
|
value: details.value,
|
|
616
616
|
options: props.options,
|
|
617
617
|
compons: props.compons,
|
|
618
618
|
list: list.value
|
|
619
|
-
}),
|
|
620
|
-
|
|
619
|
+
}), vues.createSlots({ _: 2 }, [
|
|
620
|
+
vues.renderList(listSlots, (k) => {
|
|
621
621
|
return {
|
|
622
622
|
name: k,
|
|
623
|
-
fn:
|
|
624
|
-
|
|
623
|
+
fn: vues.withCtx((scope) => [
|
|
624
|
+
vues.unref(slots)["list-" + k] ? vues.renderSlot(_ctx.$slots, "list-" + k, vues.normalizeProps(vues.mergeProps({ key: 0 }, scope))) : vues.renderSlot(_ctx.$slots, k, vues.normalizeProps(vues.mergeProps({ key: 1 }, scope)))
|
|
625
625
|
])
|
|
626
626
|
};
|
|
627
627
|
})
|
|
@@ -630,15 +630,15 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
630
630
|
}),
|
|
631
631
|
_: 3
|
|
632
632
|
}, 8, ["title", "modelValue"]),
|
|
633
|
-
|
|
634
|
-
class:
|
|
633
|
+
vues.createElementVNode("div", {
|
|
634
|
+
class: vues.normalizeClass(vues.unref(cs).z("header"))
|
|
635
635
|
}, [
|
|
636
|
-
|
|
637
|
-
((_a = props.config.query) == null ? void 0 : _a.is) !== false ? (
|
|
636
|
+
vues.renderSlot(_ctx.$slots, dataSlot.header),
|
|
637
|
+
((_a = props.config.query) == null ? void 0 : _a.is) !== false ? (vues.openBlock(), vues.createElementBlock("div", {
|
|
638
638
|
key: 0,
|
|
639
|
-
class:
|
|
639
|
+
class: vues.normalizeClass(vues.unref(cs).z("query"))
|
|
640
640
|
}, [
|
|
641
|
-
|
|
641
|
+
vues.createVNode(vues.unref(index$5.Forms), vues.mergeProps((_b = props.config.query) == null ? void 0 : _b.config, {
|
|
642
642
|
query: "",
|
|
643
643
|
"label-position": "auto",
|
|
644
644
|
"model-value": props.query,
|
|
@@ -648,45 +648,45 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
648
648
|
buts: butQuery.value,
|
|
649
649
|
onSubmit: onQuery,
|
|
650
650
|
onCancel: onReset
|
|
651
|
-
}),
|
|
652
|
-
|
|
651
|
+
}), vues.createSlots({ _: 2 }, [
|
|
652
|
+
vues.renderList(querySlots, (k) => {
|
|
653
653
|
return {
|
|
654
654
|
name: k,
|
|
655
|
-
fn:
|
|
656
|
-
|
|
655
|
+
fn: vues.withCtx((scope) => [
|
|
656
|
+
vues.unref(slots)["query-" + k] ? vues.renderSlot(_ctx.$slots, "query-" + k, vues.normalizeProps(vues.mergeProps({ key: 0 }, scope))) : vues.renderSlot(_ctx.$slots, k, vues.normalizeProps(vues.mergeProps({ key: 1 }, scope)))
|
|
657
657
|
])
|
|
658
658
|
};
|
|
659
659
|
})
|
|
660
660
|
]), 1040, ["model-value", "options", "compons", "list", "buts"])
|
|
661
|
-
], 2)) :
|
|
661
|
+
], 2)) : vues.createCommentVNode("", true)
|
|
662
662
|
], 2),
|
|
663
|
-
|
|
664
|
-
class:
|
|
663
|
+
vues.createElementVNode("div", {
|
|
664
|
+
class: vues.normalizeClass(vues.unref(cs).z("main"))
|
|
665
665
|
}, [
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
class:
|
|
666
|
+
vues.renderSlot(_ctx.$slots, dataSlot.main),
|
|
667
|
+
vues.createElementVNode("div", {
|
|
668
|
+
class: vues.normalizeClass(vues.unref(cs).z("table"))
|
|
669
669
|
}, [
|
|
670
|
-
|
|
671
|
-
class:
|
|
670
|
+
vues.createElementVNode("div", {
|
|
671
|
+
class: vues.normalizeClass(vues.unref(cs).z("table-top"))
|
|
672
672
|
}, [
|
|
673
|
-
|
|
674
|
-
class:
|
|
673
|
+
vues.createElementVNode("div", {
|
|
674
|
+
class: vues.normalizeClass(vues.unref(cs).z("top-operation"))
|
|
675
675
|
}, [
|
|
676
|
-
|
|
677
|
-
options:
|
|
676
|
+
vues.createVNode(vues.unref(index$7.Buttons), {
|
|
677
|
+
options: vues.unref(operationTop),
|
|
678
678
|
onClicks: _cache[3] || (_cache[3] = (item) => onOperation(item))
|
|
679
679
|
}, null, 8, ["options"]),
|
|
680
|
-
|
|
680
|
+
vues.renderSlot(_ctx.$slots, dataSlot.top)
|
|
681
681
|
], 2),
|
|
682
|
-
props.config.setColumn ? (
|
|
682
|
+
props.config.setColumn ? (vues.openBlock(), vues.createBlock(setColumn_vue_vue_type_script_setup_true_lang.default, {
|
|
683
683
|
key: 0,
|
|
684
684
|
modelValue: setList.value,
|
|
685
685
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => setList.value = $event),
|
|
686
686
|
list: props.list
|
|
687
|
-
}, null, 8, ["modelValue", "list"])) :
|
|
687
|
+
}, null, 8, ["modelValue", "list"])) : vues.createCommentVNode("", true)
|
|
688
688
|
], 2),
|
|
689
|
-
|
|
689
|
+
vues.createVNode(vues.unref(index$8.Tablesp), {
|
|
690
690
|
ref_key: "tableRef",
|
|
691
691
|
ref: tableRef,
|
|
692
692
|
load: ((_c = props.config.query) == null ? void 0 : _c.is) === false,
|
|
@@ -698,35 +698,35 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
698
698
|
list: tableList.value,
|
|
699
699
|
onSelection: _cache[5] || (_cache[5] = (array) => selection.value = array),
|
|
700
700
|
onChange: onRowClick
|
|
701
|
-
},
|
|
702
|
-
operation:
|
|
703
|
-
|
|
704
|
-
class:
|
|
701
|
+
}, vues.createSlots({
|
|
702
|
+
operation: vues.withCtx(({ row }) => [
|
|
703
|
+
vues.createElementVNode("div", {
|
|
704
|
+
class: vues.normalizeClass(vues.unref(cs).z("operations"))
|
|
705
705
|
}, [
|
|
706
|
-
|
|
707
|
-
options:
|
|
706
|
+
vues.createVNode(vues.unref(index$7.Buttons), {
|
|
707
|
+
options: vues.unref(operationColumn),
|
|
708
708
|
onClicks: (item) => onOperation(item, row)
|
|
709
709
|
}, null, 8, ["options", "onClicks"]),
|
|
710
|
-
|
|
710
|
+
vues.renderSlot(_ctx.$slots, dataSlot.operation, { row })
|
|
711
711
|
], 2)
|
|
712
712
|
]),
|
|
713
713
|
_: 2
|
|
714
714
|
}, [
|
|
715
|
-
|
|
715
|
+
vues.renderList(tableSlots, (k) => {
|
|
716
716
|
return {
|
|
717
717
|
name: k,
|
|
718
|
-
fn:
|
|
719
|
-
|
|
718
|
+
fn: vues.withCtx((scope) => [
|
|
719
|
+
vues.unref(slots)["table-" + k] ? vues.renderSlot(_ctx.$slots, "table-" + k, vues.normalizeProps(vues.mergeProps({ key: 0 }, scope))) : vues.renderSlot(_ctx.$slots, k, vues.normalizeProps(vues.mergeProps({ key: 1 }, scope)))
|
|
720
720
|
])
|
|
721
721
|
};
|
|
722
722
|
})
|
|
723
723
|
]), 1032, ["load", "config", "param", "value", "options", "compons", "list"])
|
|
724
724
|
], 2)
|
|
725
725
|
], 2),
|
|
726
|
-
|
|
727
|
-
class:
|
|
726
|
+
vues.createElementVNode("div", {
|
|
727
|
+
class: vues.normalizeClass(vues.unref(cs).z("footer"))
|
|
728
728
|
}, [
|
|
729
|
-
|
|
729
|
+
vues.renderSlot(_ctx.$slots, dataSlot.footer)
|
|
730
730
|
], 2)
|
|
731
731
|
], 2);
|
|
732
732
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const
|
|
3
|
+
const vues = require("vue");
|
|
4
4
|
const Draggable = require("vuedraggable");
|
|
5
5
|
const index$3 = require("../../dialogs/index.cjs");
|
|
6
6
|
const index$5 = require("../../no-data/index.cjs");
|
|
@@ -8,7 +8,7 @@ const index$4 = require("../../checkbox/index.cjs");
|
|
|
8
8
|
const index$2 = require("../../button/index.cjs");
|
|
9
9
|
const index$1 = require("../../../hooks/cssname/index.cjs");
|
|
10
10
|
const index = require("../../../hooks/locale/index.cjs");
|
|
11
|
-
const _sfc_main = /* @__PURE__ */
|
|
11
|
+
const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
12
12
|
__name: "set-column",
|
|
13
13
|
props: {
|
|
14
14
|
modelValue: {
|
|
@@ -30,10 +30,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
30
30
|
const props = __props;
|
|
31
31
|
const emit = __emit;
|
|
32
32
|
const cs = index$1.useCssName("set-column");
|
|
33
|
-
const dialogVisible =
|
|
34
|
-
const isall =
|
|
35
|
-
const value =
|
|
36
|
-
|
|
33
|
+
const dialogVisible = vues.ref(false);
|
|
34
|
+
const isall = vues.ref(false);
|
|
35
|
+
const value = vues.ref([...props.modelValue]);
|
|
36
|
+
vues.watch(
|
|
37
37
|
() => props.modelValue,
|
|
38
38
|
() => {
|
|
39
39
|
value.value = [...props.modelValue];
|
|
@@ -60,7 +60,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
60
60
|
disabled: false,
|
|
61
61
|
ghostClass: "ghost"
|
|
62
62
|
};
|
|
63
|
-
const drag =
|
|
63
|
+
const drag = vues.ref(false);
|
|
64
64
|
const onChange = (item, is) => {
|
|
65
65
|
var _a;
|
|
66
66
|
if (is) {
|
|
@@ -86,75 +86,75 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
86
86
|
}
|
|
87
87
|
};
|
|
88
88
|
return (_ctx, _cache) => {
|
|
89
|
-
return
|
|
90
|
-
class:
|
|
89
|
+
return vues.openBlock(), vues.createElementBlock("div", {
|
|
90
|
+
class: vues.normalizeClass(vues.unref(cs).z())
|
|
91
91
|
}, [
|
|
92
|
-
|
|
93
|
-
default:
|
|
94
|
-
|
|
92
|
+
vues.createVNode(vues.unref(index$2.Button), { onClick: onOpen }, {
|
|
93
|
+
default: vues.withCtx(() => [
|
|
94
|
+
vues.createTextVNode(vues.toDisplayString(vues.unref(getLocale)("setColumn.name")), 1)
|
|
95
95
|
]),
|
|
96
96
|
_: 1
|
|
97
97
|
}),
|
|
98
|
-
|
|
99
|
-
class:
|
|
98
|
+
vues.createVNode(vues.unref(index$3.Dialogs), {
|
|
99
|
+
class: vues.normalizeClass(vues.unref(cs).z("dialog")),
|
|
100
100
|
modelValue: dialogVisible.value,
|
|
101
101
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => dialogVisible.value = $event),
|
|
102
102
|
width: 900,
|
|
103
|
-
title:
|
|
103
|
+
title: vues.unref(getLocale)("setColumn.title"),
|
|
104
104
|
onConfirm: onSubmit
|
|
105
105
|
}, {
|
|
106
|
-
default:
|
|
107
|
-
|
|
108
|
-
class:
|
|
106
|
+
default: vues.withCtx(() => [
|
|
107
|
+
vues.createElementVNode("div", {
|
|
108
|
+
class: vues.normalizeClass(vues.unref(cs).z("dialog-main"))
|
|
109
109
|
}, [
|
|
110
|
-
|
|
111
|
-
class:
|
|
110
|
+
vues.createElementVNode("div", {
|
|
111
|
+
class: vues.normalizeClass(vues.unref(cs).z("check"))
|
|
112
112
|
}, [
|
|
113
|
-
|
|
114
|
-
class:
|
|
113
|
+
vues.createElementVNode("div", {
|
|
114
|
+
class: vues.normalizeClass(vues.unref(cs).z("title"))
|
|
115
115
|
}, [
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
class:
|
|
116
|
+
vues.createElementVNode("span", null, vues.toDisplayString(vues.unref(getLocale)("setColumn.optional")), 1),
|
|
117
|
+
vues.createElementVNode("span", {
|
|
118
|
+
class: vues.normalizeClass(vues.unref(cs).z("title-all"))
|
|
119
119
|
}, [
|
|
120
|
-
|
|
120
|
+
vues.createVNode(vues.unref(index$4.Checkbox), {
|
|
121
121
|
modelValue: isall.value,
|
|
122
122
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isall.value = $event),
|
|
123
123
|
onChange: onAllChange
|
|
124
124
|
}, {
|
|
125
|
-
default:
|
|
126
|
-
|
|
125
|
+
default: vues.withCtx(() => [
|
|
126
|
+
vues.createTextVNode(vues.toDisplayString(vues.unref(getLocale)("setColumn.all")), 1)
|
|
127
127
|
]),
|
|
128
128
|
_: 1
|
|
129
129
|
}, 8, ["modelValue"])
|
|
130
130
|
], 2)
|
|
131
131
|
], 2),
|
|
132
|
-
(
|
|
133
|
-
class:
|
|
132
|
+
(vues.openBlock(), vues.createElementBlock("div", {
|
|
133
|
+
class: vues.normalizeClass(vues.unref(cs).z("check-list")),
|
|
134
134
|
key: value.value.length
|
|
135
135
|
}, [
|
|
136
|
-
props.list.length > 0 ? (
|
|
137
|
-
return
|
|
138
|
-
class:
|
|
136
|
+
props.list.length > 0 ? (vues.openBlock(true), vues.createElementBlock(vues.Fragment, { key: 0 }, vues.renderList(props.list, (item, index2) => {
|
|
137
|
+
return vues.openBlock(), vues.createBlock(vues.unref(index$4.Checkbox), {
|
|
138
|
+
class: vues.normalizeClass(vues.unref(cs).z("check-list-li")),
|
|
139
139
|
key: index2,
|
|
140
140
|
label: item.label,
|
|
141
141
|
value: item.prop,
|
|
142
142
|
checked: isChecked(item),
|
|
143
143
|
onChange: (is) => onChange(item, Boolean(is))
|
|
144
144
|
}, null, 8, ["class", "label", "value", "checked", "onChange"]);
|
|
145
|
-
}), 128)) : (
|
|
145
|
+
}), 128)) : (vues.openBlock(), vues.createBlock(vues.unref(index$5.NoData), { key: 1 }))
|
|
146
146
|
], 2))
|
|
147
147
|
], 2),
|
|
148
|
-
|
|
149
|
-
class:
|
|
148
|
+
vues.createElementVNode("div", {
|
|
149
|
+
class: vues.normalizeClass(vues.unref(cs).z("already"))
|
|
150
150
|
}, [
|
|
151
|
-
|
|
152
|
-
class:
|
|
153
|
-
},
|
|
154
|
-
|
|
155
|
-
class:
|
|
151
|
+
vues.createElementVNode("div", {
|
|
152
|
+
class: vues.normalizeClass(vues.unref(cs).z("title"))
|
|
153
|
+
}, vues.toDisplayString(vues.unref(getLocale)("setColumn.selected")), 3),
|
|
154
|
+
vues.createElementVNode("div", {
|
|
155
|
+
class: vues.normalizeClass(vues.unref(cs).z("already-list"))
|
|
156
156
|
}, [
|
|
157
|
-
value.value && value.value.length > 0 ? (
|
|
157
|
+
value.value && value.value.length > 0 ? (vues.openBlock(), vues.createBlock(vues.unref(Draggable), vues.mergeProps({ key: 0 }, dragOptions, {
|
|
158
158
|
onStart: _cache[1] || (_cache[1] = ($event) => drag.value = true),
|
|
159
159
|
onEnd: _cache[2] || (_cache[2] = ($event) => drag.value = false),
|
|
160
160
|
modelValue: value.value,
|
|
@@ -162,31 +162,31 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
162
162
|
"item-key": (value2) => value2,
|
|
163
163
|
handle: ".handle"
|
|
164
164
|
}), {
|
|
165
|
-
item:
|
|
166
|
-
|
|
167
|
-
class:
|
|
165
|
+
item: vues.withCtx(({ element, index: index2 }) => [
|
|
166
|
+
vues.createElementVNode("div", {
|
|
167
|
+
class: vues.normalizeClass(["handle", vues.unref(cs).z("already-li")])
|
|
168
168
|
}, [
|
|
169
|
-
|
|
170
|
-
class:
|
|
169
|
+
vues.createElementVNode("div", {
|
|
170
|
+
class: vues.normalizeClass(vues.unref(cs).z("already-li-v"))
|
|
171
171
|
}, [
|
|
172
|
-
|
|
172
|
+
vues.createElementVNode("div", null, vues.toDisplayString(element.label), 1)
|
|
173
173
|
], 2),
|
|
174
|
-
|
|
174
|
+
vues.createVNode(vues.unref(index$2.Button), {
|
|
175
175
|
text: "",
|
|
176
176
|
type: "danger",
|
|
177
|
-
onClick:
|
|
177
|
+
onClick: vues.withModifiers(($event) => onDelete(element, index2), ["stop"])
|
|
178
178
|
}, {
|
|
179
|
-
default:
|
|
180
|
-
|
|
179
|
+
default: vues.withCtx(() => [
|
|
180
|
+
vues.createTextVNode(vues.toDisplayString(vues.unref(getLocale)("setColumn.delete")), 1)
|
|
181
181
|
]),
|
|
182
182
|
_: 1
|
|
183
183
|
}, 8, ["onClick"])
|
|
184
184
|
], 2)
|
|
185
185
|
]),
|
|
186
186
|
_: 1
|
|
187
|
-
}, 16, ["modelValue", "item-key"])) : (
|
|
187
|
+
}, 16, ["modelValue", "item-key"])) : (vues.openBlock(), vues.createBlock(vues.unref(index$5.NoData), {
|
|
188
188
|
key: 1,
|
|
189
|
-
text:
|
|
189
|
+
text: vues.unref(getLocale)("setColumn.nodata")
|
|
190
190
|
}, null, 8, ["text"]))
|
|
191
191
|
], 2)
|
|
192
192
|
], 2)
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const
|
|
3
|
+
const vues = require("vue");
|
|
4
4
|
const data = require("./data.cjs");
|
|
5
5
|
const index = require("../../../hooks/cssname/index.cjs");
|
|
6
6
|
const index$1 = require("element-plus/es/components/pagination/index");
|
|
7
|
-
const _sfc_main = /* @__PURE__ */
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
8
8
|
__name: "index",
|
|
9
9
|
props: data.dataProps,
|
|
10
10
|
emits: data.dataEmits,
|
|
11
11
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
12
|
-
const attrs =
|
|
13
|
-
const slots =
|
|
12
|
+
const attrs = vues.useAttrs();
|
|
13
|
+
const slots = vues.useSlots();
|
|
14
14
|
const cs = index.useCssName("pagination");
|
|
15
15
|
const props = __props;
|
|
16
16
|
const emit = __emit;
|
|
@@ -18,14 +18,14 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
18
18
|
...data.dataExpose
|
|
19
19
|
});
|
|
20
20
|
return (_ctx, _cache) => {
|
|
21
|
-
return
|
|
22
|
-
class:
|
|
23
|
-
},
|
|
24
|
-
|
|
21
|
+
return vues.openBlock(), vues.createBlock(vues.unref(index$1.ElPagination), vues.mergeProps({
|
|
22
|
+
class: vues.unref(cs).z()
|
|
23
|
+
}, vues.unref(attrs)), vues.createSlots({ _: 2 }, [
|
|
24
|
+
vues.renderList(Object.keys(vues.unref(slots)), (k) => {
|
|
25
25
|
return {
|
|
26
26
|
name: k,
|
|
27
|
-
fn:
|
|
28
|
-
|
|
27
|
+
fn: vues.withCtx((scope) => [
|
|
28
|
+
vues.renderSlot(_ctx.$slots, k, vues.normalizeProps(vues.guardReactiveProps(scope)))
|
|
29
29
|
])
|
|
30
30
|
};
|
|
31
31
|
})
|