@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.
- package/dist/components/alert/src/index2.cjs +11 -11
- package/dist/components/array/src/index2.cjs +45 -45
- package/dist/components/audios/src/index2.cjs +54 -54
- package/dist/components/autocomplete/src/index2.cjs +11 -11
- package/dist/components/box/src/index2.cjs +21 -21
- package/dist/components/box-adjust/index.css +17 -0
- package/dist/components/box-adjust/index.scss +18 -0
- package/dist/components/box-adjust/src/data.cjs +17 -1
- package/dist/components/box-adjust/src/data.d.ts +16 -0
- package/dist/components/box-adjust/src/data.js +17 -1
- package/dist/components/box-adjust/src/index2.cjs +69 -35
- package/dist/components/box-adjust/src/index2.js +37 -3
- 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 +11 -11
- package/dist/components/buttons/src/index2.cjs +20 -20
- package/dist/components/card/src/index2.cjs +11 -11
- package/dist/components/cascader/src/index2.cjs +11 -11
- package/dist/components/cascader-panel/src/index2.cjs +11 -11
- package/dist/components/cascaders/src/index2.cjs +17 -17
- package/dist/components/checkbox/src/index2.cjs +11 -11
- package/dist/components/checkbox-button/src/index2.cjs +11 -11
- package/dist/components/checkbox-group/src/index2.cjs +11 -11
- 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 +11 -11
- package/dist/components/collapse-item/src/index2.cjs +11 -11
- package/dist/components/color-picker/src/index2.cjs +11 -11
- 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 +11 -11
- package/dist/components/date-picker/src/index2.cjs +11 -11
- package/dist/components/date-picker/style/element.scss +1 -1
- package/dist/components/date-picker-panel/src/index2.cjs +11 -11
- 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 +10 -10
- package/dist/components/dialog/src/index2.cjs +11 -11
- package/dist/components/dialogs/src/index2.cjs +23 -23
- package/dist/components/divider/src/index2.cjs +11 -11
- package/dist/components/drawer/src/index2.cjs +11 -11
- package/dist/components/dropdown/src/index2.cjs +11 -11
- package/dist/components/dropdown-item/src/index2.cjs +11 -11
- package/dist/components/dropdown-menu/src/index2.cjs +11 -11
- 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 +11 -11
- package/dist/components/form-item/src/index2.cjs +11 -11
- package/dist/components/forms/index.css +22 -0
- 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/full-screen/src/index2.cjs +11 -11
- 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/data.cjs +1 -1
- package/dist/components/iframe/src/data.js +1 -1
- package/dist/components/iframe/src/index2.cjs +15 -10
- package/dist/components/iframe/src/index2.js +5 -0
- package/dist/components/image/src/index2.cjs +11 -11
- package/dist/components/image-viewer/src/index2.cjs +11 -11
- package/dist/components/images/src/index2.cjs +17 -17
- package/dist/components/input/src/index2.cjs +11 -11
- package/dist/components/input-array/src/index2.cjs +38 -38
- package/dist/components/input-history/src/index2.cjs +47 -47
- 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 +11 -11
- package/dist/components/input-select/src/index2.cjs +51 -51
- package/dist/components/input-tag/src/index2.cjs +11 -11
- 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 +35 -35
- package/dist/components/mention/src/index2.cjs +11 -11
- package/dist/components/menu/src/index2.cjs +11 -11
- package/dist/components/menu-item/src/index2.cjs +11 -11
- package/dist/components/menu-item-group/src/index2.cjs +11 -11
- 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 +10 -10
- package/dist/components/option-group/src/index2.cjs +11 -11
- package/dist/components/page/index.css +22 -0
- 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 +11 -11
- package/dist/components/paging/src/index2.cjs +13 -13
- package/dist/components/popconfirm/src/index2.cjs +11 -11
- package/dist/components/popover/src/index2.cjs +11 -11
- package/dist/components/popup/src/index2.cjs +29 -29
- package/dist/components/radio/src/index2.cjs +11 -11
- package/dist/components/radio-button/src/index2.cjs +11 -11
- package/dist/components/radio-group/src/index2.cjs +11 -11
- 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/scrollbar/src/index2.cjs +11 -11
- package/dist/components/seamless-scroll/src/index2.cjs +24 -24
- package/dist/components/select/src/index2.cjs +11 -11
- package/dist/components/select-dialog/src/index2.cjs +65 -65
- package/dist/components/select-popover/src/index2.cjs +41 -41
- 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 +11 -11
- package/dist/components/sliders/src/index2.cjs +13 -13
- 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/sub-menu/src/index2.cjs +10 -10
- package/dist/components/switch/src/index2.cjs +11 -11
- package/dist/components/switchs/src/index2.cjs +15 -15
- package/dist/components/tab-pane/src/index2.cjs +11 -11
- package/dist/components/table/src/index2.cjs +11 -11
- package/dist/components/table-column/src/index2.cjs +11 -11
- 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 +36 -36
- package/dist/components/tabless/src/index2.cjs +49 -49
- 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 +11 -11
- package/dist/components/tag/src/index2.cjs +11 -11
- package/dist/components/text/src/index2.cjs +11 -11
- package/dist/components/text/style/element.scss +1 -1
- package/dist/components/texts/src/index2.cjs +8 -8
- package/dist/components/time-picker/src/index2.cjs +11 -11
- package/dist/components/time-select/src/index2.cjs +11 -11
- package/dist/components/tooltip/src/index2.cjs +11 -11
- package/dist/components/transfer/src/index2.cjs +11 -11
- package/dist/components/tree/src/index2.cjs +11 -11
- package/dist/components/tree-select/src/index2.cjs +11 -11
- package/dist/components/tree-select-box/src/index2.cjs +29 -29
- package/dist/components/upload/src/index2.cjs +11 -11
- package/dist/components/uploads/index.css +22 -0
- package/dist/components/uploads/index.scss +23 -0
- package/dist/components/uploads/src/index2.cjs +128 -138
- package/dist/components/uploads/src/index2.js +61 -71
- package/dist/components/uploads/src/util.cjs +80 -0
- package/dist/components/uploads/src/util.d.ts +10 -0
- package/dist/components/uploads/src/util.js +80 -0
- package/dist/components/uploads/src/views.cjs +4 -0
- package/dist/components/uploads/src/views.js +4 -0
- package/dist/components/uploads/src/views2.cjs +77 -0
- package/dist/components/uploads/src/views2.js +77 -0
- package/dist/components/user-select/src/index2.cjs +99 -99
- package/dist/components/videos/src/index2.cjs +97 -97
- package/dist/components/window/src/index2.cjs +61 -61
- package/dist/css/box-adjust.css +17 -0
- package/dist/css/forms.css +22 -0
- package/dist/css/index.css +39 -0
- package/dist/css/page.css +22 -0
- package/dist/css/uploads.css +22 -0
- package/dist/directives/scroll/index.cjs +6 -24
- package/dist/directives/scroll/index.js +1 -3
- package/dist/hooks/event-aliass/index.cjs +2 -2
- package/dist/hooks/full-screen/index.cjs +5 -5
- 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 +79 -79
- package/dist/icons/index.json +35 -35
- 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/catalogue.cjs +5 -5
- package/dist/icons/vue/clear.cjs +5 -5
- package/dist/icons/vue/close.cjs +3 -3
- package/dist/icons/vue/delete.cjs +3 -3
- package/dist/icons/vue/document.cjs +5 -5
- package/dist/icons/vue/down.cjs +3 -3
- package/dist/icons/vue/download.cjs +3 -3
- package/dist/icons/vue/edit.cjs +5 -5
- package/dist/icons/vue/enter.cjs +3 -3
- package/dist/icons/vue/frame.cjs +3 -3
- package/dist/icons/vue/left.cjs +3 -3
- package/dist/icons/vue/mute.cjs +3 -3
- package/dist/icons/vue/pause.cjs +4 -4
- package/dist/icons/vue/play.cjs +3 -3
- package/dist/icons/vue/plus.cjs +3 -3
- package/dist/icons/vue/retreat.cjs +3 -3
- package/dist/icons/vue/right.cjs +3 -3
- package/dist/icons/vue/sound.cjs +4 -4
- package/dist/icons/vue/star.cjs +4 -4
- package/dist/icons/vue/up.cjs +3 -3
- package/dist/icons/vue/views.cjs +5 -5
- package/dist/icons/vue/views.js +2 -2
- package/dist/index.css +39 -0
- package/dist/utils/vues/common.cjs +2 -2
- package/package.json +3 -3
- /package/dist/components/{alert → divider}/index.css +0 -0
- /package/dist/css/{alert.css → divider.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 vue = require("vue");
|
|
4
4
|
const data = require("./data.cjs");
|
|
5
5
|
const index$2 = require("../../forms-item/index.cjs");
|
|
6
6
|
const index$1 = require("../../forms-div/index.cjs");
|
|
@@ -8,18 +8,18 @@ const index = require("../../../hooks/cssname/index.cjs");
|
|
|
8
8
|
require("../../../utils/css.cjs");
|
|
9
9
|
const use = require("../../common/use.cjs");
|
|
10
10
|
const setObjStyle = require("@fangzhongya/utils/css/setObjStyle");
|
|
11
|
-
const _sfc_main = /* @__PURE__ */
|
|
11
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
12
12
|
__name: "index",
|
|
13
13
|
props: data.dataProps,
|
|
14
14
|
emits: data.dataEmits,
|
|
15
15
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
16
|
-
const slots =
|
|
17
|
-
const form =
|
|
16
|
+
const slots = vue.useSlots();
|
|
17
|
+
const form = vue.inject("forms-form", {});
|
|
18
18
|
const cs = index.useCssName("forms-items");
|
|
19
19
|
const prs = __props;
|
|
20
20
|
const props = prs.listobj;
|
|
21
21
|
const emit = __emit;
|
|
22
|
-
const binds =
|
|
22
|
+
const binds = vue.computed(() => {
|
|
23
23
|
const binds2 = {};
|
|
24
24
|
const no = ["modelValue", "children", "listobj"];
|
|
25
25
|
Object.keys(prs).forEach((key) => {
|
|
@@ -33,7 +33,7 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
33
33
|
return binds2;
|
|
34
34
|
});
|
|
35
35
|
const defaultValue = {};
|
|
36
|
-
const value =
|
|
36
|
+
const value = vue.computed({
|
|
37
37
|
get() {
|
|
38
38
|
return prs.modelValue ?? defaultValue;
|
|
39
39
|
},
|
|
@@ -66,16 +66,16 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
66
66
|
...data.dataExpose
|
|
67
67
|
});
|
|
68
68
|
return (_ctx, _cache) => {
|
|
69
|
-
return
|
|
70
|
-
class:
|
|
69
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
70
|
+
class: vue.normalizeClass(vue.unref(cs).z())
|
|
71
71
|
}, [
|
|
72
|
-
(
|
|
73
|
-
return
|
|
72
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(props).children, (item, index2) => {
|
|
73
|
+
return vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
|
|
74
74
|
key: setKey(item, index2),
|
|
75
|
-
class:
|
|
76
|
-
style:
|
|
75
|
+
class: vue.normalizeClass([vue.unref(cs).z("li"), vue.unref(cs).is("div", item == null ? void 0 : item.isdiv), item.class]),
|
|
76
|
+
style: vue.normalizeStyle(setStyles(item))
|
|
77
77
|
}, [
|
|
78
|
-
(item == null ? void 0 : item.isdiv) ? (
|
|
78
|
+
(item == null ? void 0 : item.isdiv) ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.FormsDiv), vue.mergeProps({
|
|
79
79
|
key: 0,
|
|
80
80
|
ref_for: true
|
|
81
81
|
}, binds.value, {
|
|
@@ -84,16 +84,16 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
84
84
|
valueobj: prs.valueobj,
|
|
85
85
|
modelValue: value.value,
|
|
86
86
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event)
|
|
87
|
-
}),
|
|
88
|
-
|
|
87
|
+
}), vue.createSlots({ _: 2 }, [
|
|
88
|
+
vue.renderList(Object.keys(vue.unref(slots)), (k, i) => {
|
|
89
89
|
return {
|
|
90
90
|
name: k,
|
|
91
|
-
fn:
|
|
92
|
-
|
|
91
|
+
fn: vue.withCtx((scope) => [
|
|
92
|
+
vue.renderSlot(_ctx.$slots, k, vue.mergeProps({ ref_for: true }, scope))
|
|
93
93
|
])
|
|
94
94
|
};
|
|
95
95
|
})
|
|
96
|
-
]), 1040, ["listobj", "optionss", "valueobj", "modelValue"])) : (
|
|
96
|
+
]), 1040, ["listobj", "optionss", "valueobj", "modelValue"])) : (vue.openBlock(), vue.createBlock(vue.unref(index$2.FormsItem), vue.mergeProps({
|
|
97
97
|
key: 1,
|
|
98
98
|
ref_for: true
|
|
99
99
|
}, binds.value, {
|
|
@@ -102,18 +102,18 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
102
102
|
valueobj: prs.valueobj,
|
|
103
103
|
modelValue: value.value,
|
|
104
104
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => value.value = $event)
|
|
105
|
-
}),
|
|
106
|
-
|
|
105
|
+
}), vue.createSlots({ _: 2 }, [
|
|
106
|
+
vue.renderList(Object.keys(vue.unref(slots)), (k, i) => {
|
|
107
107
|
return {
|
|
108
108
|
name: k,
|
|
109
|
-
fn:
|
|
110
|
-
|
|
109
|
+
fn: vue.withCtx((scope) => [
|
|
110
|
+
vue.renderSlot(_ctx.$slots, k, vue.mergeProps({ ref_for: true }, scope))
|
|
111
111
|
])
|
|
112
112
|
};
|
|
113
113
|
})
|
|
114
114
|
]), 1040, ["listobj", "optionss", "valueobj", "modelValue"]))
|
|
115
115
|
], 6)), [
|
|
116
|
-
[
|
|
116
|
+
[vue.vShow, !vue.unref(use.useHide)(item, value.value)]
|
|
117
117
|
]);
|
|
118
118
|
}), 128))
|
|
119
119
|
], 2);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const
|
|
3
|
+
const vue = require("vue");
|
|
4
4
|
const data = require("./data.cjs");
|
|
5
5
|
const index$1 = require("../../../hooks/cssname/index.cjs");
|
|
6
6
|
const index$3 = require("../../button/index.cjs");
|
|
7
7
|
const index = require("../../../hooks/locale/index.cjs");
|
|
8
8
|
const index$2 = require("../../../hooks/full-screen/index.cjs");
|
|
9
|
-
const _sfc_main = /* @__PURE__ */
|
|
9
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
10
10
|
__name: "index",
|
|
11
11
|
props: data.dataProps,
|
|
12
12
|
emits: data.dataEmits,
|
|
@@ -15,7 +15,7 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
15
15
|
const cs = index$1.useCssName("full-screen");
|
|
16
16
|
const props = __props;
|
|
17
17
|
const emit = __emit;
|
|
18
|
-
const domRef =
|
|
18
|
+
const domRef = vue.ref();
|
|
19
19
|
const { isFullscreen, toggle } = index$2.useFullscreen();
|
|
20
20
|
console.log("isFullscreen", isFullscreen);
|
|
21
21
|
const onClick = () => {
|
|
@@ -30,23 +30,23 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
30
30
|
...data.dataExpose
|
|
31
31
|
});
|
|
32
32
|
return (_ctx, _cache) => {
|
|
33
|
-
return
|
|
33
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
34
34
|
ref_key: "domRef",
|
|
35
35
|
ref: domRef,
|
|
36
|
-
class:
|
|
36
|
+
class: vue.normalizeClass(vue.unref(cs).z())
|
|
37
37
|
}, [
|
|
38
|
-
|
|
39
|
-
class:
|
|
38
|
+
vue.withDirectives(vue.createVNode(vue.unref(index$3.Button), {
|
|
39
|
+
class: vue.normalizeClass(vue.unref(cs).z("buts")),
|
|
40
40
|
onClick
|
|
41
41
|
}, {
|
|
42
|
-
default:
|
|
43
|
-
|
|
42
|
+
default: vue.withCtx(() => [
|
|
43
|
+
vue.createTextVNode(vue.toDisplayString(vue.unref(isFullscreen) ? "退出全屏" : "全屏"), 1)
|
|
44
44
|
]),
|
|
45
45
|
_: 1
|
|
46
46
|
}, 8, ["class"]), [
|
|
47
|
-
[
|
|
47
|
+
[vue.vShow, !vue.unref(isFullscreen) || props.isFullBus]
|
|
48
48
|
]),
|
|
49
|
-
|
|
49
|
+
vue.renderSlot(_ctx.$slots, vue.unref(data.dataSlot).default)
|
|
50
50
|
], 2);
|
|
51
51
|
};
|
|
52
52
|
}
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const data = require("./data.cjs");
|
|
4
4
|
const index = require("../../../hooks/global-config/index.cjs");
|
|
5
|
-
const
|
|
5
|
+
const vue = require("vue");
|
|
6
6
|
const index$1 = require("../../config-provider/index.cjs");
|
|
7
7
|
const zhCn = require("element-plus/es/locale/lang/zh-cn");
|
|
8
|
-
const SrcVue =
|
|
8
|
+
const SrcVue = vue.defineComponent({
|
|
9
9
|
props: data.dataProps,
|
|
10
10
|
setup(props, { slots }) {
|
|
11
11
|
const config = index.provideGlobalConfig(props);
|
|
@@ -17,7 +17,7 @@ const SrcVue = vues.defineComponent({
|
|
|
17
17
|
is = true;
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
return
|
|
20
|
+
return vue.h(
|
|
21
21
|
index$1.ConfigProvider,
|
|
22
22
|
{
|
|
23
23
|
size: props.size,
|
|
@@ -27,14 +27,14 @@ const SrcVue = vues.defineComponent({
|
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
29
|
default() {
|
|
30
|
-
return
|
|
30
|
+
return vue.renderSlot(slots, "default", {
|
|
31
31
|
config: config == null ? void 0 : config.value
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
);
|
|
36
36
|
} else {
|
|
37
|
-
return
|
|
37
|
+
return vue.renderSlot(slots, "default", {
|
|
38
38
|
config: config == null ? void 0 : config.value
|
|
39
39
|
});
|
|
40
40
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const
|
|
3
|
+
const vue = require("vue");
|
|
4
4
|
const index$1 = require("../../icon/index.cjs");
|
|
5
5
|
const left = require("../../../icons/vue/left.cjs");
|
|
6
6
|
const right = require("../../../icons/vue/right.cjs");
|
|
@@ -8,7 +8,7 @@ const data = require("./data.cjs");
|
|
|
8
8
|
const index = require("../../../hooks/cssname/index.cjs");
|
|
9
9
|
require("../../../utils/util.cjs");
|
|
10
10
|
const deepCopy = require("@fangzhongya/utils/basic/object/deepCopy");
|
|
11
|
-
const _sfc_main = /* @__PURE__ */
|
|
11
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
12
12
|
__name: "index",
|
|
13
13
|
props: data.dataProps,
|
|
14
14
|
emits: data.dataEmits,
|
|
@@ -16,24 +16,24 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
16
16
|
const cs = index.useCssName("history");
|
|
17
17
|
const props = __props;
|
|
18
18
|
const emit = __emit;
|
|
19
|
-
const history =
|
|
20
|
-
const index$2 =
|
|
21
|
-
const current =
|
|
22
|
-
const isRetreat =
|
|
19
|
+
const history = vue.ref([]);
|
|
20
|
+
const index$2 = vue.ref(0);
|
|
21
|
+
const current = vue.ref();
|
|
22
|
+
const isRetreat = vue.computed(() => {
|
|
23
23
|
if (history.value.length > 0 && index$2.value <= history.value.length - 1) {
|
|
24
24
|
return false;
|
|
25
25
|
} else {
|
|
26
26
|
return true;
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
|
-
const isForward =
|
|
29
|
+
const isForward = vue.computed(() => {
|
|
30
30
|
if (history.value.length > 0 && index$2.value != 0) {
|
|
31
31
|
return false;
|
|
32
32
|
} else {
|
|
33
33
|
return true;
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
|
-
|
|
36
|
+
vue.watch(
|
|
37
37
|
() => props.record,
|
|
38
38
|
() => {
|
|
39
39
|
setRecord();
|
|
@@ -76,35 +76,35 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
76
76
|
...data.dataExpose
|
|
77
77
|
});
|
|
78
78
|
return (_ctx, _cache) => {
|
|
79
|
-
return
|
|
80
|
-
class:
|
|
79
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
80
|
+
class: vue.normalizeClass(vue.unref(cs).z())
|
|
81
81
|
}, [
|
|
82
|
-
|
|
83
|
-
class:
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
82
|
+
vue.createVNode(vue.unref(index$1.Icon), {
|
|
83
|
+
class: vue.normalizeClass([
|
|
84
|
+
vue.unref(cs).z("icon"),
|
|
85
|
+
vue.unref(cs).z("retreat"),
|
|
86
|
+
vue.unref(cs).is("disabled", isRetreat.value)
|
|
87
87
|
]),
|
|
88
88
|
onClick: onRetreat
|
|
89
89
|
}, {
|
|
90
|
-
default:
|
|
91
|
-
|
|
92
|
-
|
|
90
|
+
default: vue.withCtx(() => [
|
|
91
|
+
vue.renderSlot(_ctx.$slots, vue.unref(data.dataSlot).iconRetreat, {}, () => [
|
|
92
|
+
vue.createVNode(left.default)
|
|
93
93
|
])
|
|
94
94
|
]),
|
|
95
95
|
_: 3
|
|
96
96
|
}, 8, ["class"]),
|
|
97
|
-
|
|
98
|
-
class:
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
97
|
+
vue.createVNode(vue.unref(index$1.Icon), {
|
|
98
|
+
class: vue.normalizeClass([
|
|
99
|
+
vue.unref(cs).z("icon"),
|
|
100
|
+
vue.unref(cs).z("forward"),
|
|
101
|
+
vue.unref(cs).is("disabled", isForward.value)
|
|
102
102
|
]),
|
|
103
103
|
onClick: onForward
|
|
104
104
|
}, {
|
|
105
|
-
default:
|
|
106
|
-
|
|
107
|
-
|
|
105
|
+
default: vue.withCtx(() => [
|
|
106
|
+
vue.renderSlot(_ctx.$slots, vue.unref(data.dataSlot).iconForward, {}, () => [
|
|
107
|
+
vue.createVNode(right.default)
|
|
108
108
|
])
|
|
109
109
|
]),
|
|
110
110
|
_: 3
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const
|
|
3
|
+
const vue = require("vue");
|
|
4
4
|
const data = require("./data.cjs");
|
|
5
5
|
require("../../../hooks/index.cjs");
|
|
6
6
|
const index = require("../../../hooks/locale/index.cjs");
|
|
@@ -8,7 +8,7 @@ const index$1 = require("../../../hooks/cssname/index.cjs");
|
|
|
8
8
|
const _hoisted_1 = ["src"];
|
|
9
9
|
const _hoisted_2 = ["innerHTML"];
|
|
10
10
|
const _hoisted_3 = ["xlink:href"];
|
|
11
|
-
const _sfc_main = /* @__PURE__ */
|
|
11
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
12
12
|
__name: "index",
|
|
13
13
|
props: data.dataProps,
|
|
14
14
|
emits: data.dataEmits,
|
|
@@ -20,7 +20,7 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
20
20
|
const reg = /<svg([^>]*)>((.|\n|\r|\t)*)<\/svg>/g;
|
|
21
21
|
const reg1 = /<path([^>]*)>((.|\n|\r|\t)*)<\/path>/g;
|
|
22
22
|
const reg2 = /<g([^>]*)>((.|\n|\r|\t)*)<\/g>/g;
|
|
23
|
-
const outputType =
|
|
23
|
+
const outputType = vue.computed(() => {
|
|
24
24
|
if (props.type) {
|
|
25
25
|
return props.type;
|
|
26
26
|
} else {
|
|
@@ -34,7 +34,7 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
});
|
|
37
|
-
const transformStyle =
|
|
37
|
+
const transformStyle = vue.computed(() => {
|
|
38
38
|
const style = [];
|
|
39
39
|
if (props.flip !== "") {
|
|
40
40
|
switch (props.flip) {
|
|
@@ -62,7 +62,7 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
62
62
|
}
|
|
63
63
|
return styleObj;
|
|
64
64
|
});
|
|
65
|
-
const outputName =
|
|
65
|
+
const outputName = vue.computed(() => {
|
|
66
66
|
const name = props.name || "";
|
|
67
67
|
switch (outputType.value) {
|
|
68
68
|
case "str":
|
|
@@ -118,41 +118,41 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
118
118
|
...data.dataExpose
|
|
119
119
|
});
|
|
120
120
|
return (_ctx, _cache) => {
|
|
121
|
-
return
|
|
122
|
-
class:
|
|
123
|
-
style:
|
|
121
|
+
return vue.openBlock(), vue.createElementBlock("i", {
|
|
122
|
+
class: vue.normalizeClass(vue.unref(cs).z()),
|
|
123
|
+
style: vue.normalizeStyle(transformStyle.value)
|
|
124
124
|
}, [
|
|
125
|
-
|
|
126
|
-
outputType.value === "css" || outputType.value === "font" ? (
|
|
125
|
+
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
126
|
+
outputType.value === "css" || outputType.value === "font" ? (vue.openBlock(), vue.createElementBlock("i", {
|
|
127
127
|
key: 0,
|
|
128
|
-
class:
|
|
129
|
-
|
|
128
|
+
class: vue.normalizeClass([
|
|
129
|
+
vue.unref(cs).z(outputType.value),
|
|
130
130
|
props.iconClass,
|
|
131
131
|
outputName.value,
|
|
132
|
-
|
|
132
|
+
vue.unref(cs).z("cont")
|
|
133
133
|
])
|
|
134
|
-
}, null, 2)) : outputType.value === "img" ? (
|
|
134
|
+
}, null, 2)) : outputType.value === "img" ? (vue.openBlock(), vue.createElementBlock("img", {
|
|
135
135
|
key: 1,
|
|
136
|
-
class:
|
|
136
|
+
class: vue.normalizeClass([vue.unref(cs).z(outputType.value), props.iconClass, vue.unref(cs).z("cont")]),
|
|
137
137
|
src: outputName.value
|
|
138
|
-
}, null, 10, _hoisted_1)) : outputType.value === "str" ? (
|
|
138
|
+
}, null, 10, _hoisted_1)) : outputType.value === "str" ? (vue.openBlock(), vue.createElementBlock("svg", {
|
|
139
139
|
key: 2,
|
|
140
|
-
class:
|
|
140
|
+
class: vue.normalizeClass([vue.unref(cs).z(outputType.value), props.iconClass, vue.unref(cs).z("cont")]),
|
|
141
141
|
viewBox: "0 0 1024 1024",
|
|
142
142
|
xmlns: "http://www.w3.org/2000/svg",
|
|
143
143
|
innerHTML: outputName.value
|
|
144
|
-
}, null, 10, _hoisted_2)) : outputType.value === "id" ? (
|
|
144
|
+
}, null, 10, _hoisted_2)) : outputType.value === "id" ? (vue.openBlock(), vue.createElementBlock("svg", {
|
|
145
145
|
key: 3,
|
|
146
|
-
class:
|
|
146
|
+
class: vue.normalizeClass([vue.unref(cs).z(outputType.value), props.iconClass, vue.unref(cs).z("cont")]),
|
|
147
147
|
"aria-hidden": "true"
|
|
148
148
|
}, [
|
|
149
|
-
|
|
149
|
+
vue.createElementVNode("use", {
|
|
150
150
|
"xlink:href": `#${outputName.value}`
|
|
151
151
|
}, null, 8, _hoisted_3)
|
|
152
|
-
], 2)) : outputName.value ? (
|
|
152
|
+
], 2)) : outputName.value ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(outputName.value), {
|
|
153
153
|
key: 4,
|
|
154
|
-
class:
|
|
155
|
-
}, null, 8, ["class"])) :
|
|
154
|
+
class: vue.normalizeClass([vue.unref(cs).z(outputType.value), props.iconClass, vue.unref(cs).z("cont")])
|
|
155
|
+
}, null, 8, ["class"])) : vue.createCommentVNode("", true)
|
|
156
156
|
])
|
|
157
157
|
], 6);
|
|
158
158
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const
|
|
3
|
+
const vue = require("vue");
|
|
4
4
|
const data = require("./data.cjs");
|
|
5
5
|
require("../../../hooks/index.cjs");
|
|
6
6
|
const index$2 = require("../../icon/index.cjs");
|
|
@@ -14,7 +14,7 @@ const _hoisted_1 = ["title"];
|
|
|
14
14
|
const _hoisted_2 = ["title"];
|
|
15
15
|
const _hoisted_3 = ["onClick"];
|
|
16
16
|
const _hoisted_4 = ["title"];
|
|
17
|
-
const _sfc_main = /* @__PURE__ */
|
|
17
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
18
18
|
__name: "index",
|
|
19
19
|
props: data.dataProps,
|
|
20
20
|
emits: data.dataEmits,
|
|
@@ -33,11 +33,11 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
33
33
|
ac = k;
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
const activeName =
|
|
37
|
-
const dialogVisible =
|
|
38
|
-
const search =
|
|
39
|
-
const value =
|
|
40
|
-
const currentIconList =
|
|
36
|
+
const activeName = vue.ref(ac);
|
|
37
|
+
const dialogVisible = vue.ref(false);
|
|
38
|
+
const search = vue.ref("");
|
|
39
|
+
const value = vue.ref("");
|
|
40
|
+
const currentIconList = vue.computed(() => {
|
|
41
41
|
var _a2;
|
|
42
42
|
let arr = {};
|
|
43
43
|
if (activeName.value) {
|
|
@@ -140,86 +140,86 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
140
140
|
...data.dataExpose
|
|
141
141
|
});
|
|
142
142
|
return (_ctx, _cache) => {
|
|
143
|
-
return
|
|
144
|
-
class:
|
|
143
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
144
|
+
class: vue.normalizeClass(vue.unref(cs).z())
|
|
145
145
|
}, [
|
|
146
|
-
|
|
147
|
-
class:
|
|
146
|
+
vue.createElementVNode("span", {
|
|
147
|
+
class: vue.normalizeClass(vue.unref(cs).z("span")),
|
|
148
148
|
onClick: onShow
|
|
149
149
|
}, [
|
|
150
|
-
|
|
151
|
-
|
|
150
|
+
vue.renderSlot(_ctx.$slots, vue.unref(data.dataSlot).default, {}, () => [
|
|
151
|
+
vue.createVNode(vue.unref(index$2.Icon), {
|
|
152
152
|
type: props.type,
|
|
153
153
|
size: props.size,
|
|
154
154
|
name: props.modelValue
|
|
155
155
|
}, null, 8, ["type", "size", "name"])
|
|
156
156
|
])
|
|
157
157
|
], 2),
|
|
158
|
-
|
|
158
|
+
vue.createVNode(vue.unref(index$3.Dialogs), {
|
|
159
159
|
modelValue: dialogVisible.value,
|
|
160
160
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => dialogVisible.value = $event),
|
|
161
161
|
width: props.dialogWidth,
|
|
162
|
-
title:
|
|
162
|
+
title: vue.unref(getLocale)("iconpicker"),
|
|
163
163
|
"show-close": true,
|
|
164
|
-
class:
|
|
164
|
+
class: vue.normalizeClass(props.dialogClass),
|
|
165
165
|
onClose: removeIcon,
|
|
166
166
|
onConfirm
|
|
167
167
|
}, {
|
|
168
|
-
default:
|
|
169
|
-
|
|
170
|
-
class:
|
|
168
|
+
default: vue.withCtx(() => [
|
|
169
|
+
vue.createElementVNode("div", {
|
|
170
|
+
class: vue.normalizeClass([vue.unref(cs).z("dialog"), vue.unref(cs).z("syys")])
|
|
171
171
|
}, [
|
|
172
|
-
|
|
173
|
-
class:
|
|
172
|
+
vue.createElementVNode("div", {
|
|
173
|
+
class: vue.normalizeClass(vue.unref(cs).z("dialog-search"))
|
|
174
174
|
}, [
|
|
175
|
-
|
|
176
|
-
class:
|
|
175
|
+
vue.createElementVNode("div", {
|
|
176
|
+
class: vue.normalizeClass(vue.unref(cs).z("dialog-input"))
|
|
177
177
|
}, [
|
|
178
|
-
|
|
179
|
-
placeholder:
|
|
178
|
+
vue.createVNode(vue.unref(index$4.Input), {
|
|
179
|
+
placeholder: vue.unref(getLocale)("search"),
|
|
180
180
|
modelValue: search.value,
|
|
181
181
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => search.value = $event),
|
|
182
182
|
clearable: ""
|
|
183
183
|
}, null, 8, ["placeholder", "modelValue"])
|
|
184
184
|
], 2),
|
|
185
|
-
|
|
186
|
-
class:
|
|
185
|
+
vue.createElementVNode("div", {
|
|
186
|
+
class: vue.normalizeClass(vue.unref(cs).z("dialog-delete"))
|
|
187
187
|
}, [
|
|
188
|
-
value.value ? (
|
|
188
|
+
value.value ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
189
189
|
key: 0,
|
|
190
190
|
title: value.value
|
|
191
191
|
}, [
|
|
192
|
-
|
|
192
|
+
vue.createVNode(vue.unref(index$2.Icon), {
|
|
193
193
|
type: props.type,
|
|
194
194
|
size: props.size,
|
|
195
195
|
name: value.value
|
|
196
196
|
}, null, 8, ["type", "size", "name"])
|
|
197
|
-
], 8, _hoisted_1)) :
|
|
197
|
+
], 8, _hoisted_1)) : vue.createCommentVNode("", true)
|
|
198
198
|
], 2)
|
|
199
199
|
], 2),
|
|
200
|
-
|
|
201
|
-
class:
|
|
200
|
+
vue.createElementVNode("div", {
|
|
201
|
+
class: vue.normalizeClass(vue.unref(cs).z("dialog-body"))
|
|
202
202
|
}, [
|
|
203
|
-
|
|
204
|
-
class:
|
|
203
|
+
vue.createVNode(vue.unref(index$5.Tabs), {
|
|
204
|
+
class: vue.normalizeClass(vue.unref(cs).z("dialog-tabs")),
|
|
205
205
|
modelValue: activeName.value,
|
|
206
206
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => activeName.value = $event),
|
|
207
207
|
onTabChange: handleTabChange
|
|
208
208
|
}, {
|
|
209
|
-
default:
|
|
210
|
-
(
|
|
211
|
-
return
|
|
209
|
+
default: vue.withCtx(() => [
|
|
210
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(props.icons, (item, key) => {
|
|
211
|
+
return vue.openBlock(), vue.createBlock(vue.unref(index$6.TabPane), {
|
|
212
212
|
key,
|
|
213
213
|
name: key
|
|
214
214
|
}, {
|
|
215
|
-
label:
|
|
216
|
-
|
|
217
|
-
class:
|
|
215
|
+
label: vue.withCtx(() => [
|
|
216
|
+
vue.createElementVNode("div", {
|
|
217
|
+
class: vue.normalizeClass(vue.unref(cs).z("dialog-tabs-lable"))
|
|
218
218
|
}, [
|
|
219
|
-
|
|
219
|
+
vue.createElementVNode("div", {
|
|
220
220
|
title: setTabsTotal(item),
|
|
221
|
-
class:
|
|
222
|
-
},
|
|
221
|
+
class: vue.normalizeClass(vue.unref(cs).z("dialog-tabs-name"))
|
|
222
|
+
}, vue.toDisplayString(setTabsLabel(item)), 11, _hoisted_2)
|
|
223
223
|
], 2)
|
|
224
224
|
]),
|
|
225
225
|
_: 2
|
|
@@ -228,22 +228,22 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
228
228
|
]),
|
|
229
229
|
_: 1
|
|
230
230
|
}, 8, ["class", "modelValue"]),
|
|
231
|
-
|
|
232
|
-
class:
|
|
231
|
+
vue.createElementVNode("div", {
|
|
232
|
+
class: vue.normalizeClass(vue.unref(cs).z("dialog-list"))
|
|
233
233
|
}, [
|
|
234
|
-
(
|
|
235
|
-
return
|
|
236
|
-
class:
|
|
234
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(currentIconList.value, (icon, key) => {
|
|
235
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
236
|
+
class: vue.normalizeClass(vue.unref(cs).z("dialog-list-item")),
|
|
237
237
|
onClick: ($event) => chooseIcon(icon, String(key))
|
|
238
238
|
}, [
|
|
239
|
-
|
|
239
|
+
vue.createElementVNode("div", {
|
|
240
240
|
title: setName(icon, String(key)),
|
|
241
|
-
class:
|
|
242
|
-
|
|
241
|
+
class: vue.normalizeClass([
|
|
242
|
+
vue.unref(cs).z("dialog-list-icon"),
|
|
243
243
|
setName(icon, String(key)) == value.value ? "active" : ""
|
|
244
244
|
])
|
|
245
245
|
}, [
|
|
246
|
-
|
|
246
|
+
vue.createVNode(vue.unref(index$2.Icon), {
|
|
247
247
|
type: props.type,
|
|
248
248
|
size: props.size,
|
|
249
249
|
name: setName(icon, String(key))
|