yc-agent-ui 1.2.5 → 1.2.7
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/chart/src/chart-card.vue.d.ts +21 -21
- package/es/components/chart/src/chart-container.vue.d.ts +2 -2
- package/es/components/chart/src/metric-card.vue.d.ts +1 -1
- package/es/components/data-table/src/data-table.vue.d.ts +8 -8
- package/es/components/descriptions/index.d.ts +12 -12
- package/es/components/descriptions/src/index.vue.d.ts +4 -4
- package/es/components/dialog/index.d.ts +12 -12
- package/es/components/dialog/src/index.vue.d.ts +4 -4
- package/es/components/dialog-form/index.d.ts +10 -10
- package/es/components/dialog-form/src/index.vue.d.ts +6 -6
- package/es/components/display-item/index.d.ts +15 -15
- package/es/components/display-item/src/index.vue.d.ts +13 -13
- package/es/components/drawer-form/index.d.ts +25 -25
- package/es/components/drawer-form/src/index.vue.d.ts +11 -11
- package/es/components/form/index.d.ts +52 -52
- package/es/components/form/src/form-content.vue.d.ts +18 -18
- package/es/components/form/src/index.vue.d.ts +24 -24
- package/es/components/form-item/index.d.ts +67 -67
- package/es/components/form-item/src/index.vue.d.ts +26 -26
- package/es/components/input-tag/index.d.ts +3 -3
- package/es/components/input-tag/src/index.vue.d.ts +3 -3
- package/es/components/page/index.d.ts +1209 -1209
- package/es/components/page/src/index.vue.d.ts +407 -407
- package/es/components/pagination/index.d.ts +3 -3
- package/es/components/pagination/src/index.vue.d.ts +1 -1
- package/es/components/popover/index.d.ts +9 -9
- package/es/components/popover/src/index.vue.d.ts +3 -3
- package/es/components/radio/index.d.ts +5 -5
- package/es/components/radio/src/index.vue.d.ts +5 -5
- package/es/components/render/index.d.ts +1 -1
- package/es/components/render/src/index.vue.d.ts +1 -1
- package/es/components/search/index.d.ts +348 -348
- package/es/components/search/src/index.vue.d.ts +120 -120
- package/es/components/table/index.d.ts +9 -9
- package/es/components/table/src/index.vue.d.ts +1 -1
- package/es/components/table/src/table-action-bar.vue.d.ts +2 -2
- package/es/components/table/src/table-column.vue.d.ts +34 -34
- package/es/components/utils/index.d.ts +4 -4
- package/es/components/virtual-table/index.d.ts +3 -3
- package/es/components/virtual-table/src/index.vue.d.ts +1 -1
- package/es/components/yc-ai-chat/src/bubble.vue.d.ts +1 -1
- package/es/components/yc-ai-chat/src/file-card.vue.d.ts +1 -1
- package/es/components/yc-ai-chat/src/mobile-frame.vue.d.ts +1 -1
- package/es/components/yc-ai-chat/src/select.vue.d.ts +5 -5
- package/es/components/yc-ai-chat/src/sender.vue.d.ts +1 -1
- package/es/components/yc-ai-chat/src/sidebar.vue.d.ts +2 -2
- package/es/components/yc-ai-chat/src/studio.vue.d.ts +1 -1
- package/es/components/yc-controls/src/choice-cards.vue.d.ts +2 -2
- package/es/components/yc-controls/src/segmented.vue.d.ts +1 -1
- package/es/components/yc-coss-table/src/coss-table.vue.d.ts +3 -3
- package/es/components/yc-coss-table/src/table-head.vue.d.ts +2 -2
- package/es/components/yc-date-picker/src/date-picker.vue.d.ts +1 -1
- package/es/components/yc-display-cards/index.d.ts +20 -2
- package/es/components/yc-display-cards/src/form-card.vue.d.ts +22 -0
- package/es/components/yc-display-cards/src/table-card.vue.d.ts +1 -1
- package/es/components/yc-display-cards/src/types.d.ts +56 -0
- package/es/components/yc-gradient-card/src/index.vue.d.ts +2 -2
- package/es/components/yc-input/src/input.vue.d.ts +5 -5
- package/es/components/yc-input/src/money-input.vue.d.ts +4 -4
- package/es/components/yc-input/src/stepper-input.vue.d.ts +3 -3
- package/es/components/yc-input/src/textarea.vue.d.ts +1 -1
- package/es/components/yc-input-otp/src/index.vue.d.ts +3 -3
- package/es/components/yc-pagination/src/index.vue.d.ts +2 -2
- package/es/components/yc-plus-page/src/index.vue.d.ts +1227 -1227
- package/es/components/yc-plus-tree/src/index.vue.d.ts +2 -2
- package/es/components/yc-property-table/src/asset-table.vue.d.ts +2 -2
- package/es/components/yc-property-table/src/bill-table.vue.d.ts +2 -2
- package/es/components/yc-property-table/src/device-table.vue.d.ts +2 -2
- package/es/components/yc-property-table/src/order-table.vue.d.ts +2 -2
- package/es/components/yc-property-table/src/property-table.vue.d.ts +6 -6
- package/es/components/yc-questionnaire/src/index.vue.d.ts +1 -1
- package/es/components/yc-select-v2/src/index.vue.d.ts +4 -4
- package/es/components/yc-status-dialog/src/index.vue.d.ts +2 -2
- package/es/components/yc-svg-icon/src/index.vue.d.ts +1 -1
- package/es/hooks/usePlusFormReset.d.ts +204 -204
- package/es/index.css +14 -13
- package/es/index.mjs +1 -1
- package/es/packages/components/index.mjs +1 -1
- package/es/packages/components/yc-display-cards/capability.mjs +25 -3
- package/es/packages/components/yc-display-cards/index.mjs +3 -1
- package/es/packages/components/yc-display-cards/src/detail-card.vue.mjs +1 -1
- package/es/packages/components/yc-display-cards/src/form-card.vue.mjs +6 -0
- package/es/packages/components/yc-display-cards/src/form-card2.vue.mjs +907 -0
- package/es/packages/components/yc-display-cards/src/metrics-card.vue.mjs +1 -1
- package/es/packages/components/yc-display-cards/src/table-card.vue.mjs +1 -1
- package/es/packages/components/yc-display-cards/src/table-card2.vue.mjs +78 -22
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/index.css +4 -3
- package/index.js +1527 -541
- package/index.min.css +4 -3
- package/index.min.js +38 -37
- package/index.min.mjs +36 -35
- package/index.mjs +1525 -540
- package/lib/components/chart/src/chart-card.vue.d.ts +21 -21
- package/lib/components/chart/src/chart-container.vue.d.ts +2 -2
- package/lib/components/chart/src/metric-card.vue.d.ts +1 -1
- package/lib/components/data-table/src/data-table.vue.d.ts +8 -8
- package/lib/components/descriptions/index.d.ts +12 -12
- package/lib/components/descriptions/src/index.vue.d.ts +4 -4
- package/lib/components/dialog/index.d.ts +12 -12
- package/lib/components/dialog/src/index.vue.d.ts +4 -4
- package/lib/components/dialog-form/index.d.ts +10 -10
- package/lib/components/dialog-form/src/index.vue.d.ts +6 -6
- package/lib/components/display-item/index.d.ts +15 -15
- package/lib/components/display-item/src/index.vue.d.ts +13 -13
- package/lib/components/drawer-form/index.d.ts +25 -25
- package/lib/components/drawer-form/src/index.vue.d.ts +11 -11
- package/lib/components/form/index.d.ts +52 -52
- package/lib/components/form/src/form-content.vue.d.ts +18 -18
- package/lib/components/form/src/index.vue.d.ts +24 -24
- package/lib/components/form-item/index.d.ts +67 -67
- package/lib/components/form-item/src/index.vue.d.ts +26 -26
- package/lib/components/input-tag/index.d.ts +3 -3
- package/lib/components/input-tag/src/index.vue.d.ts +3 -3
- package/lib/components/page/index.d.ts +1209 -1209
- package/lib/components/page/src/index.vue.d.ts +407 -407
- package/lib/components/pagination/index.d.ts +3 -3
- package/lib/components/pagination/src/index.vue.d.ts +1 -1
- package/lib/components/popover/index.d.ts +9 -9
- package/lib/components/popover/src/index.vue.d.ts +3 -3
- package/lib/components/radio/index.d.ts +5 -5
- package/lib/components/radio/src/index.vue.d.ts +5 -5
- package/lib/components/render/index.d.ts +1 -1
- package/lib/components/render/src/index.vue.d.ts +1 -1
- package/lib/components/search/index.d.ts +348 -348
- package/lib/components/search/src/index.vue.d.ts +120 -120
- package/lib/components/table/index.d.ts +9 -9
- package/lib/components/table/src/index.vue.d.ts +1 -1
- package/lib/components/table/src/table-action-bar.vue.d.ts +2 -2
- package/lib/components/table/src/table-column.vue.d.ts +34 -34
- package/lib/components/utils/index.d.ts +4 -4
- package/lib/components/virtual-table/index.d.ts +3 -3
- package/lib/components/virtual-table/src/index.vue.d.ts +1 -1
- package/lib/components/yc-ai-chat/src/bubble.vue.d.ts +1 -1
- package/lib/components/yc-ai-chat/src/file-card.vue.d.ts +1 -1
- package/lib/components/yc-ai-chat/src/mobile-frame.vue.d.ts +1 -1
- package/lib/components/yc-ai-chat/src/select.vue.d.ts +5 -5
- package/lib/components/yc-ai-chat/src/sender.vue.d.ts +1 -1
- package/lib/components/yc-ai-chat/src/sidebar.vue.d.ts +2 -2
- package/lib/components/yc-ai-chat/src/studio.vue.d.ts +1 -1
- package/lib/components/yc-controls/src/choice-cards.vue.d.ts +2 -2
- package/lib/components/yc-controls/src/segmented.vue.d.ts +1 -1
- package/lib/components/yc-coss-table/src/coss-table.vue.d.ts +3 -3
- package/lib/components/yc-coss-table/src/table-head.vue.d.ts +2 -2
- package/lib/components/yc-date-picker/src/date-picker.vue.d.ts +1 -1
- package/lib/components/yc-display-cards/index.d.ts +20 -2
- package/lib/components/yc-display-cards/src/form-card.vue.d.ts +22 -0
- package/lib/components/yc-display-cards/src/table-card.vue.d.ts +1 -1
- package/lib/components/yc-display-cards/src/types.d.ts +56 -0
- package/lib/components/yc-gradient-card/src/index.vue.d.ts +2 -2
- package/lib/components/yc-input/src/input.vue.d.ts +5 -5
- package/lib/components/yc-input/src/money-input.vue.d.ts +4 -4
- package/lib/components/yc-input/src/stepper-input.vue.d.ts +3 -3
- package/lib/components/yc-input/src/textarea.vue.d.ts +1 -1
- package/lib/components/yc-input-otp/src/index.vue.d.ts +3 -3
- package/lib/components/yc-pagination/src/index.vue.d.ts +2 -2
- package/lib/components/yc-plus-page/src/index.vue.d.ts +1227 -1227
- package/lib/components/yc-plus-tree/src/index.vue.d.ts +2 -2
- package/lib/components/yc-property-table/src/asset-table.vue.d.ts +2 -2
- package/lib/components/yc-property-table/src/bill-table.vue.d.ts +2 -2
- package/lib/components/yc-property-table/src/device-table.vue.d.ts +2 -2
- package/lib/components/yc-property-table/src/order-table.vue.d.ts +2 -2
- package/lib/components/yc-property-table/src/property-table.vue.d.ts +6 -6
- package/lib/components/yc-questionnaire/src/index.vue.d.ts +1 -1
- package/lib/components/yc-select-v2/src/index.vue.d.ts +4 -4
- package/lib/components/yc-status-dialog/src/index.vue.d.ts +2 -2
- package/lib/components/yc-svg-icon/src/index.vue.d.ts +1 -1
- package/lib/hooks/usePlusFormReset.d.ts +204 -204
- package/lib/index.css +13 -12
- package/lib/index.js +1 -0
- package/lib/packages/components/index.js +1 -0
- package/lib/packages/components/yc-display-cards/capability.js +24 -2
- package/lib/packages/components/yc-display-cards/index.js +3 -0
- package/lib/packages/components/yc-display-cards/src/detail-card.vue.js +1 -1
- package/lib/packages/components/yc-display-cards/src/form-card.vue.js +10 -0
- package/lib/packages/components/yc-display-cards/src/form-card2.vue.js +911 -0
- package/lib/packages/components/yc-display-cards/src/metrics-card.vue.js +1 -1
- package/lib/packages/components/yc-display-cards/src/table-card.vue.js +1 -1
- package/lib/packages/components/yc-display-cards/src/table-card2.vue.js +77 -21
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- 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 +4 -3
package/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! yc-agent-ui v1.2.
|
|
1
|
+
/*! yc-agent-ui v1.2.7 */
|
|
2
2
|
import { defineComponent, ref, shallowRef, computed, watch, onMounted, onBeforeUnmount, openBlock, createElementBlock, normalizeStyle, createElementVNode, createCommentVNode, renderSlot, toDisplayString, markRaw, resolveComponent, normalizeClass, createBlock, withCtx, createTextVNode, createVNode, createSlots, Fragment, resolveDynamicComponent, renderList, mergeProps, withDirectives, vModelText, resolveDirective, withModifiers, watchEffect, unref, isRef, reactive, useAttrs, normalizeProps, guardReactiveProps, nextTick, inject, isReactive, provide, h as h$1, isVNode, withKeys, TransitionGroup, toHandlers, getCurrentInstance, toRefs, toRef, Transition, useSlots, toValue, onUpdated, triggerRef, Comment, cloneVNode, onUnmounted, createStaticVNode, Teleport, vShow, useCssVars } from 'vue';
|
|
3
3
|
import * as echarts from 'echarts';
|
|
4
4
|
import { ElMessage, ElPagination, dayjs as dayjs$1, ElRadioGroup, ElRadio, localeContextKey, ElTableColumn, ElDropdown, ElIcon, ElDropdownMenu, ElDropdownItem, ElTooltip, ElPopconfirm, ElButton, ElLink, ElMessageBox, useFormDisabled, ElDatePicker, ClickOutside, ElTag, ElInput, ElSelectV2, ElTreeSelect, ElTransfer, ElTimeSelect, ElTimePicker, ElSwitch, ElSlider, ElOption, ElSelect, ElRate, ElInputNumber, ElColorPicker, ElCheckbox, ElCheckboxGroup, ElCascader, ElAutocomplete, ElFormItem, ElOptionGroup, ElText, ElDivider, ElRow, ElCol, ElForm, ElCard, ElAvatar, ElProgress, ElImage, ElPopover, ElTable, vLoading, TableV2FixedDir, ElAutoResizer, ElTableV2, ElDescriptions, ElDescriptionsItem, ElDialog, ElDrawer, ElEmpty } from 'element-plus';
|
|
@@ -1115,13 +1115,13 @@ function buildEChartsOption(props, isDark, containerWidth) {
|
|
|
1115
1115
|
};
|
|
1116
1116
|
}
|
|
1117
1117
|
|
|
1118
|
-
const _hoisted_1$
|
|
1118
|
+
const _hoisted_1$1i = {
|
|
1119
1119
|
key: 0,
|
|
1120
1120
|
class: "yc-chart-empty"
|
|
1121
1121
|
};
|
|
1122
|
-
const _hoisted_2$
|
|
1123
|
-
const _hoisted_3$
|
|
1124
|
-
var _sfc_main$
|
|
1122
|
+
const _hoisted_2$Z = { class: "yc-chart-empty__content" };
|
|
1123
|
+
const _hoisted_3$S = { class: "yc-chart-empty__text" };
|
|
1124
|
+
var _sfc_main$1U = /* @__PURE__ */ defineComponent({
|
|
1125
1125
|
...{
|
|
1126
1126
|
name: "YcChartContainer"
|
|
1127
1127
|
},
|
|
@@ -1302,9 +1302,9 @@ var _sfc_main$1T = /* @__PURE__ */ defineComponent({
|
|
|
1302
1302
|
/* NEED_PATCH */
|
|
1303
1303
|
),
|
|
1304
1304
|
createCommentVNode(" \u7A7A\u6570\u636E\u7F3A\u7701\u5360\u4F4D "),
|
|
1305
|
-
__props.empty ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
1305
|
+
__props.empty ? (openBlock(), createElementBlock("div", _hoisted_1$1i, [
|
|
1306
1306
|
renderSlot(_ctx.$slots, "empty", {}, () => [
|
|
1307
|
-
createElementVNode("div", _hoisted_2$
|
|
1307
|
+
createElementVNode("div", _hoisted_2$Z, [
|
|
1308
1308
|
_cache[0] || (_cache[0] = createElementVNode(
|
|
1309
1309
|
"svg",
|
|
1310
1310
|
{
|
|
@@ -1326,7 +1326,7 @@ var _sfc_main$1T = /* @__PURE__ */ defineComponent({
|
|
|
1326
1326
|
)),
|
|
1327
1327
|
createElementVNode(
|
|
1328
1328
|
"span",
|
|
1329
|
-
_hoisted_3$
|
|
1329
|
+
_hoisted_3$S,
|
|
1330
1330
|
toDisplayString(__props.emptyText),
|
|
1331
1331
|
1
|
|
1332
1332
|
/* TEXT */
|
|
@@ -1516,23 +1516,23 @@ function resolvePaletteStyles(key) {
|
|
|
1516
1516
|
};
|
|
1517
1517
|
}
|
|
1518
1518
|
|
|
1519
|
-
const _hoisted_1$
|
|
1519
|
+
const _hoisted_1$1h = {
|
|
1520
1520
|
key: 0,
|
|
1521
1521
|
class: "yc-chart-card__header"
|
|
1522
1522
|
};
|
|
1523
|
-
const _hoisted_2$
|
|
1524
|
-
const _hoisted_3$
|
|
1525
|
-
const _hoisted_4$
|
|
1523
|
+
const _hoisted_2$Y = { class: "yc-chart-card__header-left" };
|
|
1524
|
+
const _hoisted_3$R = { class: "yc-chart-card__title-row" };
|
|
1525
|
+
const _hoisted_4$N = {
|
|
1526
1526
|
key: 0,
|
|
1527
1527
|
class: "yc-chart-card__actions"
|
|
1528
1528
|
};
|
|
1529
|
-
const _hoisted_5$
|
|
1530
|
-
const _hoisted_6$
|
|
1529
|
+
const _hoisted_5$F = { class: "yc-chart-card__body" };
|
|
1530
|
+
const _hoisted_6$C = {
|
|
1531
1531
|
key: 1,
|
|
1532
1532
|
class: "yc-chart-card__footer"
|
|
1533
1533
|
};
|
|
1534
|
-
const _hoisted_7$
|
|
1535
|
-
const _hoisted_8$
|
|
1534
|
+
const _hoisted_7$y = { class: "yc-chart-trend__text" };
|
|
1535
|
+
const _hoisted_8$t = {
|
|
1536
1536
|
key: 0,
|
|
1537
1537
|
class: "yc-chart-trend__icon",
|
|
1538
1538
|
viewBox: "0 0 24 24",
|
|
@@ -1540,11 +1540,11 @@ const _hoisted_8$s = {
|
|
|
1540
1540
|
stroke: "currentColor",
|
|
1541
1541
|
"stroke-width": "2"
|
|
1542
1542
|
};
|
|
1543
|
-
const _hoisted_9$
|
|
1543
|
+
const _hoisted_9$r = {
|
|
1544
1544
|
key: 1,
|
|
1545
1545
|
class: "yc-chart-card__footer-desc"
|
|
1546
1546
|
};
|
|
1547
|
-
var _sfc_main$
|
|
1547
|
+
var _sfc_main$1T = /* @__PURE__ */ defineComponent({
|
|
1548
1548
|
...{
|
|
1549
1549
|
name: "YcChartCard"
|
|
1550
1550
|
},
|
|
@@ -1694,12 +1694,12 @@ var _sfc_main$1S = /* @__PURE__ */ defineComponent({
|
|
|
1694
1694
|
},
|
|
1695
1695
|
[
|
|
1696
1696
|
createCommentVNode(" \u5361\u7247\u5934\u90E8 Header "),
|
|
1697
|
-
_ctx.$slots.header || props.title || props.description || props.badge || _ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
1697
|
+
_ctx.$slots.header || props.title || props.description || props.badge || _ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_1$1h, [
|
|
1698
1698
|
renderSlot(_ctx.$slots, "header", {}, () => {
|
|
1699
1699
|
var _a2, _b2;
|
|
1700
1700
|
return [
|
|
1701
|
-
createElementVNode("div", _hoisted_2$
|
|
1702
|
-
createElementVNode("div", _hoisted_3$
|
|
1701
|
+
createElementVNode("div", _hoisted_2$Y, [
|
|
1702
|
+
createElementVNode("div", _hoisted_3$R, [
|
|
1703
1703
|
props.title ? (openBlock(), createElementBlock(
|
|
1704
1704
|
"span",
|
|
1705
1705
|
{
|
|
@@ -1742,15 +1742,15 @@ var _sfc_main$1S = /* @__PURE__ */ defineComponent({
|
|
|
1742
1742
|
/* TEXT, STYLE */
|
|
1743
1743
|
)) : createCommentVNode("v-if", true)
|
|
1744
1744
|
]),
|
|
1745
|
-
_ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
1745
|
+
_ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_4$N, [
|
|
1746
1746
|
renderSlot(_ctx.$slots, "actions")
|
|
1747
1747
|
])) : createCommentVNode("v-if", true)
|
|
1748
1748
|
];
|
|
1749
1749
|
})
|
|
1750
1750
|
])) : createCommentVNode("v-if", true),
|
|
1751
1751
|
createCommentVNode(" \u56FE\u8868\u4E3B\u4F53\u533A\u57DF Body "),
|
|
1752
|
-
createElementVNode("div", _hoisted_5$
|
|
1753
|
-
createVNode(_sfc_main$
|
|
1752
|
+
createElementVNode("div", _hoisted_5$F, [
|
|
1753
|
+
createVNode(_sfc_main$1U, {
|
|
1754
1754
|
ref_key: "containerRef",
|
|
1755
1755
|
ref: containerRef,
|
|
1756
1756
|
height: props.height,
|
|
@@ -1778,7 +1778,7 @@ var _sfc_main$1S = /* @__PURE__ */ defineComponent({
|
|
|
1778
1778
|
]), 1032, ["height", "width", "options", "loading", "loading-text", "empty", "empty-text", "theme", "auto-theme", "colors"])
|
|
1779
1779
|
]),
|
|
1780
1780
|
createCommentVNode(" \u5361\u7247\u5E95\u90E8 Footer (\u7ECF\u5178 Shadcn \u8D8B\u52BF\u5206\u6790\u533A\u57DF) "),
|
|
1781
|
-
_ctx.$slots.footer || trendInfo.value || props.footer ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
1781
|
+
_ctx.$slots.footer || trendInfo.value || props.footer ? (openBlock(), createElementBlock("div", _hoisted_6$C, [
|
|
1782
1782
|
renderSlot(_ctx.$slots, "footer", {}, () => [
|
|
1783
1783
|
createCommentVNode(" \u8D8B\u52BF\u6307\u6807\u6761\u76EE "),
|
|
1784
1784
|
trendInfo.value ? (openBlock(), createElementBlock(
|
|
@@ -1790,13 +1790,13 @@ var _sfc_main$1S = /* @__PURE__ */ defineComponent({
|
|
|
1790
1790
|
[
|
|
1791
1791
|
createElementVNode(
|
|
1792
1792
|
"span",
|
|
1793
|
-
_hoisted_7$
|
|
1793
|
+
_hoisted_7$y,
|
|
1794
1794
|
toDisplayString(trendInfo.value.label || "\u8D8B\u52BF") + " " + toDisplayString(trendInfo.value.value),
|
|
1795
1795
|
1
|
|
1796
1796
|
/* TEXT */
|
|
1797
1797
|
),
|
|
1798
1798
|
createCommentVNode(" \u4E0A\u5347\u8D8B\u52BF\u7BAD\u5934 "),
|
|
1799
|
-
trendInfo.value.direction === "up" ? (openBlock(), createElementBlock("svg", _hoisted_8$
|
|
1799
|
+
trendInfo.value.direction === "up" ? (openBlock(), createElementBlock("svg", _hoisted_8$t, [..._cache[0] || (_cache[0] = [
|
|
1800
1800
|
createElementVNode(
|
|
1801
1801
|
"path",
|
|
1802
1802
|
{
|
|
@@ -1843,7 +1843,7 @@ var _sfc_main$1S = /* @__PURE__ */ defineComponent({
|
|
|
1843
1843
|
createCommentVNode(" \u603B\u7ED3\u8BF4\u660E\u6587\u6848 "),
|
|
1844
1844
|
props.footer ? (openBlock(), createElementBlock(
|
|
1845
1845
|
"div",
|
|
1846
|
-
_hoisted_9$
|
|
1846
|
+
_hoisted_9$r,
|
|
1847
1847
|
toDisplayString(props.footer),
|
|
1848
1848
|
1
|
|
1849
1849
|
/* TEXT */
|
|
@@ -1858,19 +1858,19 @@ var _sfc_main$1S = /* @__PURE__ */ defineComponent({
|
|
|
1858
1858
|
}
|
|
1859
1859
|
});
|
|
1860
1860
|
|
|
1861
|
-
const _hoisted_1$
|
|
1862
|
-
const _hoisted_2$
|
|
1863
|
-
const _hoisted_3$
|
|
1861
|
+
const _hoisted_1$1g = { class: "yc-metric-card__header" };
|
|
1862
|
+
const _hoisted_2$X = { class: "yc-metric-card__extra" };
|
|
1863
|
+
const _hoisted_3$Q = {
|
|
1864
1864
|
key: 1,
|
|
1865
1865
|
class: "yc-metric-card__icon"
|
|
1866
1866
|
};
|
|
1867
|
-
const _hoisted_4$
|
|
1868
|
-
const _hoisted_5$
|
|
1869
|
-
const _hoisted_6$
|
|
1867
|
+
const _hoisted_4$M = { class: "yc-metric-card__content" };
|
|
1868
|
+
const _hoisted_5$E = { class: "yc-metric-card__value-wrap" };
|
|
1869
|
+
const _hoisted_6$B = {
|
|
1870
1870
|
key: 0,
|
|
1871
1871
|
class: "yc-metric-card__meta"
|
|
1872
1872
|
};
|
|
1873
|
-
const _hoisted_7$
|
|
1873
|
+
const _hoisted_7$x = {
|
|
1874
1874
|
key: 0,
|
|
1875
1875
|
class: "yc-metric-card__trend-icon",
|
|
1876
1876
|
viewBox: "0 0 24 24",
|
|
@@ -1878,19 +1878,19 @@ const _hoisted_7$w = {
|
|
|
1878
1878
|
stroke: "currentColor",
|
|
1879
1879
|
"stroke-width": "2.5"
|
|
1880
1880
|
};
|
|
1881
|
-
const _hoisted_8$
|
|
1881
|
+
const _hoisted_8$s = {
|
|
1882
1882
|
key: 1,
|
|
1883
1883
|
class: "yc-metric-card__trend-label"
|
|
1884
1884
|
};
|
|
1885
|
-
const _hoisted_9$
|
|
1885
|
+
const _hoisted_9$q = {
|
|
1886
1886
|
key: 2,
|
|
1887
1887
|
class: "yc-metric-card__desc"
|
|
1888
1888
|
};
|
|
1889
|
-
const _hoisted_10$
|
|
1889
|
+
const _hoisted_10$n = {
|
|
1890
1890
|
key: 0,
|
|
1891
1891
|
class: "yc-metric-card__chart"
|
|
1892
1892
|
};
|
|
1893
|
-
var _sfc_main$
|
|
1893
|
+
var _sfc_main$1S = /* @__PURE__ */ defineComponent({
|
|
1894
1894
|
...{
|
|
1895
1895
|
name: "YcMetricCard"
|
|
1896
1896
|
},
|
|
@@ -2040,7 +2040,7 @@ var _sfc_main$1R = /* @__PURE__ */ defineComponent({
|
|
|
2040
2040
|
},
|
|
2041
2041
|
[
|
|
2042
2042
|
createCommentVNode(" \u5934\u90E8\uFF1A\u6807\u9898\u4E0E\u53F3\u4FA7\u56FE\u6807/\u5FBD\u7AE0 "),
|
|
2043
|
-
createElementVNode("div", _hoisted_1$
|
|
2043
|
+
createElementVNode("div", _hoisted_1$1g, [
|
|
2044
2044
|
createElementVNode(
|
|
2045
2045
|
"div",
|
|
2046
2046
|
{
|
|
@@ -2051,7 +2051,7 @@ var _sfc_main$1R = /* @__PURE__ */ defineComponent({
|
|
|
2051
2051
|
5
|
|
2052
2052
|
/* TEXT, STYLE */
|
|
2053
2053
|
),
|
|
2054
|
-
createElementVNode("div", _hoisted_2$
|
|
2054
|
+
createElementVNode("div", _hoisted_2$X, [
|
|
2055
2055
|
props.badge ? (openBlock(), createBlock(_component_el_tag, {
|
|
2056
2056
|
key: 0,
|
|
2057
2057
|
type: props.badgeType || "info",
|
|
@@ -2069,7 +2069,7 @@ var _sfc_main$1R = /* @__PURE__ */ defineComponent({
|
|
|
2069
2069
|
]),
|
|
2070
2070
|
_: 1
|
|
2071
2071
|
/* STABLE */
|
|
2072
|
-
}, 8, ["type"])) : _ctx.$slots.icon || props.icon ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
2072
|
+
}, 8, ["type"])) : _ctx.$slots.icon || props.icon ? (openBlock(), createElementBlock("div", _hoisted_3$Q, [
|
|
2073
2073
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
2074
2074
|
typeof props.icon === "object" ? (openBlock(), createBlock(resolveDynamicComponent(props.icon), { key: 0 })) : createCommentVNode("v-if", true)
|
|
2075
2075
|
])
|
|
@@ -2077,8 +2077,8 @@ var _sfc_main$1R = /* @__PURE__ */ defineComponent({
|
|
|
2077
2077
|
])
|
|
2078
2078
|
]),
|
|
2079
2079
|
createCommentVNode(" \u6838\u5FC3\u6570\u503C\u533A\u57DF "),
|
|
2080
|
-
createElementVNode("div", _hoisted_4$
|
|
2081
|
-
createElementVNode("div", _hoisted_5$
|
|
2080
|
+
createElementVNode("div", _hoisted_4$M, [
|
|
2081
|
+
createElementVNode("div", _hoisted_5$E, [
|
|
2082
2082
|
props.prefix ? (openBlock(), createElementBlock(
|
|
2083
2083
|
"span",
|
|
2084
2084
|
{
|
|
@@ -2113,7 +2113,7 @@ var _sfc_main$1R = /* @__PURE__ */ defineComponent({
|
|
|
2113
2113
|
)) : createCommentVNode("v-if", true)
|
|
2114
2114
|
]),
|
|
2115
2115
|
createCommentVNode(" \u63CF\u8FF0\u4E0E\u8D8B\u52BF\u6307\u6807 "),
|
|
2116
|
-
props.description || trendInfo.value ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
2116
|
+
props.description || trendInfo.value ? (openBlock(), createElementBlock("div", _hoisted_6$B, [
|
|
2117
2117
|
trendInfo.value ? (openBlock(), createElementBlock(
|
|
2118
2118
|
"span",
|
|
2119
2119
|
{
|
|
@@ -2122,7 +2122,7 @@ var _sfc_main$1R = /* @__PURE__ */ defineComponent({
|
|
|
2122
2122
|
},
|
|
2123
2123
|
[
|
|
2124
2124
|
createCommentVNode(" \u4E0A\u5347 "),
|
|
2125
|
-
trendInfo.value.direction === "up" ? (openBlock(), createElementBlock("svg", _hoisted_7$
|
|
2125
|
+
trendInfo.value.direction === "up" ? (openBlock(), createElementBlock("svg", _hoisted_7$x, [..._cache[0] || (_cache[0] = [
|
|
2126
2126
|
createElementVNode(
|
|
2127
2127
|
"path",
|
|
2128
2128
|
{
|
|
@@ -2173,13 +2173,13 @@ var _sfc_main$1R = /* @__PURE__ */ defineComponent({
|
|
|
2173
2173
|
)) : createCommentVNode("v-if", true),
|
|
2174
2174
|
((_g = trendInfo.value) == null ? void 0 : _g.label) ? (openBlock(), createElementBlock(
|
|
2175
2175
|
"span",
|
|
2176
|
-
_hoisted_8$
|
|
2176
|
+
_hoisted_8$s,
|
|
2177
2177
|
toDisplayString(trendInfo.value.label),
|
|
2178
2178
|
1
|
|
2179
2179
|
/* TEXT */
|
|
2180
2180
|
)) : props.description ? (openBlock(), createElementBlock(
|
|
2181
2181
|
"span",
|
|
2182
|
-
_hoisted_9$
|
|
2182
|
+
_hoisted_9$q,
|
|
2183
2183
|
toDisplayString(props.description),
|
|
2184
2184
|
1
|
|
2185
2185
|
/* TEXT */
|
|
@@ -2187,8 +2187,8 @@ var _sfc_main$1R = /* @__PURE__ */ defineComponent({
|
|
|
2187
2187
|
])) : createCommentVNode("v-if", true)
|
|
2188
2188
|
]),
|
|
2189
2189
|
createCommentVNode(" \u5E95\u90E8\u8FF7\u4F60\u706B\u82B1\u8D8B\u52BF\u56FE "),
|
|
2190
|
-
sparklineOptions.value ? (openBlock(), createElementBlock("div", _hoisted_10$
|
|
2191
|
-
createVNode(_sfc_main$
|
|
2190
|
+
sparklineOptions.value ? (openBlock(), createElementBlock("div", _hoisted_10$n, [
|
|
2191
|
+
createVNode(_sfc_main$1U, {
|
|
2192
2192
|
options: sparklineOptions.value,
|
|
2193
2193
|
height: "44px",
|
|
2194
2194
|
width: "100%",
|
|
@@ -2203,7 +2203,7 @@ var _sfc_main$1R = /* @__PURE__ */ defineComponent({
|
|
|
2203
2203
|
}
|
|
2204
2204
|
});
|
|
2205
2205
|
|
|
2206
|
-
var _sfc_main$
|
|
2206
|
+
var _sfc_main$1R = /* @__PURE__ */ defineComponent({
|
|
2207
2207
|
...{
|
|
2208
2208
|
name: "YcChartDashboard"
|
|
2209
2209
|
},
|
|
@@ -2246,7 +2246,7 @@ var _sfc_main$1Q = /* @__PURE__ */ defineComponent({
|
|
|
2246
2246
|
}, [
|
|
2247
2247
|
createCommentVNode(" \u6307\u6807\u5361\u7247 "),
|
|
2248
2248
|
card.cardKind === "metric" ? (openBlock(), createBlock(
|
|
2249
|
-
_sfc_main$
|
|
2249
|
+
_sfc_main$1S,
|
|
2250
2250
|
mergeProps({
|
|
2251
2251
|
key: 0,
|
|
2252
2252
|
ref_for: true
|
|
@@ -2260,7 +2260,7 @@ var _sfc_main$1Q = /* @__PURE__ */ defineComponent({
|
|
|
2260
2260
|
[
|
|
2261
2261
|
createCommentVNode(" \u6570\u636E\u56FE\u8868\u5361\u7247 "),
|
|
2262
2262
|
createVNode(
|
|
2263
|
-
_sfc_main$
|
|
2263
|
+
_sfc_main$1T,
|
|
2264
2264
|
mergeProps({ ref_for: true }, card),
|
|
2265
2265
|
null,
|
|
2266
2266
|
16
|
|
@@ -2284,7 +2284,7 @@ var _sfc_main$1Q = /* @__PURE__ */ defineComponent({
|
|
|
2284
2284
|
}
|
|
2285
2285
|
});
|
|
2286
2286
|
|
|
2287
|
-
var _sfc_main$
|
|
2287
|
+
var _sfc_main$1Q = /* @__PURE__ */ defineComponent({
|
|
2288
2288
|
...{
|
|
2289
2289
|
name: "YcAreaChart"
|
|
2290
2290
|
},
|
|
@@ -2337,7 +2337,7 @@ var _sfc_main$1P = /* @__PURE__ */ defineComponent({
|
|
|
2337
2337
|
const props = __props;
|
|
2338
2338
|
return (_ctx, _cache) => {
|
|
2339
2339
|
return openBlock(), createBlock(
|
|
2340
|
-
_sfc_main$
|
|
2340
|
+
_sfc_main$1T,
|
|
2341
2341
|
mergeProps(props, { type: "area" }),
|
|
2342
2342
|
createSlots({
|
|
2343
2343
|
_: 2
|
|
@@ -2379,7 +2379,7 @@ var _sfc_main$1P = /* @__PURE__ */ defineComponent({
|
|
|
2379
2379
|
}
|
|
2380
2380
|
});
|
|
2381
2381
|
|
|
2382
|
-
var _sfc_main$
|
|
2382
|
+
var _sfc_main$1P = /* @__PURE__ */ defineComponent({
|
|
2383
2383
|
...{
|
|
2384
2384
|
name: "YcBarChart"
|
|
2385
2385
|
},
|
|
@@ -2432,7 +2432,7 @@ var _sfc_main$1O = /* @__PURE__ */ defineComponent({
|
|
|
2432
2432
|
const props = __props;
|
|
2433
2433
|
return (_ctx, _cache) => {
|
|
2434
2434
|
return openBlock(), createBlock(
|
|
2435
|
-
_sfc_main$
|
|
2435
|
+
_sfc_main$1T,
|
|
2436
2436
|
mergeProps(props, { type: "bar" }),
|
|
2437
2437
|
createSlots({
|
|
2438
2438
|
_: 2
|
|
@@ -2474,7 +2474,7 @@ var _sfc_main$1O = /* @__PURE__ */ defineComponent({
|
|
|
2474
2474
|
}
|
|
2475
2475
|
});
|
|
2476
2476
|
|
|
2477
|
-
var _sfc_main$
|
|
2477
|
+
var _sfc_main$1O = /* @__PURE__ */ defineComponent({
|
|
2478
2478
|
...{
|
|
2479
2479
|
name: "YcLineChart"
|
|
2480
2480
|
},
|
|
@@ -2527,7 +2527,7 @@ var _sfc_main$1N = /* @__PURE__ */ defineComponent({
|
|
|
2527
2527
|
const props = __props;
|
|
2528
2528
|
return (_ctx, _cache) => {
|
|
2529
2529
|
return openBlock(), createBlock(
|
|
2530
|
-
_sfc_main$
|
|
2530
|
+
_sfc_main$1T,
|
|
2531
2531
|
mergeProps(props, { type: "line" }),
|
|
2532
2532
|
createSlots({
|
|
2533
2533
|
_: 2
|
|
@@ -2569,7 +2569,7 @@ var _sfc_main$1N = /* @__PURE__ */ defineComponent({
|
|
|
2569
2569
|
}
|
|
2570
2570
|
});
|
|
2571
2571
|
|
|
2572
|
-
var _sfc_main$
|
|
2572
|
+
var _sfc_main$1N = /* @__PURE__ */ defineComponent({
|
|
2573
2573
|
...{
|
|
2574
2574
|
name: "YcPieChart"
|
|
2575
2575
|
},
|
|
@@ -2621,7 +2621,7 @@ var _sfc_main$1M = /* @__PURE__ */ defineComponent({
|
|
|
2621
2621
|
setup(__props) {
|
|
2622
2622
|
const props = __props;
|
|
2623
2623
|
return (_ctx, _cache) => {
|
|
2624
|
-
return openBlock(), createBlock(_sfc_main$
|
|
2624
|
+
return openBlock(), createBlock(_sfc_main$1T, mergeProps(props, {
|
|
2625
2625
|
type: props.innerRadius ? "donut" : "pie"
|
|
2626
2626
|
}), createSlots({
|
|
2627
2627
|
_: 2
|
|
@@ -2660,7 +2660,7 @@ var _sfc_main$1M = /* @__PURE__ */ defineComponent({
|
|
|
2660
2660
|
}
|
|
2661
2661
|
});
|
|
2662
2662
|
|
|
2663
|
-
var _sfc_main$
|
|
2663
|
+
var _sfc_main$1M = /* @__PURE__ */ defineComponent({
|
|
2664
2664
|
...{
|
|
2665
2665
|
name: "YcRadarChart"
|
|
2666
2666
|
},
|
|
@@ -2713,7 +2713,7 @@ var _sfc_main$1L = /* @__PURE__ */ defineComponent({
|
|
|
2713
2713
|
const props = __props;
|
|
2714
2714
|
return (_ctx, _cache) => {
|
|
2715
2715
|
return openBlock(), createBlock(
|
|
2716
|
-
_sfc_main$
|
|
2716
|
+
_sfc_main$1T,
|
|
2717
2717
|
mergeProps(props, { type: "radar" }),
|
|
2718
2718
|
createSlots({
|
|
2719
2719
|
_: 2
|
|
@@ -2755,7 +2755,7 @@ var _sfc_main$1L = /* @__PURE__ */ defineComponent({
|
|
|
2755
2755
|
}
|
|
2756
2756
|
});
|
|
2757
2757
|
|
|
2758
|
-
var _sfc_main$
|
|
2758
|
+
var _sfc_main$1L = /* @__PURE__ */ defineComponent({
|
|
2759
2759
|
...{
|
|
2760
2760
|
name: "YcGaugeChart"
|
|
2761
2761
|
},
|
|
@@ -2808,7 +2808,7 @@ var _sfc_main$1K = /* @__PURE__ */ defineComponent({
|
|
|
2808
2808
|
const props = __props;
|
|
2809
2809
|
return (_ctx, _cache) => {
|
|
2810
2810
|
return openBlock(), createBlock(
|
|
2811
|
-
_sfc_main$
|
|
2811
|
+
_sfc_main$1T,
|
|
2812
2812
|
mergeProps(props, { type: "gauge" }),
|
|
2813
2813
|
createSlots({
|
|
2814
2814
|
_: 2
|
|
@@ -2850,7 +2850,7 @@ var _sfc_main$1K = /* @__PURE__ */ defineComponent({
|
|
|
2850
2850
|
}
|
|
2851
2851
|
});
|
|
2852
2852
|
|
|
2853
|
-
var _sfc_main$
|
|
2853
|
+
var _sfc_main$1K = /* @__PURE__ */ defineComponent({
|
|
2854
2854
|
...{
|
|
2855
2855
|
name: "YcScatterChart"
|
|
2856
2856
|
},
|
|
@@ -2903,7 +2903,7 @@ var _sfc_main$1J = /* @__PURE__ */ defineComponent({
|
|
|
2903
2903
|
const props = __props;
|
|
2904
2904
|
return (_ctx, _cache) => {
|
|
2905
2905
|
return openBlock(), createBlock(
|
|
2906
|
-
_sfc_main$
|
|
2906
|
+
_sfc_main$1T,
|
|
2907
2907
|
mergeProps(props, { type: "scatter" }),
|
|
2908
2908
|
createSlots({
|
|
2909
2909
|
_: 2
|
|
@@ -2945,7 +2945,7 @@ var _sfc_main$1J = /* @__PURE__ */ defineComponent({
|
|
|
2945
2945
|
}
|
|
2946
2946
|
});
|
|
2947
2947
|
|
|
2948
|
-
var _sfc_main$
|
|
2948
|
+
var _sfc_main$1J = /* @__PURE__ */ defineComponent({
|
|
2949
2949
|
...{
|
|
2950
2950
|
name: "YcHeatmapChart"
|
|
2951
2951
|
},
|
|
@@ -2998,7 +2998,7 @@ var _sfc_main$1I = /* @__PURE__ */ defineComponent({
|
|
|
2998
2998
|
const props = __props;
|
|
2999
2999
|
return (_ctx, _cache) => {
|
|
3000
3000
|
return openBlock(), createBlock(
|
|
3001
|
-
_sfc_main$
|
|
3001
|
+
_sfc_main$1T,
|
|
3002
3002
|
mergeProps(props, { type: "heatmap" }),
|
|
3003
3003
|
createSlots({
|
|
3004
3004
|
_: 2
|
|
@@ -3040,7 +3040,7 @@ var _sfc_main$1I = /* @__PURE__ */ defineComponent({
|
|
|
3040
3040
|
}
|
|
3041
3041
|
});
|
|
3042
3042
|
|
|
3043
|
-
var _sfc_main$
|
|
3043
|
+
var _sfc_main$1I = /* @__PURE__ */ defineComponent({
|
|
3044
3044
|
...{
|
|
3045
3045
|
name: "YcCandlestickChart"
|
|
3046
3046
|
},
|
|
@@ -3093,7 +3093,7 @@ var _sfc_main$1H = /* @__PURE__ */ defineComponent({
|
|
|
3093
3093
|
const props = __props;
|
|
3094
3094
|
return (_ctx, _cache) => {
|
|
3095
3095
|
return openBlock(), createBlock(
|
|
3096
|
-
_sfc_main$
|
|
3096
|
+
_sfc_main$1T,
|
|
3097
3097
|
mergeProps(props, { type: "candlestick" }),
|
|
3098
3098
|
createSlots({
|
|
3099
3099
|
_: 2
|
|
@@ -3135,7 +3135,7 @@ var _sfc_main$1H = /* @__PURE__ */ defineComponent({
|
|
|
3135
3135
|
}
|
|
3136
3136
|
});
|
|
3137
3137
|
|
|
3138
|
-
var _sfc_main$
|
|
3138
|
+
var _sfc_main$1H = /* @__PURE__ */ defineComponent({
|
|
3139
3139
|
...{
|
|
3140
3140
|
name: "YcRoseChart"
|
|
3141
3141
|
},
|
|
@@ -3188,7 +3188,7 @@ var _sfc_main$1G = /* @__PURE__ */ defineComponent({
|
|
|
3188
3188
|
const props = __props;
|
|
3189
3189
|
return (_ctx, _cache) => {
|
|
3190
3190
|
return openBlock(), createBlock(
|
|
3191
|
-
_sfc_main$
|
|
3191
|
+
_sfc_main$1T,
|
|
3192
3192
|
mergeProps(props, { type: "rose" }),
|
|
3193
3193
|
createSlots({
|
|
3194
3194
|
_: 2
|
|
@@ -3230,7 +3230,7 @@ var _sfc_main$1G = /* @__PURE__ */ defineComponent({
|
|
|
3230
3230
|
}
|
|
3231
3231
|
});
|
|
3232
3232
|
|
|
3233
|
-
var _sfc_main$
|
|
3233
|
+
var _sfc_main$1G = /* @__PURE__ */ defineComponent({
|
|
3234
3234
|
...{
|
|
3235
3235
|
name: "YcPieSimpleChart"
|
|
3236
3236
|
},
|
|
@@ -3283,7 +3283,7 @@ var _sfc_main$1F = /* @__PURE__ */ defineComponent({
|
|
|
3283
3283
|
const props = __props;
|
|
3284
3284
|
return (_ctx, _cache) => {
|
|
3285
3285
|
return openBlock(), createBlock(
|
|
3286
|
-
_sfc_main$
|
|
3286
|
+
_sfc_main$1T,
|
|
3287
3287
|
mergeProps(props, { type: "pie-simple" }),
|
|
3288
3288
|
createSlots({
|
|
3289
3289
|
_: 2
|
|
@@ -3325,7 +3325,7 @@ var _sfc_main$1F = /* @__PURE__ */ defineComponent({
|
|
|
3325
3325
|
}
|
|
3326
3326
|
});
|
|
3327
3327
|
|
|
3328
|
-
var _sfc_main$
|
|
3328
|
+
var _sfc_main$1F = /* @__PURE__ */ defineComponent({
|
|
3329
3329
|
...{
|
|
3330
3330
|
name: "YcStepLineChart"
|
|
3331
3331
|
},
|
|
@@ -3378,7 +3378,7 @@ var _sfc_main$1E = /* @__PURE__ */ defineComponent({
|
|
|
3378
3378
|
const props = __props;
|
|
3379
3379
|
return (_ctx, _cache) => {
|
|
3380
3380
|
return openBlock(), createBlock(
|
|
3381
|
-
_sfc_main$
|
|
3381
|
+
_sfc_main$1T,
|
|
3382
3382
|
mergeProps(props, { type: "step-line" }),
|
|
3383
3383
|
createSlots({
|
|
3384
3384
|
_: 2
|
|
@@ -3420,7 +3420,7 @@ var _sfc_main$1E = /* @__PURE__ */ defineComponent({
|
|
|
3420
3420
|
}
|
|
3421
3421
|
});
|
|
3422
3422
|
|
|
3423
|
-
var _sfc_main$
|
|
3423
|
+
var _sfc_main$1E = /* @__PURE__ */ defineComponent({
|
|
3424
3424
|
...{
|
|
3425
3425
|
name: "YcDualLineChart"
|
|
3426
3426
|
},
|
|
@@ -3473,7 +3473,7 @@ var _sfc_main$1D = /* @__PURE__ */ defineComponent({
|
|
|
3473
3473
|
const props = __props;
|
|
3474
3474
|
return (_ctx, _cache) => {
|
|
3475
3475
|
return openBlock(), createBlock(
|
|
3476
|
-
_sfc_main$
|
|
3476
|
+
_sfc_main$1T,
|
|
3477
3477
|
mergeProps(props, { type: "line" }),
|
|
3478
3478
|
createSlots({
|
|
3479
3479
|
_: 2
|
|
@@ -3515,7 +3515,7 @@ var _sfc_main$1D = /* @__PURE__ */ defineComponent({
|
|
|
3515
3515
|
}
|
|
3516
3516
|
});
|
|
3517
3517
|
|
|
3518
|
-
var _sfc_main$
|
|
3518
|
+
var _sfc_main$1D = /* @__PURE__ */ defineComponent({
|
|
3519
3519
|
...{
|
|
3520
3520
|
name: "YcLineGradientChart"
|
|
3521
3521
|
},
|
|
@@ -3568,7 +3568,7 @@ var _sfc_main$1C = /* @__PURE__ */ defineComponent({
|
|
|
3568
3568
|
const props = __props;
|
|
3569
3569
|
return (_ctx, _cache) => {
|
|
3570
3570
|
return openBlock(), createBlock(
|
|
3571
|
-
_sfc_main$
|
|
3571
|
+
_sfc_main$1T,
|
|
3572
3572
|
mergeProps(props, { type: "line-gradient" }),
|
|
3573
3573
|
createSlots({
|
|
3574
3574
|
_: 2
|
|
@@ -3610,24 +3610,24 @@ var _sfc_main$1C = /* @__PURE__ */ defineComponent({
|
|
|
3610
3610
|
}
|
|
3611
3611
|
});
|
|
3612
3612
|
|
|
3613
|
-
const YcChartContainer = withInstall(_sfc_main$
|
|
3614
|
-
const YcChartCard = withInstall(_sfc_main$
|
|
3615
|
-
const YcMetricCard = withInstall(_sfc_main$
|
|
3616
|
-
const YcChartDashboard = withInstall(_sfc_main$
|
|
3617
|
-
const YcAreaChart = withInstall(_sfc_main$
|
|
3618
|
-
const YcBarChart = withInstall(_sfc_main$
|
|
3619
|
-
const YcLineChart = withInstall(_sfc_main$
|
|
3620
|
-
const YcStepLineChart = withInstall(_sfc_main$
|
|
3621
|
-
const YcDualLineChart = withInstall(_sfc_main$
|
|
3622
|
-
const YcLineGradientChart = withInstall(_sfc_main$
|
|
3623
|
-
const YcPieChart = withInstall(_sfc_main$
|
|
3624
|
-
const YcPieSimpleChart = withInstall(_sfc_main$
|
|
3625
|
-
const YcRadarChart = withInstall(_sfc_main$
|
|
3626
|
-
const YcGaugeChart = withInstall(_sfc_main$
|
|
3627
|
-
const YcScatterChart = withInstall(_sfc_main$
|
|
3628
|
-
const YcHeatmapChart = withInstall(_sfc_main$
|
|
3629
|
-
const YcCandlestickChart = withInstall(_sfc_main$
|
|
3630
|
-
const YcRoseChart = withInstall(_sfc_main$
|
|
3613
|
+
const YcChartContainer = withInstall(_sfc_main$1U);
|
|
3614
|
+
const YcChartCard = withInstall(_sfc_main$1T);
|
|
3615
|
+
const YcMetricCard = withInstall(_sfc_main$1S);
|
|
3616
|
+
const YcChartDashboard = withInstall(_sfc_main$1R);
|
|
3617
|
+
const YcAreaChart = withInstall(_sfc_main$1Q);
|
|
3618
|
+
const YcBarChart = withInstall(_sfc_main$1P);
|
|
3619
|
+
const YcLineChart = withInstall(_sfc_main$1O);
|
|
3620
|
+
const YcStepLineChart = withInstall(_sfc_main$1F);
|
|
3621
|
+
const YcDualLineChart = withInstall(_sfc_main$1E);
|
|
3622
|
+
const YcLineGradientChart = withInstall(_sfc_main$1D);
|
|
3623
|
+
const YcPieChart = withInstall(_sfc_main$1N);
|
|
3624
|
+
const YcPieSimpleChart = withInstall(_sfc_main$1G);
|
|
3625
|
+
const YcRadarChart = withInstall(_sfc_main$1M);
|
|
3626
|
+
const YcGaugeChart = withInstall(_sfc_main$1L);
|
|
3627
|
+
const YcScatterChart = withInstall(_sfc_main$1K);
|
|
3628
|
+
const YcHeatmapChart = withInstall(_sfc_main$1J);
|
|
3629
|
+
const YcCandlestickChart = withInstall(_sfc_main$1I);
|
|
3630
|
+
const YcRoseChart = withInstall(_sfc_main$1H);
|
|
3631
3631
|
const ReChartContainer = YcChartContainer;
|
|
3632
3632
|
const ReChartCard = YcChartCard;
|
|
3633
3633
|
const ReMetricCard = YcMetricCard;
|
|
@@ -4176,49 +4176,49 @@ const capability$i = {
|
|
|
4176
4176
|
]
|
|
4177
4177
|
};
|
|
4178
4178
|
|
|
4179
|
-
const _hoisted_1$
|
|
4180
|
-
const _hoisted_2$
|
|
4181
|
-
const _hoisted_3$
|
|
4179
|
+
const _hoisted_1$1f = { class: "yc-data-table-toolbar" };
|
|
4180
|
+
const _hoisted_2$W = { class: "yc-data-table-toolbar__left" };
|
|
4181
|
+
const _hoisted_3$P = {
|
|
4182
4182
|
key: 0,
|
|
4183
4183
|
class: "yc-data-table-search"
|
|
4184
4184
|
};
|
|
4185
|
-
const _hoisted_4$
|
|
4186
|
-
const _hoisted_5$
|
|
4185
|
+
const _hoisted_4$L = ["placeholder"];
|
|
4186
|
+
const _hoisted_5$D = {
|
|
4187
4187
|
key: 0,
|
|
4188
4188
|
class: "yc-data-table-filter__badge"
|
|
4189
4189
|
};
|
|
4190
|
-
const _hoisted_6$
|
|
4191
|
-
const _hoisted_7$
|
|
4192
|
-
const _hoisted_8$
|
|
4193
|
-
const _hoisted_9$
|
|
4194
|
-
const _hoisted_10$
|
|
4195
|
-
const _hoisted_11$
|
|
4190
|
+
const _hoisted_6$A = { class: "yc-data-table-filter__menu" };
|
|
4191
|
+
const _hoisted_7$w = { class: "yc-data-table-filter__header" };
|
|
4192
|
+
const _hoisted_8$r = { class: "yc-data-table-filter__options" };
|
|
4193
|
+
const _hoisted_9$p = ["onClick"];
|
|
4194
|
+
const _hoisted_10$m = { class: "yc-data-table-filter__checkbox" };
|
|
4195
|
+
const _hoisted_11$m = {
|
|
4196
4196
|
key: 0,
|
|
4197
4197
|
viewBox: "0 0 24 24",
|
|
4198
4198
|
fill: "none",
|
|
4199
4199
|
stroke: "currentColor",
|
|
4200
4200
|
"stroke-width": "3"
|
|
4201
4201
|
};
|
|
4202
|
-
const _hoisted_12$
|
|
4203
|
-
const _hoisted_13$
|
|
4202
|
+
const _hoisted_12$k = { class: "yc-data-table-filter__label" };
|
|
4203
|
+
const _hoisted_13$i = {
|
|
4204
4204
|
key: 0,
|
|
4205
4205
|
class: "yc-data-table-filter__count"
|
|
4206
4206
|
};
|
|
4207
|
-
const _hoisted_14$
|
|
4208
|
-
const _hoisted_15$
|
|
4209
|
-
const _hoisted_16$
|
|
4210
|
-
const _hoisted_17$
|
|
4211
|
-
const _hoisted_18$
|
|
4212
|
-
const _hoisted_19$
|
|
4213
|
-
const _hoisted_20$
|
|
4207
|
+
const _hoisted_14$f = ["onClick"];
|
|
4208
|
+
const _hoisted_15$e = { class: "yc-data-table-toolbar__right" };
|
|
4209
|
+
const _hoisted_16$e = { class: "yc-data-table-column-menu" };
|
|
4210
|
+
const _hoisted_17$d = { class: "yc-data-table-column-menu__list" };
|
|
4211
|
+
const _hoisted_18$c = ["onClick"];
|
|
4212
|
+
const _hoisted_19$b = { class: "yc-data-table-column-menu__checkbox" };
|
|
4213
|
+
const _hoisted_20$b = {
|
|
4214
4214
|
key: 0,
|
|
4215
4215
|
viewBox: "0 0 24 24",
|
|
4216
4216
|
fill: "none",
|
|
4217
4217
|
stroke: "currentColor",
|
|
4218
4218
|
"stroke-width": "3"
|
|
4219
4219
|
};
|
|
4220
|
-
const _hoisted_21$
|
|
4221
|
-
var _sfc_main$
|
|
4220
|
+
const _hoisted_21$a = { class: "yc-data-table-column-menu__label" };
|
|
4221
|
+
var _sfc_main$1C = /* @__PURE__ */ defineComponent({
|
|
4222
4222
|
...{
|
|
4223
4223
|
name: "DataTableToolbar"
|
|
4224
4224
|
},
|
|
@@ -4276,11 +4276,11 @@ var _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
|
4276
4276
|
};
|
|
4277
4277
|
return (_ctx, _cache) => {
|
|
4278
4278
|
const _component_el_popover = resolveComponent("el-popover");
|
|
4279
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
4279
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1f, [
|
|
4280
4280
|
createCommentVNode(" \u5DE6\u4FA7\u641C\u7D22\u4E0E\u7B5B\u9009 "),
|
|
4281
|
-
createElementVNode("div", _hoisted_2$
|
|
4281
|
+
createElementVNode("div", _hoisted_2$W, [
|
|
4282
4282
|
createCommentVNode(" \u641C\u7D22\u6846 "),
|
|
4283
|
-
props.searchable ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
4283
|
+
props.searchable ? (openBlock(), createElementBlock("div", _hoisted_3$P, [
|
|
4284
4284
|
_cache[3] || (_cache[3] = createElementVNode(
|
|
4285
4285
|
"svg",
|
|
4286
4286
|
{
|
|
@@ -4306,7 +4306,7 @@ var _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
|
4306
4306
|
type: "text",
|
|
4307
4307
|
class: "yc-data-table-search__input",
|
|
4308
4308
|
placeholder: props.searchPlaceholder
|
|
4309
|
-
}, null, 8, _hoisted_4$
|
|
4309
|
+
}, null, 8, _hoisted_4$L), [
|
|
4310
4310
|
[vModelText, searchValue.value]
|
|
4311
4311
|
]),
|
|
4312
4312
|
searchValue.value ? (openBlock(), createElementBlock("button", {
|
|
@@ -4390,7 +4390,7 @@ var _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
|
4390
4390
|
createCommentVNode(" \u5DF2\u9009\u6570\u91CF\u6807\u8BB0 "),
|
|
4391
4391
|
((_b = props.activeFilters[filter.prop]) == null ? void 0 : _b.length) ? (openBlock(), createElementBlock(
|
|
4392
4392
|
"span",
|
|
4393
|
-
_hoisted_5$
|
|
4393
|
+
_hoisted_5$D,
|
|
4394
4394
|
toDisplayString(props.activeFilters[filter.prop].length),
|
|
4395
4395
|
1
|
|
4396
4396
|
/* TEXT */
|
|
@@ -4404,15 +4404,15 @@ var _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
|
4404
4404
|
default: withCtx(() => {
|
|
4405
4405
|
var _a;
|
|
4406
4406
|
return [
|
|
4407
|
-
createElementVNode("div", _hoisted_6$
|
|
4407
|
+
createElementVNode("div", _hoisted_6$A, [
|
|
4408
4408
|
createElementVNode(
|
|
4409
4409
|
"div",
|
|
4410
|
-
_hoisted_7$
|
|
4410
|
+
_hoisted_7$w,
|
|
4411
4411
|
toDisplayString(filter.title) + " \u7B5B\u9009",
|
|
4412
4412
|
1
|
|
4413
4413
|
/* TEXT */
|
|
4414
4414
|
),
|
|
4415
|
-
createElementVNode("div", _hoisted_8$
|
|
4415
|
+
createElementVNode("div", _hoisted_8$r, [
|
|
4416
4416
|
(openBlock(true), createElementBlock(
|
|
4417
4417
|
Fragment,
|
|
4418
4418
|
null,
|
|
@@ -4422,8 +4422,8 @@ var _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
|
4422
4422
|
class: normalizeClass(["yc-data-table-filter__item", { "is-checked": isFilterSelected(filter.prop, opt.value) }]),
|
|
4423
4423
|
onClick: ($event) => toggleFilterOption(filter.prop, opt.value)
|
|
4424
4424
|
}, [
|
|
4425
|
-
createElementVNode("div", _hoisted_10$
|
|
4426
|
-
isFilterSelected(filter.prop, opt.value) ? (openBlock(), createElementBlock("svg", _hoisted_11$
|
|
4425
|
+
createElementVNode("div", _hoisted_10$m, [
|
|
4426
|
+
isFilterSelected(filter.prop, opt.value) ? (openBlock(), createElementBlock("svg", _hoisted_11$m, [..._cache[5] || (_cache[5] = [
|
|
4427
4427
|
createElementVNode(
|
|
4428
4428
|
"polyline",
|
|
4429
4429
|
{ points: "20 6 9 17 4 12" },
|
|
@@ -4435,19 +4435,19 @@ var _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
|
4435
4435
|
]),
|
|
4436
4436
|
createElementVNode(
|
|
4437
4437
|
"span",
|
|
4438
|
-
_hoisted_12$
|
|
4438
|
+
_hoisted_12$k,
|
|
4439
4439
|
toDisplayString(opt.label),
|
|
4440
4440
|
1
|
|
4441
4441
|
/* TEXT */
|
|
4442
4442
|
),
|
|
4443
4443
|
opt.count !== void 0 ? (openBlock(), createElementBlock(
|
|
4444
4444
|
"span",
|
|
4445
|
-
_hoisted_13$
|
|
4445
|
+
_hoisted_13$i,
|
|
4446
4446
|
toDisplayString(opt.count),
|
|
4447
4447
|
1
|
|
4448
4448
|
/* TEXT */
|
|
4449
4449
|
)) : createCommentVNode("v-if", true)
|
|
4450
|
-
], 10, _hoisted_9$
|
|
4450
|
+
], 10, _hoisted_9$p);
|
|
4451
4451
|
}),
|
|
4452
4452
|
128
|
|
4453
4453
|
/* KEYED_FRAGMENT */
|
|
@@ -4457,7 +4457,7 @@ var _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
|
4457
4457
|
key: 0,
|
|
4458
4458
|
class: "yc-data-table-filter__footer",
|
|
4459
4459
|
onClick: ($event) => clearFilterProp(filter.prop)
|
|
4460
|
-
}, " \u6E05\u9664\u7B5B\u9009 ", 8, _hoisted_14$
|
|
4460
|
+
}, " \u6E05\u9664\u7B5B\u9009 ", 8, _hoisted_14$f)) : createCommentVNode("v-if", true)
|
|
4461
4461
|
])
|
|
4462
4462
|
];
|
|
4463
4463
|
}),
|
|
@@ -4503,7 +4503,7 @@ var _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
|
4503
4503
|
])])) : createCommentVNode("v-if", true)
|
|
4504
4504
|
]),
|
|
4505
4505
|
createCommentVNode(" \u53F3\u4FA7\u64CD\u4F5C\u4E0E\u5217\u663E\u9690\u63A7\u5236 "),
|
|
4506
|
-
createElementVNode("div", _hoisted_15$
|
|
4506
|
+
createElementVNode("div", _hoisted_15$e, [
|
|
4507
4507
|
createCommentVNode(" \u5916\u90E8\u81EA\u5B9A\u4E49\u64CD\u4F5C\u680F\u63D2\u69FD "),
|
|
4508
4508
|
renderSlot(_ctx.$slots, "actions"),
|
|
4509
4509
|
createCommentVNode(" \u5217\u663E\u9690\u63A7\u5236 (View) "),
|
|
@@ -4538,7 +4538,7 @@ var _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
|
4538
4538
|
)
|
|
4539
4539
|
])]),
|
|
4540
4540
|
default: withCtx(() => [
|
|
4541
|
-
createElementVNode("div", _hoisted_16$
|
|
4541
|
+
createElementVNode("div", _hoisted_16$e, [
|
|
4542
4542
|
_cache[9] || (_cache[9] = createElementVNode(
|
|
4543
4543
|
"div",
|
|
4544
4544
|
{ class: "yc-data-table-column-menu__title" },
|
|
@@ -4546,7 +4546,7 @@ var _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
|
4546
4546
|
-1
|
|
4547
4547
|
/* CACHED */
|
|
4548
4548
|
)),
|
|
4549
|
-
createElementVNode("div", _hoisted_17$
|
|
4549
|
+
createElementVNode("div", _hoisted_17$d, [
|
|
4550
4550
|
(openBlock(true), createElementBlock(
|
|
4551
4551
|
Fragment,
|
|
4552
4552
|
null,
|
|
@@ -4556,8 +4556,8 @@ var _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
|
4556
4556
|
class: normalizeClass(["yc-data-table-column-menu__item", { "is-checked": col.visible !== false }]),
|
|
4557
4557
|
onClick: ($event) => toggleColumnVisibility(col)
|
|
4558
4558
|
}, [
|
|
4559
|
-
createElementVNode("div", _hoisted_19$
|
|
4560
|
-
col.visible !== false ? (openBlock(), createElementBlock("svg", _hoisted_20$
|
|
4559
|
+
createElementVNode("div", _hoisted_19$b, [
|
|
4560
|
+
col.visible !== false ? (openBlock(), createElementBlock("svg", _hoisted_20$b, [..._cache[8] || (_cache[8] = [
|
|
4561
4561
|
createElementVNode(
|
|
4562
4562
|
"polyline",
|
|
4563
4563
|
{ points: "20 6 9 17 4 12" },
|
|
@@ -4569,12 +4569,12 @@ var _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
|
4569
4569
|
]),
|
|
4570
4570
|
createElementVNode(
|
|
4571
4571
|
"span",
|
|
4572
|
-
_hoisted_21$
|
|
4572
|
+
_hoisted_21$a,
|
|
4573
4573
|
toDisplayString(col.label),
|
|
4574
4574
|
1
|
|
4575
4575
|
/* TEXT */
|
|
4576
4576
|
)
|
|
4577
|
-
], 10, _hoisted_18$
|
|
4577
|
+
], 10, _hoisted_18$c);
|
|
4578
4578
|
}),
|
|
4579
4579
|
128
|
|
4580
4580
|
/* KEYED_FRAGMENT */
|
|
@@ -4591,28 +4591,28 @@ var _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
|
4591
4591
|
}
|
|
4592
4592
|
});
|
|
4593
4593
|
|
|
4594
|
-
const _hoisted_1$
|
|
4595
|
-
const _hoisted_2$
|
|
4596
|
-
const _hoisted_3$
|
|
4594
|
+
const _hoisted_1$1e = { class: "yc-data-table-pagination" };
|
|
4595
|
+
const _hoisted_2$V = { class: "yc-data-table-pagination__left" };
|
|
4596
|
+
const _hoisted_3$O = {
|
|
4597
4597
|
key: 0,
|
|
4598
4598
|
class: "yc-data-table-pagination__selected"
|
|
4599
4599
|
};
|
|
4600
|
-
const _hoisted_4$
|
|
4600
|
+
const _hoisted_4$K = {
|
|
4601
4601
|
key: 1,
|
|
4602
4602
|
class: "yc-data-table-pagination__total"
|
|
4603
4603
|
};
|
|
4604
|
-
const _hoisted_5$
|
|
4605
|
-
const _hoisted_6$
|
|
4604
|
+
const _hoisted_5$C = { class: "yc-data-table-pagination__right" };
|
|
4605
|
+
const _hoisted_6$z = {
|
|
4606
4606
|
key: 0,
|
|
4607
4607
|
class: "yc-data-table-pagination__size"
|
|
4608
4608
|
};
|
|
4609
|
-
const _hoisted_7$
|
|
4610
|
-
const _hoisted_8$
|
|
4611
|
-
const _hoisted_9$
|
|
4612
|
-
const _hoisted_10$
|
|
4613
|
-
const _hoisted_11$
|
|
4614
|
-
const _hoisted_12$
|
|
4615
|
-
var _sfc_main$
|
|
4609
|
+
const _hoisted_7$v = { class: "yc-data-table-pagination__info" };
|
|
4610
|
+
const _hoisted_8$q = { class: "yc-data-table-pagination__actions" };
|
|
4611
|
+
const _hoisted_9$o = ["disabled"];
|
|
4612
|
+
const _hoisted_10$l = ["disabled"];
|
|
4613
|
+
const _hoisted_11$l = ["disabled"];
|
|
4614
|
+
const _hoisted_12$j = ["disabled"];
|
|
4615
|
+
var _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
4616
4616
|
...{
|
|
4617
4617
|
name: "DataTablePagination"
|
|
4618
4618
|
},
|
|
@@ -4649,27 +4649,27 @@ var _sfc_main$1A = /* @__PURE__ */ defineComponent({
|
|
|
4649
4649
|
return (_ctx, _cache) => {
|
|
4650
4650
|
const _component_el_option = resolveComponent("el-option");
|
|
4651
4651
|
const _component_el_select = resolveComponent("el-select");
|
|
4652
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
4652
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1e, [
|
|
4653
4653
|
createCommentVNode(" \u5DE6\u4FA7\uFF1A\u9009\u62E9\u72B6\u6001\u6216\u603B\u6570\u7EDF\u8BA1 (Classic Shadcn Selection Info) "),
|
|
4654
|
-
createElementVNode("div", _hoisted_2$
|
|
4654
|
+
createElementVNode("div", _hoisted_2$V, [
|
|
4655
4655
|
props.selectable ? (openBlock(), createElementBlock(
|
|
4656
4656
|
"span",
|
|
4657
|
-
_hoisted_3$
|
|
4657
|
+
_hoisted_3$O,
|
|
4658
4658
|
" \u5DF2\u9009\u62E9 " + toDisplayString(props.selectedCount) + " / \u5171 " + toDisplayString(props.totalCount) + " \u884C ",
|
|
4659
4659
|
1
|
|
4660
4660
|
/* TEXT */
|
|
4661
4661
|
)) : (openBlock(), createElementBlock(
|
|
4662
4662
|
"span",
|
|
4663
|
-
_hoisted_4$
|
|
4663
|
+
_hoisted_4$K,
|
|
4664
4664
|
" \u5171 " + toDisplayString(props.totalCount) + " \u6761\u6570\u636E ",
|
|
4665
4665
|
1
|
|
4666
4666
|
/* TEXT */
|
|
4667
4667
|
))
|
|
4668
4668
|
]),
|
|
4669
4669
|
createCommentVNode(" \u53F3\u4FA7\uFF1A\u6BCF\u9875\u6761\u6570\u9009\u62E9\u5668\u3001\u9875\u7801\u6307\u793A\u3001\u7FFB\u9875\u5FEB\u6377\u6309\u94AE "),
|
|
4670
|
-
createElementVNode("div", _hoisted_5$
|
|
4670
|
+
createElementVNode("div", _hoisted_5$C, [
|
|
4671
4671
|
createCommentVNode(" \u6BCF\u9875\u6761\u6570 "),
|
|
4672
|
-
props.showSizeChanger ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
4672
|
+
props.showSizeChanger ? (openBlock(), createElementBlock("div", _hoisted_6$z, [
|
|
4673
4673
|
_cache[4] || (_cache[4] = createElementVNode(
|
|
4674
4674
|
"span",
|
|
4675
4675
|
{ class: "yc-data-table-pagination__size-label" },
|
|
@@ -4705,13 +4705,13 @@ var _sfc_main$1A = /* @__PURE__ */ defineComponent({
|
|
|
4705
4705
|
createCommentVNode(" \u9875\u7801\u6307\u793A (Page X of Y) "),
|
|
4706
4706
|
createElementVNode(
|
|
4707
4707
|
"div",
|
|
4708
|
-
_hoisted_7$
|
|
4708
|
+
_hoisted_7$v,
|
|
4709
4709
|
" \u7B2C " + toDisplayString(props.currentPage) + " / " + toDisplayString(totalPages.value) + " \u9875 ",
|
|
4710
4710
|
1
|
|
4711
4711
|
/* TEXT */
|
|
4712
4712
|
),
|
|
4713
4713
|
createCommentVNode(" \u7FFB\u9875\u63A7\u5236\u6309\u94AE\u7EC4 "),
|
|
4714
|
-
createElementVNode("div", _hoisted_8$
|
|
4714
|
+
createElementVNode("div", _hoisted_8$q, [
|
|
4715
4715
|
createCommentVNode(" \u9996\u9875 << "),
|
|
4716
4716
|
createElementVNode("button", {
|
|
4717
4717
|
type: "button",
|
|
@@ -4735,7 +4735,7 @@ var _sfc_main$1A = /* @__PURE__ */ defineComponent({
|
|
|
4735
4735
|
-1
|
|
4736
4736
|
/* CACHED */
|
|
4737
4737
|
)
|
|
4738
|
-
])], 8, _hoisted_9$
|
|
4738
|
+
])], 8, _hoisted_9$o),
|
|
4739
4739
|
createCommentVNode(" \u4E0A\u4E00\u9875 < "),
|
|
4740
4740
|
createElementVNode("button", {
|
|
4741
4741
|
type: "button",
|
|
@@ -4758,7 +4758,7 @@ var _sfc_main$1A = /* @__PURE__ */ defineComponent({
|
|
|
4758
4758
|
-1
|
|
4759
4759
|
/* CACHED */
|
|
4760
4760
|
)
|
|
4761
|
-
])], 8, _hoisted_10$
|
|
4761
|
+
])], 8, _hoisted_10$l),
|
|
4762
4762
|
createCommentVNode(" \u4E0B\u4E00\u9875 > "),
|
|
4763
4763
|
createElementVNode("button", {
|
|
4764
4764
|
type: "button",
|
|
@@ -4781,7 +4781,7 @@ var _sfc_main$1A = /* @__PURE__ */ defineComponent({
|
|
|
4781
4781
|
-1
|
|
4782
4782
|
/* CACHED */
|
|
4783
4783
|
)
|
|
4784
|
-
])], 8, _hoisted_11$
|
|
4784
|
+
])], 8, _hoisted_11$l),
|
|
4785
4785
|
createCommentVNode(" \u672B\u9875 >> "),
|
|
4786
4786
|
createElementVNode("button", {
|
|
4787
4787
|
type: "button",
|
|
@@ -4805,7 +4805,7 @@ var _sfc_main$1A = /* @__PURE__ */ defineComponent({
|
|
|
4805
4805
|
-1
|
|
4806
4806
|
/* CACHED */
|
|
4807
4807
|
)
|
|
4808
|
-
])], 8, _hoisted_12$
|
|
4808
|
+
])], 8, _hoisted_12$j)
|
|
4809
4809
|
])
|
|
4810
4810
|
])
|
|
4811
4811
|
]);
|
|
@@ -4813,19 +4813,19 @@ var _sfc_main$1A = /* @__PURE__ */ defineComponent({
|
|
|
4813
4813
|
}
|
|
4814
4814
|
});
|
|
4815
4815
|
|
|
4816
|
-
const _hoisted_1$
|
|
4816
|
+
const _hoisted_1$1d = {
|
|
4817
4817
|
key: 0,
|
|
4818
4818
|
class: "yc-data-table-column-header__title"
|
|
4819
4819
|
};
|
|
4820
|
-
const _hoisted_2$
|
|
4821
|
-
const _hoisted_3$
|
|
4820
|
+
const _hoisted_2$U = { class: "yc-data-table-column-header__icon" };
|
|
4821
|
+
const _hoisted_3$N = {
|
|
4822
4822
|
key: 0,
|
|
4823
4823
|
viewBox: "0 0 24 24",
|
|
4824
4824
|
fill: "none",
|
|
4825
4825
|
stroke: "currentColor",
|
|
4826
4826
|
"stroke-width": "2.5"
|
|
4827
4827
|
};
|
|
4828
|
-
var _sfc_main$
|
|
4828
|
+
var _sfc_main$1A = /* @__PURE__ */ defineComponent({
|
|
4829
4829
|
...{
|
|
4830
4830
|
name: "DataTableColumnHeader"
|
|
4831
4831
|
},
|
|
@@ -4860,7 +4860,7 @@ var _sfc_main$1z = /* @__PURE__ */ defineComponent({
|
|
|
4860
4860
|
createCommentVNode(" \u4E0D\u652F\u6301\u6392\u5E8F\uFF1A\u7EAF\u6587\u672C "),
|
|
4861
4861
|
!__props.column.sortable ? (openBlock(), createElementBlock(
|
|
4862
4862
|
"span",
|
|
4863
|
-
_hoisted_1$
|
|
4863
|
+
_hoisted_1$1d,
|
|
4864
4864
|
toDisplayString(__props.column.label),
|
|
4865
4865
|
1
|
|
4866
4866
|
/* TEXT */
|
|
@@ -4884,9 +4884,9 @@ var _sfc_main$1z = /* @__PURE__ */ defineComponent({
|
|
|
4884
4884
|
1
|
|
4885
4885
|
/* TEXT */
|
|
4886
4886
|
),
|
|
4887
|
-
createElementVNode("span", _hoisted_2$
|
|
4887
|
+
createElementVNode("span", _hoisted_2$U, [
|
|
4888
4888
|
createCommentVNode(" \u5347\u5E8F "),
|
|
4889
|
-
__props.sortOrder === "ascending" ? (openBlock(), createElementBlock("svg", _hoisted_3$
|
|
4889
|
+
__props.sortOrder === "ascending" ? (openBlock(), createElementBlock("svg", _hoisted_3$N, [..._cache[0] || (_cache[0] = [
|
|
4890
4890
|
createElementVNode(
|
|
4891
4891
|
"path",
|
|
4892
4892
|
{ d: "m18 15-6-6-6 6" },
|
|
@@ -4956,8 +4956,8 @@ var _sfc_main$1z = /* @__PURE__ */ defineComponent({
|
|
|
4956
4956
|
}
|
|
4957
4957
|
});
|
|
4958
4958
|
|
|
4959
|
-
const _hoisted_1$
|
|
4960
|
-
var _sfc_main$
|
|
4959
|
+
const _hoisted_1$1c = { class: "yc-data-table-row-actions" };
|
|
4960
|
+
var _sfc_main$1z = /* @__PURE__ */ defineComponent({
|
|
4961
4961
|
...{
|
|
4962
4962
|
name: "DataTableRowActions"
|
|
4963
4963
|
},
|
|
@@ -4983,7 +4983,7 @@ var _sfc_main$1y = /* @__PURE__ */ defineComponent({
|
|
|
4983
4983
|
const _component_el_dropdown_item = resolveComponent("el-dropdown-item");
|
|
4984
4984
|
const _component_el_dropdown_menu = resolveComponent("el-dropdown-menu");
|
|
4985
4985
|
const _component_el_dropdown = resolveComponent("el-dropdown");
|
|
4986
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
4986
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1c, [
|
|
4987
4987
|
createVNode(_component_el_dropdown, {
|
|
4988
4988
|
trigger: "click",
|
|
4989
4989
|
onCommand: handleCommand
|
|
@@ -5072,27 +5072,27 @@ var _sfc_main$1y = /* @__PURE__ */ defineComponent({
|
|
|
5072
5072
|
}
|
|
5073
5073
|
});
|
|
5074
5074
|
|
|
5075
|
-
const _hoisted_1$
|
|
5075
|
+
const _hoisted_1$1b = {
|
|
5076
5076
|
key: 0,
|
|
5077
5077
|
class: "yc-data-table-header"
|
|
5078
5078
|
};
|
|
5079
|
-
const _hoisted_2$
|
|
5080
|
-
const _hoisted_3$
|
|
5081
|
-
const _hoisted_4$
|
|
5079
|
+
const _hoisted_2$T = { class: "yc-data-table-header__left" };
|
|
5080
|
+
const _hoisted_3$M = { class: "yc-data-table-header__title-row" };
|
|
5081
|
+
const _hoisted_4$J = {
|
|
5082
5082
|
key: 0,
|
|
5083
5083
|
class: "yc-data-table-header__title"
|
|
5084
5084
|
};
|
|
5085
|
-
const _hoisted_5$
|
|
5085
|
+
const _hoisted_5$B = {
|
|
5086
5086
|
key: 0,
|
|
5087
5087
|
class: "yc-data-table-header__desc"
|
|
5088
5088
|
};
|
|
5089
|
-
const _hoisted_6$
|
|
5090
|
-
const _hoisted_7$
|
|
5091
|
-
const _hoisted_8$
|
|
5092
|
-
const _hoisted_9$
|
|
5093
|
-
const _hoisted_10$
|
|
5094
|
-
const _hoisted_11$
|
|
5095
|
-
var _sfc_main$
|
|
5089
|
+
const _hoisted_6$y = { class: "yc-data-table-container" };
|
|
5090
|
+
const _hoisted_7$u = { class: "yc-data-table__copyable-cell" };
|
|
5091
|
+
const _hoisted_8$p = { class: "yc-data-table__copyable-text" };
|
|
5092
|
+
const _hoisted_9$n = ["onClick"];
|
|
5093
|
+
const _hoisted_10$k = { class: "yc-data-table__empty" };
|
|
5094
|
+
const _hoisted_11$k = { class: "yc-data-table__empty-text" };
|
|
5095
|
+
var _sfc_main$1y = /* @__PURE__ */ defineComponent({
|
|
5096
5096
|
...{
|
|
5097
5097
|
name: "YcDataTable"
|
|
5098
5098
|
},
|
|
@@ -5286,13 +5286,13 @@ var _sfc_main$1x = /* @__PURE__ */ defineComponent({
|
|
|
5286
5286
|
},
|
|
5287
5287
|
[
|
|
5288
5288
|
createCommentVNode(" \u5361\u7247\u5934\u90E8 (\u53EF\u9009) "),
|
|
5289
|
-
_ctx.$slots.header || props.title || props.description || props.badge ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
5289
|
+
_ctx.$slots.header || props.title || props.description || props.badge ? (openBlock(), createElementBlock("div", _hoisted_1$1b, [
|
|
5290
5290
|
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
5291
|
-
createElementVNode("div", _hoisted_2$
|
|
5292
|
-
createElementVNode("div", _hoisted_3$
|
|
5291
|
+
createElementVNode("div", _hoisted_2$T, [
|
|
5292
|
+
createElementVNode("div", _hoisted_3$M, [
|
|
5293
5293
|
props.title ? (openBlock(), createElementBlock(
|
|
5294
5294
|
"span",
|
|
5295
|
-
_hoisted_4$
|
|
5295
|
+
_hoisted_4$J,
|
|
5296
5296
|
toDisplayString(props.title),
|
|
5297
5297
|
1
|
|
5298
5298
|
/* TEXT */
|
|
@@ -5318,7 +5318,7 @@ var _sfc_main$1x = /* @__PURE__ */ defineComponent({
|
|
|
5318
5318
|
]),
|
|
5319
5319
|
props.description ? (openBlock(), createElementBlock(
|
|
5320
5320
|
"div",
|
|
5321
|
-
_hoisted_5$
|
|
5321
|
+
_hoisted_5$B,
|
|
5322
5322
|
toDisplayString(props.description),
|
|
5323
5323
|
1
|
|
5324
5324
|
/* TEXT */
|
|
@@ -5327,7 +5327,7 @@ var _sfc_main$1x = /* @__PURE__ */ defineComponent({
|
|
|
5327
5327
|
])
|
|
5328
5328
|
])) : createCommentVNode("v-if", true),
|
|
5329
5329
|
createCommentVNode(" Shadcn \u98CE\u683C\u9876\u90E8\u5DE5\u5177\u680F (\u641C\u7D22\u3001\u5206\u9762\u7B5B\u9009\u3001\u5217\u663E\u9690\u3001\u64CD\u4F5C\u63D2\u69FD) "),
|
|
5330
|
-
createVNode(_sfc_main$
|
|
5330
|
+
createVNode(_sfc_main$1C, {
|
|
5331
5331
|
columns: internalColumns.value,
|
|
5332
5332
|
searchable: props.searchable,
|
|
5333
5333
|
"search-placeholder": props.searchPlaceholder,
|
|
@@ -5346,7 +5346,7 @@ var _sfc_main$1x = /* @__PURE__ */ defineComponent({
|
|
|
5346
5346
|
/* FORWARDED */
|
|
5347
5347
|
}, 8, ["columns", "searchable", "search-placeholder", "filters", "show-column-visibility", "modelValue", "active-filters"]),
|
|
5348
5348
|
createCommentVNode(" \u8868\u683C\u6838\u5FC3\u5BB9\u5668 (\u6781\u7B80\u5706\u89D2\u5916\u8FB9\u6846) "),
|
|
5349
|
-
createElementVNode("div", _hoisted_6$
|
|
5349
|
+
createElementVNode("div", _hoisted_6$y, [
|
|
5350
5350
|
withDirectives((openBlock(), createBlock(_component_el_table, {
|
|
5351
5351
|
ref_key: "tableRef",
|
|
5352
5352
|
ref: tableRef,
|
|
@@ -5365,7 +5365,7 @@ var _sfc_main$1x = /* @__PURE__ */ defineComponent({
|
|
|
5365
5365
|
onSelectionChange: handleSelectionChange
|
|
5366
5366
|
}, {
|
|
5367
5367
|
empty: withCtx(() => [
|
|
5368
|
-
createElementVNode("div", _hoisted_10$
|
|
5368
|
+
createElementVNode("div", _hoisted_10$k, [
|
|
5369
5369
|
_cache[5] || (_cache[5] = createElementVNode(
|
|
5370
5370
|
"svg",
|
|
5371
5371
|
{
|
|
@@ -5387,7 +5387,7 @@ var _sfc_main$1x = /* @__PURE__ */ defineComponent({
|
|
|
5387
5387
|
)),
|
|
5388
5388
|
createElementVNode(
|
|
5389
5389
|
"span",
|
|
5390
|
-
_hoisted_11$
|
|
5390
|
+
_hoisted_11$k,
|
|
5391
5391
|
toDisplayString(props.emptyText),
|
|
5392
5392
|
1
|
|
5393
5393
|
/* TEXT */
|
|
@@ -5416,7 +5416,7 @@ var _sfc_main$1x = /* @__PURE__ */ defineComponent({
|
|
|
5416
5416
|
fixed: col.fixed
|
|
5417
5417
|
}, {
|
|
5418
5418
|
header: withCtx(() => [
|
|
5419
|
-
createVNode(_sfc_main$
|
|
5419
|
+
createVNode(_sfc_main$1A, {
|
|
5420
5420
|
column: col,
|
|
5421
5421
|
"sort-order": sortState.value.prop === col.prop ? sortState.value.order : null,
|
|
5422
5422
|
onSort: (order) => handleColumnSort(col, order)
|
|
@@ -5484,10 +5484,10 @@ var _sfc_main$1x = /* @__PURE__ */ defineComponent({
|
|
|
5484
5484
|
{ key: 2 },
|
|
5485
5485
|
[
|
|
5486
5486
|
createCommentVNode(" \u53EF\u4E00\u952E\u590D\u5236\u5B57\u6BB5 (\u5982 ID\u3001UUID\u3001Token) "),
|
|
5487
|
-
createElementVNode("div", _hoisted_7$
|
|
5487
|
+
createElementVNode("div", _hoisted_7$u, [
|
|
5488
5488
|
createElementVNode(
|
|
5489
5489
|
"span",
|
|
5490
|
-
_hoisted_8$
|
|
5490
|
+
_hoisted_8$p,
|
|
5491
5491
|
toDisplayString(row[col.prop]),
|
|
5492
5492
|
1
|
|
5493
5493
|
/* TEXT */
|
|
@@ -5520,7 +5520,7 @@ var _sfc_main$1x = /* @__PURE__ */ defineComponent({
|
|
|
5520
5520
|
-1
|
|
5521
5521
|
/* CACHED */
|
|
5522
5522
|
)
|
|
5523
|
-
])], 8, _hoisted_9$
|
|
5523
|
+
])], 8, _hoisted_9$n)
|
|
5524
5524
|
])
|
|
5525
5525
|
],
|
|
5526
5526
|
2112
|
|
@@ -5569,7 +5569,7 @@ var _sfc_main$1x = /* @__PURE__ */ defineComponent({
|
|
|
5569
5569
|
fixed: "right"
|
|
5570
5570
|
}, {
|
|
5571
5571
|
default: withCtx(({ row }) => [
|
|
5572
|
-
createVNode(_sfc_main$
|
|
5572
|
+
createVNode(_sfc_main$1z, {
|
|
5573
5573
|
actions: props.rowActions,
|
|
5574
5574
|
row,
|
|
5575
5575
|
onAction: handleRowAction
|
|
@@ -5586,7 +5586,7 @@ var _sfc_main$1x = /* @__PURE__ */ defineComponent({
|
|
|
5586
5586
|
])
|
|
5587
5587
|
]),
|
|
5588
5588
|
createCommentVNode(" Shadcn \u98CE\u683C\u5E95\u90E8\u72B6\u6001\u4E0E\u5206\u9875\u680F "),
|
|
5589
|
-
props.showPagination !== false && props.pagination !== false ? (openBlock(), createBlock(_sfc_main$
|
|
5589
|
+
props.showPagination !== false && props.pagination !== false ? (openBlock(), createBlock(_sfc_main$1B, {
|
|
5590
5590
|
key: 1,
|
|
5591
5591
|
"total-count": filteredData.value.length,
|
|
5592
5592
|
"selected-count": selectedRowsList.value.length,
|
|
@@ -5607,11 +5607,11 @@ var _sfc_main$1x = /* @__PURE__ */ defineComponent({
|
|
|
5607
5607
|
}
|
|
5608
5608
|
});
|
|
5609
5609
|
|
|
5610
|
-
const YcDataTable = withInstall(_sfc_main$
|
|
5611
|
-
const DataTableToolbar = withInstall(_sfc_main$
|
|
5612
|
-
const DataTablePagination = withInstall(_sfc_main$
|
|
5613
|
-
const DataTableColumnHeader = withInstall(_sfc_main$
|
|
5614
|
-
const DataTableRowActions = withInstall(_sfc_main$
|
|
5610
|
+
const YcDataTable = withInstall(_sfc_main$1y);
|
|
5611
|
+
const DataTableToolbar = withInstall(_sfc_main$1C);
|
|
5612
|
+
const DataTablePagination = withInstall(_sfc_main$1B);
|
|
5613
|
+
const DataTableColumnHeader = withInstall(_sfc_main$1A);
|
|
5614
|
+
const DataTableRowActions = withInstall(_sfc_main$1z);
|
|
5615
5615
|
const ReDataTable = YcDataTable;
|
|
5616
5616
|
const PlusDataTable = YcDataTable;
|
|
5617
5617
|
|
|
@@ -5685,7 +5685,7 @@ const DictStoreInjectionKey = Symbol("DictStore");
|
|
|
5685
5685
|
|
|
5686
5686
|
const QueryFilterConfigKey = Symbol("QueryFilterConfig");
|
|
5687
5687
|
|
|
5688
|
-
var _sfc_main$
|
|
5688
|
+
var _sfc_main$1x = /* @__PURE__ */ defineComponent({
|
|
5689
5689
|
...{
|
|
5690
5690
|
name: "PlusPagination"
|
|
5691
5691
|
},
|
|
@@ -5763,7 +5763,7 @@ var _sfc_main$1w = /* @__PURE__ */ defineComponent({
|
|
|
5763
5763
|
}
|
|
5764
5764
|
});
|
|
5765
5765
|
|
|
5766
|
-
const PlusPagination = _sfc_main$
|
|
5766
|
+
const PlusPagination = _sfc_main$1x;
|
|
5767
5767
|
|
|
5768
5768
|
//#region ../../packages/element-plus/version.ts
|
|
5769
5769
|
const version$2 = "2.14.8";
|
|
@@ -10399,7 +10399,7 @@ const versionIsLessThan260 = compareVersion(version$2, "2.6.0") < 0;
|
|
|
10399
10399
|
const versionIsLessThan299 = compareVersion(version$2, "2.9.9") < 0;
|
|
10400
10400
|
const getLabel$1 = (label) => label ? unref(label) : "";
|
|
10401
10401
|
|
|
10402
|
-
var _sfc_main$
|
|
10402
|
+
var _sfc_main$1w = /* @__PURE__ */ defineComponent({
|
|
10403
10403
|
...{
|
|
10404
10404
|
name: "PlusRadio"
|
|
10405
10405
|
},
|
|
@@ -10584,7 +10584,7 @@ var _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
|
10584
10584
|
}
|
|
10585
10585
|
});
|
|
10586
10586
|
|
|
10587
|
-
const PlusRadio = _sfc_main$
|
|
10587
|
+
const PlusRadio = _sfc_main$1w;
|
|
10588
10588
|
|
|
10589
10589
|
const DEFAULT_TOOLTIP = "\u5DE6\u53F3\u6EDA\u52A8\uFF1A\u6309\u4F4FShift\u952E\u6EDA\u52A8\u6ED1\u8F6E";
|
|
10590
10590
|
const DEFAULT_HORIZONTAL_BAR_SELECTOR = ".el-scrollbar__bar.is-horizontal";
|
|
@@ -11364,13 +11364,13 @@ function useDrawerFormConfig() {
|
|
|
11364
11364
|
return config.drawerForm;
|
|
11365
11365
|
}
|
|
11366
11366
|
|
|
11367
|
-
const _hoisted_1$
|
|
11367
|
+
const _hoisted_1$1a = {
|
|
11368
11368
|
key: 0,
|
|
11369
11369
|
class: "plus-table-action-bar__dropdown__link"
|
|
11370
11370
|
};
|
|
11371
|
-
const _hoisted_2$
|
|
11372
|
-
const _hoisted_3$
|
|
11373
|
-
var _sfc_main$
|
|
11371
|
+
const _hoisted_2$S = { class: "plus-table-action-bar__dropdown__link" };
|
|
11372
|
+
const _hoisted_3$L = { class: "plus-table-action-bar__more-text" };
|
|
11373
|
+
var _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
11374
11374
|
...{
|
|
11375
11375
|
name: "PlusTableActionBar"
|
|
11376
11376
|
},
|
|
@@ -11686,7 +11686,7 @@ var _sfc_main$1u = /* @__PURE__ */ defineComponent({
|
|
|
11686
11686
|
)
|
|
11687
11687
|
]),
|
|
11688
11688
|
default: withCtx(() => [
|
|
11689
|
-
__props.moreType === "icon" ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
11689
|
+
__props.moreType === "icon" ? (openBlock(), createElementBlock("span", _hoisted_1$1a, [
|
|
11690
11690
|
renderSlot(_ctx.$slots, "action-bar-more-icon", {}, () => [
|
|
11691
11691
|
createVNode(unref(ElIcon), null, {
|
|
11692
11692
|
default: withCtx(() => [
|
|
@@ -11701,10 +11701,10 @@ var _sfc_main$1u = /* @__PURE__ */ defineComponent({
|
|
|
11701
11701
|
{ key: 1 },
|
|
11702
11702
|
[
|
|
11703
11703
|
createCommentVNode(" \u9ED8\u8BA4 "),
|
|
11704
|
-
createElementVNode("span", _hoisted_2$
|
|
11704
|
+
createElementVNode("span", _hoisted_2$S, [
|
|
11705
11705
|
createElementVNode(
|
|
11706
11706
|
"span",
|
|
11707
|
-
_hoisted_3$
|
|
11707
|
+
_hoisted_3$L,
|
|
11708
11708
|
toDisplayString(unref(t)("plus.table.more")),
|
|
11709
11709
|
1
|
|
11710
11710
|
/* TEXT */
|
|
@@ -11735,7 +11735,7 @@ var _sfc_main$1u = /* @__PURE__ */ defineComponent({
|
|
|
11735
11735
|
}
|
|
11736
11736
|
});
|
|
11737
11737
|
|
|
11738
|
-
var _sfc_main$
|
|
11738
|
+
var _sfc_main$1u = /* @__PURE__ */ defineComponent({
|
|
11739
11739
|
...{
|
|
11740
11740
|
name: "PlusRender"
|
|
11741
11741
|
},
|
|
@@ -11803,10 +11803,10 @@ var _sfc_main$1t = /* @__PURE__ */ defineComponent({
|
|
|
11803
11803
|
}
|
|
11804
11804
|
});
|
|
11805
11805
|
|
|
11806
|
-
const PlusRender = _sfc_main$
|
|
11806
|
+
const PlusRender = _sfc_main$1u;
|
|
11807
11807
|
|
|
11808
|
-
const _hoisted_1$
|
|
11809
|
-
var _sfc_main$
|
|
11808
|
+
const _hoisted_1$19 = { class: "plus-date-picker__middle" };
|
|
11809
|
+
var _sfc_main$1t = /* @__PURE__ */ defineComponent({
|
|
11810
11810
|
...{
|
|
11811
11811
|
name: "PlusDatePicker"
|
|
11812
11812
|
},
|
|
@@ -11911,7 +11911,7 @@ var _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
|
11911
11911
|
}), null, 16, ["modelValue", "type", "value-format", "placeholder", "disabled"]),
|
|
11912
11912
|
createElementVNode(
|
|
11913
11913
|
"span",
|
|
11914
|
-
_hoisted_1$
|
|
11914
|
+
_hoisted_1$19,
|
|
11915
11915
|
toDisplayString(__props.rangeSeparator),
|
|
11916
11916
|
1
|
|
11917
11917
|
/* TEXT */
|
|
@@ -11942,9 +11942,9 @@ var _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
|
11942
11942
|
}
|
|
11943
11943
|
});
|
|
11944
11944
|
|
|
11945
|
-
const PlusDatePicker = _sfc_main$
|
|
11945
|
+
const PlusDatePicker = _sfc_main$1t;
|
|
11946
11946
|
|
|
11947
|
-
var _sfc_main$
|
|
11947
|
+
var _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
11948
11948
|
...{
|
|
11949
11949
|
name: "PlusInputTag"
|
|
11950
11950
|
},
|
|
@@ -12081,7 +12081,7 @@ var _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
|
12081
12081
|
}
|
|
12082
12082
|
});
|
|
12083
12083
|
|
|
12084
|
-
const PlusInputTag = _sfc_main$
|
|
12084
|
+
const PlusInputTag = _sfc_main$1s;
|
|
12085
12085
|
|
|
12086
12086
|
const FieldComponentMap = {
|
|
12087
12087
|
// plus
|
|
@@ -12239,18 +12239,18 @@ const findPlaceholderOverflow = (root, target, point, measure = measureTextWidth
|
|
|
12239
12239
|
return hovered ? hitFromInput(hovered, measure) : null;
|
|
12240
12240
|
};
|
|
12241
12241
|
|
|
12242
|
-
const _hoisted_1$
|
|
12243
|
-
const _hoisted_2$
|
|
12244
|
-
const _hoisted_3$
|
|
12242
|
+
const _hoisted_1$18 = { class: "el-form-item__error" };
|
|
12243
|
+
const _hoisted_2$R = { class: "plus-form-item__label" };
|
|
12244
|
+
const _hoisted_3$K = {
|
|
12245
12245
|
key: 0,
|
|
12246
12246
|
class: "plus-form-item-field"
|
|
12247
12247
|
};
|
|
12248
|
-
const _hoisted_4$
|
|
12248
|
+
const _hoisted_4$I = {
|
|
12249
12249
|
key: 1,
|
|
12250
12250
|
class: "plus-form-item-field"
|
|
12251
12251
|
};
|
|
12252
12252
|
const TOOLTIP_SHOW_DELAY = 300;
|
|
12253
|
-
var _sfc_main$
|
|
12253
|
+
var _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
12254
12254
|
...{
|
|
12255
12255
|
name: "PlusFormItem"
|
|
12256
12256
|
},
|
|
@@ -12557,7 +12557,7 @@ var _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
12557
12557
|
onMouseleave: hidePlaceholderTooltip
|
|
12558
12558
|
},
|
|
12559
12559
|
[
|
|
12560
|
-
__props.renderField && unref(isFunction)(__props.renderField) ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
12560
|
+
__props.renderField && unref(isFunction)(__props.renderField) ? (openBlock(), createElementBlock("div", _hoisted_3$K, [
|
|
12561
12561
|
valueIsReady.value ? (openBlock(), createBlock(unref(PlusRender), {
|
|
12562
12562
|
key: 0,
|
|
12563
12563
|
render: __props.renderField,
|
|
@@ -12567,7 +12567,7 @@ var _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
12567
12567
|
"render-type": "form",
|
|
12568
12568
|
"handle-change": handleChange
|
|
12569
12569
|
}, null, 8, ["render", "params", "callback-value", "custom-field-props"])) : createCommentVNode("v-if", true)
|
|
12570
|
-
])) : _ctx.$slots[unref(getFieldSlotName)(__props.prop)] ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
12570
|
+
])) : _ctx.$slots[unref(getFieldSlotName)(__props.prop)] ? (openBlock(), createElementBlock("div", _hoisted_4$I, [
|
|
12571
12571
|
renderSlot(_ctx.$slots, unref(getFieldSlotName)(__props.prop), mergeProps(params.value, { column: props }))
|
|
12572
12572
|
])) : __props.valueType === "select" && customFieldProps.value.multiple === true ? (openBlock(), createBlock(unref(ElSelect$1), mergeProps({
|
|
12573
12573
|
key: 2,
|
|
@@ -12921,7 +12921,7 @@ var _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
12921
12921
|
unref(isFunction)(__props.renderErrorMessage) ? {
|
|
12922
12922
|
name: "error",
|
|
12923
12923
|
fn: withCtx(({ error }) => [
|
|
12924
|
-
createElementVNode("div", _hoisted_1$
|
|
12924
|
+
createElementVNode("div", _hoisted_1$18, [
|
|
12925
12925
|
(openBlock(), createBlock(resolveDynamicComponent(__props.renderErrorMessage), mergeProps(props, {
|
|
12926
12926
|
value: state.value,
|
|
12927
12927
|
error,
|
|
@@ -12934,7 +12934,7 @@ var _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
12934
12934
|
__props.hasLabel ? {
|
|
12935
12935
|
name: "label",
|
|
12936
12936
|
fn: withCtx(({ label: currentLabel }) => [
|
|
12937
|
-
createElementVNode("span", _hoisted_2$
|
|
12937
|
+
createElementVNode("span", _hoisted_2$R, [
|
|
12938
12938
|
createVNode(unref(ElTooltip$1), {
|
|
12939
12939
|
visible: labelTooltipVisible.value,
|
|
12940
12940
|
"onUpdate:visible": _cache[0] || (_cache[0] = ($event) => labelTooltipVisible.value = $event),
|
|
@@ -13018,9 +13018,9 @@ var _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
13018
13018
|
}
|
|
13019
13019
|
});
|
|
13020
13020
|
|
|
13021
|
-
const PlusFormItem = _sfc_main$
|
|
13021
|
+
const PlusFormItem = _sfc_main$1r;
|
|
13022
13022
|
|
|
13023
|
-
var _sfc_main$
|
|
13023
|
+
var _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
13024
13024
|
...{
|
|
13025
13025
|
name: "PlusCollapseTransition"
|
|
13026
13026
|
},
|
|
@@ -13071,15 +13071,15 @@ var _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
|
13071
13071
|
}
|
|
13072
13072
|
});
|
|
13073
13073
|
|
|
13074
|
-
const _hoisted_1$
|
|
13074
|
+
const _hoisted_1$17 = {
|
|
13075
13075
|
key: 0,
|
|
13076
13076
|
class: "plus-form-item-previous"
|
|
13077
13077
|
};
|
|
13078
|
-
const _hoisted_2$
|
|
13078
|
+
const _hoisted_2$Q = {
|
|
13079
13079
|
key: 1,
|
|
13080
13080
|
class: "plus-form-item-extra"
|
|
13081
13081
|
};
|
|
13082
|
-
var _sfc_main$
|
|
13082
|
+
var _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
13083
13083
|
...{
|
|
13084
13084
|
name: "PlusFormContent"
|
|
13085
13085
|
},
|
|
@@ -13152,7 +13152,7 @@ var _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
|
13152
13152
|
class: ["plus-form__row", layoutRowClass.value]
|
|
13153
13153
|
}), {
|
|
13154
13154
|
default: withCtx(() => [
|
|
13155
|
-
createVNode(_sfc_main$
|
|
13155
|
+
createVNode(_sfc_main$1q, {
|
|
13156
13156
|
"collapse-duration": __props.collapseDuration,
|
|
13157
13157
|
"collapse-transition": __props.collapseTransition
|
|
13158
13158
|
}, {
|
|
@@ -13168,7 +13168,7 @@ var _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
|
13168
13168
|
}), {
|
|
13169
13169
|
default: withCtx(() => [
|
|
13170
13170
|
createCommentVNode(" el-form-item\u4E0A\u4E00\u884C\u7684\u5185\u5BB9 "),
|
|
13171
|
-
item.renderPrevious || _ctx.$slots[unref(getPreviousSlotName)(item.prop)] ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
13171
|
+
item.renderPrevious || _ctx.$slots[unref(getPreviousSlotName)(item.prop)] ? (openBlock(), createElementBlock("div", _hoisted_1$17, [
|
|
13172
13172
|
unref(isFunction)(item.renderPrevious) ? (openBlock(), createBlock(
|
|
13173
13173
|
resolveDynamicComponent(item.renderPrevious),
|
|
13174
13174
|
mergeProps({
|
|
@@ -13214,7 +13214,7 @@ var _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
|
13214
13214
|
} : void 0
|
|
13215
13215
|
]), 1040, ["model-value", "clearable", "has-label", "ellipsis", "onChange"]),
|
|
13216
13216
|
createCommentVNode(" el-form-item \u4E0B\u4E00\u884C\u989D\u5916\u7684\u5185\u5BB9 "),
|
|
13217
|
-
item.renderExtra || _ctx.$slots[unref(getExtraSlotName)(item.prop)] ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
13217
|
+
item.renderExtra || _ctx.$slots[unref(getExtraSlotName)(item.prop)] ? (openBlock(), createElementBlock("div", _hoisted_2$Q, [
|
|
13218
13218
|
item.renderExtra && unref(isFunction)(item.renderExtra) ? (openBlock(), createBlock(
|
|
13219
13219
|
resolveDynamicComponent(item.renderExtra),
|
|
13220
13220
|
mergeProps({
|
|
@@ -13248,8 +13248,8 @@ var _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
|
13248
13248
|
}
|
|
13249
13249
|
});
|
|
13250
13250
|
|
|
13251
|
-
const _hoisted_1$
|
|
13252
|
-
var _sfc_main$
|
|
13251
|
+
const _hoisted_1$16 = { class: "plus-form__group__item__icon" };
|
|
13252
|
+
var _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
13253
13253
|
...{
|
|
13254
13254
|
name: "PlusForm",
|
|
13255
13255
|
inheritAttrs: false
|
|
@@ -13415,7 +13415,7 @@ var _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
|
13415
13415
|
icon: groupItem.icon,
|
|
13416
13416
|
index
|
|
13417
13417
|
}, () => [
|
|
13418
|
-
createElementVNode("div", _hoisted_1$
|
|
13418
|
+
createElementVNode("div", _hoisted_1$16, [
|
|
13419
13419
|
groupItem.icon ? (openBlock(), createBlock(
|
|
13420
13420
|
unref(ElIcon),
|
|
13421
13421
|
{ key: 0 },
|
|
@@ -13438,7 +13438,7 @@ var _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
|
13438
13438
|
])
|
|
13439
13439
|
]),
|
|
13440
13440
|
default: withCtx(() => [
|
|
13441
|
-
_ctx.$slots[unref(getFormGroupSlotName)(groupItem.name)] ? renderSlot(_ctx.$slots, unref(getFormGroupSlotName)(groupItem.name), mergeProps({ ref_for: true }, groupItem, { index }), void 0, void 0, 0) : (openBlock(), createBlock(_sfc_main$
|
|
13441
|
+
_ctx.$slots[unref(getFormGroupSlotName)(groupItem.name)] ? renderSlot(_ctx.$slots, unref(getFormGroupSlotName)(groupItem.name), mergeProps({ ref_for: true }, groupItem, { index }), void 0, void 0, 0) : (openBlock(), createBlock(_sfc_main$1p, {
|
|
13442
13442
|
key: 1,
|
|
13443
13443
|
modelValue: values.value,
|
|
13444
13444
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => values.value = $event),
|
|
@@ -13480,7 +13480,7 @@ var _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
|
13480
13480
|
{ key: 1 },
|
|
13481
13481
|
[
|
|
13482
13482
|
createCommentVNode(" \u666E\u901A\u8868\u5355 "),
|
|
13483
|
-
createVNode(_sfc_main$
|
|
13483
|
+
createVNode(_sfc_main$1p, {
|
|
13484
13484
|
modelValue: values.value,
|
|
13485
13485
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => values.value = $event),
|
|
13486
13486
|
"row-props": __props.rowProps,
|
|
@@ -13564,7 +13564,7 @@ var _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
|
13564
13564
|
}
|
|
13565
13565
|
});
|
|
13566
13566
|
|
|
13567
|
-
const PlusForm = _sfc_main$
|
|
13567
|
+
const PlusForm = _sfc_main$1o;
|
|
13568
13568
|
|
|
13569
13569
|
const DisplayComponentMap = {
|
|
13570
13570
|
img: {
|
|
@@ -13605,9 +13605,9 @@ const DisplayComponentMap = {
|
|
|
13605
13605
|
const hasDisplayComponent = (valueType) => Object.keys(DisplayComponentMap).includes(valueType);
|
|
13606
13606
|
const getDisplayComponent = (valueType) => Reflect.get(DisplayComponentMap, valueType) || {};
|
|
13607
13607
|
|
|
13608
|
-
const _hoisted_1$
|
|
13609
|
-
const _hoisted_2$
|
|
13610
|
-
var _sfc_main$
|
|
13608
|
+
const _hoisted_1$15 = ["innerHTML"];
|
|
13609
|
+
const _hoisted_2$P = { class: "plus-display-item" };
|
|
13610
|
+
var _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
13611
13611
|
...{
|
|
13612
13612
|
name: "PlusDisplayItem"
|
|
13613
13613
|
},
|
|
@@ -13997,7 +13997,7 @@ var _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
|
13997
13997
|
createElementVNode("span", {
|
|
13998
13998
|
class: "plus-display-item",
|
|
13999
13999
|
innerHTML: __props.column.renderHTML(displayValue.value, renderParams.value)
|
|
14000
|
-
}, null, 8, _hoisted_1$
|
|
14000
|
+
}, null, 8, _hoisted_1$15)
|
|
14001
14001
|
],
|
|
14002
14002
|
2112
|
|
14003
14003
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
@@ -14116,7 +14116,7 @@ var _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
|
14116
14116
|
{ key: 5 },
|
|
14117
14117
|
[
|
|
14118
14118
|
createCommentVNode(" \u590D\u5236 "),
|
|
14119
|
-
createElementVNode("span", _hoisted_2$
|
|
14119
|
+
createElementVNode("span", _hoisted_2$P, [
|
|
14120
14120
|
createTextVNode(
|
|
14121
14121
|
toDisplayString(formatterValue.value) + " ",
|
|
14122
14122
|
1
|
|
@@ -14274,11 +14274,11 @@ var _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
|
14274
14274
|
}
|
|
14275
14275
|
});
|
|
14276
14276
|
|
|
14277
|
-
const PlusDisplayItem = _sfc_main$
|
|
14277
|
+
const PlusDisplayItem = _sfc_main$1n;
|
|
14278
14278
|
|
|
14279
|
-
const _hoisted_1$
|
|
14280
|
-
const _hoisted_2$
|
|
14281
|
-
var _sfc_main$
|
|
14279
|
+
const _hoisted_1$14 = { class: "plus-table-column__header-text" };
|
|
14280
|
+
const _hoisted_2$O = { class: "plus-table-column__header-text" };
|
|
14281
|
+
var _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
14282
14282
|
...{
|
|
14283
14283
|
name: "PlusTableColumn"
|
|
14284
14284
|
},
|
|
@@ -14412,7 +14412,7 @@ var _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
14412
14412
|
default: withCtx(() => [
|
|
14413
14413
|
createElementVNode(
|
|
14414
14414
|
"span",
|
|
14415
|
-
_hoisted_1$
|
|
14415
|
+
_hoisted_1$14,
|
|
14416
14416
|
toDisplayString(unref(getLabel$1)(item.label)),
|
|
14417
14417
|
1
|
|
14418
14418
|
/* TEXT */
|
|
@@ -14427,7 +14427,7 @@ var _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
14427
14427
|
createCommentVNode(" \u542F\u7528\u7701\u7565\u4F46\u7981\u7528 tooltip \u65F6 "),
|
|
14428
14428
|
createElementVNode(
|
|
14429
14429
|
"span",
|
|
14430
|
-
_hoisted_2$
|
|
14430
|
+
_hoisted_2$O,
|
|
14431
14431
|
toDisplayString(unref(getLabel$1)(item.label)),
|
|
14432
14432
|
1
|
|
14433
14433
|
/* TEXT */
|
|
@@ -14556,7 +14556,7 @@ var _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
14556
14556
|
}
|
|
14557
14557
|
});
|
|
14558
14558
|
|
|
14559
|
-
var _sfc_main$
|
|
14559
|
+
var _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
14560
14560
|
...{
|
|
14561
14561
|
name: "PlusTableTableColumnIndex"
|
|
14562
14562
|
},
|
|
@@ -17279,8 +17279,8 @@ _extends(Remove, {
|
|
|
17279
17279
|
Sortable.mount(new AutoScrollPlugin());
|
|
17280
17280
|
Sortable.mount(Remove, Revert);
|
|
17281
17281
|
|
|
17282
|
-
const _hoisted_1$
|
|
17283
|
-
var _sfc_main$
|
|
17282
|
+
const _hoisted_1$13 = { class: "plus-table-column-drag-icon" };
|
|
17283
|
+
var _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
17284
17284
|
...{
|
|
17285
17285
|
name: "PlusTableColumnDragSort"
|
|
17286
17286
|
},
|
|
@@ -17331,7 +17331,7 @@ var _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
17331
17331
|
"class-name": "plus-table-column-drag-sort"
|
|
17332
17332
|
}, __props.dragSortableTableColumnProps), {
|
|
17333
17333
|
default: withCtx(() => [
|
|
17334
|
-
createElementVNode("span", _hoisted_1$
|
|
17334
|
+
createElementVNode("span", _hoisted_1$13, [
|
|
17335
17335
|
renderSlot(_ctx.$slots, "drag-sort-icon", {}, () => [
|
|
17336
17336
|
_cache[0] || (_cache[0] = createTextVNode(
|
|
17337
17337
|
"\u2637",
|
|
@@ -17348,11 +17348,11 @@ var _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
17348
17348
|
}
|
|
17349
17349
|
});
|
|
17350
17350
|
|
|
17351
|
-
const _hoisted_1$
|
|
17351
|
+
const _hoisted_1$12 = {
|
|
17352
17352
|
key: 0,
|
|
17353
17353
|
style: { "padding-top": "12px" }
|
|
17354
17354
|
};
|
|
17355
|
-
var _sfc_main$
|
|
17355
|
+
var _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
17356
17356
|
...{
|
|
17357
17357
|
name: "PlusPopover"
|
|
17358
17358
|
},
|
|
@@ -17411,7 +17411,7 @@ var _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
17411
17411
|
]),
|
|
17412
17412
|
default: withCtx(() => [
|
|
17413
17413
|
renderSlot(_ctx.$slots, "default"),
|
|
17414
|
-
__props.hasShowBottomButton ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
17414
|
+
__props.hasShowBottomButton ? (openBlock(), createElementBlock("div", _hoisted_1$12, [
|
|
17415
17415
|
createVNode(unref(ElButton), {
|
|
17416
17416
|
size: "small",
|
|
17417
17417
|
plain: "",
|
|
@@ -17452,21 +17452,21 @@ var _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
17452
17452
|
}
|
|
17453
17453
|
});
|
|
17454
17454
|
|
|
17455
|
-
const PlusPopover = _sfc_main$
|
|
17455
|
+
const PlusPopover = _sfc_main$1j;
|
|
17456
17456
|
|
|
17457
|
-
const _hoisted_1$
|
|
17458
|
-
const _hoisted_2$
|
|
17459
|
-
const _hoisted_3$
|
|
17460
|
-
const _hoisted_4$
|
|
17461
|
-
const _hoisted_5$
|
|
17462
|
-
const _hoisted_6$
|
|
17463
|
-
const _hoisted_7$
|
|
17457
|
+
const _hoisted_1$11 = { class: "plus-table-title-bar" };
|
|
17458
|
+
const _hoisted_2$N = { class: "plus-table-title-bar__title" };
|
|
17459
|
+
const _hoisted_3$J = { class: "plus-table-title-bar__toolbar" };
|
|
17460
|
+
const _hoisted_4$H = { class: "plus-table-title-bar__toolbar__density" };
|
|
17461
|
+
const _hoisted_5$A = { class: "plus-table-checkbox-checkAll" };
|
|
17462
|
+
const _hoisted_6$x = { class: "plus-table-checkbox-actions" };
|
|
17463
|
+
const _hoisted_7$t = {
|
|
17464
17464
|
key: 0,
|
|
17465
17465
|
class: "plus-table-checkbox-handle"
|
|
17466
17466
|
};
|
|
17467
|
-
const _hoisted_8$
|
|
17468
|
-
const _hoisted_9$
|
|
17469
|
-
var _sfc_main$
|
|
17467
|
+
const _hoisted_8$o = { key: 1 };
|
|
17468
|
+
const _hoisted_9$m = { key: 1 };
|
|
17469
|
+
var _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
17470
17470
|
...{
|
|
17471
17471
|
name: "PlusTableToolbar"
|
|
17472
17472
|
},
|
|
@@ -17635,8 +17635,8 @@ var _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
17635
17635
|
});
|
|
17636
17636
|
return (_ctx, _cache) => {
|
|
17637
17637
|
var _a, _b, _c;
|
|
17638
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
17639
|
-
createElementVNode("div", _hoisted_2$
|
|
17638
|
+
return openBlock(), createElementBlock("div", _hoisted_1$11, [
|
|
17639
|
+
createElementVNode("div", _hoisted_2$N, [
|
|
17640
17640
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
17641
17641
|
createTextVNode(
|
|
17642
17642
|
toDisplayString(titleBarConfig.value.title),
|
|
@@ -17645,7 +17645,7 @@ var _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
17645
17645
|
)
|
|
17646
17646
|
], true)
|
|
17647
17647
|
]),
|
|
17648
|
-
createElementVNode("div", _hoisted_3$
|
|
17648
|
+
createElementVNode("div", _hoisted_3$J, [
|
|
17649
17649
|
renderSlot(_ctx.$slots, "toolbar", {}, void 0, true),
|
|
17650
17650
|
((_a = titleBarConfig.value) == null ? void 0 : _a.refresh) === true ? (openBlock(), createElementBlock("span", {
|
|
17651
17651
|
key: 0,
|
|
@@ -17724,7 +17724,7 @@ var _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
17724
17724
|
}, 8, ["content"])
|
|
17725
17725
|
]),
|
|
17726
17726
|
default: withCtx(() => [
|
|
17727
|
-
createElementVNode("div", _hoisted_4$
|
|
17727
|
+
createElementVNode("div", _hoisted_4$H, [
|
|
17728
17728
|
(openBlock(), createElementBlock(
|
|
17729
17729
|
Fragment,
|
|
17730
17730
|
null,
|
|
@@ -17791,7 +17791,7 @@ var _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
17791
17791
|
default: withCtx(() => {
|
|
17792
17792
|
var _a2, _b2, _c2, _d;
|
|
17793
17793
|
return [
|
|
17794
|
-
createElementVNode("div", _hoisted_5$
|
|
17794
|
+
createElementVNode("div", _hoisted_5$A, [
|
|
17795
17795
|
createVNode(unref(ElCheckbox), {
|
|
17796
17796
|
modelValue: state.checkAll,
|
|
17797
17797
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => state.checkAll = $event),
|
|
@@ -17808,7 +17808,7 @@ var _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
17808
17808
|
_: 1
|
|
17809
17809
|
/* STABLE */
|
|
17810
17810
|
}, 8, ["modelValue", "indeterminate"]),
|
|
17811
|
-
createElementVNode("div", _hoisted_6$
|
|
17811
|
+
createElementVNode("div", _hoisted_6$x, [
|
|
17812
17812
|
((_a2 = columnSetting.value) == null ? void 0 : _a2.confirm) ? (openBlock(), createBlock(unref(ElLink), {
|
|
17813
17813
|
key: 0,
|
|
17814
17814
|
type: "primary",
|
|
@@ -17869,7 +17869,7 @@ var _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
17869
17869
|
key: item.prop,
|
|
17870
17870
|
class: "plus-table-checkbox-item"
|
|
17871
17871
|
}, [
|
|
17872
|
-
((_a3 = columnSetting.value) == null ? void 0 : _a3.dragSort) !== false ? (openBlock(), createElementBlock("div", _hoisted_7$
|
|
17872
|
+
((_a3 = columnSetting.value) == null ? void 0 : _a3.dragSort) !== false ? (openBlock(), createElementBlock("div", _hoisted_7$t, [
|
|
17873
17873
|
renderSlot(_ctx.$slots, "drag-sort-icon", {}, () => [
|
|
17874
17874
|
_cache[3] || (_cache[3] = createTextVNode(
|
|
17875
17875
|
"\u2637",
|
|
@@ -17902,7 +17902,7 @@ var _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
17902
17902
|
/* DYNAMIC */
|
|
17903
17903
|
}, 1032, ["content"])) : (openBlock(), createElementBlock(
|
|
17904
17904
|
"span",
|
|
17905
|
-
_hoisted_8$
|
|
17905
|
+
_hoisted_8$o,
|
|
17906
17906
|
toDisplayString(item.label ? getLabelValue(item.label) : ""),
|
|
17907
17907
|
1
|
|
17908
17908
|
/* TEXT */
|
|
@@ -17937,7 +17937,7 @@ var _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
17937
17937
|
/* DYNAMIC */
|
|
17938
17938
|
}, 1032, ["content"])) : (openBlock(), createElementBlock(
|
|
17939
17939
|
"span",
|
|
17940
|
-
_hoisted_9$
|
|
17940
|
+
_hoisted_9$m,
|
|
17941
17941
|
toDisplayString(item.label ? getLabelValue(item.label) : ""),
|
|
17942
17942
|
1
|
|
17943
17943
|
/* TEXT */
|
|
@@ -17982,7 +17982,7 @@ var _export_sfc$1 = (sfc, props) => {
|
|
|
17982
17982
|
return target;
|
|
17983
17983
|
};
|
|
17984
17984
|
|
|
17985
|
-
var PlusTableTitleBar = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
17985
|
+
var PlusTableTitleBar = /* @__PURE__ */ _export_sfc$1(_sfc_main$1i, [["__scopeId", "data-v-33b054bf"]]);
|
|
17986
17986
|
|
|
17987
17987
|
const TABLE_DENSITY_STORAGE_KEY = "yc-table-density";
|
|
17988
17988
|
const VALID_TABLE_DENSITY = ["default", "large", "small"];
|
|
@@ -18005,8 +18005,8 @@ const applyTableDensity = (nextSize) => {
|
|
|
18005
18005
|
}
|
|
18006
18006
|
};
|
|
18007
18007
|
|
|
18008
|
-
const _hoisted_1
|
|
18009
|
-
var _sfc_main$
|
|
18008
|
+
const _hoisted_1$10 = { class: "plus-table-expand-col" };
|
|
18009
|
+
var _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
18010
18010
|
...{
|
|
18011
18011
|
name: "PlusTable",
|
|
18012
18012
|
inheritAttrs: false
|
|
@@ -18364,14 +18364,14 @@ var _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
|
18364
18364
|
/* FULL_PROPS */
|
|
18365
18365
|
)) : createCommentVNode("v-if", true),
|
|
18366
18366
|
createCommentVNode(" \u5E8F\u53F7\u680F "),
|
|
18367
|
-
__props.hasIndexColumn ? (openBlock(), createBlock(_sfc_main$
|
|
18367
|
+
__props.hasIndexColumn ? (openBlock(), createBlock(_sfc_main$1l, {
|
|
18368
18368
|
key: 2,
|
|
18369
18369
|
"index-content-style": __props.indexContentStyle,
|
|
18370
18370
|
"index-table-column-props": __props.indexTableColumnProps,
|
|
18371
18371
|
"page-info": (_a2 = __props.pagination) == null ? void 0 : _a2.modelValue
|
|
18372
18372
|
}, null, 8, ["index-content-style", "index-table-column-props", "page-info"])) : createCommentVNode("v-if", true),
|
|
18373
18373
|
createCommentVNode(" \u62D6\u62FD\u884C "),
|
|
18374
|
-
__props.dragSortable ? (openBlock(), createBlock(_sfc_main$
|
|
18374
|
+
__props.dragSortable ? (openBlock(), createBlock(_sfc_main$1k, {
|
|
18375
18375
|
key: 3,
|
|
18376
18376
|
sortable: __props.dragSortable,
|
|
18377
18377
|
"drag-sortable-table-column-props": __props.dragSortableTableColumnProps,
|
|
@@ -18398,7 +18398,7 @@ var _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
|
18398
18398
|
}, __props.expandTableColumnProps),
|
|
18399
18399
|
{
|
|
18400
18400
|
default: withCtx((scoped) => [
|
|
18401
|
-
createElementVNode("div", _hoisted_1
|
|
18401
|
+
createElementVNode("div", _hoisted_1$10, [
|
|
18402
18402
|
renderSlot(_ctx.$slots, "expand", mergeProps({
|
|
18403
18403
|
index: scoped.$index
|
|
18404
18404
|
}, scoped))
|
|
@@ -18412,7 +18412,7 @@ var _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
|
18412
18412
|
)) : createCommentVNode("v-if", true),
|
|
18413
18413
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
18414
18414
|
createCommentVNode("\u914D\u7F6E\u6E32\u67D3\u680F "),
|
|
18415
|
-
createVNode(_sfc_main$
|
|
18415
|
+
createVNode(_sfc_main$1m, {
|
|
18416
18416
|
columns: subColumns.value,
|
|
18417
18417
|
editable: __props.editable,
|
|
18418
18418
|
"sub-page-info": unref(subPageInfo),
|
|
@@ -18434,7 +18434,7 @@ var _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
|
18434
18434
|
]),
|
|
18435
18435
|
createCommentVNode(" \u64CD\u4F5C\u680F "),
|
|
18436
18436
|
__props.actionBar ? (openBlock(), createBlock(
|
|
18437
|
-
_sfc_main$
|
|
18437
|
+
_sfc_main$1v,
|
|
18438
18438
|
mergeProps({ key: 5 }, __props.actionBar, {
|
|
18439
18439
|
onClickAction: handleAction,
|
|
18440
18440
|
onClickActionConfirmCancel: handleClickActionConfirmCancel
|
|
@@ -18512,7 +18512,7 @@ var _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
|
18512
18512
|
}
|
|
18513
18513
|
});
|
|
18514
18514
|
|
|
18515
|
-
const PlusTable = _sfc_main$
|
|
18515
|
+
const PlusTable = _sfc_main$1h;
|
|
18516
18516
|
const YcPlusTable = PlusTable;
|
|
18517
18517
|
const RePlusTable = PlusTable;
|
|
18518
18518
|
|
|
@@ -18565,7 +18565,7 @@ const capability$g = {
|
|
|
18565
18565
|
}
|
|
18566
18566
|
};
|
|
18567
18567
|
|
|
18568
|
-
var _sfc_main$
|
|
18568
|
+
var _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
18569
18569
|
...{
|
|
18570
18570
|
name: "YcCard"
|
|
18571
18571
|
},
|
|
@@ -18661,13 +18661,13 @@ var _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
18661
18661
|
}
|
|
18662
18662
|
});
|
|
18663
18663
|
|
|
18664
|
-
const YcCardWithInstall = withInstall(_sfc_main$
|
|
18664
|
+
const YcCardWithInstall = withInstall(_sfc_main$1g);
|
|
18665
18665
|
|
|
18666
18666
|
const YcCardGalleryDemo = defineComponent({
|
|
18667
18667
|
name: "YcCardGalleryDemo",
|
|
18668
18668
|
setup() {
|
|
18669
18669
|
return () => h$1(
|
|
18670
|
-
_sfc_main$
|
|
18670
|
+
_sfc_main$1g,
|
|
18671
18671
|
{
|
|
18672
18672
|
background: "#ffffff",
|
|
18673
18673
|
padding: 14,
|
|
@@ -18744,7 +18744,7 @@ const YcCardGalleryDemo = defineComponent({
|
|
|
18744
18744
|
}
|
|
18745
18745
|
});
|
|
18746
18746
|
const capability$f = {
|
|
18747
|
-
install: [_sfc_main$
|
|
18747
|
+
install: [_sfc_main$1g],
|
|
18748
18748
|
gallery: {
|
|
18749
18749
|
id: "yc-card",
|
|
18750
18750
|
title: "YcCard \u5361\u7247\u5BB9\u5668",
|
|
@@ -18753,13 +18753,13 @@ const capability$f = {
|
|
|
18753
18753
|
}
|
|
18754
18754
|
};
|
|
18755
18755
|
|
|
18756
|
-
const _hoisted_1
|
|
18757
|
-
const _hoisted_2$
|
|
18758
|
-
const _hoisted_3$
|
|
18756
|
+
const _hoisted_1$$ = ["aria-selected", "disabled", "onClick"];
|
|
18757
|
+
const _hoisted_2$M = { class: "yc-segmented__label" };
|
|
18758
|
+
const _hoisted_3$I = {
|
|
18759
18759
|
key: 0,
|
|
18760
18760
|
class: "yc-segmented__count"
|
|
18761
18761
|
};
|
|
18762
|
-
var _sfc_main$
|
|
18762
|
+
var _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
18763
18763
|
...{
|
|
18764
18764
|
name: "YcSegmented"
|
|
18765
18765
|
},
|
|
@@ -18803,19 +18803,19 @@ var _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
18803
18803
|
}, [
|
|
18804
18804
|
createElementVNode(
|
|
18805
18805
|
"span",
|
|
18806
|
-
_hoisted_2$
|
|
18806
|
+
_hoisted_2$M,
|
|
18807
18807
|
toDisplayString(opt.label),
|
|
18808
18808
|
1
|
|
18809
18809
|
/* TEXT */
|
|
18810
18810
|
),
|
|
18811
18811
|
opt.count !== void 0 ? (openBlock(), createElementBlock(
|
|
18812
18812
|
"span",
|
|
18813
|
-
_hoisted_3$
|
|
18813
|
+
_hoisted_3$I,
|
|
18814
18814
|
toDisplayString(opt.count),
|
|
18815
18815
|
1
|
|
18816
18816
|
/* TEXT */
|
|
18817
18817
|
)) : createCommentVNode("v-if", true)
|
|
18818
|
-
], 10, _hoisted_1
|
|
18818
|
+
], 10, _hoisted_1$$);
|
|
18819
18819
|
}),
|
|
18820
18820
|
128
|
|
18821
18821
|
/* KEYED_FRAGMENT */
|
|
@@ -18828,19 +18828,19 @@ var _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
18828
18828
|
}
|
|
18829
18829
|
});
|
|
18830
18830
|
|
|
18831
|
-
const _hoisted_1$
|
|
18832
|
-
const _hoisted_2$
|
|
18833
|
-
const _hoisted_3$
|
|
18834
|
-
const _hoisted_4$
|
|
18831
|
+
const _hoisted_1$_ = { class: "yc-switch-row__body" };
|
|
18832
|
+
const _hoisted_2$L = { class: "yc-switch-row__head" };
|
|
18833
|
+
const _hoisted_3$H = { class: "yc-switch-row__title" };
|
|
18834
|
+
const _hoisted_4$G = {
|
|
18835
18835
|
key: 0,
|
|
18836
18836
|
class: "yc-switch-row__badge"
|
|
18837
18837
|
};
|
|
18838
|
-
const _hoisted_5$
|
|
18838
|
+
const _hoisted_5$z = {
|
|
18839
18839
|
key: 0,
|
|
18840
18840
|
class: "yc-switch-row__desc"
|
|
18841
18841
|
};
|
|
18842
|
-
const _hoisted_6$
|
|
18843
|
-
var _sfc_main$
|
|
18842
|
+
const _hoisted_6$w = ["aria-checked", "disabled"];
|
|
18843
|
+
var _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
18844
18844
|
...{
|
|
18845
18845
|
name: "YcSwitchRow"
|
|
18846
18846
|
},
|
|
@@ -18871,18 +18871,18 @@ var _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
18871
18871
|
onClick: toggle
|
|
18872
18872
|
},
|
|
18873
18873
|
[
|
|
18874
|
-
createElementVNode("div", _hoisted_1$
|
|
18875
|
-
createElementVNode("div", _hoisted_2$
|
|
18874
|
+
createElementVNode("div", _hoisted_1$_, [
|
|
18875
|
+
createElementVNode("div", _hoisted_2$L, [
|
|
18876
18876
|
createElementVNode(
|
|
18877
18877
|
"span",
|
|
18878
|
-
_hoisted_3$
|
|
18878
|
+
_hoisted_3$H,
|
|
18879
18879
|
toDisplayString(__props.title),
|
|
18880
18880
|
1
|
|
18881
18881
|
/* TEXT */
|
|
18882
18882
|
),
|
|
18883
18883
|
__props.badge ? (openBlock(), createElementBlock(
|
|
18884
18884
|
"span",
|
|
18885
|
-
_hoisted_4$
|
|
18885
|
+
_hoisted_4$G,
|
|
18886
18886
|
toDisplayString(__props.badge),
|
|
18887
18887
|
1
|
|
18888
18888
|
/* TEXT */
|
|
@@ -18890,7 +18890,7 @@ var _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
18890
18890
|
]),
|
|
18891
18891
|
__props.description ? (openBlock(), createElementBlock(
|
|
18892
18892
|
"p",
|
|
18893
|
-
_hoisted_5$
|
|
18893
|
+
_hoisted_5$z,
|
|
18894
18894
|
toDisplayString(__props.description),
|
|
18895
18895
|
1
|
|
18896
18896
|
/* TEXT */
|
|
@@ -18911,7 +18911,7 @@ var _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
18911
18911
|
-1
|
|
18912
18912
|
/* CACHED */
|
|
18913
18913
|
)
|
|
18914
|
-
])], 10, _hoisted_6$
|
|
18914
|
+
])], 10, _hoisted_6$w)
|
|
18915
18915
|
],
|
|
18916
18916
|
2
|
|
18917
18917
|
/* CLASS */
|
|
@@ -18920,20 +18920,20 @@ var _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
18920
18920
|
}
|
|
18921
18921
|
});
|
|
18922
18922
|
|
|
18923
|
-
const _hoisted_1$
|
|
18923
|
+
const _hoisted_1$Z = {
|
|
18924
18924
|
key: 0,
|
|
18925
18925
|
class: "yc-choice-cards__label"
|
|
18926
18926
|
};
|
|
18927
|
-
const _hoisted_2$
|
|
18928
|
-
const _hoisted_3$
|
|
18929
|
-
const _hoisted_4$
|
|
18930
|
-
const _hoisted_5$
|
|
18931
|
-
const _hoisted_6$
|
|
18932
|
-
const _hoisted_7$
|
|
18927
|
+
const _hoisted_2$K = ["role"];
|
|
18928
|
+
const _hoisted_3$G = ["role", "aria-checked", "disabled", "onClick"];
|
|
18929
|
+
const _hoisted_4$F = { class: "yc-choice-card__top" };
|
|
18930
|
+
const _hoisted_5$y = { class: "yc-choice-card__title" };
|
|
18931
|
+
const _hoisted_6$v = { class: "yc-choice-card__right" };
|
|
18932
|
+
const _hoisted_7$s = {
|
|
18933
18933
|
key: 0,
|
|
18934
18934
|
class: "yc-choice-card__meta"
|
|
18935
18935
|
};
|
|
18936
|
-
const _hoisted_8$
|
|
18936
|
+
const _hoisted_8$n = {
|
|
18937
18937
|
key: 0,
|
|
18938
18938
|
viewBox: "0 0 24 24",
|
|
18939
18939
|
width: "10",
|
|
@@ -18944,11 +18944,11 @@ const _hoisted_8$m = {
|
|
|
18944
18944
|
"stroke-linecap": "round",
|
|
18945
18945
|
"stroke-linejoin": "round"
|
|
18946
18946
|
};
|
|
18947
|
-
const _hoisted_9$
|
|
18947
|
+
const _hoisted_9$l = {
|
|
18948
18948
|
key: 0,
|
|
18949
18949
|
class: "yc-choice-card__desc"
|
|
18950
18950
|
};
|
|
18951
|
-
var _sfc_main$
|
|
18951
|
+
var _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
18952
18952
|
...{
|
|
18953
18953
|
name: "YcChoiceCards"
|
|
18954
18954
|
},
|
|
@@ -18994,7 +18994,7 @@ var _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
18994
18994
|
[
|
|
18995
18995
|
__props.label ? (openBlock(), createElementBlock(
|
|
18996
18996
|
"div",
|
|
18997
|
-
_hoisted_1$
|
|
18997
|
+
_hoisted_1$Z,
|
|
18998
18998
|
toDisplayString(__props.label),
|
|
18999
18999
|
1
|
|
19000
19000
|
/* TEXT */
|
|
@@ -19016,18 +19016,18 @@ var _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
19016
19016
|
disabled: __props.disabled || opt.disabled,
|
|
19017
19017
|
onClick: ($event) => select(opt)
|
|
19018
19018
|
}, [
|
|
19019
|
-
createElementVNode("div", _hoisted_4$
|
|
19019
|
+
createElementVNode("div", _hoisted_4$F, [
|
|
19020
19020
|
createElementVNode(
|
|
19021
19021
|
"span",
|
|
19022
|
-
_hoisted_5$
|
|
19022
|
+
_hoisted_5$y,
|
|
19023
19023
|
toDisplayString(opt.title),
|
|
19024
19024
|
1
|
|
19025
19025
|
/* TEXT */
|
|
19026
19026
|
),
|
|
19027
|
-
createElementVNode("div", _hoisted_6$
|
|
19027
|
+
createElementVNode("div", _hoisted_6$v, [
|
|
19028
19028
|
opt.meta ? (openBlock(), createElementBlock(
|
|
19029
19029
|
"span",
|
|
19030
|
-
_hoisted_7$
|
|
19030
|
+
_hoisted_7$s,
|
|
19031
19031
|
toDisplayString(opt.meta),
|
|
19032
19032
|
1
|
|
19033
19033
|
/* TEXT */
|
|
@@ -19038,7 +19038,7 @@ var _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
19038
19038
|
class: normalizeClass(["yc-choice-card__indicator", { "is-checkbox": __props.multiple }])
|
|
19039
19039
|
},
|
|
19040
19040
|
[
|
|
19041
|
-
isSelected(opt.value) ? (openBlock(), createElementBlock("svg", _hoisted_8$
|
|
19041
|
+
isSelected(opt.value) ? (openBlock(), createElementBlock("svg", _hoisted_8$n, [..._cache[0] || (_cache[0] = [
|
|
19042
19042
|
createElementVNode(
|
|
19043
19043
|
"path",
|
|
19044
19044
|
{ d: "M20 6 9 17l-5-5" },
|
|
@@ -19055,17 +19055,17 @@ var _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
19055
19055
|
]),
|
|
19056
19056
|
opt.description ? (openBlock(), createElementBlock(
|
|
19057
19057
|
"p",
|
|
19058
|
-
_hoisted_9$
|
|
19058
|
+
_hoisted_9$l,
|
|
19059
19059
|
toDisplayString(opt.description),
|
|
19060
19060
|
1
|
|
19061
19061
|
/* TEXT */
|
|
19062
19062
|
)) : createCommentVNode("v-if", true)
|
|
19063
|
-
], 10, _hoisted_3$
|
|
19063
|
+
], 10, _hoisted_3$G);
|
|
19064
19064
|
}),
|
|
19065
19065
|
128
|
|
19066
19066
|
/* KEYED_FRAGMENT */
|
|
19067
19067
|
))
|
|
19068
|
-
], 10, _hoisted_2$
|
|
19068
|
+
], 10, _hoisted_2$K)
|
|
19069
19069
|
],
|
|
19070
19070
|
2
|
|
19071
19071
|
/* CLASS */
|
|
@@ -19074,11 +19074,11 @@ var _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
19074
19074
|
}
|
|
19075
19075
|
});
|
|
19076
19076
|
|
|
19077
|
-
const YcSegmented = withInstall(_sfc_main$
|
|
19077
|
+
const YcSegmented = withInstall(_sfc_main$1f);
|
|
19078
19078
|
const ReSegmented = YcSegmented;
|
|
19079
|
-
const YcSwitchRow = withInstall(_sfc_main$
|
|
19079
|
+
const YcSwitchRow = withInstall(_sfc_main$1e);
|
|
19080
19080
|
const ReSwitchRow = YcSwitchRow;
|
|
19081
|
-
const YcChoiceCards = withInstall(_sfc_main$
|
|
19081
|
+
const YcChoiceCards = withInstall(_sfc_main$1d);
|
|
19082
19082
|
const ReChoiceCards = YcChoiceCards;
|
|
19083
19083
|
|
|
19084
19084
|
const YcSegmentedGalleryDemo = defineComponent({
|
|
@@ -19179,7 +19179,7 @@ const capability$e = {
|
|
|
19179
19179
|
|
|
19180
19180
|
const COSS_TABLE_INJECTION_KEY = Symbol("YcCossTableContext");
|
|
19181
19181
|
|
|
19182
|
-
var _sfc_main$
|
|
19182
|
+
var _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
19183
19183
|
...{
|
|
19184
19184
|
name: "YcTable"
|
|
19185
19185
|
},
|
|
@@ -19248,7 +19248,7 @@ var _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
19248
19248
|
}
|
|
19249
19249
|
});
|
|
19250
19250
|
|
|
19251
|
-
var _sfc_main$
|
|
19251
|
+
var _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
19252
19252
|
...{
|
|
19253
19253
|
name: "YcTableHeader"
|
|
19254
19254
|
},
|
|
@@ -19273,7 +19273,7 @@ var _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
19273
19273
|
}
|
|
19274
19274
|
});
|
|
19275
19275
|
|
|
19276
|
-
var _sfc_main$
|
|
19276
|
+
var _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
19277
19277
|
...{
|
|
19278
19278
|
name: "YcTableBody"
|
|
19279
19279
|
},
|
|
@@ -19298,7 +19298,7 @@ var _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
19298
19298
|
}
|
|
19299
19299
|
});
|
|
19300
19300
|
|
|
19301
|
-
var _sfc_main$
|
|
19301
|
+
var _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
19302
19302
|
...{
|
|
19303
19303
|
name: "YcTableFooter"
|
|
19304
19304
|
},
|
|
@@ -19323,8 +19323,8 @@ var _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
19323
19323
|
}
|
|
19324
19324
|
});
|
|
19325
19325
|
|
|
19326
|
-
const _hoisted_1$
|
|
19327
|
-
var _sfc_main$
|
|
19326
|
+
const _hoisted_1$Y = ["data-state"];
|
|
19327
|
+
var _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
19328
19328
|
...{
|
|
19329
19329
|
name: "YcTableRow"
|
|
19330
19330
|
},
|
|
@@ -19347,18 +19347,18 @@ var _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
19347
19347
|
"data-state": __props.selected ? "selected" : void 0
|
|
19348
19348
|
}, [
|
|
19349
19349
|
renderSlot(_ctx.$slots, "default")
|
|
19350
|
-
], 10, _hoisted_1$
|
|
19350
|
+
], 10, _hoisted_1$Y);
|
|
19351
19351
|
};
|
|
19352
19352
|
}
|
|
19353
19353
|
});
|
|
19354
19354
|
|
|
19355
|
-
const _hoisted_1$
|
|
19356
|
-
const _hoisted_2$
|
|
19355
|
+
const _hoisted_1$X = { class: "yc-table-head__content" };
|
|
19356
|
+
const _hoisted_2$J = {
|
|
19357
19357
|
key: 0,
|
|
19358
19358
|
class: "yc-table-head__sorter",
|
|
19359
19359
|
"aria-hidden": "true"
|
|
19360
19360
|
};
|
|
19361
|
-
const _hoisted_3$
|
|
19361
|
+
const _hoisted_3$F = {
|
|
19362
19362
|
key: 0,
|
|
19363
19363
|
class: "yc-table-head__icon",
|
|
19364
19364
|
viewBox: "0 0 24 24",
|
|
@@ -19370,7 +19370,7 @@ const _hoisted_3$E = {
|
|
|
19370
19370
|
"stroke-linecap": "round",
|
|
19371
19371
|
"stroke-linejoin": "round"
|
|
19372
19372
|
};
|
|
19373
|
-
const _hoisted_4$
|
|
19373
|
+
const _hoisted_4$E = {
|
|
19374
19374
|
key: 1,
|
|
19375
19375
|
class: "yc-table-head__icon",
|
|
19376
19376
|
viewBox: "0 0 24 24",
|
|
@@ -19382,7 +19382,7 @@ const _hoisted_4$D = {
|
|
|
19382
19382
|
"stroke-linecap": "round",
|
|
19383
19383
|
"stroke-linejoin": "round"
|
|
19384
19384
|
};
|
|
19385
|
-
const _hoisted_5$
|
|
19385
|
+
const _hoisted_5$x = {
|
|
19386
19386
|
key: 2,
|
|
19387
19387
|
class: "yc-table-head__icon yc-table-head__icon--neutral",
|
|
19388
19388
|
viewBox: "0 0 24 24",
|
|
@@ -19394,7 +19394,7 @@ const _hoisted_5$w = {
|
|
|
19394
19394
|
"stroke-linecap": "round",
|
|
19395
19395
|
"stroke-linejoin": "round"
|
|
19396
19396
|
};
|
|
19397
|
-
var _sfc_main$
|
|
19397
|
+
var _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
19398
19398
|
...{
|
|
19399
19399
|
name: "YcTableHead"
|
|
19400
19400
|
},
|
|
@@ -19438,10 +19438,10 @@ var _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
19438
19438
|
onClick: handleClick
|
|
19439
19439
|
},
|
|
19440
19440
|
[
|
|
19441
|
-
createElementVNode("div", _hoisted_1$
|
|
19441
|
+
createElementVNode("div", _hoisted_1$X, [
|
|
19442
19442
|
renderSlot(_ctx.$slots, "default"),
|
|
19443
|
-
__props.sortable ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
19444
|
-
__props.sortOrder === "ascending" ? (openBlock(), createElementBlock("svg", _hoisted_3$
|
|
19443
|
+
__props.sortable ? (openBlock(), createElementBlock("span", _hoisted_2$J, [
|
|
19444
|
+
__props.sortOrder === "ascending" ? (openBlock(), createElementBlock("svg", _hoisted_3$F, [..._cache[0] || (_cache[0] = [
|
|
19445
19445
|
createElementVNode(
|
|
19446
19446
|
"path",
|
|
19447
19447
|
{ d: "m18 15-6-6-6 6" },
|
|
@@ -19449,7 +19449,7 @@ var _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
19449
19449
|
-1
|
|
19450
19450
|
/* CACHED */
|
|
19451
19451
|
)
|
|
19452
|
-
])])) : __props.sortOrder === "descending" ? (openBlock(), createElementBlock("svg", _hoisted_4$
|
|
19452
|
+
])])) : __props.sortOrder === "descending" ? (openBlock(), createElementBlock("svg", _hoisted_4$E, [..._cache[1] || (_cache[1] = [
|
|
19453
19453
|
createElementVNode(
|
|
19454
19454
|
"path",
|
|
19455
19455
|
{ d: "m6 9 6 6 6-6" },
|
|
@@ -19457,7 +19457,7 @@ var _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
19457
19457
|
-1
|
|
19458
19458
|
/* CACHED */
|
|
19459
19459
|
)
|
|
19460
|
-
])])) : (openBlock(), createElementBlock("svg", _hoisted_5$
|
|
19460
|
+
])])) : (openBlock(), createElementBlock("svg", _hoisted_5$x, [..._cache[2] || (_cache[2] = [
|
|
19461
19461
|
createElementVNode(
|
|
19462
19462
|
"path",
|
|
19463
19463
|
{ d: "m7 15 5 5 5-5" },
|
|
@@ -19483,8 +19483,8 @@ var _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
19483
19483
|
}
|
|
19484
19484
|
});
|
|
19485
19485
|
|
|
19486
|
-
const _hoisted_1$
|
|
19487
|
-
var _sfc_main$
|
|
19486
|
+
const _hoisted_1$W = ["colspan", "rowspan"];
|
|
19487
|
+
var _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
19488
19488
|
...{
|
|
19489
19489
|
name: "YcTableCell"
|
|
19490
19490
|
},
|
|
@@ -19514,12 +19514,12 @@ var _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
19514
19514
|
style: normalizeStyle(widthStyle.value)
|
|
19515
19515
|
}, [
|
|
19516
19516
|
renderSlot(_ctx.$slots, "default")
|
|
19517
|
-
], 14, _hoisted_1$
|
|
19517
|
+
], 14, _hoisted_1$W);
|
|
19518
19518
|
};
|
|
19519
19519
|
}
|
|
19520
19520
|
});
|
|
19521
19521
|
|
|
19522
|
-
var _sfc_main$
|
|
19522
|
+
var _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
19523
19523
|
...{
|
|
19524
19524
|
name: "YcTableCaption"
|
|
19525
19525
|
},
|
|
@@ -19544,11 +19544,11 @@ var _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
19544
19544
|
}
|
|
19545
19545
|
});
|
|
19546
19546
|
|
|
19547
|
-
const _hoisted_1$
|
|
19548
|
-
const _hoisted_2$
|
|
19549
|
-
const _hoisted_3$
|
|
19550
|
-
const _hoisted_4$
|
|
19551
|
-
var _sfc_main$
|
|
19547
|
+
const _hoisted_1$V = ["checked", "indeterminate"];
|
|
19548
|
+
const _hoisted_2$I = ["checked", "aria-label", "onChange"];
|
|
19549
|
+
const _hoisted_3$E = { class: "yc-table-empty" };
|
|
19550
|
+
const _hoisted_4$D = { class: "yc-table-empty__text" };
|
|
19551
|
+
var _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
19552
19552
|
...{
|
|
19553
19553
|
name: "YcCossTable"
|
|
19554
19554
|
},
|
|
@@ -19680,7 +19680,7 @@ var _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
19680
19680
|
internalSelection
|
|
19681
19681
|
});
|
|
19682
19682
|
return (_ctx, _cache) => {
|
|
19683
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19683
|
+
return openBlock(), createBlock(_sfc_main$1c, {
|
|
19684
19684
|
variant: __props.variant,
|
|
19685
19685
|
density: __props.density,
|
|
19686
19686
|
hoverable: __props.hoverable,
|
|
@@ -19692,7 +19692,7 @@ var _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
19692
19692
|
}, {
|
|
19693
19693
|
default: withCtx(() => [
|
|
19694
19694
|
renderSlot(_ctx.$slots, "caption", {}, () => [
|
|
19695
|
-
__props.caption ? (openBlock(), createBlock(_sfc_main$
|
|
19695
|
+
__props.caption ? (openBlock(), createBlock(_sfc_main$15, { key: 0 }, {
|
|
19696
19696
|
default: withCtx(() => [
|
|
19697
19697
|
createTextVNode(
|
|
19698
19698
|
toDisplayString(__props.caption),
|
|
@@ -19709,12 +19709,12 @@ var _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
19709
19709
|
Fragment,
|
|
19710
19710
|
{ key: 0 },
|
|
19711
19711
|
[
|
|
19712
|
-
createVNode(_sfc_main$
|
|
19712
|
+
createVNode(_sfc_main$1b, null, {
|
|
19713
19713
|
default: withCtx(() => [
|
|
19714
|
-
createVNode(_sfc_main$
|
|
19714
|
+
createVNode(_sfc_main$18, null, {
|
|
19715
19715
|
default: withCtx(() => [
|
|
19716
19716
|
createCommentVNode(" \u52FE\u9009\u5168\u9009\u5217 "),
|
|
19717
|
-
__props.selectable ? (openBlock(), createBlock(_sfc_main$
|
|
19717
|
+
__props.selectable ? (openBlock(), createBlock(_sfc_main$17, {
|
|
19718
19718
|
key: 0,
|
|
19719
19719
|
width: "48px",
|
|
19720
19720
|
align: "center"
|
|
@@ -19727,7 +19727,7 @@ var _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
19727
19727
|
indeterminate: isIndeterminate.value,
|
|
19728
19728
|
"aria-label": "Select all rows",
|
|
19729
19729
|
onChange: handleToggleSelectAll
|
|
19730
|
-
}, null, 40, _hoisted_1$
|
|
19730
|
+
}, null, 40, _hoisted_1$V)
|
|
19731
19731
|
]),
|
|
19732
19732
|
_: 1
|
|
19733
19733
|
/* STABLE */
|
|
@@ -19737,7 +19737,7 @@ var _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
19737
19737
|
Fragment,
|
|
19738
19738
|
null,
|
|
19739
19739
|
renderList(__props.columns, (col) => {
|
|
19740
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19740
|
+
return openBlock(), createBlock(_sfc_main$17, {
|
|
19741
19741
|
key: col.prop,
|
|
19742
19742
|
align: col.align,
|
|
19743
19743
|
width: col.width,
|
|
@@ -19770,13 +19770,13 @@ var _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
19770
19770
|
_: 3
|
|
19771
19771
|
/* FORWARDED */
|
|
19772
19772
|
}),
|
|
19773
|
-
createVNode(_sfc_main$
|
|
19773
|
+
createVNode(_sfc_main$1a, null, {
|
|
19774
19774
|
default: withCtx(() => [
|
|
19775
19775
|
sortedData.value.length > 0 ? (openBlock(true), createElementBlock(
|
|
19776
19776
|
Fragment,
|
|
19777
19777
|
{ key: 0 },
|
|
19778
19778
|
renderList(sortedData.value, (row, rIdx) => {
|
|
19779
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19779
|
+
return openBlock(), createBlock(_sfc_main$18, {
|
|
19780
19780
|
key: getRowIdentity(row, rIdx),
|
|
19781
19781
|
selected: isRowSelected(row),
|
|
19782
19782
|
clickable: __props.hoverable,
|
|
@@ -19785,7 +19785,7 @@ var _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
19785
19785
|
default: withCtx(() => [
|
|
19786
19786
|
createCommentVNode(" \u884C\u52FE\u9009\u5217 "),
|
|
19787
19787
|
__props.selectable ? (openBlock(), createBlock(
|
|
19788
|
-
_sfc_main$
|
|
19788
|
+
_sfc_main$16,
|
|
19789
19789
|
{
|
|
19790
19790
|
key: 0,
|
|
19791
19791
|
width: "48px",
|
|
@@ -19801,7 +19801,7 @@ var _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
19801
19801
|
checked: isRowSelected(row),
|
|
19802
19802
|
"aria-label": `Select row ${rIdx + 1}`,
|
|
19803
19803
|
onChange: () => handleToggleRowSelect(row)
|
|
19804
|
-
}, null, 40, _hoisted_2$
|
|
19804
|
+
}, null, 40, _hoisted_2$I)
|
|
19805
19805
|
]),
|
|
19806
19806
|
_: 2
|
|
19807
19807
|
/* DYNAMIC */
|
|
@@ -19814,7 +19814,7 @@ var _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
19814
19814
|
Fragment,
|
|
19815
19815
|
null,
|
|
19816
19816
|
renderList(__props.columns, (col) => {
|
|
19817
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19817
|
+
return openBlock(), createBlock(_sfc_main$16, {
|
|
19818
19818
|
key: col.prop,
|
|
19819
19819
|
align: col.align,
|
|
19820
19820
|
class: normalizeClass(col.className)
|
|
@@ -19852,15 +19852,15 @@ var _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
19852
19852
|
{ key: 1 },
|
|
19853
19853
|
[
|
|
19854
19854
|
createCommentVNode(" \u7A7A\u6570\u636E\u5360\u4F4D\u884C "),
|
|
19855
|
-
createVNode(_sfc_main$
|
|
19855
|
+
createVNode(_sfc_main$18, { class: "yc-table-row--empty" }, {
|
|
19856
19856
|
default: withCtx(() => [
|
|
19857
|
-
createVNode(_sfc_main$
|
|
19857
|
+
createVNode(_sfc_main$16, {
|
|
19858
19858
|
colspan: __props.columns.length + (__props.selectable ? 1 : 0),
|
|
19859
19859
|
align: "center"
|
|
19860
19860
|
}, {
|
|
19861
19861
|
default: withCtx(() => [
|
|
19862
19862
|
renderSlot(_ctx.$slots, "empty", {}, () => [
|
|
19863
|
-
createElementVNode("div", _hoisted_3$
|
|
19863
|
+
createElementVNode("div", _hoisted_3$E, [
|
|
19864
19864
|
_cache[1] || (_cache[1] = createElementVNode(
|
|
19865
19865
|
"svg",
|
|
19866
19866
|
{
|
|
@@ -19888,7 +19888,7 @@ var _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
19888
19888
|
)),
|
|
19889
19889
|
createElementVNode(
|
|
19890
19890
|
"p",
|
|
19891
|
-
_hoisted_4$
|
|
19891
|
+
_hoisted_4$D,
|
|
19892
19892
|
toDisplayString(__props.emptyText),
|
|
19893
19893
|
1
|
|
19894
19894
|
/* TEXT */
|
|
@@ -19911,7 +19911,7 @@ var _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
19911
19911
|
_: 3
|
|
19912
19912
|
/* FORWARDED */
|
|
19913
19913
|
}),
|
|
19914
|
-
_ctx.$slots.footer ? (openBlock(), createBlock(_sfc_main$
|
|
19914
|
+
_ctx.$slots.footer ? (openBlock(), createBlock(_sfc_main$19, { key: 0 }, {
|
|
19915
19915
|
default: withCtx(() => [
|
|
19916
19916
|
renderSlot(_ctx.$slots, "footer")
|
|
19917
19917
|
]),
|
|
@@ -19939,29 +19939,29 @@ var _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
19939
19939
|
}
|
|
19940
19940
|
});
|
|
19941
19941
|
|
|
19942
|
-
const _hoisted_1$
|
|
19942
|
+
const _hoisted_1$U = {
|
|
19943
19943
|
key: 0,
|
|
19944
19944
|
class: "yc-card-frame__header"
|
|
19945
19945
|
};
|
|
19946
|
-
const _hoisted_2$
|
|
19947
|
-
const _hoisted_3$
|
|
19946
|
+
const _hoisted_2$H = { class: "yc-card-frame__title-group" };
|
|
19947
|
+
const _hoisted_3$D = {
|
|
19948
19948
|
key: 0,
|
|
19949
19949
|
class: "yc-card-frame__title"
|
|
19950
19950
|
};
|
|
19951
|
-
const _hoisted_4$
|
|
19951
|
+
const _hoisted_4$C = {
|
|
19952
19952
|
key: 1,
|
|
19953
19953
|
class: "yc-card-frame__description"
|
|
19954
19954
|
};
|
|
19955
|
-
const _hoisted_5$
|
|
19955
|
+
const _hoisted_5$w = {
|
|
19956
19956
|
key: 0,
|
|
19957
19957
|
class: "yc-card-frame__action"
|
|
19958
19958
|
};
|
|
19959
|
-
const _hoisted_6$
|
|
19960
|
-
const _hoisted_7$
|
|
19959
|
+
const _hoisted_6$u = { class: "yc-card-frame__content" };
|
|
19960
|
+
const _hoisted_7$r = {
|
|
19961
19961
|
key: 1,
|
|
19962
19962
|
class: "yc-card-frame__footer"
|
|
19963
19963
|
};
|
|
19964
|
-
var _sfc_main$
|
|
19964
|
+
var _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
19965
19965
|
...{
|
|
19966
19966
|
name: "YcCardFrame"
|
|
19967
19967
|
},
|
|
@@ -19981,9 +19981,9 @@ var _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
19981
19981
|
style: normalizeStyle(__props.customStyle)
|
|
19982
19982
|
},
|
|
19983
19983
|
[
|
|
19984
|
-
_ctx.$slots.header || __props.title || __props.description || _ctx.$slots.action ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
19985
|
-
createElementVNode("div", _hoisted_2$
|
|
19986
|
-
__props.title || _ctx.$slots.title ? (openBlock(), createElementBlock("h3", _hoisted_3$
|
|
19984
|
+
_ctx.$slots.header || __props.title || __props.description || _ctx.$slots.action ? (openBlock(), createElementBlock("div", _hoisted_1$U, [
|
|
19985
|
+
createElementVNode("div", _hoisted_2$H, [
|
|
19986
|
+
__props.title || _ctx.$slots.title ? (openBlock(), createElementBlock("h3", _hoisted_3$D, [
|
|
19987
19987
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
19988
19988
|
createTextVNode(
|
|
19989
19989
|
toDisplayString(__props.title),
|
|
@@ -19992,7 +19992,7 @@ var _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
19992
19992
|
)
|
|
19993
19993
|
])
|
|
19994
19994
|
])) : createCommentVNode("v-if", true),
|
|
19995
|
-
__props.description || _ctx.$slots.description ? (openBlock(), createElementBlock("p", _hoisted_4$
|
|
19995
|
+
__props.description || _ctx.$slots.description ? (openBlock(), createElementBlock("p", _hoisted_4$C, [
|
|
19996
19996
|
renderSlot(_ctx.$slots, "description", {}, () => [
|
|
19997
19997
|
createTextVNode(
|
|
19998
19998
|
toDisplayString(__props.description),
|
|
@@ -20002,14 +20002,14 @@ var _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
20002
20002
|
])
|
|
20003
20003
|
])) : createCommentVNode("v-if", true)
|
|
20004
20004
|
]),
|
|
20005
|
-
_ctx.$slots.action ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
20005
|
+
_ctx.$slots.action ? (openBlock(), createElementBlock("div", _hoisted_5$w, [
|
|
20006
20006
|
renderSlot(_ctx.$slots, "action")
|
|
20007
20007
|
])) : createCommentVNode("v-if", true)
|
|
20008
20008
|
])) : createCommentVNode("v-if", true),
|
|
20009
|
-
createElementVNode("div", _hoisted_6$
|
|
20009
|
+
createElementVNode("div", _hoisted_6$u, [
|
|
20010
20010
|
renderSlot(_ctx.$slots, "default")
|
|
20011
20011
|
]),
|
|
20012
|
-
_ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_7$
|
|
20012
|
+
_ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_7$r, [
|
|
20013
20013
|
renderSlot(_ctx.$slots, "footer")
|
|
20014
20014
|
])) : createCommentVNode("v-if", true)
|
|
20015
20015
|
],
|
|
@@ -20020,16 +20020,16 @@ var _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
20020
20020
|
}
|
|
20021
20021
|
});
|
|
20022
20022
|
|
|
20023
|
-
const YcCossTable = withInstall(_sfc_main$
|
|
20024
|
-
const YcTable = withInstall(_sfc_main$
|
|
20025
|
-
const YcTableHeader = withInstall(_sfc_main$
|
|
20026
|
-
const YcTableBody = withInstall(_sfc_main$
|
|
20027
|
-
const YcTableFooter = withInstall(_sfc_main$
|
|
20028
|
-
const YcTableRow = withInstall(_sfc_main$
|
|
20029
|
-
const YcTableHead = withInstall(_sfc_main$
|
|
20030
|
-
const YcTableCell = withInstall(_sfc_main$
|
|
20031
|
-
const YcTableCaption = withInstall(_sfc_main$
|
|
20032
|
-
const YcCardFrame = withInstall(_sfc_main$
|
|
20023
|
+
const YcCossTable = withInstall(_sfc_main$14);
|
|
20024
|
+
const YcTable = withInstall(_sfc_main$1c);
|
|
20025
|
+
const YcTableHeader = withInstall(_sfc_main$1b);
|
|
20026
|
+
const YcTableBody = withInstall(_sfc_main$1a);
|
|
20027
|
+
const YcTableFooter = withInstall(_sfc_main$19);
|
|
20028
|
+
const YcTableRow = withInstall(_sfc_main$18);
|
|
20029
|
+
const YcTableHead = withInstall(_sfc_main$17);
|
|
20030
|
+
const YcTableCell = withInstall(_sfc_main$16);
|
|
20031
|
+
const YcTableCaption = withInstall(_sfc_main$15);
|
|
20032
|
+
const YcCardFrame = withInstall(_sfc_main$13);
|
|
20033
20033
|
const CossTable = YcCossTable;
|
|
20034
20034
|
const ReCossTable = YcCossTable;
|
|
20035
20035
|
const Table = YcTable;
|
|
@@ -20082,21 +20082,21 @@ var dayjs_min = {exports: {}};
|
|
|
20082
20082
|
var dayjs_minExports = dayjs_min.exports;
|
|
20083
20083
|
var dayjs = /*@__PURE__*/getDefaultExportFromCjs(dayjs_minExports);
|
|
20084
20084
|
|
|
20085
|
-
const _hoisted_1$
|
|
20086
|
-
const _hoisted_2$
|
|
20087
|
-
const _hoisted_3$
|
|
20085
|
+
const _hoisted_1$T = { class: "yc-calendar" };
|
|
20086
|
+
const _hoisted_2$G = { class: "yc-calendar__header" };
|
|
20087
|
+
const _hoisted_3$C = {
|
|
20088
20088
|
key: 1,
|
|
20089
20089
|
class: "yc-calendar__nav-placeholder"
|
|
20090
20090
|
};
|
|
20091
|
-
const _hoisted_4$
|
|
20092
|
-
const _hoisted_5$
|
|
20091
|
+
const _hoisted_4$B = { class: "yc-calendar__title" };
|
|
20092
|
+
const _hoisted_5$v = {
|
|
20093
20093
|
key: 3,
|
|
20094
20094
|
class: "yc-calendar__nav-placeholder"
|
|
20095
20095
|
};
|
|
20096
|
-
const _hoisted_6$
|
|
20097
|
-
const _hoisted_7$
|
|
20098
|
-
const _hoisted_8$
|
|
20099
|
-
var _sfc_main$
|
|
20096
|
+
const _hoisted_6$t = { class: "yc-calendar__weekdays" };
|
|
20097
|
+
const _hoisted_7$q = ["onClick", "onMouseenter"];
|
|
20098
|
+
const _hoisted_8$m = { class: "yc-calendar__day-text" };
|
|
20099
|
+
var _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
20100
20100
|
...{
|
|
20101
20101
|
name: "YcCalendarPanel"
|
|
20102
20102
|
},
|
|
@@ -20196,9 +20196,9 @@ var _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
20196
20196
|
emit("hover", item.date);
|
|
20197
20197
|
};
|
|
20198
20198
|
return (_ctx, _cache) => {
|
|
20199
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20199
|
+
return openBlock(), createElementBlock("div", _hoisted_1$T, [
|
|
20200
20200
|
createCommentVNode(" \u65E5\u5386\u5934\u90E8\uFF1A\u5E74\u6708\u4E0E\u7FFB\u9875\u6309\u94AE "),
|
|
20201
|
-
createElementVNode("div", _hoisted_2$
|
|
20201
|
+
createElementVNode("div", _hoisted_2$G, [
|
|
20202
20202
|
props.showPrevNav ? (openBlock(), createElementBlock("button", {
|
|
20203
20203
|
key: 0,
|
|
20204
20204
|
type: "button",
|
|
@@ -20220,10 +20220,10 @@ var _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
20220
20220
|
-1
|
|
20221
20221
|
/* CACHED */
|
|
20222
20222
|
)
|
|
20223
|
-
])])) : (openBlock(), createElementBlock("div", _hoisted_3$
|
|
20223
|
+
])])) : (openBlock(), createElementBlock("div", _hoisted_3$C)),
|
|
20224
20224
|
createElementVNode(
|
|
20225
20225
|
"span",
|
|
20226
|
-
_hoisted_4$
|
|
20226
|
+
_hoisted_4$B,
|
|
20227
20227
|
toDisplayString(monthTitle.value),
|
|
20228
20228
|
1
|
|
20229
20229
|
/* TEXT */
|
|
@@ -20249,10 +20249,10 @@ var _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
20249
20249
|
-1
|
|
20250
20250
|
/* CACHED */
|
|
20251
20251
|
)
|
|
20252
|
-
])])) : (openBlock(), createElementBlock("div", _hoisted_5$
|
|
20252
|
+
])])) : (openBlock(), createElementBlock("div", _hoisted_5$v))
|
|
20253
20253
|
]),
|
|
20254
20254
|
createCommentVNode(" \u661F\u671F\u8868\u5934 "),
|
|
20255
|
-
createElementVNode("div", _hoisted_6$
|
|
20255
|
+
createElementVNode("div", _hoisted_6$t, [
|
|
20256
20256
|
(openBlock(), createElementBlock(
|
|
20257
20257
|
Fragment,
|
|
20258
20258
|
null,
|
|
@@ -20300,12 +20300,12 @@ var _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
20300
20300
|
}, [
|
|
20301
20301
|
createElementVNode(
|
|
20302
20302
|
"span",
|
|
20303
|
-
_hoisted_8$
|
|
20303
|
+
_hoisted_8$m,
|
|
20304
20304
|
toDisplayString(day.dayNumber),
|
|
20305
20305
|
1
|
|
20306
20306
|
/* TEXT */
|
|
20307
20307
|
)
|
|
20308
|
-
], 42, _hoisted_7$
|
|
20308
|
+
], 42, _hoisted_7$q);
|
|
20309
20309
|
}),
|
|
20310
20310
|
128
|
|
20311
20311
|
/* KEYED_FRAGMENT */
|
|
@@ -20319,16 +20319,16 @@ var _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
20319
20319
|
}
|
|
20320
20320
|
});
|
|
20321
20321
|
|
|
20322
|
-
const _hoisted_1$
|
|
20323
|
-
const _hoisted_2$
|
|
20324
|
-
const _hoisted_3$
|
|
20325
|
-
const _hoisted_4$
|
|
20326
|
-
const _hoisted_5$
|
|
20322
|
+
const _hoisted_1$S = { class: "yc-date-picker-wrap" };
|
|
20323
|
+
const _hoisted_2$F = ["disabled"];
|
|
20324
|
+
const _hoisted_3$B = { class: "yc-date-picker-trigger__text" };
|
|
20325
|
+
const _hoisted_4$A = { class: "yc-date-picker-content" };
|
|
20326
|
+
const _hoisted_5$u = {
|
|
20327
20327
|
key: 0,
|
|
20328
20328
|
class: "yc-date-picker-presets"
|
|
20329
20329
|
};
|
|
20330
|
-
const _hoisted_6$
|
|
20331
|
-
var _sfc_main$
|
|
20330
|
+
const _hoisted_6$s = ["onClick"];
|
|
20331
|
+
var _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
20332
20332
|
...{
|
|
20333
20333
|
name: "YcDatePicker"
|
|
20334
20334
|
},
|
|
@@ -20567,7 +20567,7 @@ var _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
20567
20567
|
});
|
|
20568
20568
|
return (_ctx, _cache) => {
|
|
20569
20569
|
const _component_el_popover = resolveComponent("el-popover");
|
|
20570
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20570
|
+
return openBlock(), createElementBlock("div", _hoisted_1$S, [
|
|
20571
20571
|
createVNode(_component_el_popover, {
|
|
20572
20572
|
visible: visible.value,
|
|
20573
20573
|
"onUpdate:visible": _cache[2] || (_cache[2] = ($event) => visible.value = $event),
|
|
@@ -20639,7 +20639,7 @@ var _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
20639
20639
|
createCommentVNode(" \u6587\u672C\u5C55\u793A "),
|
|
20640
20640
|
createElementVNode(
|
|
20641
20641
|
"span",
|
|
20642
|
-
_hoisted_3$
|
|
20642
|
+
_hoisted_3$B,
|
|
20643
20643
|
toDisplayString(displayValue.value || placeholderText.value),
|
|
20644
20644
|
1
|
|
20645
20645
|
/* TEXT */
|
|
@@ -20671,12 +20671,12 @@ var _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
20671
20671
|
/* CACHED */
|
|
20672
20672
|
)
|
|
20673
20673
|
])])) : createCommentVNode("v-if", true)
|
|
20674
|
-
], 14, _hoisted_2$
|
|
20674
|
+
], 14, _hoisted_2$F)
|
|
20675
20675
|
]),
|
|
20676
20676
|
default: withCtx(() => [
|
|
20677
|
-
createElementVNode("div", _hoisted_4$
|
|
20677
|
+
createElementVNode("div", _hoisted_4$A, [
|
|
20678
20678
|
createCommentVNode(" \u5FEB\u6377\u9884\u8BBE\u4FA7\u680F (Presets Sidebar) "),
|
|
20679
|
-
hasPresets.value ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
20679
|
+
hasPresets.value ? (openBlock(), createElementBlock("div", _hoisted_5$u, [
|
|
20680
20680
|
_cache[5] || (_cache[5] = createElementVNode(
|
|
20681
20681
|
"div",
|
|
20682
20682
|
{ class: "yc-date-picker-presets__title" },
|
|
@@ -20693,7 +20693,7 @@ var _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
20693
20693
|
type: "button",
|
|
20694
20694
|
class: "yc-date-picker-presets__btn",
|
|
20695
20695
|
onClick: ($event) => handleApplyPreset(preset)
|
|
20696
|
-
}, toDisplayString(preset.label), 9, _hoisted_6$
|
|
20696
|
+
}, toDisplayString(preset.label), 9, _hoisted_6$s);
|
|
20697
20697
|
}),
|
|
20698
20698
|
128
|
|
20699
20699
|
/* KEYED_FRAGMENT */
|
|
@@ -20707,7 +20707,7 @@ var _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
20707
20707
|
},
|
|
20708
20708
|
[
|
|
20709
20709
|
createCommentVNode(" \u5355\u65E5\u5386 \u6216 \u53CC\u65E5\u5386-\u5DE6 "),
|
|
20710
|
-
createVNode(_sfc_main$
|
|
20710
|
+
createVNode(_sfc_main$12, {
|
|
20711
20711
|
"view-month": viewMonth.value,
|
|
20712
20712
|
mode: props.mode,
|
|
20713
20713
|
"selected-date": selectedDate.value,
|
|
@@ -20723,7 +20723,7 @@ var _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
20723
20723
|
onNext: nextMonth
|
|
20724
20724
|
}, null, 8, ["view-month", "mode", "selected-date", "range-start", "range-end", "hover-date", "disabled-date", "show-next-nav"]),
|
|
20725
20725
|
createCommentVNode(" \u53CC\u65E5\u5386-\u53F3 (Range \u6A21\u5F0F\u8054\u52A8\u53F3\u6708) "),
|
|
20726
|
-
props.mode === "range" && props.dualCalendar ? (openBlock(), createBlock(_sfc_main$
|
|
20726
|
+
props.mode === "range" && props.dualCalendar ? (openBlock(), createBlock(_sfc_main$12, {
|
|
20727
20727
|
key: 0,
|
|
20728
20728
|
"view-month": nextCalendarMonth.value,
|
|
20729
20729
|
mode: props.mode,
|
|
@@ -20753,7 +20753,7 @@ var _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
20753
20753
|
}
|
|
20754
20754
|
});
|
|
20755
20755
|
|
|
20756
|
-
var _sfc_main
|
|
20756
|
+
var _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
20757
20757
|
...{
|
|
20758
20758
|
name: "YcDateRangePicker"
|
|
20759
20759
|
},
|
|
@@ -20782,7 +20782,7 @@ var _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
20782
20782
|
const emit = __emit;
|
|
20783
20783
|
return (_ctx, _cache) => {
|
|
20784
20784
|
return openBlock(), createBlock(
|
|
20785
|
-
_sfc_main$
|
|
20785
|
+
_sfc_main$11,
|
|
20786
20786
|
mergeProps(props, {
|
|
20787
20787
|
mode: "range",
|
|
20788
20788
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = (val) => emit("update:modelValue", val)),
|
|
@@ -20798,7 +20798,7 @@ var _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
20798
20798
|
});
|
|
20799
20799
|
|
|
20800
20800
|
const YcDateRangePicker = withInstall(
|
|
20801
|
-
_sfc_main
|
|
20801
|
+
_sfc_main$10
|
|
20802
20802
|
);
|
|
20803
20803
|
const ReDateRangePicker = YcDateRangePicker;
|
|
20804
20804
|
|
|
@@ -20820,41 +20820,48 @@ const capability$c = {
|
|
|
20820
20820
|
}
|
|
20821
20821
|
};
|
|
20822
20822
|
|
|
20823
|
-
const _hoisted_1$
|
|
20824
|
-
const _hoisted_2$
|
|
20823
|
+
const _hoisted_1$R = { class: "yc-display-card yc-display-table-card" };
|
|
20824
|
+
const _hoisted_2$E = {
|
|
20825
20825
|
key: 0,
|
|
20826
20826
|
class: "yc-display-card__header"
|
|
20827
20827
|
};
|
|
20828
|
-
const _hoisted_3$
|
|
20829
|
-
const _hoisted_4$
|
|
20828
|
+
const _hoisted_3$A = { class: "yc-display-card__title-wrap" };
|
|
20829
|
+
const _hoisted_4$z = {
|
|
20830
20830
|
key: 0,
|
|
20831
20831
|
class: "yc-display-card__title"
|
|
20832
20832
|
};
|
|
20833
|
-
const _hoisted_5$
|
|
20833
|
+
const _hoisted_5$t = {
|
|
20834
20834
|
key: 1,
|
|
20835
20835
|
class: "yc-display-card__subtitle"
|
|
20836
20836
|
};
|
|
20837
|
-
const _hoisted_6$
|
|
20838
|
-
const _hoisted_7$
|
|
20837
|
+
const _hoisted_6$r = { class: "yc-display-card__badge" };
|
|
20838
|
+
const _hoisted_7$p = {
|
|
20839
20839
|
key: 1,
|
|
20840
20840
|
class: "yc-display-table-card__summary"
|
|
20841
20841
|
};
|
|
20842
|
-
const _hoisted_8$
|
|
20843
|
-
const _hoisted_9$
|
|
20844
|
-
const _hoisted_10$
|
|
20845
|
-
|
|
20842
|
+
const _hoisted_8$l = { class: "yc-display-table-card__summary-label" };
|
|
20843
|
+
const _hoisted_9$k = { class: "yc-display-table-card__summary-value" };
|
|
20844
|
+
const _hoisted_10$j = {
|
|
20845
|
+
key: 2,
|
|
20846
|
+
class: "yc-display-table-card__search"
|
|
20847
|
+
};
|
|
20848
|
+
const _hoisted_11$j = { class: "yc-display-table-card__scroll" };
|
|
20849
|
+
const _hoisted_12$i = {
|
|
20846
20850
|
key: 0,
|
|
20847
20851
|
class: "yc-display-table-card__table"
|
|
20848
20852
|
};
|
|
20849
|
-
const
|
|
20853
|
+
const _hoisted_13$h = {
|
|
20850
20854
|
key: 1,
|
|
20851
20855
|
class: "yc-display-card__empty"
|
|
20852
20856
|
};
|
|
20853
|
-
const
|
|
20854
|
-
key:
|
|
20857
|
+
const _hoisted_14$e = {
|
|
20858
|
+
key: 3,
|
|
20855
20859
|
class: "yc-display-card__footer"
|
|
20856
20860
|
};
|
|
20857
|
-
|
|
20861
|
+
const _hoisted_15$d = ["disabled"];
|
|
20862
|
+
const _hoisted_16$d = { class: "yc-display-table-card__page" };
|
|
20863
|
+
const _hoisted_17$c = ["disabled"];
|
|
20864
|
+
var _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
20858
20865
|
...{ name: "YcDisplayTableCard" },
|
|
20859
20866
|
__name: "table-card",
|
|
20860
20867
|
props: {
|
|
@@ -20867,17 +20874,41 @@ var _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
20867
20874
|
},
|
|
20868
20875
|
setup(__props) {
|
|
20869
20876
|
const props = __props;
|
|
20870
|
-
const
|
|
20877
|
+
const query = ref("");
|
|
20878
|
+
const page = ref(1);
|
|
20871
20879
|
const normalizedColumns = computed(() => {
|
|
20872
20880
|
if (props.columns.length > 0) return props.columns;
|
|
20873
20881
|
const first = props.rows[0];
|
|
20874
20882
|
if (!first || typeof first !== "object") return [];
|
|
20875
20883
|
return Object.keys(first).map((key) => ({ key, label: key }));
|
|
20876
20884
|
});
|
|
20877
|
-
const
|
|
20878
|
-
|
|
20879
|
-
()
|
|
20885
|
+
const filteredRows = computed(() => {
|
|
20886
|
+
const keyword = query.value.trim().toLowerCase();
|
|
20887
|
+
if (!keyword) return props.rows;
|
|
20888
|
+
return props.rows.filter(
|
|
20889
|
+
(row) => normalizedColumns.value.some(
|
|
20890
|
+
(col) => formatCell(row, col).toLowerCase().includes(keyword)
|
|
20891
|
+
)
|
|
20892
|
+
);
|
|
20893
|
+
});
|
|
20894
|
+
const pageCount = computed(
|
|
20895
|
+
() => Math.max(1, Math.ceil(filteredRows.value.length / props.maxRows))
|
|
20880
20896
|
);
|
|
20897
|
+
const showControls = computed(() => props.rows.length > props.maxRows);
|
|
20898
|
+
const visibleRows = computed(() => {
|
|
20899
|
+
if (!showControls.value) return filteredRows.value;
|
|
20900
|
+
const start = (page.value - 1) * props.maxRows;
|
|
20901
|
+
return filteredRows.value.slice(start, start + props.maxRows);
|
|
20902
|
+
});
|
|
20903
|
+
watch(query, () => {
|
|
20904
|
+
page.value = 1;
|
|
20905
|
+
});
|
|
20906
|
+
watch(pageCount, (count) => {
|
|
20907
|
+
if (page.value > count) page.value = count;
|
|
20908
|
+
});
|
|
20909
|
+
function stepPage(delta) {
|
|
20910
|
+
page.value = Math.min(pageCount.value, Math.max(1, page.value + delta));
|
|
20911
|
+
}
|
|
20881
20912
|
function formatCell(row, col) {
|
|
20882
20913
|
const raw = row == null ? void 0 : row[col.key];
|
|
20883
20914
|
if (raw === void 0 || raw === null || raw === "") return "\u2014";
|
|
@@ -20885,19 +20916,19 @@ var _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
20885
20916
|
return col.unit ? `${text} ${col.unit}` : text;
|
|
20886
20917
|
}
|
|
20887
20918
|
return (_ctx, _cache) => {
|
|
20888
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20889
|
-
__props.title || __props.subtitle || __props.rows.length ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
20890
|
-
createElementVNode("div", _hoisted_3$
|
|
20919
|
+
return openBlock(), createElementBlock("div", _hoisted_1$R, [
|
|
20920
|
+
__props.title || __props.subtitle || __props.rows.length ? (openBlock(), createElementBlock("div", _hoisted_2$E, [
|
|
20921
|
+
createElementVNode("div", _hoisted_3$A, [
|
|
20891
20922
|
__props.title ? (openBlock(), createElementBlock(
|
|
20892
20923
|
"div",
|
|
20893
|
-
_hoisted_4$
|
|
20924
|
+
_hoisted_4$z,
|
|
20894
20925
|
toDisplayString(__props.title),
|
|
20895
20926
|
1
|
|
20896
20927
|
/* TEXT */
|
|
20897
20928
|
)) : createCommentVNode("v-if", true),
|
|
20898
20929
|
__props.subtitle ? (openBlock(), createElementBlock(
|
|
20899
20930
|
"div",
|
|
20900
|
-
_hoisted_5$
|
|
20931
|
+
_hoisted_5$t,
|
|
20901
20932
|
toDisplayString(__props.subtitle),
|
|
20902
20933
|
1
|
|
20903
20934
|
/* TEXT */
|
|
@@ -20905,13 +20936,13 @@ var _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
20905
20936
|
]),
|
|
20906
20937
|
createElementVNode(
|
|
20907
20938
|
"span",
|
|
20908
|
-
_hoisted_6$
|
|
20939
|
+
_hoisted_6$r,
|
|
20909
20940
|
"\u5171 " + toDisplayString(__props.rows.length) + " \u6761",
|
|
20910
20941
|
1
|
|
20911
20942
|
/* TEXT */
|
|
20912
20943
|
)
|
|
20913
20944
|
])) : createCommentVNode("v-if", true),
|
|
20914
|
-
__props.summary.length ? (openBlock(), createElementBlock("div", _hoisted_7$
|
|
20945
|
+
__props.summary.length ? (openBlock(), createElementBlock("div", _hoisted_7$p, [
|
|
20915
20946
|
(openBlock(true), createElementBlock(
|
|
20916
20947
|
Fragment,
|
|
20917
20948
|
null,
|
|
@@ -20922,14 +20953,14 @@ var _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
20922
20953
|
}, [
|
|
20923
20954
|
createElementVNode(
|
|
20924
20955
|
"span",
|
|
20925
|
-
_hoisted_8$
|
|
20956
|
+
_hoisted_8$l,
|
|
20926
20957
|
toDisplayString(item.label),
|
|
20927
20958
|
1
|
|
20928
20959
|
/* TEXT */
|
|
20929
20960
|
),
|
|
20930
20961
|
createElementVNode(
|
|
20931
20962
|
"strong",
|
|
20932
|
-
_hoisted_9$
|
|
20963
|
+
_hoisted_9$k,
|
|
20933
20964
|
toDisplayString(item.value),
|
|
20934
20965
|
1
|
|
20935
20966
|
/* TEXT */
|
|
@@ -20940,8 +20971,25 @@ var _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
20940
20971
|
/* KEYED_FRAGMENT */
|
|
20941
20972
|
))
|
|
20942
20973
|
])) : createCommentVNode("v-if", true),
|
|
20943
|
-
|
|
20944
|
-
|
|
20974
|
+
showControls.value ? (openBlock(), createElementBlock("div", _hoisted_10$j, [
|
|
20975
|
+
withDirectives(createElementVNode(
|
|
20976
|
+
"input",
|
|
20977
|
+
{
|
|
20978
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => query.value = $event),
|
|
20979
|
+
type: "search",
|
|
20980
|
+
class: "yc-display-table-card__search-input",
|
|
20981
|
+
placeholder: "\u641C\u7D22\u8868\u683C",
|
|
20982
|
+
"aria-label": "\u641C\u7D22\u8868\u683C"
|
|
20983
|
+
},
|
|
20984
|
+
null,
|
|
20985
|
+
512
|
|
20986
|
+
/* NEED_PATCH */
|
|
20987
|
+
), [
|
|
20988
|
+
[vModelText, query.value]
|
|
20989
|
+
])
|
|
20990
|
+
])) : createCommentVNode("v-if", true),
|
|
20991
|
+
createElementVNode("div", _hoisted_11$j, [
|
|
20992
|
+
normalizedColumns.value.length && __props.rows.length ? (openBlock(), createElementBlock("table", _hoisted_12$i, [
|
|
20945
20993
|
createElementVNode("thead", null, [
|
|
20946
20994
|
createElementVNode("tr", null, [
|
|
20947
20995
|
(openBlock(true), createElementBlock(
|
|
@@ -20996,66 +21044,74 @@ var _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
20996
21044
|
/* KEYED_FRAGMENT */
|
|
20997
21045
|
))
|
|
20998
21046
|
])
|
|
20999
|
-
])) : (openBlock(), createElementBlock("div",
|
|
21047
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_13$h, "\u6682\u65E0\u53EF\u5C55\u793A\u7684\u8868\u683C\u6570\u636E"))
|
|
21000
21048
|
]),
|
|
21001
|
-
|
|
21049
|
+
showControls.value ? (openBlock(), createElementBlock("div", _hoisted_14$e, [
|
|
21050
|
+
createElementVNode("button", {
|
|
21051
|
+
type: "button",
|
|
21052
|
+
class: "yc-display-card__toggle",
|
|
21053
|
+
disabled: page.value <= 1,
|
|
21054
|
+
onClick: _cache[1] || (_cache[1] = ($event) => stepPage(-1))
|
|
21055
|
+
}, " \u4E0A\u4E00\u9875 ", 8, _hoisted_15$d),
|
|
21002
21056
|
createElementVNode(
|
|
21003
|
-
"
|
|
21004
|
-
|
|
21005
|
-
|
|
21006
|
-
class: "yc-display-card__toggle",
|
|
21007
|
-
onClick: _cache[0] || (_cache[0] = ($event) => expanded.value = !expanded.value)
|
|
21008
|
-
},
|
|
21009
|
-
toDisplayString(expanded.value ? "\u6536\u8D77\u660E\u7EC6" : `\u5C55\u5F00\u5168\u90E8 ${__props.rows.length} \u884C`),
|
|
21057
|
+
"span",
|
|
21058
|
+
_hoisted_16$d,
|
|
21059
|
+
toDisplayString(page.value) + " / " + toDisplayString(pageCount.value) + " \xB7 " + toDisplayString(filteredRows.value.length) + " \u6761 ",
|
|
21010
21060
|
1
|
|
21011
21061
|
/* TEXT */
|
|
21012
|
-
)
|
|
21062
|
+
),
|
|
21063
|
+
createElementVNode("button", {
|
|
21064
|
+
type: "button",
|
|
21065
|
+
class: "yc-display-card__toggle",
|
|
21066
|
+
disabled: page.value >= pageCount.value,
|
|
21067
|
+
onClick: _cache[2] || (_cache[2] = ($event) => stepPage(1))
|
|
21068
|
+
}, " \u4E0B\u4E00\u9875 ", 8, _hoisted_17$c)
|
|
21013
21069
|
])) : createCommentVNode("v-if", true)
|
|
21014
21070
|
]);
|
|
21015
21071
|
};
|
|
21016
21072
|
}
|
|
21017
21073
|
});
|
|
21018
21074
|
|
|
21019
|
-
var TableCard = /* @__PURE__ */ _export_sfc$1(_sfc_main
|
|
21075
|
+
var TableCard = /* @__PURE__ */ _export_sfc$1(_sfc_main$$, [["__scopeId", "data-v-8a140e59"]]);
|
|
21020
21076
|
|
|
21021
|
-
const _hoisted_1$
|
|
21022
|
-
const _hoisted_2$
|
|
21077
|
+
const _hoisted_1$Q = { class: "yc-display-card yc-display-metrics-card" };
|
|
21078
|
+
const _hoisted_2$D = {
|
|
21023
21079
|
key: 0,
|
|
21024
21080
|
class: "yc-display-card__header"
|
|
21025
21081
|
};
|
|
21026
|
-
const _hoisted_3$
|
|
21027
|
-
const _hoisted_4$
|
|
21082
|
+
const _hoisted_3$z = { class: "yc-display-card__title-wrap" };
|
|
21083
|
+
const _hoisted_4$y = {
|
|
21028
21084
|
key: 0,
|
|
21029
21085
|
class: "yc-display-card__title"
|
|
21030
21086
|
};
|
|
21031
|
-
const _hoisted_5$
|
|
21087
|
+
const _hoisted_5$s = {
|
|
21032
21088
|
key: 1,
|
|
21033
21089
|
class: "yc-display-card__subtitle"
|
|
21034
21090
|
};
|
|
21035
|
-
const _hoisted_6$
|
|
21091
|
+
const _hoisted_6$q = {
|
|
21036
21092
|
key: 1,
|
|
21037
21093
|
class: "yc-display-metrics-card__grid"
|
|
21038
21094
|
};
|
|
21039
|
-
const _hoisted_7$
|
|
21040
|
-
const _hoisted_8$
|
|
21041
|
-
const _hoisted_9$
|
|
21042
|
-
const _hoisted_10$
|
|
21095
|
+
const _hoisted_7$o = { class: "yc-display-metrics-card__label" };
|
|
21096
|
+
const _hoisted_8$k = { class: "yc-display-metrics-card__value-row" };
|
|
21097
|
+
const _hoisted_9$j = { class: "yc-display-metrics-card__value" };
|
|
21098
|
+
const _hoisted_10$i = {
|
|
21043
21099
|
key: 0,
|
|
21044
21100
|
class: "yc-display-metrics-card__unit"
|
|
21045
21101
|
};
|
|
21046
|
-
const _hoisted_11$
|
|
21102
|
+
const _hoisted_11$i = {
|
|
21047
21103
|
key: 0,
|
|
21048
21104
|
class: "yc-display-metrics-card__meta"
|
|
21049
21105
|
};
|
|
21050
|
-
const _hoisted_12$
|
|
21106
|
+
const _hoisted_12$h = {
|
|
21051
21107
|
key: 1,
|
|
21052
21108
|
class: "yc-display-metrics-card__desc"
|
|
21053
21109
|
};
|
|
21054
|
-
const _hoisted_13$
|
|
21110
|
+
const _hoisted_13$g = {
|
|
21055
21111
|
key: 2,
|
|
21056
21112
|
class: "yc-display-card__empty"
|
|
21057
21113
|
};
|
|
21058
|
-
var _sfc_main$
|
|
21114
|
+
var _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
21059
21115
|
...{ name: "YcDisplayMetricsCard" },
|
|
21060
21116
|
__name: "metrics-card",
|
|
21061
21117
|
props: {
|
|
@@ -21065,26 +21121,26 @@ var _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
21065
21121
|
},
|
|
21066
21122
|
setup(__props) {
|
|
21067
21123
|
return (_ctx, _cache) => {
|
|
21068
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
21069
|
-
__props.title || __props.subtitle ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
21070
|
-
createElementVNode("div", _hoisted_3$
|
|
21124
|
+
return openBlock(), createElementBlock("div", _hoisted_1$Q, [
|
|
21125
|
+
__props.title || __props.subtitle ? (openBlock(), createElementBlock("div", _hoisted_2$D, [
|
|
21126
|
+
createElementVNode("div", _hoisted_3$z, [
|
|
21071
21127
|
__props.title ? (openBlock(), createElementBlock(
|
|
21072
21128
|
"div",
|
|
21073
|
-
_hoisted_4$
|
|
21129
|
+
_hoisted_4$y,
|
|
21074
21130
|
toDisplayString(__props.title),
|
|
21075
21131
|
1
|
|
21076
21132
|
/* TEXT */
|
|
21077
21133
|
)) : createCommentVNode("v-if", true),
|
|
21078
21134
|
__props.subtitle ? (openBlock(), createElementBlock(
|
|
21079
21135
|
"div",
|
|
21080
|
-
_hoisted_5$
|
|
21136
|
+
_hoisted_5$s,
|
|
21081
21137
|
toDisplayString(__props.subtitle),
|
|
21082
21138
|
1
|
|
21083
21139
|
/* TEXT */
|
|
21084
21140
|
)) : createCommentVNode("v-if", true)
|
|
21085
21141
|
])
|
|
21086
21142
|
])) : createCommentVNode("v-if", true),
|
|
21087
|
-
__props.items.length ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
21143
|
+
__props.items.length ? (openBlock(), createElementBlock("div", _hoisted_6$q, [
|
|
21088
21144
|
(openBlock(true), createElementBlock(
|
|
21089
21145
|
Fragment,
|
|
21090
21146
|
null,
|
|
@@ -21096,28 +21152,28 @@ var _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
21096
21152
|
}, [
|
|
21097
21153
|
createElementVNode(
|
|
21098
21154
|
"div",
|
|
21099
|
-
_hoisted_7$
|
|
21155
|
+
_hoisted_7$o,
|
|
21100
21156
|
toDisplayString(item.label),
|
|
21101
21157
|
1
|
|
21102
21158
|
/* TEXT */
|
|
21103
21159
|
),
|
|
21104
|
-
createElementVNode("div", _hoisted_8$
|
|
21160
|
+
createElementVNode("div", _hoisted_8$k, [
|
|
21105
21161
|
createElementVNode(
|
|
21106
21162
|
"span",
|
|
21107
|
-
_hoisted_9$
|
|
21163
|
+
_hoisted_9$j,
|
|
21108
21164
|
toDisplayString(item.value),
|
|
21109
21165
|
1
|
|
21110
21166
|
/* TEXT */
|
|
21111
21167
|
),
|
|
21112
21168
|
item.unit ? (openBlock(), createElementBlock(
|
|
21113
21169
|
"span",
|
|
21114
|
-
_hoisted_10$
|
|
21170
|
+
_hoisted_10$i,
|
|
21115
21171
|
toDisplayString(item.unit),
|
|
21116
21172
|
1
|
|
21117
21173
|
/* TEXT */
|
|
21118
21174
|
)) : createCommentVNode("v-if", true)
|
|
21119
21175
|
]),
|
|
21120
|
-
item.trend || item.description ? (openBlock(), createElementBlock("div", _hoisted_11$
|
|
21176
|
+
item.trend || item.description ? (openBlock(), createElementBlock("div", _hoisted_11$i, [
|
|
21121
21177
|
item.trend ? (openBlock(), createElementBlock(
|
|
21122
21178
|
"span",
|
|
21123
21179
|
{
|
|
@@ -21130,7 +21186,7 @@ var _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
21130
21186
|
)) : createCommentVNode("v-if", true),
|
|
21131
21187
|
item.description ? (openBlock(), createElementBlock(
|
|
21132
21188
|
"span",
|
|
21133
|
-
_hoisted_12$
|
|
21189
|
+
_hoisted_12$h,
|
|
21134
21190
|
toDisplayString(item.description),
|
|
21135
21191
|
1
|
|
21136
21192
|
/* TEXT */
|
|
@@ -21141,41 +21197,41 @@ var _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
21141
21197
|
128
|
|
21142
21198
|
/* KEYED_FRAGMENT */
|
|
21143
21199
|
))
|
|
21144
|
-
])) : (openBlock(), createElementBlock("div", _hoisted_13$
|
|
21200
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_13$g, "\u6682\u65E0\u53EF\u5C55\u793A\u7684\u6307\u6807\u6570\u636E"))
|
|
21145
21201
|
]);
|
|
21146
21202
|
};
|
|
21147
21203
|
}
|
|
21148
21204
|
});
|
|
21149
21205
|
|
|
21150
|
-
var MetricsCard = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
21206
|
+
var MetricsCard = /* @__PURE__ */ _export_sfc$1(_sfc_main$_, [["__scopeId", "data-v-e32f55d2"]]);
|
|
21151
21207
|
|
|
21152
|
-
const _hoisted_1$
|
|
21153
|
-
const _hoisted_2$
|
|
21208
|
+
const _hoisted_1$P = { class: "yc-display-card yc-display-detail-card" };
|
|
21209
|
+
const _hoisted_2$C = {
|
|
21154
21210
|
key: 0,
|
|
21155
21211
|
class: "yc-display-card__header"
|
|
21156
21212
|
};
|
|
21157
|
-
const _hoisted_3$
|
|
21158
|
-
const _hoisted_4$
|
|
21213
|
+
const _hoisted_3$y = { class: "yc-display-card__title-wrap" };
|
|
21214
|
+
const _hoisted_4$x = {
|
|
21159
21215
|
key: 0,
|
|
21160
21216
|
class: "yc-display-card__title"
|
|
21161
21217
|
};
|
|
21162
|
-
const _hoisted_5$
|
|
21218
|
+
const _hoisted_5$r = {
|
|
21163
21219
|
key: 1,
|
|
21164
21220
|
class: "yc-display-card__subtitle"
|
|
21165
21221
|
};
|
|
21166
|
-
const _hoisted_6$
|
|
21222
|
+
const _hoisted_6$p = {
|
|
21167
21223
|
key: 1,
|
|
21168
21224
|
class: "yc-display-detail-card__fields"
|
|
21169
21225
|
};
|
|
21170
|
-
const _hoisted_7$
|
|
21226
|
+
const _hoisted_7$n = {
|
|
21171
21227
|
key: 2,
|
|
21172
21228
|
class: "yc-display-card__empty"
|
|
21173
21229
|
};
|
|
21174
|
-
const _hoisted_8$
|
|
21230
|
+
const _hoisted_8$j = {
|
|
21175
21231
|
key: 3,
|
|
21176
21232
|
class: "yc-display-detail-card__note"
|
|
21177
21233
|
};
|
|
21178
|
-
var _sfc_main$
|
|
21234
|
+
var _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
21179
21235
|
...{ name: "YcDisplayDetailCard" },
|
|
21180
21236
|
__name: "detail-card",
|
|
21181
21237
|
props: {
|
|
@@ -21188,19 +21244,19 @@ var _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
21188
21244
|
setup(__props) {
|
|
21189
21245
|
return (_ctx, _cache) => {
|
|
21190
21246
|
var _a, _b, _c;
|
|
21191
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
21192
|
-
__props.title || __props.subtitle || ((_a = __props.status) == null ? void 0 : _a.text) ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
21193
|
-
createElementVNode("div", _hoisted_3$
|
|
21247
|
+
return openBlock(), createElementBlock("div", _hoisted_1$P, [
|
|
21248
|
+
__props.title || __props.subtitle || ((_a = __props.status) == null ? void 0 : _a.text) ? (openBlock(), createElementBlock("div", _hoisted_2$C, [
|
|
21249
|
+
createElementVNode("div", _hoisted_3$y, [
|
|
21194
21250
|
__props.title ? (openBlock(), createElementBlock(
|
|
21195
21251
|
"div",
|
|
21196
|
-
_hoisted_4$
|
|
21252
|
+
_hoisted_4$x,
|
|
21197
21253
|
toDisplayString(__props.title),
|
|
21198
21254
|
1
|
|
21199
21255
|
/* TEXT */
|
|
21200
21256
|
)) : createCommentVNode("v-if", true),
|
|
21201
21257
|
__props.subtitle ? (openBlock(), createElementBlock(
|
|
21202
21258
|
"div",
|
|
21203
|
-
_hoisted_5$
|
|
21259
|
+
_hoisted_5$r,
|
|
21204
21260
|
toDisplayString(__props.subtitle),
|
|
21205
21261
|
1
|
|
21206
21262
|
/* TEXT */
|
|
@@ -21217,7 +21273,7 @@ var _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
21217
21273
|
/* TEXT, CLASS */
|
|
21218
21274
|
)) : createCommentVNode("v-if", true)
|
|
21219
21275
|
])) : createCommentVNode("v-if", true),
|
|
21220
|
-
__props.fields.length ? (openBlock(), createElementBlock("dl", _hoisted_6$
|
|
21276
|
+
__props.fields.length ? (openBlock(), createElementBlock("dl", _hoisted_6$p, [
|
|
21221
21277
|
(openBlock(true), createElementBlock(
|
|
21222
21278
|
Fragment,
|
|
21223
21279
|
null,
|
|
@@ -21251,10 +21307,10 @@ var _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
21251
21307
|
128
|
|
21252
21308
|
/* KEYED_FRAGMENT */
|
|
21253
21309
|
))
|
|
21254
|
-
])) : (openBlock(), createElementBlock("div", _hoisted_7$
|
|
21310
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_7$n, "\u6682\u65E0\u53EF\u5C55\u793A\u7684\u8BE6\u60C5\u5B57\u6BB5")),
|
|
21255
21311
|
__props.note ? (openBlock(), createElementBlock(
|
|
21256
21312
|
"div",
|
|
21257
|
-
_hoisted_8$
|
|
21313
|
+
_hoisted_8$j,
|
|
21258
21314
|
toDisplayString(__props.note),
|
|
21259
21315
|
1
|
|
21260
21316
|
/* TEXT */
|
|
@@ -21264,19 +21320,931 @@ var _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
21264
21320
|
}
|
|
21265
21321
|
});
|
|
21266
21322
|
|
|
21267
|
-
var DetailCard = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
21323
|
+
var DetailCard = /* @__PURE__ */ _export_sfc$1(_sfc_main$Z, [["__scopeId", "data-v-d75e2d96"]]);
|
|
21324
|
+
|
|
21325
|
+
const _hoisted_1$O = { class: "yc-display-card__header" };
|
|
21326
|
+
const _hoisted_2$B = { class: "yc-display-card__title-wrap yc-display-form-card__title-group" };
|
|
21327
|
+
const _hoisted_3$x = { class: "yc-display-form-card__titles" };
|
|
21328
|
+
const _hoisted_4$w = { class: "yc-display-card__title" };
|
|
21329
|
+
const _hoisted_5$q = {
|
|
21330
|
+
key: 0,
|
|
21331
|
+
class: "yc-display-card__subtitle"
|
|
21332
|
+
};
|
|
21333
|
+
const _hoisted_6$o = {
|
|
21334
|
+
key: 0,
|
|
21335
|
+
class: "yc-display-form-card__loading"
|
|
21336
|
+
};
|
|
21337
|
+
const _hoisted_7$m = {
|
|
21338
|
+
key: 1,
|
|
21339
|
+
class: "yc-display-form-card__body"
|
|
21340
|
+
};
|
|
21341
|
+
const _hoisted_8$i = {
|
|
21342
|
+
key: 0,
|
|
21343
|
+
class: "yc-display-form-card__grid"
|
|
21344
|
+
};
|
|
21345
|
+
const _hoisted_9$i = { class: "yc-display-form-card__label" };
|
|
21346
|
+
const _hoisted_10$h = {
|
|
21347
|
+
key: 0,
|
|
21348
|
+
class: "is-required"
|
|
21349
|
+
};
|
|
21350
|
+
const _hoisted_11$h = ["value", "disabled", "onFocus", "onChange"];
|
|
21351
|
+
const _hoisted_12$g = { value: "" };
|
|
21352
|
+
const _hoisted_13$f = ["value"];
|
|
21353
|
+
const _hoisted_14$d = ["type", "value", "disabled", "onInput"];
|
|
21354
|
+
const _hoisted_15$c = ["step", "inputmode", "value", "disabled", "placeholder", "onInput"];
|
|
21355
|
+
const _hoisted_16$c = ["aria-checked", "disabled", "onClick"];
|
|
21356
|
+
const _hoisted_17$b = {
|
|
21357
|
+
key: 4,
|
|
21358
|
+
class: "yc-display-form-card__upload"
|
|
21359
|
+
};
|
|
21360
|
+
const _hoisted_18$b = ["accept", "onChange"];
|
|
21361
|
+
const _hoisted_19$a = { class: "yc-display-form-card__upload-list" };
|
|
21362
|
+
const _hoisted_20$a = {
|
|
21363
|
+
key: 0,
|
|
21364
|
+
class: "yc-display-form-card__thumb"
|
|
21365
|
+
};
|
|
21366
|
+
const _hoisted_21$9 = ["src", "alt"];
|
|
21367
|
+
const _hoisted_22$9 = ["onClick"];
|
|
21368
|
+
const _hoisted_23$7 = {
|
|
21369
|
+
key: 1,
|
|
21370
|
+
class: "yc-display-form-card__file-chip"
|
|
21371
|
+
};
|
|
21372
|
+
const _hoisted_24$6 = { class: "yc-display-form-card__file-name" };
|
|
21373
|
+
const _hoisted_25$6 = ["onClick"];
|
|
21374
|
+
const _hoisted_26$6 = ["disabled", "onClick"];
|
|
21375
|
+
const _hoisted_27$6 = { key: 0 };
|
|
21376
|
+
const _hoisted_28$6 = { key: 1 };
|
|
21377
|
+
const _hoisted_29$6 = ["value", "disabled", "placeholder", "onInput"];
|
|
21378
|
+
const _hoisted_30$6 = ["value", "disabled", "placeholder", "onInput"];
|
|
21379
|
+
const _hoisted_31$6 = { class: "yc-display-form-card__actions" };
|
|
21380
|
+
const _hoisted_32$5 = ["disabled"];
|
|
21381
|
+
const _hoisted_33$4 = ["disabled"];
|
|
21382
|
+
const _hoisted_34$4 = {
|
|
21383
|
+
key: 1,
|
|
21384
|
+
class: "yc-display-form-card__alert is-error"
|
|
21385
|
+
};
|
|
21386
|
+
const _hoisted_35$4 = {
|
|
21387
|
+
key: 2,
|
|
21388
|
+
class: "yc-display-form-card__alert is-success"
|
|
21389
|
+
};
|
|
21390
|
+
const _hoisted_36$3 = {
|
|
21391
|
+
key: 3,
|
|
21392
|
+
class: "yc-display-form-card__result"
|
|
21393
|
+
};
|
|
21394
|
+
const _hoisted_37$3 = {
|
|
21395
|
+
key: 0,
|
|
21396
|
+
class: "yc-display-form-card__table-wrap"
|
|
21397
|
+
};
|
|
21398
|
+
const _hoisted_38$3 = { class: "yc-display-form-card__table" };
|
|
21399
|
+
const _hoisted_39$2 = {
|
|
21400
|
+
key: 1,
|
|
21401
|
+
class: "yc-display-form-card__kv"
|
|
21402
|
+
};
|
|
21403
|
+
const _hoisted_40$2 = { class: "yc-display-form-card__kv-label" };
|
|
21404
|
+
const _hoisted_41$2 = { class: "yc-display-form-card__kv-value" };
|
|
21405
|
+
var _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
21406
|
+
...{ name: "YcDisplayFormCard" },
|
|
21407
|
+
__name: "form-card",
|
|
21408
|
+
props: {
|
|
21409
|
+
title: { default: "" },
|
|
21410
|
+
subtitle: { default: "" },
|
|
21411
|
+
operation: { default: "" },
|
|
21412
|
+
mode: { default: void 0 },
|
|
21413
|
+
submitLabel: { default: "" },
|
|
21414
|
+
replyPrefix: { default: "" },
|
|
21415
|
+
fields: { default: () => [] },
|
|
21416
|
+
values: { default: () => ({}) },
|
|
21417
|
+
compact: { type: Boolean, default: false },
|
|
21418
|
+
skillName: { default: "" },
|
|
21419
|
+
executeAction: { type: Function, default: void 0 },
|
|
21420
|
+
uploadFile: { type: Function, default: void 0 }
|
|
21421
|
+
},
|
|
21422
|
+
emits: ["action"],
|
|
21423
|
+
setup(__props, { emit: __emit }) {
|
|
21424
|
+
const props = __props;
|
|
21425
|
+
const emit = __emit;
|
|
21426
|
+
const schemaTitle = ref("");
|
|
21427
|
+
const schemaReadOnly = ref(null);
|
|
21428
|
+
const loadedFields = ref([]);
|
|
21429
|
+
const loadingSchema = ref(false);
|
|
21430
|
+
const executing = ref(false);
|
|
21431
|
+
const errorMessage = ref("");
|
|
21432
|
+
const submitReceipt = ref(null);
|
|
21433
|
+
const resultData = ref(null);
|
|
21434
|
+
const hasExecuted = ref(false);
|
|
21435
|
+
const replySent = ref(false);
|
|
21436
|
+
const formValues = reactive({});
|
|
21437
|
+
const remoteOptions = reactive({});
|
|
21438
|
+
const loadingOptions = reactive({});
|
|
21439
|
+
const uploadedFiles = reactive({});
|
|
21440
|
+
const uploadingFields = reactive({});
|
|
21441
|
+
const fileInputRefs = /* @__PURE__ */ new Map();
|
|
21442
|
+
const resolvedMode = computed(() => {
|
|
21443
|
+
if (props.mode === "reply") return "reply";
|
|
21444
|
+
if (props.mode === "submit") return "submit";
|
|
21445
|
+
if (props.mode === "query") return "query";
|
|
21446
|
+
return schemaReadOnly.value === false ? "submit" : "query";
|
|
21447
|
+
});
|
|
21448
|
+
const cardTitle = computed(() => {
|
|
21449
|
+
var _a;
|
|
21450
|
+
if ((_a = props.title) == null ? void 0 : _a.trim()) return props.title.trim();
|
|
21451
|
+
if (schemaTitle.value) return schemaTitle.value;
|
|
21452
|
+
return props.skillName || "\u4E1A\u52A1\u8868\u5355";
|
|
21453
|
+
});
|
|
21454
|
+
const cardSubtitle = computed(
|
|
21455
|
+
() => {
|
|
21456
|
+
var _a;
|
|
21457
|
+
return ((_a = props.subtitle) == null ? void 0 : _a.trim()) ? props.subtitle.trim() : "";
|
|
21458
|
+
}
|
|
21459
|
+
);
|
|
21460
|
+
const resolvedSubmitLabel = computed(() => {
|
|
21461
|
+
var _a;
|
|
21462
|
+
if ((_a = props.submitLabel) == null ? void 0 : _a.trim()) return props.submitLabel.trim();
|
|
21463
|
+
return resolvedMode.value === "query" ? "\u67E5\u8BE2" : "\u63D0\u4EA4";
|
|
21464
|
+
});
|
|
21465
|
+
const canExecute = computed(
|
|
21466
|
+
() => {
|
|
21467
|
+
var _a;
|
|
21468
|
+
return resolvedMode.value === "reply" ? !replySent.value : Boolean(((_a = props.operation) == null ? void 0 : _a.trim()) && props.executeAction);
|
|
21469
|
+
}
|
|
21470
|
+
);
|
|
21471
|
+
function isObject(value) {
|
|
21472
|
+
return Boolean(value) && typeof value === "object" && !Array.isArray(value);
|
|
21473
|
+
}
|
|
21474
|
+
function normalizeInlineOptions(raw) {
|
|
21475
|
+
var _a;
|
|
21476
|
+
if (!Array.isArray(raw)) return void 0;
|
|
21477
|
+
const options = [];
|
|
21478
|
+
for (const item of raw) {
|
|
21479
|
+
if (typeof item === "string" || typeof item === "number") {
|
|
21480
|
+
options.push({ label: String(item), value: item });
|
|
21481
|
+
} else if (isObject(item) && item.value !== void 0 && item.value !== null) {
|
|
21482
|
+
options.push({
|
|
21483
|
+
label: String((_a = item.label) != null ? _a : item.value),
|
|
21484
|
+
value: typeof item.value === "string" || typeof item.value === "number" || typeof item.value === "boolean" ? item.value : String(item.value)
|
|
21485
|
+
});
|
|
21486
|
+
}
|
|
21487
|
+
}
|
|
21488
|
+
return options.length ? options : void 0;
|
|
21489
|
+
}
|
|
21490
|
+
const inlineFields = computed(() => {
|
|
21491
|
+
if (!Array.isArray(props.fields)) return [];
|
|
21492
|
+
return props.fields.filter((item) => Boolean(item) && typeof item === "object" && Boolean(item.name)).map((item) => {
|
|
21493
|
+
var _a;
|
|
21494
|
+
return {
|
|
21495
|
+
...item,
|
|
21496
|
+
name: String(item.name),
|
|
21497
|
+
label: String((_a = item.label) != null ? _a : item.name),
|
|
21498
|
+
visible: item.visible !== false
|
|
21499
|
+
};
|
|
21500
|
+
});
|
|
21501
|
+
});
|
|
21502
|
+
const visibleFields = computed(() => {
|
|
21503
|
+
const source = inlineFields.value.length > 0 ? inlineFields.value : loadedFields.value;
|
|
21504
|
+
return source.filter((field) => field.visible !== false);
|
|
21505
|
+
});
|
|
21506
|
+
function isSelectField(field) {
|
|
21507
|
+
var _a, _b;
|
|
21508
|
+
return Boolean(
|
|
21509
|
+
field.widget === "select" || field.options_operation || ((_a = field.options) == null ? void 0 : _a.length) || ((_b = field.enum) == null ? void 0 : _b.length)
|
|
21510
|
+
);
|
|
21511
|
+
}
|
|
21512
|
+
function isDateField(field) {
|
|
21513
|
+
return field.widget === "date" || field.widget === "datetime";
|
|
21514
|
+
}
|
|
21515
|
+
function isNumberField(field) {
|
|
21516
|
+
return field.type === "number" || field.type === "integer";
|
|
21517
|
+
}
|
|
21518
|
+
function isUploadField(field) {
|
|
21519
|
+
return field.widget === "image" || field.widget === "file";
|
|
21520
|
+
}
|
|
21521
|
+
function extractArray(obj) {
|
|
21522
|
+
for (const key of ["data", "rows", "items", "list", "records"]) {
|
|
21523
|
+
if (Array.isArray(obj[key])) return obj[key];
|
|
21524
|
+
}
|
|
21525
|
+
return null;
|
|
21526
|
+
}
|
|
21527
|
+
const resultRows = computed(() => {
|
|
21528
|
+
if (!hasExecuted.value || resultData.value == null) return null;
|
|
21529
|
+
const raw = Array.isArray(resultData.value) ? resultData.value : isObject(resultData.value) ? extractArray(resultData.value) : null;
|
|
21530
|
+
if (!raw) return null;
|
|
21531
|
+
return raw.filter((item) => isObject(item));
|
|
21532
|
+
});
|
|
21533
|
+
const resultColumns = computed(() => {
|
|
21534
|
+
const rows = resultRows.value;
|
|
21535
|
+
if (!(rows == null ? void 0 : rows.length)) return [];
|
|
21536
|
+
return Object.keys(rows[0]);
|
|
21537
|
+
});
|
|
21538
|
+
const resultDetailEntries = computed(() => {
|
|
21539
|
+
if (!hasExecuted.value || resultRows.value || resultData.value == null) {
|
|
21540
|
+
return [];
|
|
21541
|
+
}
|
|
21542
|
+
if (!isObject(resultData.value)) {
|
|
21543
|
+
return [{ label: "\u7ED3\u679C", value: String(resultData.value) }];
|
|
21544
|
+
}
|
|
21545
|
+
return Object.entries(resultData.value).filter(
|
|
21546
|
+
([, val]) => val === null || ["string", "number", "boolean"].includes(typeof val)
|
|
21547
|
+
).map(([key, val]) => ({
|
|
21548
|
+
label: key,
|
|
21549
|
+
value: val === null ? "-" : String(val)
|
|
21550
|
+
}));
|
|
21551
|
+
});
|
|
21552
|
+
function initPrefilledValues() {
|
|
21553
|
+
if (isObject(props.values)) {
|
|
21554
|
+
for (const [k, v] of Object.entries(props.values)) {
|
|
21555
|
+
formValues[k] = v;
|
|
21556
|
+
}
|
|
21557
|
+
}
|
|
21558
|
+
}
|
|
21559
|
+
function extractSelectOptions(data, labelKey, valueKey) {
|
|
21560
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
21561
|
+
const rows = Array.isArray(data) ? data : isObject(data) ? (_a = extractArray(data)) != null ? _a : [] : [];
|
|
21562
|
+
const options = [];
|
|
21563
|
+
for (const row of rows) {
|
|
21564
|
+
if (typeof row === "string" || typeof row === "number") {
|
|
21565
|
+
options.push({ label: String(row), value: row });
|
|
21566
|
+
continue;
|
|
21567
|
+
}
|
|
21568
|
+
if (!isObject(row)) continue;
|
|
21569
|
+
const rawVal = (_g = (_f = (_e = (_d = (_c = (_b = valueKey && row[valueKey] !== void 0 ? row[valueKey] : void 0) != null ? _b : row.id) != null ? _c : row.value) != null ? _d : row.code) != null ? _e : row.key) != null ? _f : row.projectId) != null ? _g : row.name;
|
|
21570
|
+
const rawLabel = (_l = (_k = (_j = (_i = (_h = labelKey && row[labelKey] !== void 0 ? row[labelKey] : void 0) != null ? _h : row.name) != null ? _i : row.label) != null ? _j : row.title) != null ? _k : row.projectName) != null ? _l : rawVal;
|
|
21571
|
+
if (rawVal === void 0 || rawVal === null) continue;
|
|
21572
|
+
options.push({
|
|
21573
|
+
label: String(rawLabel != null ? rawLabel : rawVal),
|
|
21574
|
+
value: typeof rawVal === "string" || typeof rawVal === "number" || typeof rawVal === "boolean" ? rawVal : String(rawVal)
|
|
21575
|
+
});
|
|
21576
|
+
}
|
|
21577
|
+
return options;
|
|
21578
|
+
}
|
|
21579
|
+
async function loadFieldOptions(field) {
|
|
21580
|
+
const op = field.options_operation;
|
|
21581
|
+
if (!op || !props.executeAction || remoteOptions[field.name] || loadingOptions[field.name]) {
|
|
21582
|
+
return;
|
|
21583
|
+
}
|
|
21584
|
+
loadingOptions[field.name] = true;
|
|
21585
|
+
try {
|
|
21586
|
+
const res = await props.executeAction({ operation: op, mode: "options" });
|
|
21587
|
+
remoteOptions[field.name] = extractSelectOptions(
|
|
21588
|
+
res.data,
|
|
21589
|
+
field.option_label_key,
|
|
21590
|
+
field.option_value_key
|
|
21591
|
+
);
|
|
21592
|
+
} catch (e) {
|
|
21593
|
+
remoteOptions[field.name] = [];
|
|
21594
|
+
} finally {
|
|
21595
|
+
loadingOptions[field.name] = false;
|
|
21596
|
+
}
|
|
21597
|
+
}
|
|
21598
|
+
function fieldOptions(field) {
|
|
21599
|
+
var _a;
|
|
21600
|
+
if ((_a = remoteOptions[field.name]) == null ? void 0 : _a.length) {
|
|
21601
|
+
return remoteOptions[field.name];
|
|
21602
|
+
}
|
|
21603
|
+
const inline = normalizeInlineOptions(field.options);
|
|
21604
|
+
if (inline == null ? void 0 : inline.length) return inline;
|
|
21605
|
+
if (Array.isArray(field.enum) && field.enum.length > 0) {
|
|
21606
|
+
return field.enum.map((item) => ({
|
|
21607
|
+
label: String(item),
|
|
21608
|
+
value: typeof item === "string" || typeof item === "number" || typeof item === "boolean" ? item : String(item)
|
|
21609
|
+
}));
|
|
21610
|
+
}
|
|
21611
|
+
return [];
|
|
21612
|
+
}
|
|
21613
|
+
function handleSelectChange(field, event) {
|
|
21614
|
+
var _a;
|
|
21615
|
+
const select = event.target;
|
|
21616
|
+
const raw = (_a = select == null ? void 0 : select.value) != null ? _a : "";
|
|
21617
|
+
if (raw === "") {
|
|
21618
|
+
formValues[field.name] = void 0;
|
|
21619
|
+
return;
|
|
21620
|
+
}
|
|
21621
|
+
const matched = fieldOptions(field).find((opt) => String(opt.value) === raw);
|
|
21622
|
+
formValues[field.name] = matched ? matched.value : raw;
|
|
21623
|
+
}
|
|
21624
|
+
function handleNumberInput(field, event) {
|
|
21625
|
+
var _a;
|
|
21626
|
+
const input = event.target;
|
|
21627
|
+
const raw = (_a = input == null ? void 0 : input.value) != null ? _a : "";
|
|
21628
|
+
if (raw.trim() === "") {
|
|
21629
|
+
formValues[field.name] = void 0;
|
|
21630
|
+
return;
|
|
21631
|
+
}
|
|
21632
|
+
const num = Number(raw);
|
|
21633
|
+
formValues[field.name] = Number.isNaN(num) ? raw : num;
|
|
21634
|
+
}
|
|
21635
|
+
function formatDateInputValue(field, value) {
|
|
21636
|
+
if (value === void 0 || value === null) return "";
|
|
21637
|
+
const text = String(value);
|
|
21638
|
+
if (field.widget === "datetime") {
|
|
21639
|
+
return text.replace(" ", "T").slice(0, 16);
|
|
21640
|
+
}
|
|
21641
|
+
return text.slice(0, 10);
|
|
21642
|
+
}
|
|
21643
|
+
function handleDateInput(field, event) {
|
|
21644
|
+
var _a;
|
|
21645
|
+
const input = event.target;
|
|
21646
|
+
const raw = (_a = input == null ? void 0 : input.value) != null ? _a : "";
|
|
21647
|
+
if (!raw) {
|
|
21648
|
+
formValues[field.name] = void 0;
|
|
21649
|
+
return;
|
|
21650
|
+
}
|
|
21651
|
+
formValues[field.name] = field.widget === "datetime" ? raw.replace("T", " ") : raw;
|
|
21652
|
+
}
|
|
21653
|
+
async function loadSchemaIfNeeded() {
|
|
21654
|
+
var _a, _b, _c;
|
|
21655
|
+
if (inlineFields.value.length > 0) {
|
|
21656
|
+
for (const f of visibleFields.value) {
|
|
21657
|
+
if (f.options_operation) void loadFieldOptions(f);
|
|
21658
|
+
}
|
|
21659
|
+
return;
|
|
21660
|
+
}
|
|
21661
|
+
if (!((_a = props.operation) == null ? void 0 : _a.trim()) || !props.executeAction) return;
|
|
21662
|
+
loadingSchema.value = true;
|
|
21663
|
+
try {
|
|
21664
|
+
const res = await props.executeAction({
|
|
21665
|
+
operation: props.operation.trim(),
|
|
21666
|
+
mode: "schema",
|
|
21667
|
+
schema_only: true
|
|
21668
|
+
});
|
|
21669
|
+
schemaTitle.value = res.title || "";
|
|
21670
|
+
schemaReadOnly.value = (_b = res.read_only) != null ? _b : null;
|
|
21671
|
+
loadedFields.value = (_c = res.fields) != null ? _c : [];
|
|
21672
|
+
for (const f of loadedFields.value) {
|
|
21673
|
+
if (f.options_operation) void loadFieldOptions(f);
|
|
21674
|
+
}
|
|
21675
|
+
} catch (err) {
|
|
21676
|
+
errorMessage.value = err instanceof Error ? err.message : "\u52A0\u8F7D\u8868\u5355\u5B57\u6BB5\u5B9A\u4E49\u5931\u8D25";
|
|
21677
|
+
} finally {
|
|
21678
|
+
loadingSchema.value = false;
|
|
21679
|
+
}
|
|
21680
|
+
}
|
|
21681
|
+
function setFileInputRef(fieldName, el) {
|
|
21682
|
+
if (el instanceof HTMLInputElement) {
|
|
21683
|
+
fileInputRefs.set(fieldName, el);
|
|
21684
|
+
} else {
|
|
21685
|
+
fileInputRefs.delete(fieldName);
|
|
21686
|
+
}
|
|
21687
|
+
}
|
|
21688
|
+
function triggerFileSelect(fieldName) {
|
|
21689
|
+
var _a;
|
|
21690
|
+
if (replySent.value || uploadingFields[fieldName]) return;
|
|
21691
|
+
(_a = fileInputRefs.get(fieldName)) == null ? void 0 : _a.click();
|
|
21692
|
+
}
|
|
21693
|
+
function syncUploadFormValue(fieldName) {
|
|
21694
|
+
var _a;
|
|
21695
|
+
const items = (_a = uploadedFiles[fieldName]) != null ? _a : [];
|
|
21696
|
+
formValues[fieldName] = items.length ? items.map((item) => item.attachment.fileName) : void 0;
|
|
21697
|
+
}
|
|
21698
|
+
async function createImagePreview(file) {
|
|
21699
|
+
if (typeof URL !== "undefined" && typeof URL.createObjectURL === "function") {
|
|
21700
|
+
return { previewUrl: URL.createObjectURL(file), isObjectUrl: true };
|
|
21701
|
+
}
|
|
21702
|
+
if (typeof FileReader !== "undefined") {
|
|
21703
|
+
return new Promise((resolve) => {
|
|
21704
|
+
const reader = new FileReader();
|
|
21705
|
+
reader.onload = () => {
|
|
21706
|
+
resolve({
|
|
21707
|
+
previewUrl: typeof reader.result === "string" ? reader.result : void 0,
|
|
21708
|
+
isObjectUrl: false
|
|
21709
|
+
});
|
|
21710
|
+
};
|
|
21711
|
+
reader.onerror = () => resolve({});
|
|
21712
|
+
reader.readAsDataURL(file);
|
|
21713
|
+
});
|
|
21714
|
+
}
|
|
21715
|
+
return {};
|
|
21716
|
+
}
|
|
21717
|
+
async function handleFileInputChange(field, event) {
|
|
21718
|
+
const input = event.target;
|
|
21719
|
+
const files = (input == null ? void 0 : input.files) ? Array.from(input.files) : [];
|
|
21720
|
+
if (input) input.value = "";
|
|
21721
|
+
if (!files.length) return;
|
|
21722
|
+
if (!props.uploadFile) {
|
|
21723
|
+
errorMessage.value = "\u5F53\u524D\u9875\u9762\u672A\u914D\u7F6E\u8868\u5355\u4E0A\u4F20\u80FD\u529B\uFF0C\u8BF7\u5728\u4E0B\u65B9\u8F93\u5165\u6846\u76F4\u63A5\u53D1\u9001\u56FE\u7247";
|
|
21724
|
+
return;
|
|
21725
|
+
}
|
|
21726
|
+
errorMessage.value = "";
|
|
21727
|
+
uploadingFields[field.name] = true;
|
|
21728
|
+
if (!uploadedFiles[field.name]) uploadedFiles[field.name] = [];
|
|
21729
|
+
try {
|
|
21730
|
+
for (const file of files) {
|
|
21731
|
+
const attachment = await props.uploadFile(file);
|
|
21732
|
+
const isImage = field.widget === "image" || file.type.startsWith("image/");
|
|
21733
|
+
const preview = isImage ? await createImagePreview(file) : {};
|
|
21734
|
+
uploadedFiles[field.name].push({
|
|
21735
|
+
attachment,
|
|
21736
|
+
previewUrl: preview.previewUrl,
|
|
21737
|
+
isObjectUrl: preview.isObjectUrl
|
|
21738
|
+
});
|
|
21739
|
+
}
|
|
21740
|
+
syncUploadFormValue(field.name);
|
|
21741
|
+
} catch (err) {
|
|
21742
|
+
errorMessage.value = err instanceof Error ? err.message : `\u4E0A\u4F20\u300C${field.label || field.name}\u300D\u5931\u8D25`;
|
|
21743
|
+
} finally {
|
|
21744
|
+
uploadingFields[field.name] = false;
|
|
21745
|
+
}
|
|
21746
|
+
}
|
|
21747
|
+
function removeUploadedItem(fieldName, index) {
|
|
21748
|
+
if (replySent.value) return;
|
|
21749
|
+
const list = uploadedFiles[fieldName];
|
|
21750
|
+
if (!list) return;
|
|
21751
|
+
const [removed] = list.splice(index, 1);
|
|
21752
|
+
if ((removed == null ? void 0 : removed.previewUrl) && removed.isObjectUrl && typeof URL !== "undefined" && typeof URL.revokeObjectURL === "function") {
|
|
21753
|
+
URL.revokeObjectURL(removed.previewUrl);
|
|
21754
|
+
}
|
|
21755
|
+
syncUploadFormValue(fieldName);
|
|
21756
|
+
}
|
|
21757
|
+
function collectUploadedAttachments() {
|
|
21758
|
+
const result = [];
|
|
21759
|
+
for (const field of inlineFields.value) {
|
|
21760
|
+
if (!isUploadField(field)) continue;
|
|
21761
|
+
const list = uploadedFiles[field.name];
|
|
21762
|
+
if (list == null ? void 0 : list.length) {
|
|
21763
|
+
for (const item of list) result.push(item.attachment);
|
|
21764
|
+
}
|
|
21765
|
+
}
|
|
21766
|
+
return result;
|
|
21767
|
+
}
|
|
21768
|
+
function isBlank(value) {
|
|
21769
|
+
if (Array.isArray(value)) return value.length === 0;
|
|
21770
|
+
return value === void 0 || value === null || String(value).trim() === "";
|
|
21771
|
+
}
|
|
21772
|
+
function displayValue(field, value) {
|
|
21773
|
+
var _a;
|
|
21774
|
+
if (isUploadField(field)) {
|
|
21775
|
+
const items = (_a = uploadedFiles[field.name]) != null ? _a : [];
|
|
21776
|
+
if (items.length) {
|
|
21777
|
+
return `\u5DF2\u968F\u6D88\u606F\u4E0A\u4F20 ${items.length} \u4E2A\u9644\u4EF6\uFF08${items.map((item) => item.attachment.fileName).join("\u3001")}\uFF09`;
|
|
21778
|
+
}
|
|
21779
|
+
}
|
|
21780
|
+
const option = fieldOptions(field).find((opt) => opt.value === value);
|
|
21781
|
+
if (!option || option.label === String(value)) return String(value);
|
|
21782
|
+
return `${option.label}\uFF08${String(value)}\uFF09`;
|
|
21783
|
+
}
|
|
21784
|
+
function buildReplyText() {
|
|
21785
|
+
var _a;
|
|
21786
|
+
const prefix = ((_a = props.replyPrefix) == null ? void 0 : _a.trim()) ? props.replyPrefix.trim() : `\u8BF7\u6309\u4EE5\u4E0B\u4FE1\u606F${cardTitle.value}`;
|
|
21787
|
+
const lines = [];
|
|
21788
|
+
for (const field of inlineFields.value) {
|
|
21789
|
+
const value = formValues[field.name];
|
|
21790
|
+
if (isBlank(value)) continue;
|
|
21791
|
+
lines.push(`${field.label || field.name}\uFF1A${displayValue(field, value)}`);
|
|
21792
|
+
}
|
|
21793
|
+
return [`${prefix}\uFF1A`, ...lines].join("\n");
|
|
21794
|
+
}
|
|
21795
|
+
async function handleExecute() {
|
|
21796
|
+
if (!canExecute.value || executing.value) return;
|
|
21797
|
+
errorMessage.value = "";
|
|
21798
|
+
submitReceipt.value = null;
|
|
21799
|
+
if (Object.values(uploadingFields).some(Boolean)) {
|
|
21800
|
+
errorMessage.value = "\u9644\u4EF6\u6B63\u5728\u4E0A\u4F20\u4E2D\uFF0C\u8BF7\u7A0D\u5019\u518D\u63D0\u4EA4";
|
|
21801
|
+
return;
|
|
21802
|
+
}
|
|
21803
|
+
for (const field of visibleFields.value) {
|
|
21804
|
+
if (field.required && isBlank(formValues[field.name])) {
|
|
21805
|
+
const label = field.label || field.name;
|
|
21806
|
+
errorMessage.value = isUploadField(field) ? `\u8BF7\u5148\u4E0A\u4F20\u300C${label}\u300D` : `\u8BF7\u5148\u586B\u5199\u300C${label}\u300D`;
|
|
21807
|
+
return;
|
|
21808
|
+
}
|
|
21809
|
+
}
|
|
21810
|
+
if (resolvedMode.value === "reply") {
|
|
21811
|
+
const attachments = collectUploadedAttachments();
|
|
21812
|
+
replySent.value = true;
|
|
21813
|
+
submitReceipt.value = "\u5DF2\u63D0\u4EA4\uFF0CAgent \u6B63\u5728\u6309\u4F60\u586B\u5199\u7684\u4FE1\u606F\u5904\u7406";
|
|
21814
|
+
if (attachments.length) {
|
|
21815
|
+
emit("action", buildReplyText(), attachments);
|
|
21816
|
+
} else {
|
|
21817
|
+
emit("action", buildReplyText());
|
|
21818
|
+
}
|
|
21819
|
+
return;
|
|
21820
|
+
}
|
|
21821
|
+
if (!props.executeAction) return;
|
|
21822
|
+
executing.value = true;
|
|
21823
|
+
try {
|
|
21824
|
+
const payload = {};
|
|
21825
|
+
for (const [k, v] of Object.entries(formValues)) {
|
|
21826
|
+
if (!isBlank(v)) {
|
|
21827
|
+
payload[k] = v;
|
|
21828
|
+
}
|
|
21829
|
+
}
|
|
21830
|
+
const res = await props.executeAction({
|
|
21831
|
+
operation: props.operation.trim(),
|
|
21832
|
+
mode: resolvedMode.value,
|
|
21833
|
+
values: payload
|
|
21834
|
+
});
|
|
21835
|
+
hasExecuted.value = true;
|
|
21836
|
+
resultData.value = res.data;
|
|
21837
|
+
if (resolvedMode.value === "submit") {
|
|
21838
|
+
submitReceipt.value = `${cardTitle.value}\u5DF2\u63D0\u4EA4\u6210\u529F`;
|
|
21839
|
+
}
|
|
21840
|
+
} catch (err) {
|
|
21841
|
+
errorMessage.value = err instanceof Error ? err.message : "\u64CD\u4F5C\u6267\u884C\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u8F93\u5165\u6761\u4EF6";
|
|
21842
|
+
} finally {
|
|
21843
|
+
executing.value = false;
|
|
21844
|
+
}
|
|
21845
|
+
}
|
|
21846
|
+
function revokeAllUploadPreviews() {
|
|
21847
|
+
if (typeof URL === "undefined" || typeof URL.revokeObjectURL !== "function") {
|
|
21848
|
+
return;
|
|
21849
|
+
}
|
|
21850
|
+
for (const list of Object.values(uploadedFiles)) {
|
|
21851
|
+
for (const item of list) {
|
|
21852
|
+
if (item.previewUrl && item.isObjectUrl) URL.revokeObjectURL(item.previewUrl);
|
|
21853
|
+
}
|
|
21854
|
+
}
|
|
21855
|
+
}
|
|
21856
|
+
function handleReset() {
|
|
21857
|
+
for (const key of Object.keys(formValues)) {
|
|
21858
|
+
delete formValues[key];
|
|
21859
|
+
}
|
|
21860
|
+
revokeAllUploadPreviews();
|
|
21861
|
+
for (const key of Object.keys(uploadedFiles)) {
|
|
21862
|
+
delete uploadedFiles[key];
|
|
21863
|
+
}
|
|
21864
|
+
initPrefilledValues();
|
|
21865
|
+
errorMessage.value = "";
|
|
21866
|
+
if (!replySent.value) submitReceipt.value = null;
|
|
21867
|
+
}
|
|
21868
|
+
watch(
|
|
21869
|
+
() => props.values,
|
|
21870
|
+
() => {
|
|
21871
|
+
initPrefilledValues();
|
|
21872
|
+
},
|
|
21873
|
+
{ immediate: true, deep: true }
|
|
21874
|
+
);
|
|
21875
|
+
onMounted(() => {
|
|
21876
|
+
void loadSchemaIfNeeded();
|
|
21877
|
+
});
|
|
21878
|
+
onBeforeUnmount(() => {
|
|
21879
|
+
revokeAllUploadPreviews();
|
|
21880
|
+
});
|
|
21881
|
+
return (_ctx, _cache) => {
|
|
21882
|
+
var _a;
|
|
21883
|
+
return openBlock(), createElementBlock(
|
|
21884
|
+
"div",
|
|
21885
|
+
{
|
|
21886
|
+
class: normalizeClass(["yc-display-card yc-display-form-card", { "is-compact": __props.compact }])
|
|
21887
|
+
},
|
|
21888
|
+
[
|
|
21889
|
+
createElementVNode("div", _hoisted_1$O, [
|
|
21890
|
+
createElementVNode("div", _hoisted_2$B, [
|
|
21891
|
+
_cache[0] || (_cache[0] = createElementVNode(
|
|
21892
|
+
"span",
|
|
21893
|
+
{ class: "yc-display-form-card__accent" },
|
|
21894
|
+
null,
|
|
21895
|
+
-1
|
|
21896
|
+
/* CACHED */
|
|
21897
|
+
)),
|
|
21898
|
+
createElementVNode("div", _hoisted_3$x, [
|
|
21899
|
+
createElementVNode(
|
|
21900
|
+
"div",
|
|
21901
|
+
_hoisted_4$w,
|
|
21902
|
+
toDisplayString(cardTitle.value),
|
|
21903
|
+
1
|
|
21904
|
+
/* TEXT */
|
|
21905
|
+
),
|
|
21906
|
+
cardSubtitle.value ? (openBlock(), createElementBlock(
|
|
21907
|
+
"div",
|
|
21908
|
+
_hoisted_5$q,
|
|
21909
|
+
toDisplayString(cardSubtitle.value),
|
|
21910
|
+
1
|
|
21911
|
+
/* TEXT */
|
|
21912
|
+
)) : createCommentVNode("v-if", true)
|
|
21913
|
+
])
|
|
21914
|
+
]),
|
|
21915
|
+
createElementVNode(
|
|
21916
|
+
"span",
|
|
21917
|
+
{
|
|
21918
|
+
class: normalizeClass(["yc-display-form-card__badge", resolvedMode.value === "query" ? "is-query" : "is-form"])
|
|
21919
|
+
},
|
|
21920
|
+
toDisplayString(resolvedMode.value === "query" ? "\u7B5B\u9009\u67E5\u8BE2" : "\u4E1A\u52A1\u8868\u5355"),
|
|
21921
|
+
3
|
|
21922
|
+
/* TEXT, CLASS */
|
|
21923
|
+
)
|
|
21924
|
+
]),
|
|
21925
|
+
loadingSchema.value ? (openBlock(), createElementBlock("div", _hoisted_6$o, " \u6B63\u5728\u52A0\u8F7D\u8868\u5355\u914D\u7F6E\u2026 ")) : (openBlock(), createElementBlock("div", _hoisted_7$m, [
|
|
21926
|
+
visibleFields.value.length ? (openBlock(), createElementBlock("div", _hoisted_8$i, [
|
|
21927
|
+
(openBlock(true), createElementBlock(
|
|
21928
|
+
Fragment,
|
|
21929
|
+
null,
|
|
21930
|
+
renderList(visibleFields.value, (field) => {
|
|
21931
|
+
var _a2, _b, _c, _d, _e;
|
|
21932
|
+
return openBlock(), createElementBlock(
|
|
21933
|
+
"div",
|
|
21934
|
+
{
|
|
21935
|
+
key: field.name,
|
|
21936
|
+
class: normalizeClass(["yc-display-form-card__field", {
|
|
21937
|
+
"is-full-row": field.widget === "textarea" || isUploadField(field)
|
|
21938
|
+
}])
|
|
21939
|
+
},
|
|
21940
|
+
[
|
|
21941
|
+
createElementVNode("label", _hoisted_9$i, [
|
|
21942
|
+
field.required ? (openBlock(), createElementBlock("span", _hoisted_10$h, "*")) : createCommentVNode("v-if", true),
|
|
21943
|
+
createTextVNode(
|
|
21944
|
+
" " + toDisplayString(field.label || field.name),
|
|
21945
|
+
1
|
|
21946
|
+
/* TEXT */
|
|
21947
|
+
)
|
|
21948
|
+
]),
|
|
21949
|
+
isSelectField(field) ? (openBlock(), createElementBlock("select", {
|
|
21950
|
+
key: 0,
|
|
21951
|
+
value: (_a2 = formValues[field.name]) != null ? _a2 : "",
|
|
21952
|
+
disabled: replySent.value,
|
|
21953
|
+
class: "yc-display-form-card__control yc-display-form-card__select",
|
|
21954
|
+
onFocus: ($event) => loadFieldOptions(field),
|
|
21955
|
+
onChange: (event) => handleSelectChange(field, event)
|
|
21956
|
+
}, [
|
|
21957
|
+
createElementVNode(
|
|
21958
|
+
"option",
|
|
21959
|
+
_hoisted_12$g,
|
|
21960
|
+
toDisplayString(loadingOptions[field.name] ? "\u52A0\u8F7D\u9009\u9879\u4E2D\u2026" : `\u8BF7\u9009\u62E9${field.label || field.name}`),
|
|
21961
|
+
1
|
|
21962
|
+
/* TEXT */
|
|
21963
|
+
),
|
|
21964
|
+
(openBlock(true), createElementBlock(
|
|
21965
|
+
Fragment,
|
|
21966
|
+
null,
|
|
21967
|
+
renderList(fieldOptions(field), (opt) => {
|
|
21968
|
+
return openBlock(), createElementBlock("option", {
|
|
21969
|
+
key: String(opt.value),
|
|
21970
|
+
value: String(opt.value)
|
|
21971
|
+
}, toDisplayString(opt.label), 9, _hoisted_13$f);
|
|
21972
|
+
}),
|
|
21973
|
+
128
|
|
21974
|
+
/* KEYED_FRAGMENT */
|
|
21975
|
+
))
|
|
21976
|
+
], 40, _hoisted_11$h)) : isDateField(field) ? (openBlock(), createElementBlock("input", {
|
|
21977
|
+
key: 1,
|
|
21978
|
+
type: field.widget === "datetime" ? "datetime-local" : "date",
|
|
21979
|
+
value: formatDateInputValue(field, formValues[field.name]),
|
|
21980
|
+
disabled: replySent.value,
|
|
21981
|
+
class: "yc-display-form-card__control yc-display-form-card__input",
|
|
21982
|
+
onInput: (event) => handleDateInput(field, event)
|
|
21983
|
+
}, null, 40, _hoisted_14$d)) : isNumberField(field) ? (openBlock(), createElementBlock("input", {
|
|
21984
|
+
key: 2,
|
|
21985
|
+
type: "number",
|
|
21986
|
+
step: field.type === "integer" ? "1" : "any",
|
|
21987
|
+
inputmode: field.type === "integer" ? "numeric" : "decimal",
|
|
21988
|
+
value: (_b = formValues[field.name]) != null ? _b : "",
|
|
21989
|
+
disabled: replySent.value,
|
|
21990
|
+
placeholder: `\u8BF7\u8F93\u5165${field.label || field.name}`,
|
|
21991
|
+
class: "yc-display-form-card__control yc-display-form-card__input",
|
|
21992
|
+
onInput: (event) => handleNumberInput(field, event)
|
|
21993
|
+
}, null, 40, _hoisted_15$c)) : field.type === "boolean" ? (openBlock(), createElementBlock("button", {
|
|
21994
|
+
key: 3,
|
|
21995
|
+
type: "button",
|
|
21996
|
+
role: "switch",
|
|
21997
|
+
"aria-checked": Boolean(formValues[field.name]),
|
|
21998
|
+
disabled: replySent.value,
|
|
21999
|
+
class: normalizeClass(["yc-display-form-card__switch", { "is-checked": Boolean(formValues[field.name]) }]),
|
|
22000
|
+
onClick: ($event) => formValues[field.name] = !formValues[field.name]
|
|
22001
|
+
}, [..._cache[1] || (_cache[1] = [
|
|
22002
|
+
createElementVNode(
|
|
22003
|
+
"span",
|
|
22004
|
+
{ class: "yc-display-form-card__switch-thumb" },
|
|
22005
|
+
null,
|
|
22006
|
+
-1
|
|
22007
|
+
/* CACHED */
|
|
22008
|
+
)
|
|
22009
|
+
])], 10, _hoisted_16$c)) : isUploadField(field) ? (openBlock(), createElementBlock("div", _hoisted_17$b, [
|
|
22010
|
+
createElementVNode("input", {
|
|
22011
|
+
ref_for: true,
|
|
22012
|
+
ref: (el) => setFileInputRef(field.name, el),
|
|
22013
|
+
type: "file",
|
|
22014
|
+
multiple: "",
|
|
22015
|
+
accept: field.widget === "image" ? "image/*" : void 0,
|
|
22016
|
+
class: "yc-display-form-card__upload-input",
|
|
22017
|
+
onChange: (event) => handleFileInputChange(field, event)
|
|
22018
|
+
}, null, 40, _hoisted_18$b),
|
|
22019
|
+
createElementVNode("div", _hoisted_19$a, [
|
|
22020
|
+
(openBlock(true), createElementBlock(
|
|
22021
|
+
Fragment,
|
|
22022
|
+
null,
|
|
22023
|
+
renderList((_c = uploadedFiles[field.name]) != null ? _c : [], (item, idx) => {
|
|
22024
|
+
return openBlock(), createElementBlock(
|
|
22025
|
+
Fragment,
|
|
22026
|
+
{
|
|
22027
|
+
key: `${item.attachment.fileRef || item.attachment.fileName}-${idx}`
|
|
22028
|
+
},
|
|
22029
|
+
[
|
|
22030
|
+
item.previewUrl ? (openBlock(), createElementBlock("div", _hoisted_20$a, [
|
|
22031
|
+
createElementVNode("img", {
|
|
22032
|
+
src: item.previewUrl,
|
|
22033
|
+
alt: item.attachment.fileName
|
|
22034
|
+
}, null, 8, _hoisted_21$9),
|
|
22035
|
+
!replySent.value ? (openBlock(), createElementBlock("button", {
|
|
22036
|
+
key: 0,
|
|
22037
|
+
type: "button",
|
|
22038
|
+
class: "yc-display-form-card__thumb-remove",
|
|
22039
|
+
title: "\u79FB\u9664",
|
|
22040
|
+
onClick: ($event) => removeUploadedItem(field.name, idx)
|
|
22041
|
+
}, " \xD7 ", 8, _hoisted_22$9)) : createCommentVNode("v-if", true)
|
|
22042
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_23$7, [
|
|
22043
|
+
createElementVNode(
|
|
22044
|
+
"span",
|
|
22045
|
+
_hoisted_24$6,
|
|
22046
|
+
toDisplayString(item.attachment.fileName),
|
|
22047
|
+
1
|
|
22048
|
+
/* TEXT */
|
|
22049
|
+
),
|
|
22050
|
+
!replySent.value ? (openBlock(), createElementBlock("button", {
|
|
22051
|
+
key: 0,
|
|
22052
|
+
type: "button",
|
|
22053
|
+
class: "yc-display-form-card__file-remove",
|
|
22054
|
+
title: "\u79FB\u9664",
|
|
22055
|
+
onClick: ($event) => removeUploadedItem(field.name, idx)
|
|
22056
|
+
}, " \xD7 ", 8, _hoisted_25$6)) : createCommentVNode("v-if", true)
|
|
22057
|
+
]))
|
|
22058
|
+
],
|
|
22059
|
+
64
|
|
22060
|
+
/* STABLE_FRAGMENT */
|
|
22061
|
+
);
|
|
22062
|
+
}),
|
|
22063
|
+
128
|
|
22064
|
+
/* KEYED_FRAGMENT */
|
|
22065
|
+
)),
|
|
22066
|
+
!replySent.value ? (openBlock(), createElementBlock("button", {
|
|
22067
|
+
key: 0,
|
|
22068
|
+
type: "button",
|
|
22069
|
+
class: normalizeClass(["yc-display-form-card__upload-trigger", {
|
|
22070
|
+
"is-image": field.widget === "image",
|
|
22071
|
+
"is-loading": Boolean(uploadingFields[field.name])
|
|
22072
|
+
}]),
|
|
22073
|
+
disabled: Boolean(uploadingFields[field.name]),
|
|
22074
|
+
onClick: ($event) => triggerFileSelect(field.name)
|
|
22075
|
+
}, [
|
|
22076
|
+
uploadingFields[field.name] ? (openBlock(), createElementBlock("span", _hoisted_27$6, "\u4E0A\u4F20\u4E2D\u2026")) : (openBlock(), createElementBlock(
|
|
22077
|
+
"span",
|
|
22078
|
+
_hoisted_28$6,
|
|
22079
|
+
toDisplayString(field.widget === "image" ? "+ \u4E0A\u4F20\u56FE\u7247" : "+ \u4E0A\u4F20\u9644\u4EF6"),
|
|
22080
|
+
1
|
|
22081
|
+
/* TEXT */
|
|
22082
|
+
))
|
|
22083
|
+
], 10, _hoisted_26$6)) : createCommentVNode("v-if", true)
|
|
22084
|
+
])
|
|
22085
|
+
])) : field.widget === "textarea" ? (openBlock(), createElementBlock("textarea", {
|
|
22086
|
+
key: 5,
|
|
22087
|
+
rows: "3",
|
|
22088
|
+
value: String((_d = formValues[field.name]) != null ? _d : ""),
|
|
22089
|
+
disabled: replySent.value,
|
|
22090
|
+
placeholder: `\u8BF7\u8F93\u5165${field.label || field.name}`,
|
|
22091
|
+
class: "yc-display-form-card__control yc-display-form-card__textarea",
|
|
22092
|
+
onInput: (event) => formValues[field.name] = event.target.value
|
|
22093
|
+
}, null, 40, _hoisted_29$6)) : (openBlock(), createElementBlock("input", {
|
|
22094
|
+
key: 6,
|
|
22095
|
+
type: "text",
|
|
22096
|
+
value: String((_e = formValues[field.name]) != null ? _e : ""),
|
|
22097
|
+
disabled: replySent.value,
|
|
22098
|
+
placeholder: `\u8BF7\u8F93\u5165${field.label || field.name}`,
|
|
22099
|
+
class: "yc-display-form-card__control yc-display-form-card__input",
|
|
22100
|
+
onInput: (event) => formValues[field.name] = event.target.value
|
|
22101
|
+
}, null, 40, _hoisted_30$6))
|
|
22102
|
+
],
|
|
22103
|
+
2
|
|
22104
|
+
/* CLASS */
|
|
22105
|
+
);
|
|
22106
|
+
}),
|
|
22107
|
+
128
|
|
22108
|
+
/* KEYED_FRAGMENT */
|
|
22109
|
+
))
|
|
22110
|
+
])) : createCommentVNode("v-if", true),
|
|
22111
|
+
createElementVNode("div", _hoisted_31$6, [
|
|
22112
|
+
createElementVNode("button", {
|
|
22113
|
+
type: "button",
|
|
22114
|
+
class: "yc-display-form-card__btn is-primary",
|
|
22115
|
+
disabled: !canExecute.value || executing.value,
|
|
22116
|
+
onClick: handleExecute
|
|
22117
|
+
}, toDisplayString(executing.value ? "\u5904\u7406\u4E2D\u2026" : resolvedSubmitLabel.value), 9, _hoisted_32$5),
|
|
22118
|
+
createElementVNode("button", {
|
|
22119
|
+
type: "button",
|
|
22120
|
+
class: "yc-display-form-card__btn is-default",
|
|
22121
|
+
disabled: executing.value || replySent.value,
|
|
22122
|
+
onClick: handleReset
|
|
22123
|
+
}, " \u91CD\u7F6E ", 8, _hoisted_33$4)
|
|
22124
|
+
]),
|
|
22125
|
+
errorMessage.value ? (openBlock(), createElementBlock(
|
|
22126
|
+
"div",
|
|
22127
|
+
_hoisted_34$4,
|
|
22128
|
+
toDisplayString(errorMessage.value),
|
|
22129
|
+
1
|
|
22130
|
+
/* TEXT */
|
|
22131
|
+
)) : createCommentVNode("v-if", true),
|
|
22132
|
+
submitReceipt.value ? (openBlock(), createElementBlock(
|
|
22133
|
+
"div",
|
|
22134
|
+
_hoisted_35$4,
|
|
22135
|
+
toDisplayString(submitReceipt.value),
|
|
22136
|
+
1
|
|
22137
|
+
/* TEXT */
|
|
22138
|
+
)) : createCommentVNode("v-if", true),
|
|
22139
|
+
hasExecuted.value ? (openBlock(), createElementBlock("div", _hoisted_36$3, [
|
|
22140
|
+
((_a = resultRows.value) == null ? void 0 : _a.length) ? (openBlock(), createElementBlock("div", _hoisted_37$3, [
|
|
22141
|
+
createElementVNode("table", _hoisted_38$3, [
|
|
22142
|
+
createElementVNode("thead", null, [
|
|
22143
|
+
createElementVNode("tr", null, [
|
|
22144
|
+
(openBlock(true), createElementBlock(
|
|
22145
|
+
Fragment,
|
|
22146
|
+
null,
|
|
22147
|
+
renderList(resultColumns.value, (col) => {
|
|
22148
|
+
return openBlock(), createElementBlock(
|
|
22149
|
+
"th",
|
|
22150
|
+
{ key: col },
|
|
22151
|
+
toDisplayString(col),
|
|
22152
|
+
1
|
|
22153
|
+
/* TEXT */
|
|
22154
|
+
);
|
|
22155
|
+
}),
|
|
22156
|
+
128
|
|
22157
|
+
/* KEYED_FRAGMENT */
|
|
22158
|
+
))
|
|
22159
|
+
])
|
|
22160
|
+
]),
|
|
22161
|
+
createElementVNode("tbody", null, [
|
|
22162
|
+
(openBlock(true), createElementBlock(
|
|
22163
|
+
Fragment,
|
|
22164
|
+
null,
|
|
22165
|
+
renderList(resultRows.value, (row, rIdx) => {
|
|
22166
|
+
return openBlock(), createElementBlock("tr", { key: rIdx }, [
|
|
22167
|
+
(openBlock(true), createElementBlock(
|
|
22168
|
+
Fragment,
|
|
22169
|
+
null,
|
|
22170
|
+
renderList(resultColumns.value, (col) => {
|
|
22171
|
+
var _a2;
|
|
22172
|
+
return openBlock(), createElementBlock(
|
|
22173
|
+
"td",
|
|
22174
|
+
{ key: col },
|
|
22175
|
+
toDisplayString((_a2 = row[col]) != null ? _a2 : "\u2014"),
|
|
22176
|
+
1
|
|
22177
|
+
/* TEXT */
|
|
22178
|
+
);
|
|
22179
|
+
}),
|
|
22180
|
+
128
|
|
22181
|
+
/* KEYED_FRAGMENT */
|
|
22182
|
+
))
|
|
22183
|
+
]);
|
|
22184
|
+
}),
|
|
22185
|
+
128
|
|
22186
|
+
/* KEYED_FRAGMENT */
|
|
22187
|
+
))
|
|
22188
|
+
])
|
|
22189
|
+
])
|
|
22190
|
+
])) : resultDetailEntries.value.length ? (openBlock(), createElementBlock("div", _hoisted_39$2, [
|
|
22191
|
+
(openBlock(true), createElementBlock(
|
|
22192
|
+
Fragment,
|
|
22193
|
+
null,
|
|
22194
|
+
renderList(resultDetailEntries.value, (entry) => {
|
|
22195
|
+
return openBlock(), createElementBlock("div", {
|
|
22196
|
+
key: entry.label,
|
|
22197
|
+
class: "yc-display-form-card__kv-row"
|
|
22198
|
+
}, [
|
|
22199
|
+
createElementVNode(
|
|
22200
|
+
"span",
|
|
22201
|
+
_hoisted_40$2,
|
|
22202
|
+
toDisplayString(entry.label),
|
|
22203
|
+
1
|
|
22204
|
+
/* TEXT */
|
|
22205
|
+
),
|
|
22206
|
+
createElementVNode(
|
|
22207
|
+
"span",
|
|
22208
|
+
_hoisted_41$2,
|
|
22209
|
+
toDisplayString(entry.value),
|
|
22210
|
+
1
|
|
22211
|
+
/* TEXT */
|
|
22212
|
+
)
|
|
22213
|
+
]);
|
|
22214
|
+
}),
|
|
22215
|
+
128
|
|
22216
|
+
/* KEYED_FRAGMENT */
|
|
22217
|
+
))
|
|
22218
|
+
])) : createCommentVNode("v-if", true)
|
|
22219
|
+
])) : createCommentVNode("v-if", true)
|
|
22220
|
+
]))
|
|
22221
|
+
],
|
|
22222
|
+
2
|
|
22223
|
+
/* CLASS */
|
|
22224
|
+
);
|
|
22225
|
+
};
|
|
22226
|
+
}
|
|
22227
|
+
});
|
|
22228
|
+
|
|
22229
|
+
var FormCard = /* @__PURE__ */ _export_sfc$1(_sfc_main$Y, [["__scopeId", "data-v-4190ddf5"]]);
|
|
21268
22230
|
|
|
21269
22231
|
const YcDisplayTableCard = withInstall(TableCard);
|
|
21270
22232
|
const YcDisplayMetricsCard = withInstall(MetricsCard);
|
|
21271
22233
|
const YcDisplayDetailCard = withInstall(DetailCard);
|
|
22234
|
+
const YcDisplayFormCard = withInstall(FormCard);
|
|
21272
22235
|
|
|
21273
22236
|
const capability$b = {
|
|
21274
|
-
install: [
|
|
22237
|
+
install: [
|
|
22238
|
+
YcDisplayTableCard,
|
|
22239
|
+
YcDisplayMetricsCard,
|
|
22240
|
+
YcDisplayDetailCard,
|
|
22241
|
+
YcDisplayFormCard
|
|
22242
|
+
],
|
|
21275
22243
|
gallery: [
|
|
21276
22244
|
{
|
|
21277
22245
|
id: "yc.common.table",
|
|
21278
22246
|
title: "\u901A\u7528\u6570\u636E\u8868\u683C\u5361",
|
|
21279
|
-
categories: ["\u5361\u7247\u4E0E\u5C55\u793A"
|
|
22247
|
+
categories: ["\u5361\u7247\u4E0E\u5C55\u793A"],
|
|
21280
22248
|
component: YcDisplayTableCard,
|
|
21281
22249
|
props: {
|
|
21282
22250
|
title: "\u9879\u76EE\u6570\u91CF\u6309\u57CE\u5E02\u6C47\u603B",
|
|
@@ -21338,6 +22306,23 @@ const capability$b = {
|
|
|
21338
22306
|
],
|
|
21339
22307
|
note: "\u5982\u9700\u67E5\u8BE2\u5176\u4ED6\u697C\u5C42\u623F\u53F7\uFF0C\u53EF\u7EE7\u7EED\u8865\u5145\u697C\u5C42\u4FE1\u606F\u3002"
|
|
21340
22308
|
}
|
|
22309
|
+
},
|
|
22310
|
+
{
|
|
22311
|
+
id: "yc.common.form",
|
|
22312
|
+
title: "\u4EA4\u4E92\u8868\u5355\u5361",
|
|
22313
|
+
categories: ["\u5361\u7247\u4E0E\u5C55\u793A"],
|
|
22314
|
+
component: YcDisplayFormCard,
|
|
22315
|
+
props: {
|
|
22316
|
+
title: "\u521B\u5EFA\u62A5\u4FEE\u5DE5\u5355",
|
|
22317
|
+
subtitle: "\u8BF7\u6838\u5BF9\u9879\u76EE\u4FE1\u606F\u5E76\u4E0A\u4F20\u73B0\u573A\u7167\u7247",
|
|
22318
|
+
mode: "reply",
|
|
22319
|
+
fields: [
|
|
22320
|
+
{ name: "projectName", label: "\u6240\u5C5E\u9879\u76EE", required: true },
|
|
22321
|
+
{ name: "title", label: "\u5DE5\u5355\u6807\u9898", required: true },
|
|
22322
|
+
{ name: "attachments", label: "\u73B0\u573A\u7167\u7247", widget: "image", required: true }
|
|
22323
|
+
],
|
|
22324
|
+
values: { projectName: "\u5B81\u5B89\u7B2C\u4E00\u82B1\u56ED", title: "1\u680B\u7535\u68AF\u5F02\u54CD" }
|
|
22325
|
+
}
|
|
21341
22326
|
}
|
|
21342
22327
|
]
|
|
21343
22328
|
};
|
|
@@ -53191,7 +54176,7 @@ var _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
53191
54176
|
const _component_el_dropdown_menu = resolveComponent("el-dropdown-menu");
|
|
53192
54177
|
const _component_el_dropdown = resolveComponent("el-dropdown");
|
|
53193
54178
|
const _component_el_tree_v2 = resolveComponent("el-tree-v2");
|
|
53194
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
54179
|
+
return openBlock(), createBlock(unref(_sfc_main$1g), {
|
|
53195
54180
|
padding: props.padding,
|
|
53196
54181
|
height: "100%",
|
|
53197
54182
|
radius: __props.showCardStyle ? 8 : 0,
|
|
@@ -74820,8 +75805,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
74820
75805
|
}
|
|
74821
75806
|
});
|
|
74822
75807
|
|
|
74823
|
-
const version = "1.2.
|
|
75808
|
+
const version = "1.2.7";
|
|
74824
75809
|
|
|
74825
75810
|
const install = installer.install;
|
|
74826
75811
|
|
|
74827
|
-
export { AnimatedPagination, AreaChart, AssetTable, Attachments, BarChart, BillTable, Bubble, BubbleList, COSS_TABLE_INJECTION_KEY, CandlestickChart, CardFrame, ChartCard, ChartContainer, ChartDashboard, Conversations, CossTable, DEFAULT_CDN_CONFIG, DEFAULT_OPERATORS, DEFAULT_YC_CONFIG, DataTableColumnHeader, DataTablePagination, DataTableRowActions, DataTableToolbar, DatePickerValueIsArrayList, DefaultPageInfo, DefaultPageSizeList, DeviceTable, DictStoreInjectionKey, DualLineChart, ECHARTS_LINE_GRADIENTS, FilesCard, GALLERY_CATEGORIES, GALLERY_CATEGORY_ORDER, GALLERY_ITEMS, GRADIENT_PALETTES, GaugeChart, GradientCard, GradientLineChart, HeatmapChart, INPUT_OTP_INJECTION_KEY, INSTALLABLE_COMPONENTS, InputOTP, InputOtp, InputOtpGroup, InputOtpSeparator, InputOtpSlot, Lens, LineChart, LineGradientChart, MetricCard, NO_VALUE_OPERATORS, OPERATOR_CATALOG, OPERATOR_LABELS, OrderTable, Pagination, PieChart, PieSimpleChart, PlusDataTable, PlusDatePicker, PlusDescriptions, PlusDialog, PlusDialogForm, PlusDisplayItem, PlusDrawerForm, PlusForm, PlusFormItem, PlusInputTag, PlusPage, PlusPagination, PlusPopover, PlusRadio, PlusSearch, PlusTable, PlusVirtualTable, Prompts, PropertyTable, QueryFilterConfigKey, Questionnaire, RadarChart, ReAreaChart, ReAssetTable, YcAuth as ReAuth, ReBanner, ReBarChart, ReBillTable, ReCandlestickChart, _sfc_main$
|
|
75812
|
+
export { AnimatedPagination, AreaChart, AssetTable, Attachments, BarChart, BillTable, Bubble, BubbleList, COSS_TABLE_INJECTION_KEY, CandlestickChart, CardFrame, ChartCard, ChartContainer, ChartDashboard, Conversations, CossTable, DEFAULT_CDN_CONFIG, DEFAULT_OPERATORS, DEFAULT_YC_CONFIG, DataTableColumnHeader, DataTablePagination, DataTableRowActions, DataTableToolbar, DatePickerValueIsArrayList, DefaultPageInfo, DefaultPageSizeList, DeviceTable, DictStoreInjectionKey, DualLineChart, ECHARTS_LINE_GRADIENTS, FilesCard, GALLERY_CATEGORIES, GALLERY_CATEGORY_ORDER, GALLERY_ITEMS, GRADIENT_PALETTES, GaugeChart, GradientCard, GradientLineChart, HeatmapChart, INPUT_OTP_INJECTION_KEY, INSTALLABLE_COMPONENTS, InputOTP, InputOtp, InputOtpGroup, InputOtpSeparator, InputOtpSlot, Lens, LineChart, LineGradientChart, MetricCard, NO_VALUE_OPERATORS, OPERATOR_CATALOG, OPERATOR_LABELS, OrderTable, Pagination, PieChart, PieSimpleChart, PlusDataTable, PlusDatePicker, PlusDescriptions, PlusDialog, PlusDialogForm, PlusDisplayItem, PlusDrawerForm, PlusForm, PlusFormItem, PlusInputTag, PlusPage, PlusPagination, PlusPopover, PlusRadio, PlusSearch, PlusTable, PlusVirtualTable, Prompts, PropertyTable, QueryFilterConfigKey, Questionnaire, RadarChart, ReAreaChart, ReAssetTable, YcAuth as ReAuth, ReBanner, ReBarChart, ReBillTable, ReCandlestickChart, _sfc_main$1g as ReCard, ReChartCard, ReChartContainer, ReChartDashboard, ReChoiceCards, YcConfigProvider as ReConfigProvider, ReCossTable, ReDataTable, ReDateRangePicker, ReDeviceTable, ReDrawer, ReDualLineChart, ReEmptyState, ReGaugeChart, ReGradientCard, ReHeatmapChart, ReInput, ReInputOtp, ReInputOtpGroup, ReInputOtpSeparator, ReInputOtpSlot, ReKeyValueList, ReLens, ReLineChart, ReLineGradientChart, _sfc_main$I as ReLineTree, ReMetricCard, ReMoneyInput, ReOrderTable, RePagination, YcPerms as RePerms, RePieChart, RePieSimpleChart, RePlusPage, RePlusTable, RePlusTree, RePropertyTable, ReQueryFilterManager, ReQuestionnaire, ReRadarChart, ReRoseChart, ReScatterChart, ReSegmented, _sfc_main$H as ReSelectV2, YcStatusDialog as ReStatusDialog, ReStepLineChart, ReStepperInput, YcSvgIcon as ReSvgIcon, ReSwitchRow, _sfc_main$x as ReText, ReTextarea, ReTimeline, RoseChart, SHADCN_CHART_COLORS, STATUS_CONFIG_MAP, ScatterChart, SimplePieChart, StepLineChart, Table, TableBody, TableCaption, TableCell, TableColumnsEmptyTextInjectionKey, TableFooter, TableFormFieldRefInjectionKey, TableFormRefInjectionKey, TableFormRowInfoInjectionKey, TableHead, TableHeader, TableRow, Thinking, ThoughtChain, ValueIsArrayList, ValueIsBooleanList, ValueIsNumberList, Welcome, XSender2 as XSender, YC_CONFIG_KEY, YC_MOBILE_DEVICE_PRESETS, YcAreaChart, YcAssetTable, YcAuth, YcAuthWithInstall, YcBanner, YcBarChart, YcBillTable, YcCandlestickChart, _sfc_main$1g as YcCard, YcCardFrame, YcCardWithInstall, YcChartCard, YcChartContainer, YcChartDashboard, _sfc_main$5 as YcChatBubble, _sfc_main$3 as YcChatFileCard, _sfc_main as YcChatQuestionCard, _sfc_main$1 as YcChatSelect, _sfc_main$2 as YcChatSender, _sfc_main$i as YcChatSidebar, _sfc_main$j as YcChatStudio, _sfc_main$4 as YcChatThinking, _sfc_main$6 as YcChatWelcome, YcChoiceCards, YcConfigProvider, YcCossTable, YcDataTable, YcDateRangePicker, YcDeviceTable, YcDisplayDetailCard, YcDisplayFormCard, YcDisplayMetricsCard, YcDisplayTableCard, YcDrawer, YcDualLineChart, YcEmptyState, YcGaugeChart, YcGradientCard, YcHeatmapChart, YcInput, YcInputOtp, YcInputOtpGroup, YcInputOtpSeparator, YcInputOtpSlot, YcKeyValueList, YcLens, YcLineChart, YcLineGradientChart, _sfc_main$I as YcLineTree, YcLineTreeWithInstall, YcMetricCard, _sfc_main$k as YcMobileDeviceFrame, YcMoneyInput, YcOrderTable, YcPagination, YcPerms, YcPermsWithInstall, YcPieChart, YcPieSimpleChart, YcPlusPage, YcPlusTable, YcPlusTree, YcPropertyTable, YcQueryFilterManager, YcQuestionnaire, YcRadarChart, YcRoseChart, YcScatterChart, YcSegmented, _sfc_main$H as YcSelectV2, YcStatusDialog, YcStepLineChart, YcStepperInput, YcSvgIcon, YcSwitchRow, YcTable, YcTableBody, YcTableCaption, YcTableCell, YcTableFooter, YcTableHead, YcTableHeader, YcTableHeaderFilterCell, YcTableRow, _sfc_main$x as YcText, YcTextWithInstall, YcTextarea, YcTimeline, addDrawer, buildEChartsOption, buildShadcnTooltipFormatter, closeAllDrawer, closeDrawer, installer as default, defineCapability, detectDarkMode, drawerStore, filterGallery, findNodeById, findNodeByPath, findNodePosition, formatChartValue, formatChatFileSize, formatChatSessionTime, getGalleryCategories, getGalleryItems, getGradientPalette, getInstallableComponents, getSeriesColor, groupChatSessionByDate, hexToRgba, insertAsChild, insertAsSibling, insertNodeAtPosition, install, providePlusProConfig, removeNode, reorderNodeChildren, reorderSiblingNodes, resolvePaletteStyles, selectValueTypeList, updateDrawer, useColumnAdapter, useDialogFormConfig, useDictInjection, useDrawerFormConfig, useGetOptions, useHeaderFilter, useLocalHeaderFilter, useLocale, usePlusFormReset, usePlusProConfig, useQueryFilterConfig, useTable, useTableDragScroll, useVirtualScroll, useVirtualSelection, useYcAuth, useYcCdn, useYcCdnUrl, useYcComponentConfig, useYcConfig, useYcPerms, useYcShowPageSearch, useYcTranslate, version };
|