@fangzhongya/fang-ui 0.0.65 → 0.0.67
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/array/src/index2.cjs +21 -2
- package/dist/components/array/src/index2.js +22 -3
- package/dist/components/button/src/data.cjs +3 -1
- package/dist/components/button/src/data.d.ts +3 -1
- package/dist/components/button/src/data.js +3 -1
- package/dist/components/button/src/index2.cjs +6 -10
- package/dist/components/button/src/index2.js +8 -12
- package/dist/components/buttons/src/index2.cjs +3 -3
- package/dist/components/buttons/src/index2.js +3 -3
- package/dist/components/cascaders/src/index2.cjs +3 -8
- package/dist/components/cascaders/src/index2.js +4 -9
- package/dist/components/dates-divide/src/data.cjs +1 -1
- package/dist/components/dates-divide/src/data.d.ts +1 -1
- package/dist/components/dates-divide/src/data.js +1 -1
- package/dist/components/dates-picker/src/index2.cjs +2 -2
- package/dist/components/dates-picker/src/index2.js +1 -1
- package/dist/components/edit-float/src/index2.cjs +9 -8
- package/dist/components/edit-float/src/index2.js +7 -6
- package/dist/components/forms/src/data.cjs +12 -12
- package/dist/components/forms/src/data.d.ts +1 -27
- package/dist/components/forms/src/data.js +12 -12
- package/dist/components/forms-div/src/data.cjs +5 -2
- package/dist/components/forms-div/src/data.d.ts +3 -2
- package/dist/components/forms-div/src/data.js +5 -2
- package/dist/components/forms-div/src/index2.cjs +2 -2
- package/dist/components/forms-div/src/index2.js +3 -3
- package/dist/components/forms-drag/src/index2.cjs +6 -10
- package/dist/components/forms-drag/src/index2.js +6 -10
- package/dist/components/forms-item/src/data.cjs +5 -2
- package/dist/components/forms-item/src/data.d.ts +3 -2
- package/dist/components/forms-item/src/data.js +5 -2
- package/dist/components/forms-item/src/indexts.d.ts +5 -2
- package/dist/components/global-config/src/index.cjs +7 -3
- package/dist/components/global-config/src/index.js +7 -3
- package/dist/components/icon/src/index2.cjs +2 -2
- package/dist/components/icon/src/index2.js +3 -3
- package/dist/components/images/src/index2.cjs +4 -4
- package/dist/components/images/src/index2.js +1 -1
- package/dist/components/index.scss +2 -2
- package/dist/components/index2.scss +2 -2
- package/dist/components/input-history/index.css +1 -1
- package/dist/components/input-history/index.scss +1 -2
- package/dist/components/input-history/src/data.cjs +2 -2
- package/dist/components/input-history/src/data.d.ts +0 -1
- package/dist/components/input-history/src/data.js +2 -2
- package/dist/components/input-history/src/index2.cjs +17 -12
- package/dist/components/input-history/src/index2.js +12 -7
- package/dist/components/input-num/index.css +1 -0
- package/dist/components/input-num/index.scss +1 -0
- package/dist/components/labels/src/index2.cjs +1 -1
- package/dist/components/labels/src/index2.js +1 -1
- package/dist/components/list/src/data.cjs +1 -1
- package/dist/components/list/src/data.d.ts +1 -1
- package/dist/components/list/src/data.js +1 -1
- package/dist/components/listsp/src/index2.cjs +3 -3
- package/dist/components/listsp/src/index2.js +3 -3
- package/dist/components/loading/src/index.cjs +3 -3
- package/dist/components/loading/src/index.d.ts +2 -2
- package/dist/components/loading/src/index.js +1 -1
- package/dist/components/message/index.d.ts +3 -5
- package/dist/components/message/src/index.cjs +3 -3
- package/dist/components/message/src/index.d.ts +3 -10
- package/dist/components/message/src/index.js +2 -2
- package/dist/components/message-box/src/index.cjs +3 -6
- package/dist/components/message-box/src/index.d.ts +3 -13
- package/dist/components/message-box/src/index.js +2 -5
- package/dist/components/page/set-column.css +8 -8
- package/dist/components/page/src/data.cjs +13 -1
- package/dist/components/page/src/data.d.ts +26 -1
- package/dist/components/page/src/data.js +13 -1
- package/dist/components/page/src/index2.cjs +23 -40
- package/dist/components/page/src/index2.js +24 -41
- package/dist/components/page/src/set-column.cjs +1 -1
- package/dist/components/page/src/set-column.js +1 -1
- package/dist/components/page/src/set-column2.cjs +9 -8
- package/dist/components/page/src/set-column2.js +2 -1
- package/dist/components/paging/src/index2.cjs +2 -2
- package/dist/components/paging/src/index2.js +2 -2
- package/dist/components/role-select/src/index2.cjs +7 -7
- package/dist/components/role-select/src/index2.js +1 -1
- package/dist/components/selector/src/index2.cjs +12 -11
- package/dist/components/selector/src/index2.js +8 -7
- package/dist/components/stick-div/src/index2.cjs +8 -1
- package/dist/components/stick-div/src/index2.js +8 -1
- package/dist/components/tablesv/src/column.cjs +9 -8
- package/dist/components/tablesv/src/column.js +2 -1
- package/dist/components/tablesv/src/columns2.cjs +2 -2
- package/dist/components/tablesv/src/columns2.js +1 -1
- package/dist/css/index.css +24 -5
- package/dist/css/input-history.css +1 -1
- package/dist/css/input-num.css +1 -0
- package/dist/css/page/set-column.css +8 -8
- package/dist/directives/adjust/index.cjs +0 -8
- package/dist/directives/adjust/index.js +0 -8
- package/dist/icons/index.css +41 -41
- package/dist/icons/index.json +12 -12
- package/dist/index.css +24 -5
- package/package.json +6 -6
- /package/dist/components/{forms-items → forms-item}/index.css +0 -0
- /package/dist/components/{config-provider → keep-com}/index.css +0 -0
- /package/dist/css/{forms-items.css → forms-item.css} +0 -0
- /package/dist/css/{config-provider.css → keep-com.css} +0 -0
|
@@ -29,11 +29,14 @@ const dataProps = {
|
|
|
29
29
|
type: Object
|
|
30
30
|
},
|
|
31
31
|
/**
|
|
32
|
-
* @props { String } modelValue= ( )
|
|
33
32
|
* 传入值
|
|
33
|
+
* @props { Object } modelValue={} ( )
|
|
34
34
|
*/
|
|
35
35
|
modelValue: {
|
|
36
|
-
type:
|
|
36
|
+
type: Object,
|
|
37
|
+
default() {
|
|
38
|
+
return {};
|
|
39
|
+
}
|
|
37
40
|
},
|
|
38
41
|
/**
|
|
39
42
|
* @props { Object<ObjStr> } formvalue= ( )
|
|
@@ -24,11 +24,12 @@ export declare const dataProps: {
|
|
|
24
24
|
type: ObjectConstructor;
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
27
|
-
* @props { String } modelValue= ( )
|
|
28
27
|
* 传入值
|
|
28
|
+
* @props { Object } modelValue={} ( )
|
|
29
29
|
*/
|
|
30
30
|
modelValue: {
|
|
31
|
-
type:
|
|
31
|
+
type: ObjectConstructor;
|
|
32
|
+
default(): {};
|
|
32
33
|
};
|
|
33
34
|
/**
|
|
34
35
|
* @props { Object<ObjStr> } formvalue= ( )
|
|
@@ -27,11 +27,14 @@ const dataProps = {
|
|
|
27
27
|
type: Object
|
|
28
28
|
},
|
|
29
29
|
/**
|
|
30
|
-
* @props { String } modelValue= ( )
|
|
31
30
|
* 传入值
|
|
31
|
+
* @props { Object } modelValue={} ( )
|
|
32
32
|
*/
|
|
33
33
|
modelValue: {
|
|
34
|
-
type:
|
|
34
|
+
type: Object,
|
|
35
|
+
default() {
|
|
36
|
+
return {};
|
|
37
|
+
}
|
|
35
38
|
},
|
|
36
39
|
/**
|
|
37
40
|
* @props { Object<ObjStr> } formvalue= ( )
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const vue = require("vue");
|
|
4
4
|
const data = require("./data.cjs");
|
|
5
|
-
|
|
5
|
+
require("../../../directives/expose/index.cjs");
|
|
6
6
|
require("../../../utils/index.cjs");
|
|
7
7
|
const index = require("../../../hooks/cssname/index.cjs");
|
|
8
8
|
const use = require("../../common/use.cjs");
|
|
@@ -135,7 +135,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
135
135
|
});
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
|
-
return
|
|
138
|
+
return render();
|
|
139
139
|
};
|
|
140
140
|
return () => {
|
|
141
141
|
return props.compon ? vue.h("div", { class: cs.z() }, [setSslot()]) : "";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent, inject, computed, h, resolveComponent
|
|
1
|
+
import { defineComponent, inject, computed, h, resolveComponent } from "vue";
|
|
2
2
|
import { dataProps, dataEmits, dataExpose } from "./data.js";
|
|
3
|
-
import
|
|
3
|
+
import "../../../directives/expose/index.js";
|
|
4
4
|
import "../../../utils/index.js";
|
|
5
5
|
import { useCssName } from "../../../hooks/cssname/index.js";
|
|
6
6
|
import { getOnObjs } from "../../common/use.js";
|
|
@@ -133,7 +133,7 @@ const _sfc_main = defineComponent({
|
|
|
133
133
|
});
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
|
-
return
|
|
136
|
+
return render();
|
|
137
137
|
};
|
|
138
138
|
return () => {
|
|
139
139
|
return props.compon ? h("div", { class: cs.z() }, [setSslot()]) : "";
|
|
@@ -27,17 +27,13 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
27
27
|
},
|
|
28
28
|
butDisabled: Boolean
|
|
29
29
|
},
|
|
30
|
-
emits:
|
|
30
|
+
emits: [
|
|
31
31
|
...data.dataEmits,
|
|
32
|
-
"update:list"
|
|
33
|
-
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
},
|
|
38
|
-
adjust: (a, b, c, d) => {
|
|
39
|
-
}
|
|
40
|
-
},
|
|
32
|
+
"update:list",
|
|
33
|
+
"update:index",
|
|
34
|
+
"handle",
|
|
35
|
+
"adjust"
|
|
36
|
+
],
|
|
41
37
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
42
38
|
const { getLocale } = index.useLocale();
|
|
43
39
|
const slots = vue.useSlots();
|
|
@@ -25,17 +25,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
25
25
|
},
|
|
26
26
|
butDisabled: Boolean
|
|
27
27
|
},
|
|
28
|
-
emits:
|
|
28
|
+
emits: [
|
|
29
29
|
...dataEmits,
|
|
30
|
-
"update:list"
|
|
31
|
-
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
},
|
|
36
|
-
adjust: (a, b, c, d) => {
|
|
37
|
-
}
|
|
38
|
-
},
|
|
30
|
+
"update:list",
|
|
31
|
+
"update:index",
|
|
32
|
+
"handle",
|
|
33
|
+
"adjust"
|
|
34
|
+
],
|
|
39
35
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
40
36
|
const { getLocale } = useLocale();
|
|
41
37
|
const slots = useSlots();
|
|
@@ -49,10 +49,13 @@ const dataProps = {
|
|
|
49
49
|
hideLabel: Boolean,
|
|
50
50
|
/**
|
|
51
51
|
* 传入值
|
|
52
|
-
* @props {
|
|
52
|
+
* @props { Object } modelValue={} ( )
|
|
53
53
|
*/
|
|
54
54
|
modelValue: {
|
|
55
|
-
type:
|
|
55
|
+
type: Object,
|
|
56
|
+
default() {
|
|
57
|
+
return {};
|
|
58
|
+
}
|
|
56
59
|
}
|
|
57
60
|
};
|
|
58
61
|
const dataEmits = ["update:modelValue"];
|
|
@@ -44,10 +44,11 @@ export declare const dataProps: {
|
|
|
44
44
|
hideLabel: BooleanConstructor;
|
|
45
45
|
/**
|
|
46
46
|
* 传入值
|
|
47
|
-
* @props {
|
|
47
|
+
* @props { Object } modelValue={} ( )
|
|
48
48
|
*/
|
|
49
49
|
modelValue: {
|
|
50
|
-
type:
|
|
50
|
+
type: ObjectConstructor;
|
|
51
|
+
default(): {};
|
|
51
52
|
};
|
|
52
53
|
};
|
|
53
54
|
export type DataProps = ExtractPropTypes<typeof dataProps>;
|
|
@@ -47,10 +47,13 @@ const dataProps = {
|
|
|
47
47
|
hideLabel: Boolean,
|
|
48
48
|
/**
|
|
49
49
|
* 传入值
|
|
50
|
-
* @props {
|
|
50
|
+
* @props { Object } modelValue={} ( )
|
|
51
51
|
*/
|
|
52
52
|
modelValue: {
|
|
53
|
-
type:
|
|
53
|
+
type: Object,
|
|
54
|
+
default() {
|
|
55
|
+
return {};
|
|
56
|
+
}
|
|
54
57
|
}
|
|
55
58
|
};
|
|
56
59
|
const dataEmits = ["update:modelValue"];
|
|
@@ -19,7 +19,8 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
19
19
|
};
|
|
20
20
|
hideLabel: BooleanConstructor;
|
|
21
21
|
modelValue: {
|
|
22
|
-
type:
|
|
22
|
+
type: ObjectConstructor;
|
|
23
|
+
default(): {};
|
|
23
24
|
};
|
|
24
25
|
}>, () => VNode<RendererNode, RendererElement, {
|
|
25
26
|
[key: string]: any;
|
|
@@ -43,11 +44,13 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
43
44
|
};
|
|
44
45
|
hideLabel: BooleanConstructor;
|
|
45
46
|
modelValue: {
|
|
46
|
-
type:
|
|
47
|
+
type: ObjectConstructor;
|
|
48
|
+
default(): {};
|
|
47
49
|
};
|
|
48
50
|
}>> & Readonly<{
|
|
49
51
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
50
52
|
}>, {
|
|
53
|
+
modelValue: Record<string, any>;
|
|
51
54
|
listobj: ListObj;
|
|
52
55
|
optionss: ObjAny;
|
|
53
56
|
hideLabel: boolean;
|
|
@@ -25,9 +25,13 @@ const SrcVue = vue.defineComponent({
|
|
|
25
25
|
namespace: props.namespace,
|
|
26
26
|
locale: is ? zhCn : void 0
|
|
27
27
|
},
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
{
|
|
29
|
+
default() {
|
|
30
|
+
return vue.renderSlot(slots, "default", {
|
|
31
|
+
config: config == null ? void 0 : config.value
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
}
|
|
31
35
|
);
|
|
32
36
|
} else {
|
|
33
37
|
return vue.renderSlot(slots, "default", {
|
|
@@ -23,9 +23,13 @@ const SrcVue = defineComponent({
|
|
|
23
23
|
namespace: props.namespace,
|
|
24
24
|
locale: is ? zhCn : void 0
|
|
25
25
|
},
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
{
|
|
27
|
+
default() {
|
|
28
|
+
return renderSlot(slots, "default", {
|
|
29
|
+
config: config == null ? void 0 : config.value
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
}
|
|
29
33
|
);
|
|
30
34
|
} else {
|
|
31
35
|
return renderSlot(slots, "default", {
|
|
@@ -149,10 +149,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
149
149
|
vue.createElementVNode("use", {
|
|
150
150
|
"xlink:href": `#${outputName.value}`
|
|
151
151
|
}, null, 8, _hoisted_3)
|
|
152
|
-
], 2)) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(outputName.value), {
|
|
152
|
+
], 2)) : outputName.value ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(outputName.value), {
|
|
153
153
|
key: 4,
|
|
154
154
|
class: vue.normalizeClass([vue.unref(cs).z(outputType.value), props.iconClass, vue.unref(cs).z("cont")])
|
|
155
|
-
}, null, 8, ["class"]))
|
|
155
|
+
}, null, 8, ["class"])) : vue.createCommentVNode("", true)
|
|
156
156
|
])
|
|
157
157
|
], 6);
|
|
158
158
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, computed, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref, renderSlot, createBlock, createElementVNode, resolveDynamicComponent } from "vue";
|
|
1
|
+
import { defineComponent, computed, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref, renderSlot, createBlock, createCommentVNode, createElementVNode, resolveDynamicComponent } from "vue";
|
|
2
2
|
import { dataExpose, dataEmits, dataProps } from "./data.js";
|
|
3
3
|
import "../../../hooks/index.js";
|
|
4
4
|
import { useLocale } from "../../../hooks/locale/index.js";
|
|
@@ -147,10 +147,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
147
147
|
createElementVNode("use", {
|
|
148
148
|
"xlink:href": `#${outputName.value}`
|
|
149
149
|
}, null, 8, _hoisted_3)
|
|
150
|
-
], 2)) : (openBlock(), createBlock(resolveDynamicComponent(outputName.value), {
|
|
150
|
+
], 2)) : outputName.value ? (openBlock(), createBlock(resolveDynamicComponent(outputName.value), {
|
|
151
151
|
key: 4,
|
|
152
152
|
class: normalizeClass([unref(cs).z(outputType.value), props.iconClass, unref(cs).z("cont")])
|
|
153
|
-
}, null, 8, ["class"]))
|
|
153
|
+
}, null, 8, ["class"])) : createCommentVNode("", true)
|
|
154
154
|
])
|
|
155
155
|
], 6);
|
|
156
156
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const vue = require("vue");
|
|
4
|
-
const index$
|
|
4
|
+
const index$3 = require("../../../directives/expose/index.cjs");
|
|
5
5
|
const data = require("./data.cjs");
|
|
6
6
|
const index$1 = require("../../../hooks/cssname/index.cjs");
|
|
7
7
|
const index = require("../../../hooks/inherit/index.cjs");
|
|
8
|
-
const
|
|
8
|
+
const index$2 = require("element-plus/es/components/image/index");
|
|
9
9
|
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
10
10
|
__name: "index",
|
|
11
11
|
props: data.dataProps,
|
|
@@ -35,7 +35,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
35
35
|
return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
36
36
|
class: [vue.unref(cs).z()]
|
|
37
37
|
}, vue.unref(attrs).root), [
|
|
38
|
-
vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(
|
|
38
|
+
vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(index$2.ElImage), vue.mergeProps(vue.unref(attrs).assem, {
|
|
39
39
|
src: value.value,
|
|
40
40
|
"preview-src-list": list.value,
|
|
41
41
|
style: {
|
|
@@ -52,7 +52,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
52
52
|
};
|
|
53
53
|
})
|
|
54
54
|
]), 1040, ["src", "preview-src-list", "style"])), [
|
|
55
|
-
[vue.unref(index$
|
|
55
|
+
[vue.unref(index$3.default), {}]
|
|
56
56
|
])
|
|
57
57
|
], 16);
|
|
58
58
|
};
|
|
@@ -3,7 +3,7 @@ import vExpose from "../../../directives/expose/index.js";
|
|
|
3
3
|
import { dataExpose, dataEmits, dataProps } from "./data.js";
|
|
4
4
|
import { useCssName } from "../../../hooks/cssname/index.js";
|
|
5
5
|
import { useInherit } from "../../../hooks/inherit/index.js";
|
|
6
|
-
import { ElImage } from "element-plus";
|
|
6
|
+
import { ElImage } from "element-plus/es/components/image/index";
|
|
7
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
8
|
__name: "index",
|
|
9
9
|
props: dataProps,
|
|
@@ -86,7 +86,6 @@
|
|
|
86
86
|
@use './select-scroll/index.scss' as *;
|
|
87
87
|
@use './selector/index.scss' as *;
|
|
88
88
|
@use './selects/index.scss' as *;
|
|
89
|
-
@use './switchs/index.scss' as *;
|
|
90
89
|
@use './text/index.scss' as *;
|
|
91
90
|
@use './list/index.scss' as *;
|
|
92
91
|
@use './lists/index.scss' as *;
|
|
@@ -95,4 +94,5 @@
|
|
|
95
94
|
@use './tables/index.scss' as *;
|
|
96
95
|
@use './tablesp/index.scss' as *;
|
|
97
96
|
@use './tabless/index.scss' as *;
|
|
98
|
-
@use './tablesv/index.scss' as *;
|
|
97
|
+
@use './tablesv/index.scss' as *;
|
|
98
|
+
@use './tablesvp/index.scss' as *;
|
|
@@ -86,7 +86,6 @@
|
|
|
86
86
|
@use './select-scroll/style/index.scss' as *;
|
|
87
87
|
@use './selector/style/index.scss' as *;
|
|
88
88
|
@use './selects/style/index2.scss' as *;
|
|
89
|
-
@use './switchs/style/index2.scss' as *;
|
|
90
89
|
@use './text/style/index.scss' as *;
|
|
91
90
|
@use './list/style/index.scss' as *;
|
|
92
91
|
@use './lists/style/index.scss' as *;
|
|
@@ -95,4 +94,5 @@
|
|
|
95
94
|
@use './tables/style/index2.scss' as *;
|
|
96
95
|
@use './tablesp/style/index2.scss' as *;
|
|
97
96
|
@use './tabless/style/index2.scss' as *;
|
|
98
|
-
@use './tablesv/style/index2.scss' as *;
|
|
97
|
+
@use './tablesv/style/index2.scss' as *;
|
|
98
|
+
@use './tablesvp/style/index2.scss' as *;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const vue = require("vue");
|
|
4
|
-
const index$
|
|
4
|
+
const index$3 = require("../../icon/index.cjs");
|
|
5
5
|
const clear = require("../../../icons/vue/clear.cjs");
|
|
6
|
-
const index$
|
|
7
|
-
const
|
|
6
|
+
const index$5 = require("../../../directives/expose/index.cjs");
|
|
7
|
+
const index$2 = require("../../popover/index.cjs");
|
|
8
|
+
const index$6 = require("../../button/index.cjs");
|
|
8
9
|
const getCss = require("@fangzhongya/utils/css/getCss");
|
|
9
10
|
const util = require("./util.cjs");
|
|
10
11
|
const data = require("./data.cjs");
|
|
11
|
-
const index$
|
|
12
|
+
const index$4 = require("../../inputs/index.cjs");
|
|
12
13
|
const index$1 = require("../../../hooks/cssname/index.cjs");
|
|
13
14
|
const index = require("../../../hooks/inherit/index.cjs");
|
|
14
15
|
const _hoisted_1 = ["onClick"];
|
|
@@ -96,7 +97,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
96
97
|
return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
97
98
|
class: [vue.unref(cs).z()]
|
|
98
99
|
}, vue.unref(attrs).root), [
|
|
99
|
-
vue.createVNode(vue.unref(
|
|
100
|
+
vue.createVNode(vue.unref(index$2.Popover), {
|
|
100
101
|
trigger: "click",
|
|
101
102
|
"popper-class": vue.unref(cs).z("popper"),
|
|
102
103
|
visible: visible.value,
|
|
@@ -104,7 +105,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
104
105
|
width: width.value
|
|
105
106
|
}, {
|
|
106
107
|
reference: vue.withCtx(() => [
|
|
107
|
-
vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(index$
|
|
108
|
+
vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(index$4.Inputs), vue.mergeProps({
|
|
108
109
|
ref_key: "refInput",
|
|
109
110
|
ref: refInput,
|
|
110
111
|
modelValue: value.value,
|
|
@@ -131,7 +132,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
131
132
|
};
|
|
132
133
|
})
|
|
133
134
|
]), 1040, ["modelValue", "disabled"])), [
|
|
134
|
-
[vue.unref(index$
|
|
135
|
+
[vue.unref(index$5.default), {}]
|
|
135
136
|
])
|
|
136
137
|
]),
|
|
137
138
|
default: vue.withCtx(() => [
|
|
@@ -148,7 +149,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
148
149
|
onClick: vue.withModifiers(($event) => onClickSelect(item), ["stop"])
|
|
149
150
|
}, [
|
|
150
151
|
vue.createElementVNode("span", null, vue.toDisplayString(item), 1),
|
|
151
|
-
props.clean ? (vue.openBlock(), vue.createBlock(vue.unref(index$
|
|
152
|
+
props.clean ? (vue.openBlock(), vue.createBlock(vue.unref(index$3.Icon), {
|
|
152
153
|
key: 0,
|
|
153
154
|
class: vue.normalizeClass([vue.unref(cs).z("select-li-clean")]),
|
|
154
155
|
onClick: vue.withModifiers(($event) => onClean(item), ["stop"])
|
|
@@ -165,13 +166,17 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
165
166
|
]),
|
|
166
167
|
_: 3
|
|
167
168
|
}, 8, ["popper-class", "visible", "disabled", "width"]),
|
|
168
|
-
props.buts ? (vue.openBlock(), vue.createBlock(vue.unref(
|
|
169
|
+
props.buts ? (vue.openBlock(), vue.createBlock(vue.unref(index$6.Button), vue.mergeProps({
|
|
169
170
|
key: 0,
|
|
170
171
|
class: [vue.unref(cs).z("but"), props.buts.class]
|
|
171
172
|
}, props.buts, {
|
|
172
|
-
onClick: vue.withModifiers(onChange, ["stop"])
|
|
173
|
-
|
|
174
|
-
|
|
173
|
+
onClick: vue.withModifiers(onChange, ["stop"])
|
|
174
|
+
}), {
|
|
175
|
+
default: vue.withCtx(() => [
|
|
176
|
+
vue.createTextVNode(vue.toDisplayString(props.buts.label), 1)
|
|
177
|
+
]),
|
|
178
|
+
_: 1
|
|
179
|
+
}, 16, ["class"])) : vue.createCommentVNode("", true)
|
|
175
180
|
], 16);
|
|
176
181
|
};
|
|
177
182
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { defineComponent, useAttrs, useSlots, ref, watch, onMounted, createElementBlock, openBlock, mergeProps, unref, createVNode, createBlock, createCommentVNode, withCtx, normalizeClass, createElementVNode, Fragment, renderList, withModifiers, toDisplayString, withDirectives, withKeys, createSlots, renderSlot } from "vue";
|
|
1
|
+
import { defineComponent, useAttrs, useSlots, ref, watch, onMounted, createElementBlock, openBlock, mergeProps, unref, createVNode, createBlock, createCommentVNode, withCtx, normalizeClass, createElementVNode, Fragment, renderList, withModifiers, toDisplayString, withDirectives, withKeys, createSlots, renderSlot, createTextVNode } from "vue";
|
|
2
2
|
import { Icon } from "../../icon/index.js";
|
|
3
3
|
import Clear from "../../../icons/vue/clear.js";
|
|
4
4
|
import vExpose from "../../../directives/expose/index.js";
|
|
5
|
-
import {
|
|
5
|
+
import { Popover } from "../../popover/index.js";
|
|
6
|
+
import { Button } from "../../button/index.js";
|
|
6
7
|
import { getCss } from "@fangzhongya/utils/css/getCss";
|
|
7
8
|
import { useStorage, replaceAfter, deleteArray } from "./util.js";
|
|
8
9
|
import { dataExpose, dataEmits, dataProps } from "./data.js";
|
|
@@ -94,7 +95,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
94
95
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
95
96
|
class: [unref(cs).z()]
|
|
96
97
|
}, unref(attrs).root), [
|
|
97
|
-
createVNode(unref(
|
|
98
|
+
createVNode(unref(Popover), {
|
|
98
99
|
trigger: "click",
|
|
99
100
|
"popper-class": unref(cs).z("popper"),
|
|
100
101
|
visible: visible.value,
|
|
@@ -163,13 +164,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
163
164
|
]),
|
|
164
165
|
_: 3
|
|
165
166
|
}, 8, ["popper-class", "visible", "disabled", "width"]),
|
|
166
|
-
props.buts ? (openBlock(), createBlock(unref(
|
|
167
|
+
props.buts ? (openBlock(), createBlock(unref(Button), mergeProps({
|
|
167
168
|
key: 0,
|
|
168
169
|
class: [unref(cs).z("but"), props.buts.class]
|
|
169
170
|
}, props.buts, {
|
|
170
|
-
onClick: withModifiers(onChange, ["stop"])
|
|
171
|
-
|
|
172
|
-
|
|
171
|
+
onClick: withModifiers(onChange, ["stop"])
|
|
172
|
+
}), {
|
|
173
|
+
default: withCtx(() => [
|
|
174
|
+
createTextVNode(toDisplayString(props.buts.label), 1)
|
|
175
|
+
]),
|
|
176
|
+
_: 1
|
|
177
|
+
}, 16, ["class"])) : createCommentVNode("", true)
|
|
173
178
|
], 16);
|
|
174
179
|
};
|
|
175
180
|
}
|
|
@@ -6,7 +6,6 @@ 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
|
-
const wholeValue = "Symbol('whole')";
|
|
10
9
|
const wholeClass = "labels-li-whole";
|
|
11
10
|
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
12
11
|
__name: "index",
|
|
@@ -36,6 +35,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
36
35
|
obj[d] = value2;
|
|
37
36
|
}
|
|
38
37
|
}
|
|
38
|
+
const wholeValue = "__Symbol('whole')__" + (/* @__PURE__ */ new Date()).valueOf();
|
|
39
39
|
const options = vue.computed(() => {
|
|
40
40
|
const opts = [...props.options];
|
|
41
41
|
if (!props.nowhole) {
|
|
@@ -4,7 +4,6 @@ import { Selects } from "../../selects/index.js";
|
|
|
4
4
|
import { useVueValue } from "../../common/use.js";
|
|
5
5
|
import { useCssName } from "../../../hooks/cssname/index.js";
|
|
6
6
|
import { dataHandle, dataEmits, dataProps } from "./data.js";
|
|
7
|
-
const wholeValue = "Symbol('whole')";
|
|
8
7
|
const wholeClass = "labels-li-whole";
|
|
9
8
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
9
|
__name: "index",
|
|
@@ -34,6 +33,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
34
33
|
obj[d] = value2;
|
|
35
34
|
}
|
|
36
35
|
}
|
|
36
|
+
const wholeValue = "__Symbol('whole')__" + (/* @__PURE__ */ new Date()).valueOf();
|
|
37
37
|
const options = computed(() => {
|
|
38
38
|
const opts = [...props.options];
|
|
39
39
|
if (!props.nowhole) {
|
|
@@ -62,10 +62,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
62
62
|
vue.unref(cs).is("scroll", vue.unref(paginat).is && vue.unref(paginat).scroll)
|
|
63
63
|
],
|
|
64
64
|
"scroll-selector": "." + vue.unref(cs).c("lists", "list"),
|
|
65
|
-
value: vue.unref(data).list,
|
|
66
|
-
list: vue.unref(tableList),
|
|
67
65
|
size: (_a = vue.unref(tableConfig).config) == null ? void 0 : _a.size,
|
|
68
66
|
paginat: vue.unref(paginat),
|
|
67
|
+
value: vue.unref(data).list,
|
|
68
|
+
list: vue.unref(tableList),
|
|
69
69
|
loading: vue.unref(paginat).scroll && vue.unref(paginat).current > 1 ? false : vue.unref(loading),
|
|
70
70
|
options: props.options,
|
|
71
71
|
compons: props.compons,
|
|
@@ -83,7 +83,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
83
83
|
])
|
|
84
84
|
};
|
|
85
85
|
})
|
|
86
|
-
]), 1040, ["height", "class", "scroll-selector", "
|
|
86
|
+
]), 1040, ["height", "class", "scroll-selector", "size", "paginat", "value", "list", "loading", "options", "compons", "onSortChange", "onListEvents", "onSelect", "onRowClick", "onSelectionChange"])), [
|
|
87
87
|
[vue.unref(index$3.default), vue.unref(scroll)]
|
|
88
88
|
]),
|
|
89
89
|
((_b = vue.unref(paginat)) == null ? void 0 : _b.is) && !vue.unref(paginat).scroll ? (vue.openBlock(), vue.createBlock(vue.unref(index$4.Paging), vue.mergeProps({ key: 0 }, vue.unref(pagconfig), {
|