ai-front-base 0.2.3 → 0.2.6
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/AiDatePicker/index.vue.mjs +62 -9
- package/dist/components/AiDatePicker/types.ts +9 -12
- package/dist/components/AiDateRangePicker/index.mjs +7 -0
- package/dist/components/AiDateRangePicker/index.vue.mjs +33 -0
- package/dist/components/AiDateRangePicker/types.ts +33 -0
- package/dist/components/AiForm/README.md +35 -0
- package/dist/components/AiForm/index.mjs +4 -1
- package/dist/components/AiForm/index.vue.mjs +145 -36
- package/dist/components/AiForm/types.ts +402 -22
- package/dist/components/AiInput/index.vue.mjs +46 -11
- package/dist/components/AiInput/types.ts +7 -6
- package/dist/components/AiSelect/index.vue.mjs +98 -17
- package/dist/components/AiSelect/types.ts +10 -17
- package/dist/components/AiTable/index.mjs +5 -2
- package/dist/components/AiTable/index.vue.mjs +213 -22
- package/dist/components/AiTable/types.ts +196 -16
- package/dist/components/AiTag/types.ts +6 -7
- package/dist/components/README.md +1 -26
- package/dist/components/_virtual/_plugin-vue_export-helper.mjs +9 -0
- package/dist/components/install.mjs +15 -0
- package/dist/index.mjs +14 -50
- package/dist/layouts/README.md +17 -14
- package/dist/layouts/default.md +238 -0
- package/dist/styles/README.md +18 -139
- package/dist/styles/index.scss +5 -0
- package/dist/styles/light.scss +102 -0
- package/package.json +2 -1
- package/dist/components/AiAside/index.mjs +0 -4
- package/dist/components/AiAside/index.vue.mjs +0 -20
- package/dist/components/AiAside/types.ts +0 -6
- package/dist/components/AiBadge/index.mjs +0 -4
- package/dist/components/AiBadge/index.vue.mjs +0 -20
- package/dist/components/AiBadge/types.ts +0 -10
- package/dist/components/AiBreadcrumb/index.mjs +0 -4
- package/dist/components/AiBreadcrumb/index.vue.mjs +0 -20
- package/dist/components/AiBreadcrumb/types.ts +0 -7
- package/dist/components/AiCheckbox/index.mjs +0 -4
- package/dist/components/AiCheckbox/index.vue.mjs +0 -20
- package/dist/components/AiCheckbox/types.ts +0 -14
- package/dist/components/AiContainer/index.mjs +0 -4
- package/dist/components/AiContainer/index.vue.mjs +0 -20
- package/dist/components/AiContainer/types.ts +0 -6
- package/dist/components/AiDialog/index.mjs +0 -4
- package/dist/components/AiDialog/index.vue.mjs +0 -20
- package/dist/components/AiDialog/types.ts +0 -11
- package/dist/components/AiFooter/index.mjs +0 -4
- package/dist/components/AiFooter/index.vue.mjs +0 -20
- package/dist/components/AiFooter/types.ts +0 -6
- package/dist/components/AiHeader/index.mjs +0 -4
- package/dist/components/AiHeader/index.vue.mjs +0 -20
- package/dist/components/AiHeader/types.ts +0 -6
- package/dist/components/AiLoading/index.mjs +0 -5
- package/dist/components/AiLoading/types.ts +0 -7
- package/dist/components/AiMain/index.mjs +0 -4
- package/dist/components/AiMain/index.vue.mjs +0 -20
- package/dist/components/AiMain/types.ts +0 -4
- package/dist/components/AiMenu/index.mjs +0 -4
- package/dist/components/AiMenu/index.vue.mjs +0 -20
- package/dist/components/AiMenu/types.ts +0 -9
- package/dist/components/AiMessage/index.mjs +0 -5
- package/dist/components/AiMessage/types.ts +0 -9
- package/dist/components/AiNotification/index.mjs +0 -5
- package/dist/components/AiNotification/types.ts +0 -10
- package/dist/components/AiPagination/index.mjs +0 -4
- package/dist/components/AiPagination/index.vue.mjs +0 -15
- package/dist/components/AiPagination/types.ts +0 -9
- package/dist/components/AiProgress/index.mjs +0 -4
- package/dist/components/AiProgress/index.vue.mjs +0 -15
- package/dist/components/AiProgress/types.ts +0 -10
- package/dist/components/AiRadio/index.mjs +0 -4
- package/dist/components/AiRadio/index.vue.mjs +0 -20
- package/dist/components/AiRadio/types.ts +0 -8
- package/dist/components/AiSwitch/index.mjs +0 -4
- package/dist/components/AiSwitch/index.vue.mjs +0 -15
- package/dist/components/AiSwitch/types.ts +0 -9
- package/dist/components/AiTabs/index.mjs +0 -4
- package/dist/components/AiTabs/index.vue.mjs +0 -20
- package/dist/components/AiTabs/types.ts +0 -9
- package/dist/components/AiTimePicker/index.mjs +0 -4
- package/dist/components/AiTimePicker/index.vue.mjs +0 -15
- package/dist/components/AiTimePicker/types.ts +0 -16
- package/dist/components/AiUpload/index.mjs +0 -4
- package/dist/components/AiUpload/index.vue.mjs +0 -20
- package/dist/components/AiUpload/types.ts +0 -11
- package/dist/layouts/government.md +0 -223
- package/dist/layouts/union.md +0 -229
- package/dist/styles/blue.scss +0 -71
- package/dist/styles/dark.scss +0 -71
- package/dist/styles/element-plus-theme.css +0 -52
- package/dist/styles/index.css +0 -77
- package/dist/styles/light-blue.scss +0 -71
|
@@ -1,15 +1,68 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
3
|
-
name: "AiDatePicker",
|
|
4
|
-
inheritAttrs: !0,
|
|
1
|
+
import { defineComponent as s, computed as m, resolveComponent as u, openBlock as i, createBlock as c, mergeProps as y } from "vue";
|
|
2
|
+
const b = /* @__PURE__ */ s({
|
|
5
3
|
__name: "index",
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
props: {
|
|
5
|
+
modelValue: {},
|
|
6
|
+
type: {},
|
|
7
|
+
showNow: { type: Boolean },
|
|
8
|
+
showConfirm: { type: Boolean },
|
|
9
|
+
showFooter: { type: Boolean },
|
|
10
|
+
showWeekNumber: { type: Boolean },
|
|
11
|
+
ariaLabel: {},
|
|
12
|
+
emptyValues: {},
|
|
13
|
+
valueOnClear: {},
|
|
14
|
+
disabledDate: {},
|
|
15
|
+
cellClassName: {},
|
|
16
|
+
shortcuts: {},
|
|
17
|
+
arrowControl: { type: Boolean },
|
|
18
|
+
tabindex: {},
|
|
19
|
+
validateEvent: { type: Boolean },
|
|
20
|
+
unlinkPanels: { type: Boolean },
|
|
21
|
+
placement: {},
|
|
22
|
+
fallbackPlacements: {},
|
|
23
|
+
disabledHours: {},
|
|
24
|
+
disabledMinutes: {},
|
|
25
|
+
disabledSeconds: {},
|
|
26
|
+
automaticDropdown: { type: Boolean },
|
|
27
|
+
id: {},
|
|
28
|
+
name: {},
|
|
29
|
+
popperClass: {},
|
|
30
|
+
popperStyle: {},
|
|
31
|
+
format: {},
|
|
32
|
+
valueFormat: {},
|
|
33
|
+
dateFormat: {},
|
|
34
|
+
timeFormat: {},
|
|
35
|
+
clearable: { type: Boolean },
|
|
36
|
+
clearIcon: {},
|
|
37
|
+
editable: { type: Boolean },
|
|
38
|
+
prefixIcon: {},
|
|
39
|
+
size: {},
|
|
40
|
+
readonly: { type: Boolean },
|
|
41
|
+
disabled: { type: Boolean },
|
|
42
|
+
placeholder: {},
|
|
43
|
+
popperOptions: {},
|
|
44
|
+
rangeSeparator: {},
|
|
45
|
+
startPlaceholder: {},
|
|
46
|
+
endPlaceholder: {},
|
|
47
|
+
defaultValue: {},
|
|
48
|
+
defaultTime: {},
|
|
49
|
+
isRange: { type: Boolean }
|
|
50
|
+
},
|
|
51
|
+
emits: ["update:modelValue"],
|
|
52
|
+
setup(l, { emit: t }) {
|
|
53
|
+
const n = l, p = t, o = m({
|
|
54
|
+
get: () => n.modelValue ?? void 0,
|
|
55
|
+
set: (e) => p("update:modelValue", e ?? null)
|
|
56
|
+
});
|
|
57
|
+
return (e, a) => {
|
|
58
|
+
const r = u("el-date-picker");
|
|
59
|
+
return i(), c(r, y({
|
|
60
|
+
modelValue: o.value,
|
|
61
|
+
"onUpdate:modelValue": a[0] || (a[0] = (d) => o.value = d)
|
|
62
|
+
}, e.$attrs), null, 16, ["modelValue"]);
|
|
10
63
|
};
|
|
11
64
|
}
|
|
12
65
|
});
|
|
13
66
|
export {
|
|
14
|
-
|
|
67
|
+
b as default
|
|
15
68
|
};
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* AiDatePicker - 日期选择器
|
|
3
|
-
* 基于
|
|
4
|
-
*
|
|
5
|
-
* @example
|
|
6
|
-
* <AiDatePicker v-model="date" type="date" placeholder="选择日期" />
|
|
3
|
+
* 基于Element Plus el-date-picker封装
|
|
7
4
|
*/
|
|
8
5
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
6
|
+
import type { DatePickerProps } from 'element-plus'
|
|
7
|
+
|
|
8
|
+
export interface IAiDatePickerProps extends Partial<DatePickerProps> {
|
|
9
|
+
modelValue?: Date | string | number | null
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface IAiDatePickerEmits {
|
|
13
|
+
(e: 'update:modelValue', value: Date | string | number | null): void
|
|
17
14
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { defineComponent as f, useAttrs as V, computed as r, openBlock as g, createElementBlock as P, createVNode as s, mergeProps as u, createElementVNode as b } from "vue";
|
|
2
|
+
import m from "../AiDatePicker/index.vue.mjs";
|
|
3
|
+
const h = { class: "ai-date-range-picker" }, E = /* @__PURE__ */ f({
|
|
4
|
+
__name: "index",
|
|
5
|
+
emits: ["update:startDate", "update:endDate"],
|
|
6
|
+
setup(T, { emit: i }) {
|
|
7
|
+
const a = V(), o = i, l = r({
|
|
8
|
+
get: () => a.startDate,
|
|
9
|
+
set: (e) => o("update:startDate", e ?? null)
|
|
10
|
+
}), d = r({
|
|
11
|
+
get: () => a.endDate,
|
|
12
|
+
set: (e) => o("update:endDate", e ?? null)
|
|
13
|
+
}), p = r(() => a.startPlaceholder), c = r(() => a.endPlaceholder), D = (e) => d.value ? e.getTime() > new Date(d.value).getTime() : !1, v = (e) => l.value ? e.getTime() < new Date(l.value).getTime() : !1;
|
|
14
|
+
return (e, t) => (g(), P("div", h, [
|
|
15
|
+
s(m, u(e.$attrs, {
|
|
16
|
+
modelValue: l.value,
|
|
17
|
+
"onUpdate:modelValue": t[0] || (t[0] = (n) => l.value = n),
|
|
18
|
+
placeholder: p.value || "开始日期",
|
|
19
|
+
"disabled-date": D
|
|
20
|
+
}), null, 16, ["modelValue", "placeholder"]),
|
|
21
|
+
t[2] || (t[2] = b("span", { class: "separator" }, "至", -1)),
|
|
22
|
+
s(m, u(e.$attrs, {
|
|
23
|
+
modelValue: d.value,
|
|
24
|
+
"onUpdate:modelValue": t[1] || (t[1] = (n) => d.value = n),
|
|
25
|
+
placeholder: c.value || "结束日期",
|
|
26
|
+
"disabled-date": v
|
|
27
|
+
}), null, 16, ["modelValue", "placeholder"])
|
|
28
|
+
]));
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
export {
|
|
32
|
+
E as default
|
|
33
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AiDateRangePicker - 日期范围选择器
|
|
3
|
+
* 开始和结束时间分开选择,支持独立字段绑定
|
|
4
|
+
*
|
|
5
|
+
* 用法1:直接使用(通过 v-model)
|
|
6
|
+
* <AiDateRangePicker
|
|
7
|
+
* v-model:startDate="form.startDate"
|
|
8
|
+
* v-model:endDate="form.endDate"
|
|
9
|
+
* value-format="YYYY-MM-DD"
|
|
10
|
+
* />
|
|
11
|
+
*
|
|
12
|
+
* 用法2:在AiForm中配置使用
|
|
13
|
+
* {
|
|
14
|
+
* prop: 'dateRange',
|
|
15
|
+
* label: '时间范围',
|
|
16
|
+
* type: 'AiDateRangePicker',
|
|
17
|
+
* col: 12,
|
|
18
|
+
* attrs: {
|
|
19
|
+
* startField: 'startDate', // 指定开始日期字段名
|
|
20
|
+
* endField: 'endDate', // 指定结束日期字段名
|
|
21
|
+
* valueFormat: 'YYYY-MM-DD' // 必须指定格式,否则无法回显
|
|
22
|
+
* }
|
|
23
|
+
* }
|
|
24
|
+
*
|
|
25
|
+
* 注意:
|
|
26
|
+
* - 必须配置 valueFormat 才能正确回显日期
|
|
27
|
+
* - startField 和 endField 用于指定 formData 中的字段名
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
export interface IAiDateRangePickerEmits {
|
|
31
|
+
(e: 'update:startDate', value: string | number | Date | null): void
|
|
32
|
+
(e: 'update:endDate', value: string | number | Date | null): void
|
|
33
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# 动态表单组件
|
|
2
|
+
**基于Elementplus的el-form封装**
|
|
3
|
+
## 入参
|
|
4
|
+
```js
|
|
5
|
+
// 组件props
|
|
6
|
+
export interface IAiFormProps {
|
|
7
|
+
config: IFormItem[] // 表单配置数组
|
|
8
|
+
modelValue: Record<string, any> // 表单数据对象
|
|
9
|
+
rules?: [] //单个表单项的校验规则
|
|
10
|
+
... //其他需覆盖el-form属性的属性
|
|
11
|
+
}
|
|
12
|
+
// 表单项类型
|
|
13
|
+
export interface IFormItem {
|
|
14
|
+
visible?: boolean //该表单项是否显示,需为响应式
|
|
15
|
+
prop: string // 字段名
|
|
16
|
+
label?: string // 标签文本
|
|
17
|
+
type: '' // 表单项类型
|
|
18
|
+
placeholder?: string // 占位符
|
|
19
|
+
required?: boolean // 是否必填,默认为false
|
|
20
|
+
attrs?: Record<string, any> // 透传到控件的属性
|
|
21
|
+
... //其他需覆盖el-from-item属性的属性
|
|
22
|
+
}
|
|
23
|
+
```
|
|
24
|
+
## 解释
|
|
25
|
+
1. 表单项的visible属性,如果没传,默认为true,即显示。如果传入了,需根据传入的值响应式的控制表单项的显隐,使用v-if
|
|
26
|
+
2. 表单项类型,我期望根据传入的值来动态判断,先去匹配当前组件库中是否存在,如果存在则使用,如果不存在则再匹配Elementplus中是否存在,如果还不存在则使用内置的错误组件,再页面上展示控件匹配错误。另外内置几种特殊的表单项
|
|
27
|
+
- "slot": 表示该表单项采用插槽方式
|
|
28
|
+
- "empty":表示空的表单项,配合col用来占位,实现灵活布局
|
|
29
|
+
- "slotLabel":表示该表单项的label采用插槽自定义
|
|
30
|
+
- "slotBoth": 表示该表单项的label和内容去都需要使用插槽,组件内部完成插槽名称转换,label插槽名称采用prop+"Label",内容区采用prop+"Content"
|
|
31
|
+
3. 表单value发生变化,自动触发change事件,并回传当前变化的prop、value、fromValues
|
|
32
|
+
4. 对于校验规则,使用传入的表单整体的rules,配置方式同el-form的rules。如果没有传入任何rules,则不校验。
|
|
33
|
+
5. 表单项采用elementplus的栅栏布局,默认每个表单项col: 6,优先使用外部传入
|
|
34
|
+
|
|
35
|
+
|
|
@@ -1,45 +1,154 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as M, useSlots as O, ref as T, computed as S, resolveComponent as d, openBlock as a, createBlock as n, mergeProps as y, withCtx as c, createVNode as z, createElementBlock as g, Fragment as w, renderList as W, createSlots as j, renderSlot as R, resolveDynamicComponent as h, createCommentVNode as U, createTextVNode as G, toDisplayString as H, h as x } from "vue";
|
|
2
|
+
const J = { key: 0 }, Q = /* @__PURE__ */ M({
|
|
3
3
|
__name: "index",
|
|
4
4
|
props: {
|
|
5
5
|
config: {},
|
|
6
|
-
modelValue: {}
|
|
6
|
+
modelValue: {},
|
|
7
|
+
rules: {},
|
|
8
|
+
model: {},
|
|
9
|
+
labelPosition: {},
|
|
10
|
+
requireAsteriskPosition: {},
|
|
11
|
+
labelWidth: {},
|
|
12
|
+
labelSuffix: {},
|
|
13
|
+
inline: { type: Boolean },
|
|
14
|
+
inlineMessage: { type: Boolean },
|
|
15
|
+
statusIcon: { type: Boolean },
|
|
16
|
+
showMessage: { type: Boolean },
|
|
17
|
+
validateOnRuleChange: { type: Boolean },
|
|
18
|
+
hideRequiredAsterisk: { type: Boolean },
|
|
19
|
+
scrollToError: { type: Boolean },
|
|
20
|
+
scrollIntoViewOptions: { type: Boolean },
|
|
21
|
+
size: {},
|
|
22
|
+
disabled: { type: Boolean }
|
|
7
23
|
},
|
|
8
|
-
emits: ["update:modelValue", "
|
|
9
|
-
setup(
|
|
10
|
-
const m =
|
|
24
|
+
emits: ["update:modelValue", "change"],
|
|
25
|
+
setup(k, { expose: A, emit: L }) {
|
|
26
|
+
const m = k, D = L, s = O(), f = T(), r = S({
|
|
11
27
|
get: () => m.modelValue,
|
|
12
|
-
set: (
|
|
13
|
-
}),
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
},
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
28
|
+
set: (t) => D("update:modelValue", t)
|
|
29
|
+
}), $ = S(() => {
|
|
30
|
+
const { config: t, modelValue: o, ...l } = m;
|
|
31
|
+
return l;
|
|
32
|
+
}), q = (t) => {
|
|
33
|
+
const { visible: o, prop: l, label: v, type: V, placeholder: C, required: e, col: b, attrs: _, ...i } = t;
|
|
34
|
+
return { label: v, ...i };
|
|
35
|
+
}, B = (t) => {
|
|
36
|
+
if (t === "slot" || t === "slotLabel" || t === "slotBoth" || t === "empty")
|
|
37
|
+
return "div";
|
|
38
|
+
try {
|
|
39
|
+
return d(t);
|
|
40
|
+
} catch {
|
|
41
|
+
try {
|
|
42
|
+
return d("el-" + t.replace(/^Ai/, "").toLowerCase());
|
|
43
|
+
} catch {
|
|
44
|
+
return "div";
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}, I = (t) => {
|
|
48
|
+
var l;
|
|
49
|
+
const o = (l = s[t]) == null ? void 0 : l.call(s);
|
|
50
|
+
return o && o[0] ? () => o[0] : () => x("div");
|
|
51
|
+
}, N = (t) => {
|
|
52
|
+
var l;
|
|
53
|
+
const o = (l = s[t]) == null ? void 0 : l.call(s);
|
|
54
|
+
return o && o[1] ? () => o[1] : () => x("div");
|
|
55
|
+
}, E = (t) => {
|
|
56
|
+
D("change", t, r.value[t], r.value);
|
|
57
|
+
};
|
|
58
|
+
return A({
|
|
59
|
+
validate: () => {
|
|
60
|
+
var t;
|
|
61
|
+
return (t = f.value) == null ? void 0 : t.validate();
|
|
62
|
+
},
|
|
63
|
+
resetFields: () => {
|
|
64
|
+
var t;
|
|
65
|
+
return (t = f.value) == null ? void 0 : t.resetFields();
|
|
66
|
+
},
|
|
67
|
+
clearValidate: () => {
|
|
68
|
+
var t;
|
|
69
|
+
return (t = f.value) == null ? void 0 : t.clearValidate();
|
|
70
|
+
}
|
|
71
|
+
}), (t, o) => {
|
|
72
|
+
const l = d("el-form-item"), v = d("el-col"), V = d("el-row"), C = d("el-form");
|
|
73
|
+
return a(), n(C, y({
|
|
74
|
+
ref_key: "formRef",
|
|
75
|
+
ref: f,
|
|
76
|
+
model: r.value
|
|
77
|
+
}, $.value), {
|
|
78
|
+
default: c(() => [
|
|
79
|
+
z(V, { gutter: 16 }, {
|
|
80
|
+
default: c(() => [
|
|
81
|
+
(a(!0), g(w, null, W(k.config, (e, b) => (a(), g(w, {
|
|
82
|
+
key: e.prop || `empty-${b}`
|
|
83
|
+
}, [
|
|
84
|
+
e.visible !== !1 ? (a(), n(v, {
|
|
85
|
+
key: 0,
|
|
86
|
+
span: e.col || 6
|
|
87
|
+
}, {
|
|
88
|
+
default: c(() => [
|
|
89
|
+
e.type === "empty" ? (a(), g("div", J)) : (a(), n(l, y({
|
|
90
|
+
key: 1,
|
|
91
|
+
prop: e.prop
|
|
92
|
+
}, { ref_for: !0 }, q(e)), j({
|
|
93
|
+
default: c(() => {
|
|
94
|
+
var _, i, P, F;
|
|
95
|
+
return [
|
|
96
|
+
e.type === "slot" && e.prop ? R(t.$slots, e.prop, { key: 0 }, void 0, !0) : e.type === "slotBoth" && e.prop ? (a(), n(h(N(e.prop)), { key: 1 })) : e.prop && e.type !== "AiDateRangePicker" ? (a(), n(h(B(e.type)), y({
|
|
97
|
+
key: 2,
|
|
98
|
+
modelValue: r.value[e.prop],
|
|
99
|
+
"onUpdate:modelValue": (p) => r.value[e.prop] = p,
|
|
100
|
+
placeholder: e.placeholder
|
|
101
|
+
}, { ref_for: !0 }, e.attrs, {
|
|
102
|
+
onChange: (p) => E(e.prop)
|
|
103
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : e.type === "AiDateRangePicker" ? (a(), n(h(B(e.type)), y({
|
|
104
|
+
key: 3,
|
|
105
|
+
startDate: r.value[((_ = e.attrs) == null ? void 0 : _.startField) || "startDate"],
|
|
106
|
+
"onUpdate:startDate": (p) => {
|
|
107
|
+
var u;
|
|
108
|
+
return r.value[((u = e.attrs) == null ? void 0 : u.startField) || "startDate"] = p;
|
|
109
|
+
},
|
|
110
|
+
endDate: r.value[((i = e.attrs) == null ? void 0 : i.endField) || "endDate"],
|
|
111
|
+
"onUpdate:endDate": (p) => {
|
|
112
|
+
var u;
|
|
113
|
+
return r.value[((u = e.attrs) == null ? void 0 : u.endField) || "endDate"] = p;
|
|
114
|
+
},
|
|
115
|
+
startPlaceholder: (P = e.attrs) == null ? void 0 : P.startPlaceholder,
|
|
116
|
+
endPlaceholder: (F = e.attrs) == null ? void 0 : F.endPlaceholder
|
|
117
|
+
}, { ref_for: !0 }, e.attrs), null, 16, ["startDate", "onUpdate:startDate", "endDate", "onUpdate:endDate", "startPlaceholder", "endPlaceholder"])) : U("", !0)
|
|
118
|
+
];
|
|
119
|
+
}),
|
|
120
|
+
_: 2
|
|
121
|
+
}, [
|
|
122
|
+
e.type === "slotLabel" ? {
|
|
123
|
+
name: "label",
|
|
124
|
+
fn: c(() => [
|
|
125
|
+
R(t.$slots, e.prop, {}, () => [
|
|
126
|
+
G(H(e.label), 1)
|
|
127
|
+
], !0)
|
|
128
|
+
]),
|
|
129
|
+
key: "0"
|
|
130
|
+
} : void 0,
|
|
131
|
+
e.type === "slotBoth" && e.prop ? {
|
|
132
|
+
name: "label",
|
|
133
|
+
fn: c(() => [
|
|
134
|
+
(a(), n(h(I(e.prop))))
|
|
135
|
+
]),
|
|
136
|
+
key: "1"
|
|
137
|
+
} : void 0
|
|
138
|
+
]), 1040, ["prop"]))
|
|
139
|
+
]),
|
|
140
|
+
_: 2
|
|
141
|
+
}, 1032, ["span"])) : U("", !0)
|
|
142
|
+
], 64))), 128))
|
|
143
|
+
]),
|
|
144
|
+
_: 3
|
|
145
|
+
})
|
|
146
|
+
]),
|
|
147
|
+
_: 3
|
|
148
|
+
}, 16, ["model"]);
|
|
149
|
+
};
|
|
41
150
|
}
|
|
42
151
|
});
|
|
43
152
|
export {
|
|
44
|
-
|
|
153
|
+
Q as default
|
|
45
154
|
};
|