yc-pro-components 0.0.24 → 0.0.26
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/es/components/check-card/index.d.ts +76 -76
- package/es/components/check-card/src/index.vue.d.ts +14 -14
- package/es/components/check-card-group/index.d.ts +57 -57
- package/es/components/check-card-group/src/index.vue.d.ts +20 -20
- package/es/components/date-picker/index.d.ts +10 -10
- package/es/components/date-picker/src/index.vue.d.ts +2 -2
- package/es/components/descriptions/index.d.ts +39 -39
- package/es/components/descriptions/src/index.vue.d.ts +2 -2
- package/es/components/dialog/index.d.ts +45 -45
- package/es/components/dialog/src/index.vue.d.ts +3 -3
- package/es/components/dialog-form/index.d.ts +47 -47
- package/es/components/dialog-form/src/index.vue.d.ts +11 -11
- package/es/components/display-item/index.d.ts +24 -24
- package/es/components/display-item/src/index.vue.d.ts +24 -24
- package/es/components/drawer-form/index.d.ts +31 -31
- package/es/components/drawer-form/src/index.vue.d.ts +10 -10
- package/es/components/form/index.d.ts +157 -138
- package/es/components/form/src/form-content.vue.d.ts +33 -29
- package/es/components/form/src/form-content.vue2.mjs +106 -96
- package/es/components/form/src/index.vue.d.ts +28 -25
- package/es/components/form/src/index.vue2.mjs +5 -2
- package/es/components/form/src/type.d.ts +4 -0
- package/es/components/form-item/index.d.ts +150 -150
- package/es/components/form-item/src/form-item.mjs +2 -1
- package/es/components/form-item/src/index.vue.d.ts +21 -21
- package/es/components/form-item/src/index.vue2.mjs +22 -18
- package/es/components/header/index.d.ts +19 -19
- package/es/components/header/src/index.vue.d.ts +1 -1
- package/es/components/input-tag/index.d.ts +16 -16
- package/es/components/input-tag/src/index.vue.d.ts +8 -8
- package/es/components/layout/index.d.ts +30 -30
- package/es/components/layout/src/index.vue.d.ts +10 -10
- package/es/components/page/index.d.ts +1175 -1040
- package/es/components/page/src/index.vue.d.ts +383 -338
- package/es/components/pagination/index.d.ts +38 -38
- package/es/components/pagination/src/index.vue.d.ts +2 -2
- package/es/components/radio/index.d.ts +34 -34
- package/es/components/radio/src/index.vue.d.ts +26 -26
- package/es/components/render/index.d.ts +17 -17
- package/es/components/render/src/index.vue.d.ts +2 -2
- package/es/components/search/index.d.ts +494 -430
- package/es/components/search/src/index.vue.d.ts +143 -125
- package/es/components/search/src/index.vue2.mjs +3 -1
- package/es/components/search/src/type.d.ts +7 -0
- package/es/components/sidebar/index.d.ts +15 -15
- package/es/components/sidebar/src/index.vue.d.ts +5 -5
- package/es/components/steps-form/index.d.ts +19 -19
- package/es/components/steps-form/src/index.vue.d.ts +1 -1
- package/es/components/table/index.d.ts +38 -38
- package/es/components/table/src/index.vue.d.ts +7 -7
- package/es/components/table/src/table-action-bar.vue.d.ts +3 -3
- package/es/components/table/src/table-column-drag-sort.vue.d.ts +6 -6
- package/es/components/table/src/table-column.vue.d.ts +24 -24
- package/es/components/table/src/table-title-bar.vue2.mjs +1 -0
- package/es/components/utils/index.d.ts +15 -15
- package/es/components/yc-count-to/index.d.ts +1 -1
- package/es/components/yc-count-to/src/normal/index.d.ts +1 -1
- package/es/components/yc-dialog/index.d.ts +24 -24
- package/es/components/yc-dialog/src/index.vue2.mjs +1 -1
- package/es/components/yc-drawer/src/index.vue.mjs +1 -1
- package/es/components/yc-drawer/src/index.vue2.mjs +1 -1
- package/es/components/yc-drawer/store.d.ts +6 -6
- package/es/components/yc-more-actions/index.d.ts +6 -6
- package/es/components/yc-more-actions/src/index.vue.d.ts +1 -1
- package/es/components/yc-plus-page/src/index.vue.d.ts +826 -736
- package/es/components/yc-plus-page/src/index.vue.mjs +1 -1
- package/es/components/yc-plus-page/src/index.vue2.mjs +2 -15
- package/es/components/yc-plus-tree/src/index.vue.d.ts +6 -1
- package/es/components/yc-plus-tree/src/index.vue.mjs +1 -1
- package/es/components/yc-plus-tree/src/index.vue2.mjs +14 -6
- package/es/components/yc-segmented/index.d.ts +1 -1
- package/es/components/yc-segmented/src/index.d.ts +1 -1
- package/es/components/yc-select-v2/src/index.vue.d.ts +1 -1
- package/es/components/yc-status-dialog/src/index.vue.d.ts +1 -1
- package/es/components/yc-tabs-with-filter/index.d.ts +16 -16
- package/es/hooks/usePlusFormReset.d.ts +208 -208
- package/es/index.css +3 -3
- package/index.css +54 -54
- package/index.js +160 -144
- package/index.min.css +3 -3
- package/index.min.js +7 -7
- package/index.min.mjs +7 -7
- package/index.mjs +160 -144
- package/lib/components/check-card/index.d.ts +76 -76
- package/lib/components/check-card/src/index.vue.d.ts +14 -14
- package/lib/components/check-card-group/index.d.ts +57 -57
- package/lib/components/check-card-group/src/index.vue.d.ts +20 -20
- package/lib/components/date-picker/index.d.ts +10 -10
- package/lib/components/date-picker/src/index.vue.d.ts +2 -2
- package/lib/components/descriptions/index.d.ts +39 -39
- package/lib/components/descriptions/src/index.vue.d.ts +2 -2
- package/lib/components/dialog/index.d.ts +45 -45
- package/lib/components/dialog/src/index.vue.d.ts +3 -3
- package/lib/components/dialog-form/index.d.ts +47 -47
- package/lib/components/dialog-form/src/index.vue.d.ts +11 -11
- package/lib/components/display-item/index.d.ts +24 -24
- package/lib/components/display-item/src/index.vue.d.ts +24 -24
- package/lib/components/drawer-form/index.d.ts +31 -31
- package/lib/components/drawer-form/src/index.vue.d.ts +10 -10
- package/lib/components/form/index.d.ts +157 -138
- package/lib/components/form/src/form-content.vue.d.ts +33 -29
- package/lib/components/form/src/form-content.vue2.js +105 -95
- package/lib/components/form/src/index.vue.d.ts +28 -25
- package/lib/components/form/src/index.vue2.js +5 -2
- package/lib/components/form/src/type.d.ts +4 -0
- package/lib/components/form-item/index.d.ts +150 -150
- package/lib/components/form-item/src/form-item.js +2 -1
- package/lib/components/form-item/src/index.vue.d.ts +21 -21
- package/lib/components/form-item/src/index.vue2.js +21 -17
- package/lib/components/header/index.d.ts +19 -19
- package/lib/components/header/src/index.vue.d.ts +1 -1
- package/lib/components/input-tag/index.d.ts +16 -16
- package/lib/components/input-tag/src/index.vue.d.ts +8 -8
- package/lib/components/layout/index.d.ts +30 -30
- package/lib/components/layout/src/index.vue.d.ts +10 -10
- package/lib/components/page/index.d.ts +1175 -1040
- package/lib/components/page/src/index.vue.d.ts +383 -338
- package/lib/components/pagination/index.d.ts +38 -38
- package/lib/components/pagination/src/index.vue.d.ts +2 -2
- package/lib/components/radio/index.d.ts +34 -34
- package/lib/components/radio/src/index.vue.d.ts +26 -26
- package/lib/components/render/index.d.ts +17 -17
- package/lib/components/render/src/index.vue.d.ts +2 -2
- package/lib/components/search/index.d.ts +494 -430
- package/lib/components/search/src/index.vue.d.ts +143 -125
- package/lib/components/search/src/index.vue2.js +3 -1
- package/lib/components/search/src/type.d.ts +7 -0
- package/lib/components/sidebar/index.d.ts +15 -15
- package/lib/components/sidebar/src/index.vue.d.ts +5 -5
- package/lib/components/steps-form/index.d.ts +19 -19
- package/lib/components/steps-form/src/index.vue.d.ts +1 -1
- package/lib/components/table/index.d.ts +38 -38
- package/lib/components/table/src/index.vue.d.ts +7 -7
- package/lib/components/table/src/table-action-bar.vue.d.ts +3 -3
- package/lib/components/table/src/table-column-drag-sort.vue.d.ts +6 -6
- package/lib/components/table/src/table-column.vue.d.ts +24 -24
- package/lib/components/table/src/table-title-bar.vue2.js +1 -0
- package/lib/components/utils/index.d.ts +15 -15
- package/lib/components/yc-count-to/index.d.ts +1 -1
- package/lib/components/yc-count-to/src/normal/index.d.ts +1 -1
- package/lib/components/yc-dialog/index.d.ts +24 -24
- package/lib/components/yc-dialog/src/index.vue2.js +1 -1
- package/lib/components/yc-drawer/src/index.vue.js +1 -1
- package/lib/components/yc-drawer/src/index.vue2.js +1 -1
- package/lib/components/yc-drawer/store.d.ts +6 -6
- package/lib/components/yc-more-actions/index.d.ts +6 -6
- package/lib/components/yc-more-actions/src/index.vue.d.ts +1 -1
- package/lib/components/yc-plus-page/src/index.vue.d.ts +826 -736
- package/lib/components/yc-plus-page/src/index.vue.js +1 -1
- package/lib/components/yc-plus-page/src/index.vue2.js +2 -15
- package/lib/components/yc-plus-tree/src/index.vue.d.ts +6 -1
- package/lib/components/yc-plus-tree/src/index.vue.js +1 -1
- package/lib/components/yc-plus-tree/src/index.vue2.js +13 -5
- package/lib/components/yc-segmented/index.d.ts +1 -1
- package/lib/components/yc-segmented/src/index.d.ts +1 -1
- package/lib/components/yc-select-v2/src/index.vue.d.ts +1 -1
- package/lib/components/yc-status-dialog/src/index.vue.d.ts +1 -1
- package/lib/components/yc-tabs-with-filter/index.d.ts +16 -16
- package/lib/hooks/usePlusFormReset.d.ts +208 -208
- package/lib/index.css +3 -3
- package/locale/en.js +1 -1
- package/locale/en.min.js +1 -1
- package/locale/en.min.mjs +1 -1
- package/locale/en.mjs +1 -1
- package/locale/ja.js +1 -1
- package/locale/ja.min.js +1 -1
- package/locale/ja.min.mjs +1 -1
- package/locale/ja.mjs +1 -1
- package/locale/ko.js +1 -1
- package/locale/ko.min.js +1 -1
- package/locale/ko.min.mjs +1 -1
- package/locale/ko.mjs +1 -1
- package/locale/zh-cn.js +1 -1
- package/locale/zh-cn.min.js +1 -1
- package/locale/zh-cn.min.mjs +1 -1
- package/locale/zh-cn.mjs +1 -1
- package/locale/zh-tw.js +1 -1
- package/locale/zh-tw.min.js +1 -1
- package/locale/zh-tw.min.mjs +1 -1
- package/locale/zh-tw.mjs +1 -1
- package/package.json +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/plus-dialog.css +1 -1
- package/theme-chalk/plus-display-item.css +1 -1
- package/theme-chalk/plus-form.css +1 -1
- package/theme-chalk/plus-search.css +1 -1
- package/theme-chalk/plus-table.css +1 -1
- package/theme-chalk/plus-yc-dialog.css +1 -1
- package/theme-chalk/plus-yc-drawer.css +1 -1
- package/theme-chalk/plus-yc-plus-tree.css +1 -1
- package/theme-chalk/src/dialog.scss +45 -0
- package/theme-chalk/src/display-item.scss +1 -0
- package/theme-chalk/src/form.scss +20 -0
- package/theme-chalk/src/search.scss +125 -0
- package/theme-chalk/src/table.scss +10 -0
- package/theme-chalk/src/yc-dialog.scss +50 -0
- package/theme-chalk/src/yc-drawer.scss +1 -1
- package/theme-chalk/src/yc-plus-tree.scss +1 -0
package/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! yc-pro-components v0.0.
|
|
1
|
+
/*! yc-pro-components v0.0.26 */
|
|
2
2
|
import { unref, isRef, ref, inject, isReactive, watch, computed, shallowRef, provide, onMounted, nextTick, onBeforeUnmount, defineComponent, watchEffect, openBlock, createBlock, mergeProps, createSlots, withCtx, createElementVNode, renderSlot, normalizeStyle, createVNode, createTextVNode, toDisplayString, createElementBlock, normalizeClass, createCommentVNode, reactive, useAttrs, Fragment, renderList, resolveDynamicComponent, normalizeProps, guardReactiveProps, h, withDirectives, isVNode, withKeys, withModifiers, TransitionGroup, toHandlers, getCurrentInstance, resolveComponent, toRefs, useSlots, onUnmounted, resolveDirective, pushScopeId, popScopeId, onBeforeMount, getCurrentScope, onScopeDispose, toRef, mergeModels, useModel, vShow } from 'vue';
|
|
3
3
|
import { dayjs, localeContextKey, ElDialog, ElButton, ElPagination, ElRadioGroup, ElRadio, ElTableColumn, ElDropdown, ElDropdownMenu, ElDropdownItem, ElIcon, ElTooltip, ElPopconfirm, ElLink, ElMessageBox, useFormDisabled, ElDatePicker, ClickOutside, ElTag, ElInput, ElAutocomplete, ElCascader, ElCheckboxGroup, ElCheckbox, ElColorPicker, ElInputNumber, ElRate, ElSelect, ElOption, ElSlider, ElSwitch, ElTimePicker, ElTimeSelect, ElTransfer, ElTreeSelect, ElSelectV2, ElText, ElDivider, ElFormItem, ElOptionGroup, ElRow, ElCol, ElForm, ElCard, ElMessage, ElImage, ElProgress, ElAvatar, ElPopover, ElTable, vLoading, ElDescriptions, ElDescriptionsItem, ElDrawer, ElSteps, ElStep, ElBreadcrumb, ElBreadcrumbItem, ElMenuItem, ElSubMenu, ElMenu, ElScrollbar, ElHeader, ElContainer, ElMain, ElBacktop } from 'element-plus';
|
|
4
4
|
|
|
@@ -15064,7 +15064,7 @@ const _hoisted_1$p = {
|
|
|
15064
15064
|
class: "plus-table-action-bar__dropdown__link"
|
|
15065
15065
|
};
|
|
15066
15066
|
const _hoisted_2$f = { class: "plus-table-action-bar__dropdown__link" };
|
|
15067
|
-
const _hoisted_3$
|
|
15067
|
+
const _hoisted_3$c = { class: "plus-table-action-bar__more-text" };
|
|
15068
15068
|
var _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
15069
15069
|
...{
|
|
15070
15070
|
name: "PlusTableActionBar"
|
|
@@ -15399,7 +15399,7 @@ var _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
15399
15399
|
createElementVNode("span", _hoisted_2$f, [
|
|
15400
15400
|
createElementVNode(
|
|
15401
15401
|
"span",
|
|
15402
|
-
_hoisted_3$
|
|
15402
|
+
_hoisted_3$c,
|
|
15403
15403
|
toDisplayString(unref(t)("plus.table.more")),
|
|
15404
15404
|
1
|
|
15405
15405
|
/* TEXT */
|
|
@@ -15825,7 +15825,8 @@ const FieldComponentMap = {
|
|
|
15825
15825
|
},
|
|
15826
15826
|
"input-number": {
|
|
15827
15827
|
component: ElInputNumber,
|
|
15828
|
-
|
|
15828
|
+
// align: 'left' 设置输入文本靠左对齐 (Element Plus 2.10.5+)
|
|
15829
|
+
props: { placeholder: "plus.field.pleaseEnter", align: "left" }
|
|
15829
15830
|
},
|
|
15830
15831
|
radio: {
|
|
15831
15832
|
component: ElRadioGroup,
|
|
@@ -15877,6 +15878,14 @@ const getFieldComponent = (valueType) => Reflect.get(FieldComponentMap, valueTyp
|
|
|
15877
15878
|
|
|
15878
15879
|
const _hoisted_1$n = { class: "el-form-item__error" };
|
|
15879
15880
|
const _hoisted_2$e = { class: "plus-form-item__label" };
|
|
15881
|
+
const _hoisted_3$b = {
|
|
15882
|
+
key: 0,
|
|
15883
|
+
class: "plus-form-item-field"
|
|
15884
|
+
};
|
|
15885
|
+
const _hoisted_4$8 = {
|
|
15886
|
+
key: 1,
|
|
15887
|
+
class: "plus-form-item-field"
|
|
15888
|
+
};
|
|
15880
15889
|
var _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
15881
15890
|
...{
|
|
15882
15891
|
name: "PlusFormItem"
|
|
@@ -16091,23 +16100,19 @@ var _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
16091
16100
|
"label-width": _ctx.hasLabel ? (_a = customFormItemProps.value) == null ? void 0 : _a.labelWidth : "0px"
|
|
16092
16101
|
}), createSlots({
|
|
16093
16102
|
default: withCtx(() => [
|
|
16094
|
-
_ctx.renderField && unref(isFunction)(_ctx.renderField) ? (openBlock(), createElementBlock(
|
|
16095
|
-
|
|
16096
|
-
|
|
16097
|
-
|
|
16098
|
-
|
|
16099
|
-
|
|
16100
|
-
|
|
16101
|
-
|
|
16102
|
-
|
|
16103
|
-
|
|
16104
|
-
|
|
16105
|
-
|
|
16106
|
-
|
|
16107
|
-
],
|
|
16108
|
-
64
|
|
16109
|
-
/* STABLE_FRAGMENT */
|
|
16110
|
-
)) : _ctx.$slots[unref(getFieldSlotName)(_ctx.prop)] ? renderSlot(_ctx.$slots, unref(getFieldSlotName)(_ctx.prop), mergeProps({ key: 1 }, params.value, { column: props })) : _ctx.valueType === "select" && customFieldProps.value.multiple === true ? (openBlock(), createBlock(unref(ElSelect$1), mergeProps({
|
|
16103
|
+
_ctx.renderField && unref(isFunction)(_ctx.renderField) ? (openBlock(), createElementBlock("div", _hoisted_3$b, [
|
|
16104
|
+
valueIsReady.value ? (openBlock(), createBlock(unref(PlusRender), {
|
|
16105
|
+
key: 0,
|
|
16106
|
+
render: _ctx.renderField,
|
|
16107
|
+
params: params.value,
|
|
16108
|
+
"callback-value": state.value,
|
|
16109
|
+
"custom-field-props": customFieldProps.value,
|
|
16110
|
+
"render-type": "form",
|
|
16111
|
+
"handle-change": handleChange
|
|
16112
|
+
}, null, 8, ["render", "params", "callback-value", "custom-field-props"])) : createCommentVNode("v-if", true)
|
|
16113
|
+
])) : _ctx.$slots[unref(getFieldSlotName)(_ctx.prop)] ? (openBlock(), createElementBlock("div", _hoisted_4$8, [
|
|
16114
|
+
renderSlot(_ctx.$slots, unref(getFieldSlotName)(_ctx.prop), mergeProps(params.value, { column: props }))
|
|
16115
|
+
])) : _ctx.valueType === "select" && customFieldProps.value.multiple === true ? (openBlock(), createBlock(unref(ElSelect$1), mergeProps({
|
|
16111
16116
|
key: 2,
|
|
16112
16117
|
ref_key: "fieldInstance",
|
|
16113
16118
|
ref: fieldInstance,
|
|
@@ -16576,6 +16581,7 @@ var _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
16576
16581
|
props: {
|
|
16577
16582
|
modelValue: { default: () => ({}) },
|
|
16578
16583
|
hasLabel: { type: Boolean, default: true },
|
|
16584
|
+
layout: { default: "grid" },
|
|
16579
16585
|
columns: { default: () => [] },
|
|
16580
16586
|
rowProps: { default: () => ({}) },
|
|
16581
16587
|
colProps: { default: () => ({}) },
|
|
@@ -16588,6 +16594,19 @@ var _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
16588
16594
|
const props = __props;
|
|
16589
16595
|
const emit = __emit;
|
|
16590
16596
|
const values = ref({});
|
|
16597
|
+
const isNativeLayout = computed(() => props.layout === "flex" || props.layout === "grid");
|
|
16598
|
+
const isFlexLayout = computed(() => props.layout === "flex");
|
|
16599
|
+
const isGridLayout = computed(() => props.layout === "grid");
|
|
16600
|
+
const layoutRowClass = computed(() => ({
|
|
16601
|
+
"plus-form__row--flex": isFlexLayout.value,
|
|
16602
|
+
"plus-form__row--grid": isGridLayout.value
|
|
16603
|
+
}));
|
|
16604
|
+
const layoutItemClass = computed(() => ({
|
|
16605
|
+
"plus-form__item-wrapper--flex": isFlexLayout.value,
|
|
16606
|
+
"plus-form__item-wrapper--grid": isGridLayout.value
|
|
16607
|
+
}));
|
|
16608
|
+
const rowComponent = computed(() => isNativeLayout.value ? "div" : ElRow);
|
|
16609
|
+
const colComponent = computed(() => isNativeLayout.value ? "div" : ElCol);
|
|
16591
16610
|
const getHasLabel = (hasLabel) => {
|
|
16592
16611
|
const has = unref(hasLabel);
|
|
16593
16612
|
if (isBoolean(has)) {
|
|
@@ -16610,104 +16629,100 @@ var _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
16610
16629
|
emit("update:modelValue", values.value);
|
|
16611
16630
|
emit("change", values.value, column);
|
|
16612
16631
|
};
|
|
16632
|
+
const getColBinding = (item) => {
|
|
16633
|
+
if (isNativeLayout.value) return void 0;
|
|
16634
|
+
return unref(item.colProps) || props.colProps;
|
|
16635
|
+
};
|
|
16613
16636
|
return (_ctx, _cache) => {
|
|
16614
|
-
return openBlock(), createBlock(
|
|
16615
|
-
|
|
16616
|
-
|
|
16617
|
-
|
|
16618
|
-
|
|
16619
|
-
|
|
16620
|
-
|
|
16621
|
-
|
|
16622
|
-
|
|
16623
|
-
|
|
16624
|
-
|
|
16625
|
-
|
|
16626
|
-
|
|
16627
|
-
|
|
16628
|
-
|
|
16629
|
-
|
|
16630
|
-
|
|
16631
|
-
|
|
16632
|
-
|
|
16633
|
-
|
|
16634
|
-
|
|
16635
|
-
|
|
16636
|
-
item.renderPrevious
|
|
16637
|
-
|
|
16638
|
-
|
|
16639
|
-
|
|
16640
|
-
|
|
16641
|
-
|
|
16642
|
-
|
|
16643
|
-
|
|
16644
|
-
|
|
16645
|
-
|
|
16646
|
-
|
|
16647
|
-
|
|
16648
|
-
|
|
16649
|
-
|
|
16650
|
-
onChange: (value) => handleChange(value, item)
|
|
16651
|
-
}), createSlots({
|
|
16652
|
-
_: 2
|
|
16653
|
-
/* DYNAMIC */
|
|
16654
|
-
}, [
|
|
16655
|
-
_ctx.$slots[unref(getLabelSlotName)(item.prop)] ? {
|
|
16656
|
-
name: unref(getLabelSlotName)(item.prop),
|
|
16657
|
-
fn: withCtx((data) => [
|
|
16658
|
-
renderSlot(_ctx.$slots, unref(getLabelSlotName)(item.prop), normalizeProps(guardReactiveProps(data)))
|
|
16659
|
-
]),
|
|
16660
|
-
key: "0"
|
|
16661
|
-
} : void 0,
|
|
16662
|
-
_ctx.$slots[unref(getFieldSlotName)(item.prop)] ? {
|
|
16663
|
-
name: unref(getFieldSlotName)(item.prop),
|
|
16664
|
-
fn: withCtx((data) => [
|
|
16665
|
-
renderSlot(_ctx.$slots, unref(getFieldSlotName)(item.prop), normalizeProps(guardReactiveProps(data)))
|
|
16666
|
-
]),
|
|
16667
|
-
key: "1"
|
|
16668
|
-
} : void 0,
|
|
16669
|
-
_ctx.$slots["tooltip-icon"] ? {
|
|
16670
|
-
name: "tooltip-icon",
|
|
16671
|
-
fn: withCtx(() => [
|
|
16672
|
-
renderSlot(_ctx.$slots, "tooltip-icon")
|
|
16673
|
-
]),
|
|
16674
|
-
key: "2"
|
|
16675
|
-
} : void 0
|
|
16676
|
-
]), 1040, ["model-value", "clearable", "has-label", "onChange"]),
|
|
16677
|
-
createCommentVNode(" el-form-item \u4E0B\u4E00\u884C\u989D\u5916\u7684\u5185\u5BB9 "),
|
|
16678
|
-
item.renderExtra || _ctx.$slots[unref(getExtraSlotName)(item.prop)] ? (openBlock(), createElementBlock("div", _hoisted_2$d, [
|
|
16679
|
-
item.renderExtra && unref(isFunction)(item.renderExtra) ? (openBlock(), createBlock(
|
|
16680
|
-
resolveDynamicComponent(item.renderExtra),
|
|
16681
|
-
normalizeProps(mergeProps({ key: 0 }, item)),
|
|
16682
|
-
null,
|
|
16683
|
-
16
|
|
16684
|
-
/* FULL_PROPS */
|
|
16685
|
-
)) : _ctx.$slots[unref(getExtraSlotName)(item.prop)] ? renderSlot(_ctx.$slots, unref(getExtraSlotName)(item.prop), normalizeProps(mergeProps({ key: 1 }, item))) : createCommentVNode("v-if", true)
|
|
16686
|
-
])) : createCommentVNode("v-if", true)
|
|
16687
|
-
]),
|
|
16637
|
+
return openBlock(), createBlock(resolveDynamicComponent(rowComponent.value), mergeProps(isNativeLayout.value ? void 0 : _ctx.rowProps, {
|
|
16638
|
+
class: ["plus-form__row", layoutRowClass.value]
|
|
16639
|
+
}), {
|
|
16640
|
+
default: withCtx(() => [
|
|
16641
|
+
createVNode(PlusCollapseTransition, {
|
|
16642
|
+
"collapse-duration": _ctx.collapseDuration,
|
|
16643
|
+
"collapse-transition": _ctx.collapseTransition
|
|
16644
|
+
}, {
|
|
16645
|
+
default: withCtx(() => [
|
|
16646
|
+
(openBlock(true), createElementBlock(
|
|
16647
|
+
Fragment,
|
|
16648
|
+
null,
|
|
16649
|
+
renderList(_ctx.columns, (item) => {
|
|
16650
|
+
return openBlock(), createBlock(resolveDynamicComponent(colComponent.value), mergeProps({
|
|
16651
|
+
key: item.prop
|
|
16652
|
+
}, getColBinding(item), {
|
|
16653
|
+
class: ["plus-form__item-wrapper", layoutItemClass.value]
|
|
16654
|
+
}), {
|
|
16655
|
+
default: withCtx(() => [
|
|
16656
|
+
createCommentVNode(" el-form-item\u4E0A\u4E00\u884C\u7684\u5185\u5BB9 "),
|
|
16657
|
+
item.renderPrevious || _ctx.$slots[unref(getPreviousSlotName)(item.prop)] ? (openBlock(), createElementBlock("div", _hoisted_1$m, [
|
|
16658
|
+
unref(isFunction)(item.renderPrevious) ? (openBlock(), createBlock(
|
|
16659
|
+
resolveDynamicComponent(item.renderPrevious),
|
|
16660
|
+
normalizeProps(mergeProps({ key: 0 }, item)),
|
|
16661
|
+
null,
|
|
16662
|
+
16
|
|
16663
|
+
/* FULL_PROPS */
|
|
16664
|
+
)) : _ctx.$slots[unref(getPreviousSlotName)(item.prop)] ? renderSlot(_ctx.$slots, unref(getPreviousSlotName)(item.prop), normalizeProps(mergeProps({ key: 1 }, item))) : createCommentVNode("v-if", true)
|
|
16665
|
+
])) : createCommentVNode("v-if", true),
|
|
16666
|
+
createVNode(unref(PlusFormItem), mergeProps({
|
|
16667
|
+
"model-value": getModelValue(item.prop)
|
|
16668
|
+
}, item, {
|
|
16669
|
+
clearable: _ctx.clearable,
|
|
16670
|
+
"has-label": getHasLabel(item.hasLabel),
|
|
16671
|
+
onChange: (value) => handleChange(value, item)
|
|
16672
|
+
}), createSlots({
|
|
16688
16673
|
_: 2
|
|
16689
16674
|
/* DYNAMIC */
|
|
16690
|
-
},
|
|
16691
|
-
|
|
16692
|
-
|
|
16693
|
-
|
|
16694
|
-
|
|
16695
|
-
|
|
16696
|
-
|
|
16697
|
-
|
|
16698
|
-
|
|
16699
|
-
|
|
16700
|
-
|
|
16701
|
-
|
|
16702
|
-
|
|
16703
|
-
|
|
16704
|
-
|
|
16705
|
-
|
|
16706
|
-
|
|
16707
|
-
|
|
16708
|
-
|
|
16709
|
-
|
|
16710
|
-
|
|
16675
|
+
}, [
|
|
16676
|
+
_ctx.$slots[unref(getLabelSlotName)(item.prop)] ? {
|
|
16677
|
+
name: unref(getLabelSlotName)(item.prop),
|
|
16678
|
+
fn: withCtx((data) => [
|
|
16679
|
+
renderSlot(_ctx.$slots, unref(getLabelSlotName)(item.prop), normalizeProps(guardReactiveProps(data)))
|
|
16680
|
+
]),
|
|
16681
|
+
key: "0"
|
|
16682
|
+
} : void 0,
|
|
16683
|
+
_ctx.$slots[unref(getFieldSlotName)(item.prop)] ? {
|
|
16684
|
+
name: unref(getFieldSlotName)(item.prop),
|
|
16685
|
+
fn: withCtx((data) => [
|
|
16686
|
+
renderSlot(_ctx.$slots, unref(getFieldSlotName)(item.prop), normalizeProps(guardReactiveProps(data)))
|
|
16687
|
+
]),
|
|
16688
|
+
key: "1"
|
|
16689
|
+
} : void 0,
|
|
16690
|
+
_ctx.$slots["tooltip-icon"] ? {
|
|
16691
|
+
name: "tooltip-icon",
|
|
16692
|
+
fn: withCtx(() => [
|
|
16693
|
+
renderSlot(_ctx.$slots, "tooltip-icon")
|
|
16694
|
+
]),
|
|
16695
|
+
key: "2"
|
|
16696
|
+
} : void 0
|
|
16697
|
+
]), 1040, ["model-value", "clearable", "has-label", "onChange"]),
|
|
16698
|
+
createCommentVNode(" el-form-item \u4E0B\u4E00\u884C\u989D\u5916\u7684\u5185\u5BB9 "),
|
|
16699
|
+
item.renderExtra || _ctx.$slots[unref(getExtraSlotName)(item.prop)] ? (openBlock(), createElementBlock("div", _hoisted_2$d, [
|
|
16700
|
+
item.renderExtra && unref(isFunction)(item.renderExtra) ? (openBlock(), createBlock(
|
|
16701
|
+
resolveDynamicComponent(item.renderExtra),
|
|
16702
|
+
normalizeProps(mergeProps({ key: 0 }, item)),
|
|
16703
|
+
null,
|
|
16704
|
+
16
|
|
16705
|
+
/* FULL_PROPS */
|
|
16706
|
+
)) : _ctx.$slots[unref(getExtraSlotName)(item.prop)] ? renderSlot(_ctx.$slots, unref(getExtraSlotName)(item.prop), normalizeProps(mergeProps({ key: 1 }, item))) : createCommentVNode("v-if", true)
|
|
16707
|
+
])) : createCommentVNode("v-if", true)
|
|
16708
|
+
]),
|
|
16709
|
+
_: 2
|
|
16710
|
+
/* DYNAMIC */
|
|
16711
|
+
}, 1040, ["class"]);
|
|
16712
|
+
}),
|
|
16713
|
+
128
|
|
16714
|
+
/* KEYED_FRAGMENT */
|
|
16715
|
+
))
|
|
16716
|
+
]),
|
|
16717
|
+
_: 3
|
|
16718
|
+
/* FORWARDED */
|
|
16719
|
+
}, 8, ["collapse-duration", "collapse-transition"]),
|
|
16720
|
+
createCommentVNode(" \u641C\u7D22\u7684footer\u63D2\u69FD "),
|
|
16721
|
+
renderSlot(_ctx.$slots, "search-footer")
|
|
16722
|
+
]),
|
|
16723
|
+
_: 3
|
|
16724
|
+
/* FORWARDED */
|
|
16725
|
+
}, 16, ["class"]);
|
|
16711
16726
|
};
|
|
16712
16727
|
}
|
|
16713
16728
|
});
|
|
@@ -16727,6 +16742,7 @@ var _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
16727
16742
|
columns: { default: () => [] },
|
|
16728
16743
|
labelWidth: { default: "80px" },
|
|
16729
16744
|
labelPosition: { default: "left" },
|
|
16745
|
+
layout: { default: "grid" },
|
|
16730
16746
|
rowProps: { default: () => ({}) },
|
|
16731
16747
|
colProps: { default: () => ({}) },
|
|
16732
16748
|
labelSuffix: { default: ":" },
|
|
@@ -16908,6 +16924,7 @@ var _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
16908
16924
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => values.value = $event),
|
|
16909
16925
|
"row-props": _ctx.rowProps,
|
|
16910
16926
|
"col-props": _ctx.colProps,
|
|
16927
|
+
layout: _ctx.layout,
|
|
16911
16928
|
columns: filterHide(groupItem.columns),
|
|
16912
16929
|
"has-label": _ctx.hasLabel,
|
|
16913
16930
|
"collapse-transition": _ctx.collapseTransition,
|
|
@@ -16926,7 +16943,7 @@ var _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
16926
16943
|
])
|
|
16927
16944
|
};
|
|
16928
16945
|
})
|
|
16929
|
-
]), 1032, ["modelValue", "row-props", "col-props", "columns", "has-label", "collapse-transition", "collapse-duration", "clearable"]))
|
|
16946
|
+
]), 1032, ["modelValue", "row-props", "col-props", "layout", "columns", "has-label", "collapse-transition", "collapse-duration", "clearable"]))
|
|
16930
16947
|
]),
|
|
16931
16948
|
_: 2
|
|
16932
16949
|
/* DYNAMIC */
|
|
@@ -16947,6 +16964,7 @@ var _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
16947
16964
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => values.value = $event),
|
|
16948
16965
|
"row-props": _ctx.rowProps,
|
|
16949
16966
|
"col-props": _ctx.colProps,
|
|
16967
|
+
layout: _ctx.layout,
|
|
16950
16968
|
columns: subColumns.value,
|
|
16951
16969
|
"has-label": _ctx.hasLabel,
|
|
16952
16970
|
"collapse-transition": _ctx.collapseTransition,
|
|
@@ -16965,7 +16983,7 @@ var _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
16965
16983
|
])
|
|
16966
16984
|
};
|
|
16967
16985
|
})
|
|
16968
|
-
]), 1032, ["modelValue", "row-props", "col-props", "columns", "has-label", "collapse-transition", "collapse-duration", "clearable"])
|
|
16986
|
+
]), 1032, ["modelValue", "row-props", "col-props", "layout", "columns", "has-label", "collapse-transition", "collapse-duration", "clearable"])
|
|
16969
16987
|
],
|
|
16970
16988
|
64
|
|
16971
16989
|
/* STABLE_FRAGMENT */
|
|
@@ -18489,6 +18507,7 @@ var _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
18489
18507
|
key: 2,
|
|
18490
18508
|
placement: "bottom",
|
|
18491
18509
|
width: columnSettingPopoverWidth.value,
|
|
18510
|
+
offset: 8,
|
|
18492
18511
|
trigger: "click",
|
|
18493
18512
|
title: unref(t)("plus.table.columnSettings")
|
|
18494
18513
|
}, {
|
|
@@ -19364,6 +19383,7 @@ var _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
19364
19383
|
modelValue: { default: () => ({}) },
|
|
19365
19384
|
defaultValues: { default: () => ({}) },
|
|
19366
19385
|
columns: { default: () => [] },
|
|
19386
|
+
layout: { default: "flex" },
|
|
19367
19387
|
hasFooter: { type: Boolean, default: true },
|
|
19368
19388
|
hasReset: { type: Boolean, default: true },
|
|
19369
19389
|
hasUnfold: { type: Boolean, default: true },
|
|
@@ -19480,6 +19500,7 @@ var _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
19480
19500
|
"row-props": _ctx.rowProps,
|
|
19481
19501
|
"col-props": _ctx.colProps,
|
|
19482
19502
|
columns: subColumns.value,
|
|
19503
|
+
layout: _ctx.layout,
|
|
19483
19504
|
class: "plus-search",
|
|
19484
19505
|
"has-footer": false,
|
|
19485
19506
|
onChange: handleChange
|
|
@@ -19571,7 +19592,7 @@ var _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
19571
19592
|
])
|
|
19572
19593
|
};
|
|
19573
19594
|
})
|
|
19574
|
-
]), 1040, ["modelValue", "inline", "rules", "label-position", "row-props", "col-props", "columns"]);
|
|
19595
|
+
]), 1040, ["modelValue", "inline", "rules", "label-position", "row-props", "col-props", "columns", "layout"]);
|
|
19575
19596
|
};
|
|
19576
19597
|
}
|
|
19577
19598
|
});
|
|
@@ -31827,17 +31848,6 @@ var _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
31827
31848
|
visibilityObserver = null;
|
|
31828
31849
|
}
|
|
31829
31850
|
});
|
|
31830
|
-
const searchableFieldsCount = computed(() => {
|
|
31831
|
-
var _a;
|
|
31832
|
-
if (!((_a = props.columns) == null ? void 0 : _a.length)) return 0;
|
|
31833
|
-
return props.columns.filter((col) => col.hideInSearch !== true).length;
|
|
31834
|
-
});
|
|
31835
|
-
const getSpanByCount = (count) => {
|
|
31836
|
-
if (count <= 3) {
|
|
31837
|
-
return 6;
|
|
31838
|
-
}
|
|
31839
|
-
return 8;
|
|
31840
|
-
};
|
|
31841
31851
|
const mergedSearch = computed(() => {
|
|
31842
31852
|
if (!showSearch.value) {
|
|
31843
31853
|
return false;
|
|
@@ -31848,8 +31858,7 @@ var _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
31848
31858
|
}
|
|
31849
31859
|
const defaultSearchConfig = {
|
|
31850
31860
|
hasUnfold: false,
|
|
31851
|
-
|
|
31852
|
-
colProps: { span: getSpanByCount(searchableFieldsCount.value) },
|
|
31861
|
+
layout: "flex",
|
|
31853
31862
|
labelSuffix: "",
|
|
31854
31863
|
labelPosition: "right",
|
|
31855
31864
|
searchIcon: null,
|
|
@@ -31859,8 +31868,7 @@ var _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
31859
31868
|
}
|
|
31860
31869
|
return {
|
|
31861
31870
|
hasUnfold: false,
|
|
31862
|
-
|
|
31863
|
-
colProps: { span: getSpanByCount(searchableFieldsCount.value) },
|
|
31871
|
+
layout: "flex",
|
|
31864
31872
|
labelSuffix: "",
|
|
31865
31873
|
labelPosition: "right",
|
|
31866
31874
|
searchIcon: null,
|
|
@@ -32024,7 +32032,7 @@ var _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
32024
32032
|
}
|
|
32025
32033
|
});
|
|
32026
32034
|
|
|
32027
|
-
var YcPlusPageComponent = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-
|
|
32035
|
+
var YcPlusPageComponent = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-e1fa68a8"], ["__file", "index.vue"]]);
|
|
32028
32036
|
|
|
32029
32037
|
const YcPlusPage = YcPlusPageComponent;
|
|
32030
32038
|
const YcTableHeaderFilterCell = YcTableHeaderFilterCellComponent;
|
|
@@ -57529,7 +57537,8 @@ var _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
57529
57537
|
searchLoadMore: { type: Function, default: void 0 },
|
|
57530
57538
|
searchPageSize: { default: 20 },
|
|
57531
57539
|
onSearchChange: { type: Function, default: void 0 },
|
|
57532
|
-
padding: { default: 16 }
|
|
57540
|
+
padding: { default: 16 },
|
|
57541
|
+
searchInputClass: { default: void 0 }
|
|
57533
57542
|
},
|
|
57534
57543
|
emits: ["node-click", "action-click", "check", "add-node", "update-node", "update:expandedKeys", "node-expand", "node-collapse", "drag-start", "drag-end", "drag-update", "node-reorder"],
|
|
57535
57544
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
@@ -57552,6 +57561,13 @@ var _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
57552
57561
|
const treeHeight = ref(400);
|
|
57553
57562
|
const { getCdnUrl } = useYcCdnUrl();
|
|
57554
57563
|
const treeMoreIconUrl = getCdnUrl("images", "tree_more.svg");
|
|
57564
|
+
const searchInputClasses = computed(() => {
|
|
57565
|
+
const classes = ["search-input"];
|
|
57566
|
+
if (props.searchInputClass) {
|
|
57567
|
+
classes.push(props.searchInputClass);
|
|
57568
|
+
}
|
|
57569
|
+
return classes.join(" ");
|
|
57570
|
+
});
|
|
57555
57571
|
const updateTreeHeight = () => {
|
|
57556
57572
|
if (treeContainerRef.value) {
|
|
57557
57573
|
const height = treeContainerRef.value.clientHeight;
|
|
@@ -58146,8 +58162,8 @@ var _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
58146
58162
|
placeholder: _ctx.placeholder,
|
|
58147
58163
|
"prefix-icon": "Search",
|
|
58148
58164
|
clearable: "",
|
|
58149
|
-
class:
|
|
58150
|
-
}, null, 8, ["modelValue", "placeholder"])) : (openBlock(), createElementBlock(
|
|
58165
|
+
class: normalizeClass(searchInputClasses.value)
|
|
58166
|
+
}, null, 8, ["modelValue", "placeholder", "class"])) : (openBlock(), createElementBlock(
|
|
58151
58167
|
Fragment,
|
|
58152
58168
|
{ key: 1 },
|
|
58153
58169
|
[
|
|
@@ -58164,8 +58180,8 @@ var _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
58164
58180
|
placeholder: _ctx.placeholder,
|
|
58165
58181
|
clearable: "",
|
|
58166
58182
|
filterable: "",
|
|
58167
|
-
class:
|
|
58168
|
-
}, null, 8, ["modelValue", "load-more", "page-size", "placeholder"])
|
|
58183
|
+
class: normalizeClass(searchInputClasses.value)
|
|
58184
|
+
}, null, 8, ["modelValue", "load-more", "page-size", "placeholder", "class"])
|
|
58169
58185
|
],
|
|
58170
58186
|
2112
|
|
58171
58187
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
@@ -58368,7 +58384,7 @@ var _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
58368
58384
|
}
|
|
58369
58385
|
});
|
|
58370
58386
|
|
|
58371
|
-
var YcPlusTreeComponent = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-
|
|
58387
|
+
var YcPlusTreeComponent = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-61e7209b"], ["__file", "index.vue"]]);
|
|
58372
58388
|
|
|
58373
58389
|
const YcPlusTree = l(YcPlusTreeComponent);
|
|
58374
58390
|
const RePlusTree = YcPlusTree;
|
|
@@ -58389,7 +58405,7 @@ var _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
58389
58405
|
width: {},
|
|
58390
58406
|
size: {},
|
|
58391
58407
|
maxHeight: { type: [String, Number, Boolean], default: "720px" },
|
|
58392
|
-
showHeaderBorder: { type: Boolean, default:
|
|
58408
|
+
showHeaderBorder: { type: Boolean, default: true }
|
|
58393
58409
|
},
|
|
58394
58410
|
setup(__props) {
|
|
58395
58411
|
const props = __props;
|
|
@@ -58503,7 +58519,7 @@ const closeAllDrawer = () => {
|
|
|
58503
58519
|
drawerStore.value = [];
|
|
58504
58520
|
};
|
|
58505
58521
|
|
|
58506
|
-
const _withScopeId$1 = (n) => (pushScopeId("data-v-
|
|
58522
|
+
const _withScopeId$1 = (n) => (pushScopeId("data-v-e05479bb"), n = n(), popScopeId(), n);
|
|
58507
58523
|
const _hoisted_1$4 = { class: "custom-drawer-header" };
|
|
58508
58524
|
const _hoisted_2$4 = { class: "header-content" };
|
|
58509
58525
|
const _hoisted_3$4 = ["id"];
|
|
@@ -58727,7 +58743,7 @@ var _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
58727
58743
|
}
|
|
58728
58744
|
});
|
|
58729
58745
|
|
|
58730
|
-
var YcDrawerComponent = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-
|
|
58746
|
+
var YcDrawerComponent = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-e05479bb"], ["__file", "index.vue"]]);
|
|
58731
58747
|
|
|
58732
58748
|
const YcDrawer = YcDrawerComponent;
|
|
58733
58749
|
const ReDrawer = YcDrawerComponent;
|