@fangzhongya/fang-ui 0.1.43 → 0.1.45
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/buttons/src/index2.cjs +15 -8
- package/dist/components/buttons/src/index2.js +13 -6
- package/dist/components/common/use.cjs +34 -27
- package/dist/components/common/use.js +14 -7
- package/dist/components/dates/src/data.cjs +6 -0
- package/dist/components/dates/src/data.d.ts +6 -0
- package/dist/components/dates/src/data.js +6 -0
- package/dist/components/dates/src/index2.cjs +12 -1
- package/dist/components/dates/src/index2.js +12 -1
- package/dist/components/dates-divide/src/data.cjs +7 -1
- package/dist/components/dates-divide/src/data.d.ts +6 -0
- package/dist/components/dates-divide/src/data.js +7 -1
- package/dist/components/dates-divide/src/index2.cjs +13 -4
- package/dist/components/dates-divide/src/index2.js +13 -4
- package/dist/components/dates-picker/src/data.cjs +6 -0
- package/dist/components/dates-picker/src/data.d.ts +12 -0
- package/dist/components/dates-picker/src/data.js +6 -0
- package/dist/components/dates-picker/src/index2.cjs +11 -0
- package/dist/components/dates-picker/src/index2.js +11 -0
- package/dist/components/dates2/src/data.cjs +6 -0
- package/dist/components/dates2/src/data.d.ts +6 -0
- package/dist/components/dates2/src/data.js +6 -0
- package/dist/components/dates2/src/index2.cjs +12 -0
- package/dist/components/dates2/src/index2.js +12 -0
- package/dist/components/forms-div/src/index2.cjs +27 -19
- package/dist/components/forms-div/src/index2.js +27 -19
- package/dist/components/forms-item/src/data.cjs +2 -5
- package/dist/components/forms-item/src/data.d.ts +2 -3
- package/dist/components/forms-item/src/data.js +2 -5
- package/dist/components/forms-item/src/indexts.d.ts +2 -5
- package/dist/components/tables/common/com-but2.cjs +9 -13
- package/dist/components/tables/common/com-but2.js +7 -11
- package/dist/components/tables/common/com-color2.cjs +7 -11
- package/dist/components/tables/common/com-color2.js +8 -12
- package/dist/components/tables/common/com-lis2.cjs +7 -10
- package/dist/components/tables/common/com-lis2.js +8 -11
- package/dist/components/tables/common/util.cjs +0 -88
- package/dist/components/tables/common/util.d.ts +0 -8
- package/dist/components/tables/common/util.js +1 -89
- package/dist/hooks/event-aliass/index.cjs +121 -0
- package/dist/hooks/event-aliass/index.d.ts +1 -0
- package/dist/hooks/event-aliass/index.js +121 -0
- package/dist/icons/index.json +1 -1
- package/dist/utils/vues/common.d.ts +0 -8
- package/package.json +7 -7
- /package/dist/components/{input-tag → keep-com}/index.css +0 -0
- /package/dist/css/{input-tag.css → keep-com.css} +0 -0
|
@@ -78,6 +78,12 @@ export declare const dataProps: {
|
|
|
78
78
|
readonly [Symbol.species]: ArrayConstructor;
|
|
79
79
|
})[];
|
|
80
80
|
};
|
|
81
|
+
disabledDate: {
|
|
82
|
+
type: FunctionConstructor;
|
|
83
|
+
};
|
|
84
|
+
disabledNot: {
|
|
85
|
+
type: BooleanConstructor;
|
|
86
|
+
};
|
|
81
87
|
options: {
|
|
82
88
|
type: {
|
|
83
89
|
(arrayLength: number): ObjAny[];
|
|
@@ -10,6 +10,7 @@ const index$4 = require("../../selects/index.cjs");
|
|
|
10
10
|
const index$6 = require("../../date-picker/index.cjs");
|
|
11
11
|
const index$3 = require("../../../hooks/props-default/index.cjs");
|
|
12
12
|
const index = require("../../../hooks/locale/index.cjs");
|
|
13
|
+
const getEndOfDay = require("@fangzhongya/utils/date/getEndOfDay");
|
|
13
14
|
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
14
15
|
__name: "index",
|
|
15
16
|
props: index$3.getProps(data.dataProps),
|
|
@@ -50,6 +51,15 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
50
51
|
const format = attrs.assem["value-format"] || props.format || ((_a = types.value) == null ? void 0 : _a.format);
|
|
51
52
|
return util.formatType(value2, format, types.value, props.repair);
|
|
52
53
|
}
|
|
54
|
+
const disabledDate = function(data2) {
|
|
55
|
+
if (props.disabledDate) {
|
|
56
|
+
return props.disabledDate(data2);
|
|
57
|
+
} else if (props.disabledNot) {
|
|
58
|
+
const d = getEndOfDay.getEndOfDay();
|
|
59
|
+
return data2 > d;
|
|
60
|
+
}
|
|
61
|
+
return false;
|
|
62
|
+
};
|
|
53
63
|
__expose({
|
|
54
64
|
...data.dataExpose,
|
|
55
65
|
getValue
|
|
@@ -77,6 +87,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
77
87
|
type: ((_a = types.value) == null ? void 0 : _a.type) || vue.unref(props).type,
|
|
78
88
|
format: vue.unref(props).format || ((_b = types.value) == null ? void 0 : _b.format),
|
|
79
89
|
"default-time": defaultTime,
|
|
90
|
+
"disabled-date": disabledDate,
|
|
80
91
|
modelValue: vue.unref(value),
|
|
81
92
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(value) ? value.value = $event : null)
|
|
82
93
|
}), null, 16, ["type", "format", "modelValue"])
|
|
@@ -85,6 +96,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
85
96
|
format: vue.unref(props).format || ((_c = types.value) == null ? void 0 : _c.format),
|
|
86
97
|
"default-time": vue.unref(multiple) ? defaultTime : void 0,
|
|
87
98
|
shortcuts: vue.unref(props).shortcuts,
|
|
99
|
+
"disabled-date": disabledDate,
|
|
88
100
|
modelValue: vue.unref(value),
|
|
89
101
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.isRef(value) ? value.value = $event : null)
|
|
90
102
|
}), vue.createSlots({ _: 2 }, [
|
|
@@ -8,6 +8,7 @@ import { Selects } from "../../selects/index.js";
|
|
|
8
8
|
import { DatePicker } from "../../date-picker/index.js";
|
|
9
9
|
import { usePropsDefault, getProps } from "../../../hooks/props-default/index.js";
|
|
10
10
|
import { useLocale } from "../../../hooks/locale/index.js";
|
|
11
|
+
import { getEndOfDay } from "@fangzhongya/utils/date/getEndOfDay";
|
|
11
12
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
13
|
__name: "index",
|
|
13
14
|
props: getProps(dataProps),
|
|
@@ -48,6 +49,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
48
49
|
const format = attrs.assem["value-format"] || props.format || ((_a = types.value) == null ? void 0 : _a.format);
|
|
49
50
|
return formatType(value2, format, types.value, props.repair);
|
|
50
51
|
}
|
|
52
|
+
const disabledDate = function(data) {
|
|
53
|
+
if (props.disabledDate) {
|
|
54
|
+
return props.disabledDate(data);
|
|
55
|
+
} else if (props.disabledNot) {
|
|
56
|
+
const d = getEndOfDay();
|
|
57
|
+
return data > d;
|
|
58
|
+
}
|
|
59
|
+
return false;
|
|
60
|
+
};
|
|
51
61
|
__expose({
|
|
52
62
|
...dataExpose,
|
|
53
63
|
getValue
|
|
@@ -75,6 +85,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
75
85
|
type: ((_a = types.value) == null ? void 0 : _a.type) || unref(props).type,
|
|
76
86
|
format: unref(props).format || ((_b = types.value) == null ? void 0 : _b.format),
|
|
77
87
|
"default-time": defaultTime,
|
|
88
|
+
"disabled-date": disabledDate,
|
|
78
89
|
modelValue: unref(value),
|
|
79
90
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(value) ? value.value = $event : null)
|
|
80
91
|
}), null, 16, ["type", "format", "modelValue"])
|
|
@@ -83,6 +94,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
83
94
|
format: unref(props).format || ((_c = types.value) == null ? void 0 : _c.format),
|
|
84
95
|
"default-time": unref(multiple) ? defaultTime : void 0,
|
|
85
96
|
shortcuts: unref(props).shortcuts,
|
|
97
|
+
"disabled-date": disabledDate,
|
|
86
98
|
modelValue: unref(value),
|
|
87
99
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(value) ? value.value = $event : null)
|
|
88
100
|
}), createSlots({ _: 2 }, [
|
|
@@ -31,17 +31,32 @@ const _sfc_main = vue.defineComponent({
|
|
|
31
31
|
}
|
|
32
32
|
return o;
|
|
33
33
|
});
|
|
34
|
-
const record = vue.ref();
|
|
34
|
+
const record = vue.ref(props.default);
|
|
35
35
|
const setPropComputedValue = (prop, computed2, value2) => {
|
|
36
|
-
if (
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
36
|
+
if (props.prop) {
|
|
37
|
+
if (isEqual.isEqual(prop, computed2)) {
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
if (prop !== record.value) {
|
|
41
|
+
handlePropNotEqualRecord(prop, value2);
|
|
42
|
+
} else {
|
|
43
|
+
if (props.pars) {
|
|
44
|
+
objValue.setObjValue(value2, props.prop, computed2);
|
|
45
|
+
} else {
|
|
46
|
+
value2[props.prop] = computed2;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
record.value = prop;
|
|
41
50
|
} else {
|
|
42
|
-
|
|
51
|
+
prop = record.value;
|
|
52
|
+
if (isEqual.isEqual(prop, computed2)) {
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
if (prop !== computed2) {
|
|
56
|
+
handlePropNotEqualRecord(computed2, value2);
|
|
57
|
+
}
|
|
58
|
+
record.value = computed2;
|
|
43
59
|
}
|
|
44
|
-
record.value = prop;
|
|
45
60
|
};
|
|
46
61
|
const handlePropNotEqualRecord = (prop, value2) => {
|
|
47
62
|
if (Array.isArray(props.computed)) {
|
|
@@ -60,13 +75,6 @@ const _sfc_main = vue.defineComponent({
|
|
|
60
75
|
}
|
|
61
76
|
}
|
|
62
77
|
};
|
|
63
|
-
const handlePropEqualRecord = (computed2, value2) => {
|
|
64
|
-
if (props.pars) {
|
|
65
|
-
objValue.setObjValue(value2, props.prop, computed2);
|
|
66
|
-
} else {
|
|
67
|
-
value2[props.prop] = computed2;
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
78
|
const binds = vue.computed(() => {
|
|
71
79
|
const obj = { ...props.config, ...formvalue.value };
|
|
72
80
|
const binds2 = {};
|
|
@@ -122,7 +130,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
122
130
|
props
|
|
123
131
|
);
|
|
124
132
|
}
|
|
125
|
-
if (
|
|
133
|
+
if (computedValue !== void 0) {
|
|
126
134
|
setPropComputedValue(currentValue, computedValue, source);
|
|
127
135
|
}
|
|
128
136
|
return computedValue;
|
|
@@ -136,10 +144,10 @@ const _sfc_main = vue.defineComponent({
|
|
|
136
144
|
if (props.computed) {
|
|
137
145
|
handleComputedSet(newValue, v);
|
|
138
146
|
}
|
|
139
|
-
if (!props.orig && !prop) {
|
|
147
|
+
if (!props.orig && !(prop || props.computed)) {
|
|
140
148
|
emit("update:modelValue", newValue);
|
|
141
149
|
}
|
|
142
|
-
if (prop) {
|
|
150
|
+
if (prop || props.computed) {
|
|
143
151
|
emit("upform", newValue, props, v);
|
|
144
152
|
}
|
|
145
153
|
}
|
|
@@ -184,7 +192,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
184
192
|
[componValueName]: value.value,
|
|
185
193
|
["onUpdate:" + componValueName]: (v) => value.value = v,
|
|
186
194
|
["onUpform"]: (...arr) => {
|
|
187
|
-
if (props.prop) {
|
|
195
|
+
if (props.prop || props.computed) {
|
|
188
196
|
emit("upform", ...arr);
|
|
189
197
|
}
|
|
190
198
|
}
|
|
@@ -29,17 +29,32 @@ const _sfc_main = defineComponent({
|
|
|
29
29
|
}
|
|
30
30
|
return o;
|
|
31
31
|
});
|
|
32
|
-
const record = ref();
|
|
32
|
+
const record = ref(props.default);
|
|
33
33
|
const setPropComputedValue = (prop, computed2, value2) => {
|
|
34
|
-
if (
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
34
|
+
if (props.prop) {
|
|
35
|
+
if (isEqual(prop, computed2)) {
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
if (prop !== record.value) {
|
|
39
|
+
handlePropNotEqualRecord(prop, value2);
|
|
40
|
+
} else {
|
|
41
|
+
if (props.pars) {
|
|
42
|
+
setObjValue(value2, props.prop, computed2);
|
|
43
|
+
} else {
|
|
44
|
+
value2[props.prop] = computed2;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
record.value = prop;
|
|
39
48
|
} else {
|
|
40
|
-
|
|
49
|
+
prop = record.value;
|
|
50
|
+
if (isEqual(prop, computed2)) {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
if (prop !== computed2) {
|
|
54
|
+
handlePropNotEqualRecord(computed2, value2);
|
|
55
|
+
}
|
|
56
|
+
record.value = computed2;
|
|
41
57
|
}
|
|
42
|
-
record.value = prop;
|
|
43
58
|
};
|
|
44
59
|
const handlePropNotEqualRecord = (prop, value2) => {
|
|
45
60
|
if (Array.isArray(props.computed)) {
|
|
@@ -58,13 +73,6 @@ const _sfc_main = defineComponent({
|
|
|
58
73
|
}
|
|
59
74
|
}
|
|
60
75
|
};
|
|
61
|
-
const handlePropEqualRecord = (computed2, value2) => {
|
|
62
|
-
if (props.pars) {
|
|
63
|
-
setObjValue(value2, props.prop, computed2);
|
|
64
|
-
} else {
|
|
65
|
-
value2[props.prop] = computed2;
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
76
|
const binds = computed(() => {
|
|
69
77
|
const obj = { ...props.config, ...formvalue.value };
|
|
70
78
|
const binds2 = {};
|
|
@@ -120,7 +128,7 @@ const _sfc_main = defineComponent({
|
|
|
120
128
|
props
|
|
121
129
|
);
|
|
122
130
|
}
|
|
123
|
-
if (
|
|
131
|
+
if (computedValue !== void 0) {
|
|
124
132
|
setPropComputedValue(currentValue, computedValue, source);
|
|
125
133
|
}
|
|
126
134
|
return computedValue;
|
|
@@ -134,10 +142,10 @@ const _sfc_main = defineComponent({
|
|
|
134
142
|
if (props.computed) {
|
|
135
143
|
handleComputedSet(newValue, v);
|
|
136
144
|
}
|
|
137
|
-
if (!props.orig && !prop) {
|
|
145
|
+
if (!props.orig && !(prop || props.computed)) {
|
|
138
146
|
emit("update:modelValue", newValue);
|
|
139
147
|
}
|
|
140
|
-
if (prop) {
|
|
148
|
+
if (prop || props.computed) {
|
|
141
149
|
emit("upform", newValue, props, v);
|
|
142
150
|
}
|
|
143
151
|
}
|
|
@@ -182,7 +190,7 @@ const _sfc_main = defineComponent({
|
|
|
182
190
|
[componValueName]: value.value,
|
|
183
191
|
["onUpdate:" + componValueName]: (v) => value.value = v,
|
|
184
192
|
["onUpform"]: (...arr) => {
|
|
185
|
-
if (props.prop) {
|
|
193
|
+
if (props.prop || props.computed) {
|
|
186
194
|
emit("upform", ...arr);
|
|
187
195
|
}
|
|
188
196
|
}
|
|
@@ -56,13 +56,10 @@ const dataProps = {
|
|
|
56
56
|
hideLabel: Boolean,
|
|
57
57
|
/**
|
|
58
58
|
* 传入值
|
|
59
|
-
* @props { Object } modelValue
|
|
59
|
+
* @props { Object } modelValue ( )
|
|
60
60
|
*/
|
|
61
61
|
modelValue: {
|
|
62
|
-
type:
|
|
63
|
-
default() {
|
|
64
|
-
return {};
|
|
65
|
-
}
|
|
62
|
+
type: null
|
|
66
63
|
}
|
|
67
64
|
};
|
|
68
65
|
const dataEmits = ["update:modelValue", "upform"];
|
|
@@ -67,11 +67,10 @@ export declare const dataProps: {
|
|
|
67
67
|
hideLabel: BooleanConstructor;
|
|
68
68
|
/**
|
|
69
69
|
* 传入值
|
|
70
|
-
* @props { Object } modelValue
|
|
70
|
+
* @props { Object } modelValue ( )
|
|
71
71
|
*/
|
|
72
72
|
modelValue: {
|
|
73
|
-
type:
|
|
74
|
-
default(): {};
|
|
73
|
+
type: null;
|
|
75
74
|
};
|
|
76
75
|
};
|
|
77
76
|
export type DataProps = ExtractPropTypes<typeof dataProps>;
|
|
@@ -54,13 +54,10 @@ const dataProps = {
|
|
|
54
54
|
hideLabel: Boolean,
|
|
55
55
|
/**
|
|
56
56
|
* 传入值
|
|
57
|
-
* @props { Object } modelValue
|
|
57
|
+
* @props { Object } modelValue ( )
|
|
58
58
|
*/
|
|
59
59
|
modelValue: {
|
|
60
|
-
type:
|
|
61
|
-
default() {
|
|
62
|
-
return {};
|
|
63
|
-
}
|
|
60
|
+
type: null
|
|
64
61
|
}
|
|
65
62
|
};
|
|
66
63
|
const dataEmits = ["update:modelValue", "upform"];
|
|
@@ -38,8 +38,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
38
38
|
};
|
|
39
39
|
hideLabel: BooleanConstructor;
|
|
40
40
|
modelValue: {
|
|
41
|
-
type:
|
|
42
|
-
default(): {};
|
|
41
|
+
type: null;
|
|
43
42
|
};
|
|
44
43
|
}>, () => VNode<RendererNode, RendererElement, {
|
|
45
44
|
[key: string]: any;
|
|
@@ -82,13 +81,11 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
82
81
|
};
|
|
83
82
|
hideLabel: BooleanConstructor;
|
|
84
83
|
modelValue: {
|
|
85
|
-
type:
|
|
86
|
-
default(): {};
|
|
84
|
+
type: null;
|
|
87
85
|
};
|
|
88
86
|
}>> & Readonly<{
|
|
89
87
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
90
88
|
}>, {
|
|
91
|
-
modelValue: Record<string, any>;
|
|
92
89
|
index: number[];
|
|
93
90
|
optionss: ObjAny;
|
|
94
91
|
listobj: ListObj;
|
|
@@ -1,9 +1,9 @@
|
|
|
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$2 = require("../../button/index.cjs");
|
|
5
5
|
const index = require("../../../hooks/cssname/index.cjs");
|
|
6
|
-
const
|
|
6
|
+
const index$1 = require("../../../hooks/event-aliass/index.cjs");
|
|
7
7
|
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
8
8
|
__name: "com-but",
|
|
9
9
|
props: {
|
|
@@ -78,21 +78,17 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
78
78
|
}
|
|
79
79
|
function onClick(obj, index2, $event) {
|
|
80
80
|
var _a;
|
|
81
|
-
|
|
81
|
+
const is = index$1.eventAliass(
|
|
82
82
|
(callback) => {
|
|
83
|
-
callback(
|
|
84
|
-
"but",
|
|
85
|
-
obj,
|
|
86
|
-
props.valueobj,
|
|
87
|
-
props.listobj,
|
|
88
|
-
props.comscope
|
|
89
|
-
);
|
|
83
|
+
callback(obj, props.valueobj, props.listobj, props.comscope);
|
|
90
84
|
},
|
|
91
85
|
"click",
|
|
92
|
-
((_a = props.listobj) == null ? void 0 : _a.events) ||
|
|
86
|
+
((_a = props.listobj) == null ? void 0 : _a.events) || obj,
|
|
93
87
|
$event
|
|
94
88
|
);
|
|
95
|
-
|
|
89
|
+
if (!is) {
|
|
90
|
+
emit("but", obj);
|
|
91
|
+
}
|
|
96
92
|
}
|
|
97
93
|
return (_ctx, _cache) => {
|
|
98
94
|
return vue.openBlock(), vue.createElementBlock("span", {
|
|
@@ -100,7 +96,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
100
96
|
}, [
|
|
101
97
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(props.list, (item, index2) => {
|
|
102
98
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: index2 }, [
|
|
103
|
-
getHide(item) ? (vue.openBlock(), vue.createBlock(vue.unref(index$
|
|
99
|
+
getHide(item) ? (vue.openBlock(), vue.createBlock(vue.unref(index$2.Button), vue.mergeProps({
|
|
104
100
|
key: 0,
|
|
105
101
|
ref_for: true
|
|
106
102
|
}, item, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, createElementBlock, openBlock, normalizeClass, unref, Fragment, renderList, createBlock, createCommentVNode, mergeProps, withCtx, createTextVNode, toDisplayString } from "vue";
|
|
2
2
|
import { Button } from "../../button/index.js";
|
|
3
3
|
import { useCssName } from "../../../hooks/cssname/index.js";
|
|
4
|
-
import { eventAliass } from "
|
|
4
|
+
import { eventAliass } from "../../../hooks/event-aliass/index.js";
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "com-but",
|
|
7
7
|
props: {
|
|
@@ -76,21 +76,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
76
76
|
}
|
|
77
77
|
function onClick(obj, index, $event) {
|
|
78
78
|
var _a;
|
|
79
|
-
eventAliass(
|
|
79
|
+
const is = eventAliass(
|
|
80
80
|
(callback) => {
|
|
81
|
-
callback(
|
|
82
|
-
"but",
|
|
83
|
-
obj,
|
|
84
|
-
props.valueobj,
|
|
85
|
-
props.listobj,
|
|
86
|
-
props.comscope
|
|
87
|
-
);
|
|
81
|
+
callback(obj, props.valueobj, props.listobj, props.comscope);
|
|
88
82
|
},
|
|
89
83
|
"click",
|
|
90
|
-
((_a = props.listobj) == null ? void 0 : _a.events) ||
|
|
84
|
+
((_a = props.listobj) == null ? void 0 : _a.events) || obj,
|
|
91
85
|
$event
|
|
92
86
|
);
|
|
93
|
-
|
|
87
|
+
if (!is) {
|
|
88
|
+
emit("but", obj);
|
|
89
|
+
}
|
|
94
90
|
}
|
|
95
91
|
return (_ctx, _cache) => {
|
|
96
92
|
return openBlock(), createElementBlock("span", {
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const vue = require("vue");
|
|
4
4
|
const util = require("./util.cjs");
|
|
5
|
+
const index$1 = require("../../../hooks/event-aliass/index.cjs");
|
|
5
6
|
const index = require("../../../hooks/cssname/index.cjs");
|
|
6
7
|
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
7
8
|
__name: "com-color",
|
|
@@ -100,22 +101,17 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
100
101
|
}
|
|
101
102
|
function onClick($event) {
|
|
102
103
|
var _a;
|
|
103
|
-
const
|
|
104
|
-
util.eventAliass(
|
|
104
|
+
const is = index$1.eventAliass(
|
|
105
105
|
(callback) => {
|
|
106
|
-
callback(
|
|
107
|
-
"color",
|
|
108
|
-
obj,
|
|
109
|
-
props.valueobj,
|
|
110
|
-
props.listobj,
|
|
111
|
-
props.comscope
|
|
112
|
-
);
|
|
106
|
+
callback(props, props.valueobj, props.listobj, props.comscope);
|
|
113
107
|
},
|
|
114
108
|
"click",
|
|
115
|
-
((_a = props.listobj) == null ? void 0 : _a.events) ||
|
|
109
|
+
((_a = props.listobj) == null ? void 0 : _a.events) || props,
|
|
116
110
|
$event
|
|
117
111
|
);
|
|
118
|
-
|
|
112
|
+
if (!is) {
|
|
113
|
+
emit("color", props);
|
|
114
|
+
}
|
|
119
115
|
}
|
|
120
116
|
return (_ctx, _cache) => {
|
|
121
117
|
return emptyDisplay.value ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed, createElementBlock, openBlock, Fragment, createTextVNode, toDisplayString, normalizeStyle, normalizeClass, unref, createElementVNode } from "vue";
|
|
2
|
-
import { setEmptyDisplay
|
|
2
|
+
import { setEmptyDisplay } from "./util.js";
|
|
3
|
+
import { eventAliass } from "../../../hooks/event-aliass/index.js";
|
|
3
4
|
import { useCssName } from "../../../hooks/cssname/index.js";
|
|
4
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
6
|
__name: "com-color",
|
|
@@ -98,22 +99,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
98
99
|
}
|
|
99
100
|
function onClick($event) {
|
|
100
101
|
var _a;
|
|
101
|
-
const
|
|
102
|
-
eventAliass(
|
|
102
|
+
const is = eventAliass(
|
|
103
103
|
(callback) => {
|
|
104
|
-
callback(
|
|
105
|
-
"color",
|
|
106
|
-
obj,
|
|
107
|
-
props.valueobj,
|
|
108
|
-
props.listobj,
|
|
109
|
-
props.comscope
|
|
110
|
-
);
|
|
104
|
+
callback(props, props.valueobj, props.listobj, props.comscope);
|
|
111
105
|
},
|
|
112
106
|
"click",
|
|
113
|
-
((_a = props.listobj) == null ? void 0 : _a.events) ||
|
|
107
|
+
((_a = props.listobj) == null ? void 0 : _a.events) || props,
|
|
114
108
|
$event
|
|
115
109
|
);
|
|
116
|
-
|
|
110
|
+
if (!is) {
|
|
111
|
+
emit("color", props);
|
|
112
|
+
}
|
|
117
113
|
}
|
|
118
114
|
return (_ctx, _cache) => {
|
|
119
115
|
return emptyDisplay.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const vue = require("vue");
|
|
4
4
|
const util = require("./util.cjs");
|
|
5
|
+
const index$1 = require("../../../hooks/event-aliass/index.cjs");
|
|
5
6
|
const use = require("../../common/use.cjs");
|
|
6
7
|
const index = require("../../../hooks/cssname/index.cjs");
|
|
7
8
|
const _hoisted_1 = ["onClick"];
|
|
@@ -112,21 +113,17 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
112
113
|
});
|
|
113
114
|
function onClickList(obj, index2, $event) {
|
|
114
115
|
var _a;
|
|
115
|
-
|
|
116
|
+
const is = index$1.eventAliass(
|
|
116
117
|
(callback) => {
|
|
117
|
-
callback(
|
|
118
|
-
"lis",
|
|
119
|
-
obj,
|
|
120
|
-
props.valueobj,
|
|
121
|
-
props.listobj,
|
|
122
|
-
props.comscope
|
|
123
|
-
);
|
|
118
|
+
callback(obj, props.valueobj, props.listobj, props.comscope);
|
|
124
119
|
},
|
|
125
120
|
"click",
|
|
126
|
-
((_a = props.listobj) == null ? void 0 : _a.events) ||
|
|
121
|
+
((_a = props.listobj) == null ? void 0 : _a.events) || obj,
|
|
127
122
|
$event
|
|
128
123
|
);
|
|
129
|
-
|
|
124
|
+
if (!is) {
|
|
125
|
+
emit("lis", obj, index2);
|
|
126
|
+
}
|
|
130
127
|
}
|
|
131
128
|
return (_ctx, _cache) => {
|
|
132
129
|
return emptyDisplay.value ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed, createElementBlock, openBlock, Fragment, createTextVNode, toDisplayString, normalizeClass, unref, renderList, normalizeStyle } from "vue";
|
|
2
|
-
import { setEmptyDisplay
|
|
2
|
+
import { setEmptyDisplay } from "./util.js";
|
|
3
|
+
import { eventAliass } from "../../../hooks/event-aliass/index.js";
|
|
3
4
|
import { useGetDomValue } from "../../common/use.js";
|
|
4
5
|
import { useCssName } from "../../../hooks/cssname/index.js";
|
|
5
6
|
const _hoisted_1 = ["onClick"];
|
|
@@ -110,21 +111,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
110
111
|
});
|
|
111
112
|
function onClickList(obj, index, $event) {
|
|
112
113
|
var _a;
|
|
113
|
-
eventAliass(
|
|
114
|
+
const is = eventAliass(
|
|
114
115
|
(callback) => {
|
|
115
|
-
callback(
|
|
116
|
-
"lis",
|
|
117
|
-
obj,
|
|
118
|
-
props.valueobj,
|
|
119
|
-
props.listobj,
|
|
120
|
-
props.comscope
|
|
121
|
-
);
|
|
116
|
+
callback(obj, props.valueobj, props.listobj, props.comscope);
|
|
122
117
|
},
|
|
123
118
|
"click",
|
|
124
|
-
((_a = props.listobj) == null ? void 0 : _a.events) ||
|
|
119
|
+
((_a = props.listobj) == null ? void 0 : _a.events) || obj,
|
|
125
120
|
$event
|
|
126
121
|
);
|
|
127
|
-
|
|
122
|
+
if (!is) {
|
|
123
|
+
emit("lis", obj, index);
|
|
124
|
+
}
|
|
128
125
|
}
|
|
129
126
|
return (_ctx, _cache) => {
|
|
130
127
|
return emptyDisplay.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|