yc-agent-ui 1.0.0 → 1.1.1
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/README.md +22 -0
- package/es/components/dialog-form/index.d.ts +4 -4
- package/es/components/dialog-form/src/index.vue.d.ts +4 -4
- 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 +4 -4
- package/es/components/drawer-form/src/index.vue.d.ts +4 -4
- package/es/components/form/index.d.ts +8 -8
- package/es/components/form/src/form-content.vue.d.ts +8 -8
- package/es/components/form/src/index.vue.d.ts +8 -8
- package/es/components/form-item/index.d.ts +6 -6
- package/es/components/form-item/src/index.vue.d.ts +6 -6
- package/es/components/index.d.ts +4 -0
- package/es/components/page/index.d.ts +172 -172
- package/es/components/page/src/index.vue.d.ts +60 -60
- package/es/components/search/index.d.ts +52 -52
- package/es/components/search/src/index.vue.d.ts +20 -20
- package/es/components/table/src/table-column.vue.d.ts +34 -34
- package/es/components/yc-controls/capability.d.ts +4 -0
- package/es/components/yc-controls/index.d.ts +17 -0
- package/es/components/yc-controls/src/choice-cards.vue.d.ts +16 -0
- package/es/components/yc-controls/src/segmented.vue.d.ts +16 -0
- package/es/components/yc-controls/src/switch-row.vue.d.ts +13 -0
- package/es/components/yc-controls/src/type.d.ts +39 -0
- package/es/components/yc-feedback/capability.d.ts +4 -0
- package/es/components/yc-feedback/index.d.ts +21 -0
- package/es/components/yc-feedback/src/banner.vue.d.ts +22 -0
- package/es/components/yc-feedback/src/empty-state.vue.d.ts +20 -0
- package/es/components/yc-feedback/src/key-value-list.vue.d.ts +22 -0
- package/es/components/yc-feedback/src/timeline.vue.d.ts +7 -0
- package/es/components/yc-feedback/src/type.d.ts +46 -0
- package/es/components/yc-input/capability.d.ts +4 -0
- package/es/components/yc-input/index.d.ts +21 -0
- package/es/components/yc-input/src/input.vue.d.ts +50 -0
- package/es/components/yc-input/src/money-input.vue.d.ts +26 -0
- package/es/components/yc-input/src/stepper-input.vue.d.ts +18 -0
- package/es/components/yc-input/src/textarea.vue.d.ts +35 -0
- package/es/components/yc-input/src/type.d.ts +82 -0
- package/es/components/yc-plus-page/src/index.vue.d.ts +176 -176
- package/es/components/yc-property-table/capability.d.ts +4 -0
- package/es/components/yc-property-table/index.d.ts +30 -0
- package/es/components/yc-property-table/src/asset-table.vue.d.ts +17 -0
- package/es/components/yc-property-table/src/bill-table.vue.d.ts +18 -0
- package/es/components/yc-property-table/src/device-table.vue.d.ts +17 -0
- package/es/components/yc-property-table/src/order-table.vue.d.ts +18 -0
- package/es/components/yc-property-table/src/property-table.vue.d.ts +91 -0
- package/es/components/yc-property-table/src/type.d.ts +214 -0
- package/es/hooks/usePlusFormReset.d.ts +48 -48
- package/es/index.css +16 -16
- package/es/index.mjs +4 -0
- package/es/packages/components/chart/index.mjs +36 -36
- package/es/packages/components/index.mjs +4 -0
- package/es/packages/components/table/capability.mjs +10 -29
- package/es/packages/components/utils/index.mjs +1 -1
- package/es/packages/components/yc-card/capability.mjs +53 -13
- package/es/packages/components/yc-controls/capability.mjs +100 -0
- package/es/packages/components/yc-controls/index.mjs +13 -0
- package/es/packages/components/yc-controls/src/choice-cards.vue.mjs +5 -0
- package/es/packages/components/yc-controls/src/choice-cards2.vue.mjs +157 -0
- package/es/packages/components/yc-controls/src/segmented.vue.mjs +5 -0
- package/es/packages/components/yc-controls/src/segmented2.vue.mjs +78 -0
- package/es/packages/components/yc-controls/src/switch-row.vue.mjs +5 -0
- package/es/packages/components/yc-controls/src/switch-row2.vue.mjs +95 -0
- package/es/packages/components/yc-controls/src/type.mjs +1 -0
- package/es/packages/components/yc-feedback/capability.mjs +109 -0
- package/es/packages/components/yc-feedback/index.mjs +16 -0
- package/es/packages/components/yc-feedback/src/banner.vue.mjs +5 -0
- package/es/packages/components/yc-feedback/src/banner2.vue.mjs +230 -0
- package/es/packages/components/yc-feedback/src/empty-state.vue.mjs +5 -0
- package/es/packages/components/yc-feedback/src/empty-state2.vue.mjs +97 -0
- package/es/packages/components/yc-feedback/src/key-value-list.vue.mjs +5 -0
- package/es/packages/components/yc-feedback/src/key-value-list2.vue.mjs +194 -0
- package/es/packages/components/yc-feedback/src/timeline.vue.mjs +5 -0
- package/es/packages/components/yc-feedback/src/timeline2.vue.mjs +134 -0
- package/es/packages/components/yc-feedback/src/type.mjs +1 -0
- package/es/packages/components/yc-input/capability.mjs +112 -0
- package/es/packages/components/yc-input/index.mjs +16 -0
- package/es/packages/components/yc-input/src/input.vue.mjs +5 -0
- package/es/packages/components/yc-input/src/input2.vue.mjs +427 -0
- package/es/packages/components/yc-input/src/money-input.vue.mjs +5 -0
- package/es/packages/components/yc-input/src/money-input2.vue.mjs +242 -0
- package/es/packages/components/yc-input/src/stepper-input.vue.mjs +5 -0
- package/es/packages/components/yc-input/src/stepper-input2.vue.mjs +211 -0
- package/es/packages/components/yc-input/src/textarea.vue.mjs +5 -0
- package/es/packages/components/yc-input/src/textarea2.vue.mjs +158 -0
- package/es/packages/components/yc-input/src/type.mjs +1 -0
- package/es/packages/components/yc-property-table/capability.mjs +350 -0
- package/es/packages/components/yc-property-table/index.mjs +24 -0
- package/es/packages/components/yc-property-table/src/asset-table.vue.mjs +5 -0
- package/es/packages/components/yc-property-table/src/asset-table2.vue.mjs +405 -0
- package/es/packages/components/yc-property-table/src/bill-table.vue.mjs +5 -0
- package/es/packages/components/yc-property-table/src/bill-table2.vue.mjs +654 -0
- package/es/packages/components/yc-property-table/src/device-table.vue.mjs +5 -0
- package/es/packages/components/yc-property-table/src/device-table2.vue.mjs +324 -0
- package/es/packages/components/yc-property-table/src/order-table.vue.mjs +5 -0
- package/es/packages/components/yc-property-table/src/order-table2.vue.mjs +363 -0
- package/es/packages/components/yc-property-table/src/property-table.vue.mjs +5 -0
- package/es/packages/components/yc-property-table/src/property-table2.vue.mjs +1228 -0
- package/es/packages/components/yc-property-table/src/type.mjs +1 -0
- package/es/packages/registry/load.mjs +21 -5
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/index.css +6 -6
- package/index.js +64731 -57876
- package/index.min.css +5 -5
- package/index.min.js +32 -32
- package/index.min.mjs +33 -33
- package/index.mjs +64681 -57863
- package/lib/components/dialog-form/index.d.ts +4 -4
- package/lib/components/dialog-form/src/index.vue.d.ts +4 -4
- 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 +4 -4
- package/lib/components/drawer-form/src/index.vue.d.ts +4 -4
- package/lib/components/form/index.d.ts +8 -8
- package/lib/components/form/src/form-content.vue.d.ts +8 -8
- package/lib/components/form/src/index.vue.d.ts +8 -8
- package/lib/components/form-item/index.d.ts +6 -6
- package/lib/components/form-item/src/index.vue.d.ts +6 -6
- package/lib/components/index.d.ts +4 -0
- package/lib/components/page/index.d.ts +172 -172
- package/lib/components/page/src/index.vue.d.ts +60 -60
- package/lib/components/search/index.d.ts +52 -52
- package/lib/components/search/src/index.vue.d.ts +20 -20
- package/lib/components/table/src/table-column.vue.d.ts +34 -34
- package/lib/components/yc-controls/capability.d.ts +4 -0
- package/lib/components/yc-controls/index.d.ts +17 -0
- package/lib/components/yc-controls/src/choice-cards.vue.d.ts +16 -0
- package/lib/components/yc-controls/src/segmented.vue.d.ts +16 -0
- package/lib/components/yc-controls/src/switch-row.vue.d.ts +13 -0
- package/lib/components/yc-controls/src/type.d.ts +39 -0
- package/lib/components/yc-feedback/capability.d.ts +4 -0
- package/lib/components/yc-feedback/index.d.ts +21 -0
- package/lib/components/yc-feedback/src/banner.vue.d.ts +22 -0
- package/lib/components/yc-feedback/src/empty-state.vue.d.ts +20 -0
- package/lib/components/yc-feedback/src/key-value-list.vue.d.ts +22 -0
- package/lib/components/yc-feedback/src/timeline.vue.d.ts +7 -0
- package/lib/components/yc-feedback/src/type.d.ts +46 -0
- package/lib/components/yc-input/capability.d.ts +4 -0
- package/lib/components/yc-input/index.d.ts +21 -0
- package/lib/components/yc-input/src/input.vue.d.ts +50 -0
- package/lib/components/yc-input/src/money-input.vue.d.ts +26 -0
- package/lib/components/yc-input/src/stepper-input.vue.d.ts +18 -0
- package/lib/components/yc-input/src/textarea.vue.d.ts +35 -0
- package/lib/components/yc-input/src/type.d.ts +82 -0
- package/lib/components/yc-plus-page/src/index.vue.d.ts +176 -176
- package/lib/components/yc-property-table/capability.d.ts +4 -0
- package/lib/components/yc-property-table/index.d.ts +30 -0
- package/lib/components/yc-property-table/src/asset-table.vue.d.ts +17 -0
- package/lib/components/yc-property-table/src/bill-table.vue.d.ts +18 -0
- package/lib/components/yc-property-table/src/device-table.vue.d.ts +17 -0
- package/lib/components/yc-property-table/src/order-table.vue.d.ts +18 -0
- package/lib/components/yc-property-table/src/property-table.vue.d.ts +91 -0
- package/lib/components/yc-property-table/src/type.d.ts +214 -0
- package/lib/hooks/usePlusFormReset.d.ts +48 -48
- package/lib/index.css +13 -13
- package/lib/index.js +176 -135
- package/lib/packages/components/index.js +172 -131
- package/lib/packages/components/table/capability.js +10 -29
- package/lib/packages/components/yc-card/capability.js +53 -13
- package/lib/packages/components/yc-controls/capability.js +104 -0
- package/lib/packages/components/yc-controls/index.js +23 -0
- package/lib/packages/components/yc-controls/src/choice-cards.vue.js +9 -0
- package/lib/packages/components/yc-controls/src/choice-cards2.vue.js +161 -0
- package/lib/packages/components/yc-controls/src/segmented.vue.js +9 -0
- package/lib/packages/components/yc-controls/src/segmented2.vue.js +82 -0
- package/lib/packages/components/yc-controls/src/switch-row.vue.js +9 -0
- package/lib/packages/components/yc-controls/src/switch-row2.vue.js +99 -0
- package/lib/packages/components/yc-controls/src/type.js +2 -0
- package/lib/packages/components/yc-feedback/capability.js +113 -0
- package/lib/packages/components/yc-feedback/index.js +28 -0
- package/lib/packages/components/yc-feedback/src/banner.vue.js +9 -0
- package/lib/packages/components/yc-feedback/src/banner2.vue.js +234 -0
- package/lib/packages/components/yc-feedback/src/empty-state.vue.js +9 -0
- package/lib/packages/components/yc-feedback/src/empty-state2.vue.js +101 -0
- package/lib/packages/components/yc-feedback/src/key-value-list.vue.js +9 -0
- package/lib/packages/components/yc-feedback/src/key-value-list2.vue.js +198 -0
- package/lib/packages/components/yc-feedback/src/timeline.vue.js +9 -0
- package/lib/packages/components/yc-feedback/src/timeline2.vue.js +138 -0
- package/lib/packages/components/yc-feedback/src/type.js +2 -0
- package/lib/packages/components/yc-input/capability.js +116 -0
- package/lib/packages/components/yc-input/index.js +28 -0
- package/lib/packages/components/yc-input/src/input.vue.js +9 -0
- package/lib/packages/components/yc-input/src/input2.vue.js +431 -0
- package/lib/packages/components/yc-input/src/money-input.vue.js +9 -0
- package/lib/packages/components/yc-input/src/money-input2.vue.js +246 -0
- package/lib/packages/components/yc-input/src/stepper-input.vue.js +9 -0
- package/lib/packages/components/yc-input/src/stepper-input2.vue.js +215 -0
- package/lib/packages/components/yc-input/src/textarea.vue.js +9 -0
- package/lib/packages/components/yc-input/src/textarea2.vue.js +162 -0
- package/lib/packages/components/yc-input/src/type.js +2 -0
- package/lib/packages/components/yc-property-table/capability.js +354 -0
- package/lib/packages/components/yc-property-table/index.js +43 -0
- package/lib/packages/components/yc-property-table/src/asset-table.vue.js +9 -0
- package/lib/packages/components/yc-property-table/src/asset-table2.vue.js +409 -0
- package/lib/packages/components/yc-property-table/src/bill-table.vue.js +9 -0
- package/lib/packages/components/yc-property-table/src/bill-table2.vue.js +658 -0
- package/lib/packages/components/yc-property-table/src/device-table.vue.js +9 -0
- package/lib/packages/components/yc-property-table/src/device-table2.vue.js +328 -0
- package/lib/packages/components/yc-property-table/src/order-table.vue.js +9 -0
- package/lib/packages/components/yc-property-table/src/order-table2.vue.js +367 -0
- package/lib/packages/components/yc-property-table/src/property-table.vue.js +9 -0
- package/lib/packages/components/yc-property-table/src/property-table2.vue.js +1232 -0
- package/lib/packages/components/yc-property-table/src/type.js +2 -0
- package/lib/packages/registry/load.js +21 -5
- 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 +6 -6
- package/theme-chalk/plus-yc-controls.css +1 -0
- package/theme-chalk/plus-yc-feedback.css +1 -0
- package/theme-chalk/plus-yc-input.css +1 -0
- package/theme-chalk/plus-yc-property-table.css +1 -0
- package/theme-chalk/src/index.scss +4 -0
- package/theme-chalk/src/yc-controls.scss +316 -0
- package/theme-chalk/src/yc-feedback.scss +452 -0
- package/theme-chalk/src/yc-input.scss +473 -0
- package/theme-chalk/src/yc-property-table.scss +1700 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { DefineComponent } from 'vue';
|
|
2
|
+
import { default as PropertyTableComponent } from './src/property-table.vue';
|
|
3
|
+
import { default as OrderTableComponent } from './src/order-table.vue';
|
|
4
|
+
import { default as BillTableComponent } from './src/bill-table.vue';
|
|
5
|
+
import { default as AssetTableComponent } from './src/asset-table.vue';
|
|
6
|
+
import { default as DeviceTableComponent } from './src/device-table.vue';
|
|
7
|
+
import { SFCWithInstall } from '../../utils';
|
|
8
|
+
|
|
9
|
+
export declare const YcPropertyTable: SFCWithInstall<DefineComponent>;
|
|
10
|
+
export declare const RePropertyTable: SFCWithInstall<DefineComponent>;
|
|
11
|
+
export declare const PropertyTable: SFCWithInstall<DefineComponent>;
|
|
12
|
+
export declare const YcOrderTable: SFCWithInstall<DefineComponent>;
|
|
13
|
+
export declare const ReOrderTable: SFCWithInstall<DefineComponent>;
|
|
14
|
+
export declare const OrderTable: SFCWithInstall<DefineComponent>;
|
|
15
|
+
export declare const YcBillTable: SFCWithInstall<DefineComponent>;
|
|
16
|
+
export declare const ReBillTable: SFCWithInstall<DefineComponent>;
|
|
17
|
+
export declare const BillTable: SFCWithInstall<DefineComponent>;
|
|
18
|
+
export declare const YcAssetTable: SFCWithInstall<DefineComponent>;
|
|
19
|
+
export declare const ReAssetTable: SFCWithInstall<DefineComponent>;
|
|
20
|
+
export declare const AssetTable: SFCWithInstall<DefineComponent>;
|
|
21
|
+
export declare const YcDeviceTable: SFCWithInstall<DefineComponent>;
|
|
22
|
+
export declare const ReDeviceTable: SFCWithInstall<DefineComponent>;
|
|
23
|
+
export declare const DeviceTable: SFCWithInstall<DefineComponent>;
|
|
24
|
+
export type YcPropertyTableInstance = InstanceType<typeof PropertyTableComponent>;
|
|
25
|
+
export type YcOrderTableInstance = InstanceType<typeof OrderTableComponent>;
|
|
26
|
+
export type YcBillTableInstance = InstanceType<typeof BillTableComponent>;
|
|
27
|
+
export type YcAssetTableInstance = InstanceType<typeof AssetTableComponent>;
|
|
28
|
+
export type YcDeviceTableInstance = InstanceType<typeof DeviceTableComponent>;
|
|
29
|
+
export * from './src/type';
|
|
30
|
+
export default YcPropertyTable;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { PropertyAssetRecord, PropertyTableLayout } from './type';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
|
|
4
|
+
declare const _default: DefineComponent<unknown, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
5
|
+
action: (action: string, row: PropertyAssetRecord) => void;
|
|
6
|
+
rowClick: (row: PropertyAssetRecord, index: number) => void;
|
|
7
|
+
}, string, PublicProps, Readonly<unknown> & Readonly<{
|
|
8
|
+
onAction?: ((action: string, row: PropertyAssetRecord) => any) | undefined;
|
|
9
|
+
onRowClick?: ((row: PropertyAssetRecord, index: number) => any) | undefined;
|
|
10
|
+
}>, {
|
|
11
|
+
data: PropertyAssetRecord[];
|
|
12
|
+
layout: PropertyTableLayout;
|
|
13
|
+
card: boolean;
|
|
14
|
+
searchable: boolean;
|
|
15
|
+
breakpoint: number;
|
|
16
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { PropertyBillRecord, PropertyTableLayout } from './type';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
|
|
4
|
+
declare const _default: DefineComponent<unknown, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
5
|
+
action: (action: string, row: PropertyBillRecord) => void;
|
|
6
|
+
rowClick: (row: PropertyBillRecord, index: number) => void;
|
|
7
|
+
}, string, PublicProps, Readonly<unknown> & Readonly<{
|
|
8
|
+
onAction?: ((action: string, row: PropertyBillRecord) => any) | undefined;
|
|
9
|
+
onRowClick?: ((row: PropertyBillRecord, index: number) => any) | undefined;
|
|
10
|
+
}>, {
|
|
11
|
+
data: PropertyBillRecord[];
|
|
12
|
+
layout: PropertyTableLayout;
|
|
13
|
+
card: boolean;
|
|
14
|
+
searchable: boolean;
|
|
15
|
+
showSummary: boolean;
|
|
16
|
+
breakpoint: number;
|
|
17
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { PropertyDeviceRecord, PropertyTableLayout } from './type';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
|
|
4
|
+
declare const _default: DefineComponent<unknown, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
5
|
+
action: (action: string, row: PropertyDeviceRecord) => void;
|
|
6
|
+
rowClick: (row: PropertyDeviceRecord, index: number) => void;
|
|
7
|
+
}, string, PublicProps, Readonly<unknown> & Readonly<{
|
|
8
|
+
onAction?: ((action: string, row: PropertyDeviceRecord) => any) | undefined;
|
|
9
|
+
onRowClick?: ((row: PropertyDeviceRecord, index: number) => any) | undefined;
|
|
10
|
+
}>, {
|
|
11
|
+
data: PropertyDeviceRecord[];
|
|
12
|
+
layout: PropertyTableLayout;
|
|
13
|
+
card: boolean;
|
|
14
|
+
searchable: boolean;
|
|
15
|
+
breakpoint: number;
|
|
16
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { PropertyOrderRecord, PropertyTableLayout } from './type';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
|
|
4
|
+
declare const _default: DefineComponent<unknown, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
5
|
+
action: (action: string, row: PropertyOrderRecord) => void;
|
|
6
|
+
rowClick: (row: PropertyOrderRecord, index: number) => void;
|
|
7
|
+
}, string, PublicProps, Readonly<unknown> & Readonly<{
|
|
8
|
+
onAction?: ((action: string, row: PropertyOrderRecord) => any) | undefined;
|
|
9
|
+
onRowClick?: ((row: PropertyOrderRecord, index: number) => any) | undefined;
|
|
10
|
+
}>, {
|
|
11
|
+
data: PropertyOrderRecord[];
|
|
12
|
+
layout: PropertyTableLayout;
|
|
13
|
+
card: boolean;
|
|
14
|
+
searchable: boolean;
|
|
15
|
+
breakpoint: number;
|
|
16
|
+
showTabs: boolean;
|
|
17
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { PropertyTableColumn, PropertyTableAction, PropertyTableTab, PropertyTableLayout, PropertyTableDensity } from './type';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
|
|
4
|
+
declare function __VLS_template(): Partial<Record<`header-${string}`, (_: {
|
|
5
|
+
column: PropertyTableColumn<any>;
|
|
6
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
7
|
+
row: any;
|
|
8
|
+
column: PropertyTableColumn<any>;
|
|
9
|
+
index: number;
|
|
10
|
+
value: any;
|
|
11
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
12
|
+
row: any;
|
|
13
|
+
column: PropertyTableColumn<any>;
|
|
14
|
+
index: number;
|
|
15
|
+
value: any;
|
|
16
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
17
|
+
row: any;
|
|
18
|
+
column: PropertyTableColumn<any>;
|
|
19
|
+
index: number;
|
|
20
|
+
value: any;
|
|
21
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
22
|
+
row: any;
|
|
23
|
+
column: PropertyTableColumn<any>;
|
|
24
|
+
index: number;
|
|
25
|
+
value: any;
|
|
26
|
+
}) => any>> & {
|
|
27
|
+
header?(_: {}): any;
|
|
28
|
+
toolbar?(_: {}): any;
|
|
29
|
+
actions?(_: {
|
|
30
|
+
row: any;
|
|
31
|
+
index: number;
|
|
32
|
+
}): any;
|
|
33
|
+
empty?(_: {}): any;
|
|
34
|
+
card?(_: {
|
|
35
|
+
row: any;
|
|
36
|
+
index: number;
|
|
37
|
+
columns: PropertyTableColumn<any>[];
|
|
38
|
+
}): any;
|
|
39
|
+
"card-header"?(_: {
|
|
40
|
+
row: any;
|
|
41
|
+
index: number;
|
|
42
|
+
}): any;
|
|
43
|
+
"card-body"?(_: {
|
|
44
|
+
row: any;
|
|
45
|
+
index: number;
|
|
46
|
+
}): any;
|
|
47
|
+
"card-actions"?(_: {
|
|
48
|
+
row: any;
|
|
49
|
+
index: number;
|
|
50
|
+
}): any;
|
|
51
|
+
};
|
|
52
|
+
declare const __VLS_component: DefineComponent<unknown, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
53
|
+
action: (action: string, row: any) => void;
|
|
54
|
+
"update:selectedRows": (rows: any[]) => void;
|
|
55
|
+
rowClick: (row: any, index: number) => void;
|
|
56
|
+
tabChange: (tab: PropertyTableTab) => void;
|
|
57
|
+
search: (query: string) => void;
|
|
58
|
+
pageChange: (page: number) => void;
|
|
59
|
+
}, string, PublicProps, Readonly<unknown> & Readonly<{
|
|
60
|
+
onSearch?: ((query: string) => any) | undefined;
|
|
61
|
+
onAction?: ((action: string, row: any) => any) | undefined;
|
|
62
|
+
"onUpdate:selectedRows"?: ((rows: any[]) => any) | undefined;
|
|
63
|
+
onPageChange?: ((page: number) => any) | undefined;
|
|
64
|
+
onRowClick?: ((row: any, index: number) => any) | undefined;
|
|
65
|
+
onTabChange?: ((tab: PropertyTableTab) => any) | undefined;
|
|
66
|
+
}>, {
|
|
67
|
+
data: any[];
|
|
68
|
+
loading: boolean;
|
|
69
|
+
loadingText: string;
|
|
70
|
+
emptyText: string;
|
|
71
|
+
actions: PropertyTableAction<any>[];
|
|
72
|
+
layout: PropertyTableLayout;
|
|
73
|
+
columns: PropertyTableColumn<any>[];
|
|
74
|
+
card: boolean;
|
|
75
|
+
selectable: boolean;
|
|
76
|
+
searchable: boolean;
|
|
77
|
+
searchPlaceholder: string;
|
|
78
|
+
rowKey: string;
|
|
79
|
+
striped: boolean;
|
|
80
|
+
density: PropertyTableDensity;
|
|
81
|
+
hoverable: boolean;
|
|
82
|
+
bordered: boolean;
|
|
83
|
+
breakpoint: number;
|
|
84
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
85
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
86
|
+
export default _default;
|
|
87
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
88
|
+
new (): {
|
|
89
|
+
$slots: S;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
export type PropertyTableLayout = 'auto' | 'table' | 'card';
|
|
2
|
+
export type PropertyTableDensity = 'comfortable' | 'default' | 'compact';
|
|
3
|
+
export type PropertyColumnType = 'text' | 'tag' | 'money' | 'date' | 'phone' | 'badge' | 'custom';
|
|
4
|
+
export interface PropertyTagConfig {
|
|
5
|
+
label: string;
|
|
6
|
+
type?: 'primary' | 'success' | 'warning' | 'danger' | 'info';
|
|
7
|
+
color?: string;
|
|
8
|
+
bg?: string;
|
|
9
|
+
dot?: boolean;
|
|
10
|
+
pulse?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface PropertyTableColumn<T = any> {
|
|
13
|
+
prop: string;
|
|
14
|
+
label: string;
|
|
15
|
+
width?: string | number;
|
|
16
|
+
minWidth?: string | number;
|
|
17
|
+
align?: 'left' | 'center' | 'right';
|
|
18
|
+
sortable?: boolean;
|
|
19
|
+
/** 移动端卡片模式下是否作为主标题 */
|
|
20
|
+
primary?: boolean;
|
|
21
|
+
/** 移动端卡片模式下是否作为副标题/描述 */
|
|
22
|
+
subPrimary?: boolean;
|
|
23
|
+
/** 移动端卡片模式下是否隐藏该字段 */
|
|
24
|
+
hideOnMobile?: boolean;
|
|
25
|
+
/** 列展示类型 */
|
|
26
|
+
type?: PropertyColumnType;
|
|
27
|
+
/** 状态标签映射配置 */
|
|
28
|
+
tagMap?: Record<string, PropertyTagConfig>;
|
|
29
|
+
/** 自定义格式化函数 */
|
|
30
|
+
formatter?: (value: any, row: T, index: number) => any;
|
|
31
|
+
/** 自定义类名 */
|
|
32
|
+
className?: string;
|
|
33
|
+
}
|
|
34
|
+
export interface PropertyTableAction<T = any> {
|
|
35
|
+
name: string;
|
|
36
|
+
label: string;
|
|
37
|
+
type?: 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'text';
|
|
38
|
+
plain?: boolean;
|
|
39
|
+
icon?: string;
|
|
40
|
+
disabled?: boolean | ((row: T) => boolean);
|
|
41
|
+
visible?: boolean | ((row: T) => boolean);
|
|
42
|
+
}
|
|
43
|
+
export interface PropertyTableTab {
|
|
44
|
+
key: string;
|
|
45
|
+
label: string;
|
|
46
|
+
count?: number;
|
|
47
|
+
value?: any;
|
|
48
|
+
}
|
|
49
|
+
export interface PropertyTablePagination {
|
|
50
|
+
currentPage?: number;
|
|
51
|
+
pageSize?: number;
|
|
52
|
+
total?: number;
|
|
53
|
+
pageSizes?: number[];
|
|
54
|
+
showSizeChanger?: boolean;
|
|
55
|
+
}
|
|
56
|
+
export interface YcPropertyTableProps<T = any> {
|
|
57
|
+
data?: T[];
|
|
58
|
+
columns?: PropertyTableColumn<T>[];
|
|
59
|
+
/** 布局模式: auto 自动响应(根据屏幕宽度切卡片/表格) | table 强制表格 | card 强制移动端卡片 */
|
|
60
|
+
layout?: PropertyTableLayout;
|
|
61
|
+
/** 自适应断点像素值,默认 768px */
|
|
62
|
+
breakpoint?: number;
|
|
63
|
+
title?: string;
|
|
64
|
+
subtitle?: string;
|
|
65
|
+
card?: boolean;
|
|
66
|
+
bordered?: boolean;
|
|
67
|
+
striped?: boolean;
|
|
68
|
+
hoverable?: boolean;
|
|
69
|
+
density?: PropertyTableDensity;
|
|
70
|
+
searchable?: boolean;
|
|
71
|
+
searchPlaceholder?: string;
|
|
72
|
+
tabs?: PropertyTableTab[];
|
|
73
|
+
activeTab?: string;
|
|
74
|
+
tabKey?: string;
|
|
75
|
+
selectable?: boolean;
|
|
76
|
+
selectedRows?: T[];
|
|
77
|
+
rowKey?: string;
|
|
78
|
+
pagination?: boolean | PropertyTablePagination;
|
|
79
|
+
loading?: boolean;
|
|
80
|
+
loadingText?: string;
|
|
81
|
+
emptyText?: string;
|
|
82
|
+
actions?: PropertyTableAction<T>[];
|
|
83
|
+
customClass?: string;
|
|
84
|
+
customStyle?: Record<string, any>;
|
|
85
|
+
}
|
|
86
|
+
export type OrderUrgency = 'emergency' | 'important' | 'normal';
|
|
87
|
+
export type OrderStatus = 'pending_dispatch' | 'in_progress' | 'pending_check' | 'completed' | 'cancelled';
|
|
88
|
+
export interface PropertyOrderRecord {
|
|
89
|
+
id: string | number;
|
|
90
|
+
orderNo: string;
|
|
91
|
+
category: string;
|
|
92
|
+
location: string;
|
|
93
|
+
title: string;
|
|
94
|
+
description?: string;
|
|
95
|
+
urgency: OrderUrgency;
|
|
96
|
+
status: OrderStatus;
|
|
97
|
+
reporter?: string;
|
|
98
|
+
phone?: string;
|
|
99
|
+
handler?: string;
|
|
100
|
+
handlerPhone?: string;
|
|
101
|
+
createTime: string;
|
|
102
|
+
slaRemainMinutes?: number;
|
|
103
|
+
slaOverdue?: boolean;
|
|
104
|
+
[key: string]: any;
|
|
105
|
+
}
|
|
106
|
+
export interface YcOrderTableProps {
|
|
107
|
+
data?: PropertyOrderRecord[];
|
|
108
|
+
layout?: PropertyTableLayout;
|
|
109
|
+
breakpoint?: number;
|
|
110
|
+
title?: string;
|
|
111
|
+
subtitle?: string;
|
|
112
|
+
card?: boolean;
|
|
113
|
+
searchable?: boolean;
|
|
114
|
+
pagination?: boolean | PropertyTablePagination;
|
|
115
|
+
loading?: boolean;
|
|
116
|
+
showTabs?: boolean;
|
|
117
|
+
activeTab?: string;
|
|
118
|
+
customClass?: string;
|
|
119
|
+
}
|
|
120
|
+
export type BillStatus = 'unpaid' | 'partial' | 'paid' | 'overdue';
|
|
121
|
+
export type ReminderStatus = 'none' | 'sms' | 'visit' | 'legal';
|
|
122
|
+
export interface PropertyBillRecord {
|
|
123
|
+
id: string | number;
|
|
124
|
+
billNo: string;
|
|
125
|
+
room: string;
|
|
126
|
+
owner: string;
|
|
127
|
+
phone?: string;
|
|
128
|
+
subject: string;
|
|
129
|
+
period: string;
|
|
130
|
+
amountReceivable: number | string;
|
|
131
|
+
amountPaid: number | string;
|
|
132
|
+
amountUnpaid: number | string;
|
|
133
|
+
status: BillStatus;
|
|
134
|
+
overdueDays?: number;
|
|
135
|
+
reminderStatus?: ReminderStatus;
|
|
136
|
+
dueDate?: string;
|
|
137
|
+
[key: string]: any;
|
|
138
|
+
}
|
|
139
|
+
export interface YcBillTableProps {
|
|
140
|
+
data?: PropertyBillRecord[];
|
|
141
|
+
layout?: PropertyTableLayout;
|
|
142
|
+
breakpoint?: number;
|
|
143
|
+
title?: string;
|
|
144
|
+
subtitle?: string;
|
|
145
|
+
card?: boolean;
|
|
146
|
+
searchable?: boolean;
|
|
147
|
+
pagination?: boolean | PropertyTablePagination;
|
|
148
|
+
loading?: boolean;
|
|
149
|
+
showSummary?: boolean;
|
|
150
|
+
customClass?: string;
|
|
151
|
+
}
|
|
152
|
+
export type OccupancyStatus = 'self' | 'rent' | 'sublet' | 'vacant' | 'renovating';
|
|
153
|
+
export interface PropertyAssetRecord {
|
|
154
|
+
id: string | number;
|
|
155
|
+
roomNo: string;
|
|
156
|
+
building: string;
|
|
157
|
+
unit: string;
|
|
158
|
+
area: number;
|
|
159
|
+
layoutDesc: string;
|
|
160
|
+
ownerName: string;
|
|
161
|
+
ownerPhone?: string;
|
|
162
|
+
occupancyStatus: OccupancyStatus;
|
|
163
|
+
residentsCount?: number;
|
|
164
|
+
vehiclesCount?: number;
|
|
165
|
+
petsCount?: number;
|
|
166
|
+
tags?: string[];
|
|
167
|
+
[key: string]: any;
|
|
168
|
+
}
|
|
169
|
+
export interface YcAssetTableProps {
|
|
170
|
+
data?: PropertyAssetRecord[];
|
|
171
|
+
layout?: PropertyTableLayout;
|
|
172
|
+
breakpoint?: number;
|
|
173
|
+
title?: string;
|
|
174
|
+
subtitle?: string;
|
|
175
|
+
card?: boolean;
|
|
176
|
+
searchable?: boolean;
|
|
177
|
+
pagination?: boolean | PropertyTablePagination;
|
|
178
|
+
loading?: boolean;
|
|
179
|
+
customClass?: string;
|
|
180
|
+
}
|
|
181
|
+
export type DeviceStatus = 'normal' | 'warning' | 'maintenance' | 'stopped';
|
|
182
|
+
export interface PropertyDeviceRecord {
|
|
183
|
+
id: string | number;
|
|
184
|
+
deviceCode: string;
|
|
185
|
+
deviceName: string;
|
|
186
|
+
category: string;
|
|
187
|
+
location: string;
|
|
188
|
+
model?: string;
|
|
189
|
+
status: DeviceStatus;
|
|
190
|
+
responsible: string;
|
|
191
|
+
responsiblePhone?: string;
|
|
192
|
+
lastInspectDate?: string;
|
|
193
|
+
nextMaintenanceDate: string;
|
|
194
|
+
daysToMaintenance?: number;
|
|
195
|
+
cycle?: string;
|
|
196
|
+
[key: string]: any;
|
|
197
|
+
}
|
|
198
|
+
export interface YcDeviceTableProps {
|
|
199
|
+
data?: PropertyDeviceRecord[];
|
|
200
|
+
layout?: PropertyTableLayout;
|
|
201
|
+
breakpoint?: number;
|
|
202
|
+
title?: string;
|
|
203
|
+
subtitle?: string;
|
|
204
|
+
card?: boolean;
|
|
205
|
+
searchable?: boolean;
|
|
206
|
+
pagination?: boolean | PropertyTablePagination;
|
|
207
|
+
loading?: boolean;
|
|
208
|
+
customClass?: string;
|
|
209
|
+
}
|
|
210
|
+
export type RePropertyTableProps = YcPropertyTableProps;
|
|
211
|
+
export type ReOrderTableProps = YcOrderTableProps;
|
|
212
|
+
export type ReBillTableProps = YcBillTableProps;
|
|
213
|
+
export type ReAssetTableProps = YcAssetTableProps;
|
|
214
|
+
export type ReDeviceTableProps = YcDeviceTableProps;
|