@farris/ui-vue 1.7.0-beta.4 → 1.7.0
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/components/accordion/index.esm.js +61 -312
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +56 -1481
- package/components/avatar/index.umd.cjs +1 -1
- package/components/binding-selector/index.esm.js +8 -752
- package/components/binding-selector/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +358 -351
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/button-group/index.esm.js +110 -266
- package/components/button-group/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +1371 -1284
- package/components/calendar/index.umd.cjs +30 -30
- package/components/code-editor/index.esm.js +169 -237
- package/components/code-editor/index.umd.cjs +3 -3
- package/components/collection-property-editor/index.esm.js +382 -351
- package/components/collection-property-editor/index.umd.cjs +2 -2
- package/components/color-picker/index.esm.js +502 -812
- package/components/color-picker/index.umd.cjs +1 -1
- package/components/combo-list/index.esm.js +197 -183
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +199 -364
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/comment/index.esm.js +1501 -1465
- package/components/comment/index.umd.cjs +6 -6
- package/components/common/index.esm.js +136 -100
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.css +1 -1
- package/components/component/index.esm.js +2662 -3647
- package/components/component/index.umd.cjs +1 -8
- package/components/condition/index.esm.js +492 -2449
- package/components/condition/index.umd.cjs +1 -8
- package/components/content-container/index.esm.js +252 -241
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.esm.js +505 -409
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +3326 -3258
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +1709 -1634
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.css +1 -1
- package/components/designer-canvas/index.esm.js +2693 -3021
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/designer-outline/index.esm.js +102 -98
- package/components/designer-outline/index.umd.cjs +1 -1
- package/components/drawer/index.esm.js +409 -358
- package/components/drawer/index.umd.cjs +2 -2
- package/components/dropdown/index.esm.js +124 -373
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +760 -573
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +354 -327
- package/components/dynamic-resolver/index.umd.cjs +2 -2
- package/components/dynamic-view/index.esm.js +413 -359
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/event-parameter/index.esm.js +1 -1
- package/components/event-parameter/index.umd.cjs +1 -1
- package/components/events-editor/index.css +1 -1
- package/components/events-editor/index.esm.js +1535 -1941
- package/components/events-editor/index.umd.cjs +3 -3
- package/components/expression-editor/index.css +1 -1
- package/components/expression-editor/index.esm.js +2 -7317
- package/components/expression-editor/index.umd.cjs +1 -427
- package/components/field-selector/index.esm.js +13 -13
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/fieldset/index.esm.js +140 -123
- package/components/fieldset/index.umd.cjs +1 -1
- package/components/filter-bar/index.esm.js +1021 -1012
- package/components/filter-bar/index.umd.cjs +2 -2
- package/components/filter-condition-editor/index.css +1 -1
- package/components/filter-condition-editor/index.esm.js +448 -9000
- package/components/filter-condition-editor/index.umd.cjs +1 -427
- package/components/html-template/index.esm.js +167 -147
- package/components/html-template/index.umd.cjs +1 -1
- package/components/image/index.esm.js +372 -352
- package/components/image/index.umd.cjs +2 -2
- package/components/image-cropper/index.esm.js +361 -615
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/json-editor/index.esm.js +247 -325
- package/components/json-editor/index.umd.cjs +1 -1
- package/components/language-textbox/index.esm.js +835 -421
- package/components/language-textbox/index.umd.cjs +2 -2
- package/components/layout/index.esm.js +163 -549
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +39 -836
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +690 -474
- package/components/list-view/index.umd.cjs +6 -8
- package/components/loading/index.esm.js +128 -97
- package/components/loading/index.umd.cjs +2 -2
- package/components/locale/index.esm.js +361 -340
- package/components/locale/index.umd.cjs +5 -5
- package/components/lookup/index.css +1 -1
- package/components/lookup/index.esm.js +3396 -3368
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.css +1 -1
- package/components/mapping-editor/index.esm.js +1684 -1584
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/menu-lookup/index.esm.js +586 -609
- package/components/menu-lookup/index.umd.cjs +6 -6
- package/components/message-box/index.css +1 -1
- package/components/message-box/index.esm.js +357 -353
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.esm.js +325 -318
- package/components/modal/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +31 -311
- package/components/nav/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +189 -1633
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +195 -175
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +761 -1057
- package/components/order/index.umd.cjs +7 -9
- package/components/page-footer/index.esm.js +48 -331
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +92 -73
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +195 -472
- package/components/pagination/index.umd.cjs +1 -1
- package/components/popover/index.esm.js +77 -76
- package/components/popover/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +148 -353
- package/components/progress/index.umd.cjs +3 -3
- package/components/property-editor/index.esm.js +74 -68
- package/components/property-editor/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +872 -1800
- package/components/property-panel/index.umd.cjs +5 -12
- package/components/query-solution/index.css +1 -1
- package/components/query-solution/index.esm.js +4223 -6205
- package/components/query-solution/index.umd.cjs +6 -13
- package/components/response-layout/index.esm.js +206 -170
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +1 -1
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +378 -359
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +2491 -2653
- package/components/schema-selector/index.umd.cjs +8 -10
- package/components/search-box/index.esm.js +79 -240
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +304 -289
- package/components/section/index.umd.cjs +2 -2
- package/components/smoke-detector/index.esm.js +8 -179
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/sort-condition-editor/index.esm.js +4 -9421
- package/components/sort-condition-editor/index.umd.cjs +1 -427
- package/components/splitter/index.esm.js +142 -1171
- package/components/splitter/index.umd.cjs +1 -1
- package/components/step/index.esm.js +48 -47
- package/components/step/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +460 -513
- package/components/tabs/index.umd.cjs +1 -1
- package/components/text/index.esm.js +73 -217
- package/components/text/index.umd.cjs +1 -1
- package/components/time-picker/index.esm.js +380 -375
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/tooltip/index.esm.js +40 -40
- package/components/tooltip/index.umd.cjs +1 -1
- package/components/transfer/index.esm.js +551 -771
- package/components/transfer/index.umd.cjs +6 -8
- package/components/tree-grid/index.esm.js +250 -235
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +157 -314
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +634 -1125
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +106 -359
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +89 -222
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +199 -290
- package/components/weather/index.umd.cjs +1 -1
- package/designer/accordion/index.esm.js +257 -0
- package/designer/accordion/index.umd.cjs +1 -0
- package/designer/avatar/index.esm.js +227 -0
- package/designer/avatar/index.umd.cjs +1 -0
- package/designer/binding-selector/index.esm.js +792 -0
- package/designer/binding-selector/index.umd.cjs +1 -0
- package/designer/button-edit/index.esm.js +210 -203
- package/designer/button-edit/index.umd.cjs +1 -1
- package/designer/button-group/index.esm.js +282 -0
- package/designer/button-group/index.umd.cjs +1 -0
- package/designer/checkbox/index.esm.js +51 -45
- package/designer/checkbox/index.umd.cjs +1 -1
- package/designer/checkbox-group/index.esm.js +89 -83
- package/designer/checkbox-group/index.umd.cjs +1 -1
- package/designer/code-editor/index.esm.js +75 -0
- package/designer/code-editor/index.umd.cjs +1 -0
- package/designer/color-picker/index.esm.js +1096 -0
- package/designer/color-picker/index.umd.cjs +1 -0
- package/designer/combo-list/index.esm.js +1095 -0
- package/designer/combo-list/index.umd.cjs +1 -0
- package/designer/combo-tree/index.esm.js +186 -0
- package/designer/combo-tree/index.umd.cjs +1 -0
- package/designer/component/index.css +1 -0
- package/designer/component/index.esm.js +5002 -0
- package/designer/component/index.umd.cjs +1 -0
- package/designer/condition/index.esm.js +1899 -0
- package/designer/condition/index.umd.cjs +1 -0
- package/designer/data-grid/index.esm.js +5580 -6213
- package/designer/data-grid/index.umd.cjs +10 -17
- package/designer/data-view/index.esm.js +212 -191
- package/designer/data-view/index.umd.cjs +2 -2
- package/designer/date-picker/index.esm.js +621 -607
- package/designer/date-picker/index.umd.cjs +1 -1
- package/designer/drawer/index.css +1 -1
- package/designer/drawer/index.esm.js +869 -620
- package/designer/drawer/index.umd.cjs +2 -2
- package/designer/dropdown/index.esm.js +261 -0
- package/designer/dropdown/index.umd.cjs +1 -0
- package/designer/dynamic-form/index.esm.js +1166 -1384
- package/designer/dynamic-form/index.umd.cjs +1 -8
- package/designer/expression-editor/index.css +1 -0
- package/designer/expression-editor/index.esm.js +7006 -0
- package/designer/expression-editor/index.umd.cjs +427 -0
- package/designer/farris-designer.all.esm.js +10309 -10617
- package/designer/farris-designer.all.umd.cjs +17 -19
- package/designer/filter-condition-editor/index.css +1 -0
- package/designer/filter-condition-editor/index.esm.js +4795 -0
- package/designer/filter-condition-editor/index.umd.cjs +1 -0
- package/designer/html-template/index.esm.js +718 -0
- package/designer/html-template/index.umd.cjs +1 -0
- package/designer/image-cropper/index.esm.js +765 -0
- package/designer/image-cropper/index.umd.cjs +1 -0
- package/designer/index.css +1 -1
- package/designer/input-group/index.esm.js +72 -66
- package/designer/input-group/index.umd.cjs +1 -1
- package/designer/json-editor/index.esm.js +83 -0
- package/designer/json-editor/index.umd.cjs +1 -0
- package/designer/language-textbox/index.esm.js +783 -0
- package/designer/language-textbox/index.umd.cjs +8 -0
- package/designer/layout/index.esm.js +430 -0
- package/designer/layout/index.umd.cjs +1 -0
- package/designer/list-nav/index.esm.js +802 -0
- package/designer/list-nav/index.umd.cjs +1 -0
- package/designer/list-view/index.esm.js +864 -844
- package/designer/list-view/index.umd.cjs +7 -9
- package/designer/lookup/index.esm.js +2083 -0
- package/designer/lookup/index.umd.cjs +1 -0
- package/designer/menu-lookup/index.esm.js +46 -0
- package/designer/menu-lookup/index.umd.cjs +1 -0
- package/designer/modal/index.esm.js +137 -29
- package/designer/modal/index.umd.cjs +1 -1
- package/designer/nav/index.esm.js +284 -0
- package/designer/nav/index.umd.cjs +1 -0
- package/designer/number-range/index.esm.js +1616 -0
- package/designer/number-range/index.umd.cjs +1 -0
- package/designer/number-spinner/index.esm.js +19 -17
- package/designer/number-spinner/index.umd.cjs +1 -1
- package/designer/order/index.css +1 -0
- package/designer/order/index.esm.js +2196 -0
- package/designer/order/index.umd.cjs +18 -0
- package/designer/page-footer/index.esm.js +290 -0
- package/designer/page-footer/index.umd.cjs +1 -0
- package/designer/page-header/index.esm.js +1003 -0
- package/designer/page-header/index.umd.cjs +1 -0
- package/designer/pagination/index.esm.js +591 -0
- package/designer/pagination/index.umd.cjs +1 -0
- package/designer/progress/index.esm.js +213 -0
- package/designer/progress/index.umd.cjs +1 -0
- package/designer/radio-group/index.esm.js +978 -949
- package/designer/radio-group/index.umd.cjs +1 -1
- package/designer/response-layout-editor/index.esm.js +1 -1
- package/designer/response-layout-editor/index.umd.cjs +1 -1
- package/designer/response-toolbar/index.esm.js +1471 -1416
- package/designer/response-toolbar/index.umd.cjs +1 -1
- package/designer/search-box/index.esm.js +245 -0
- package/designer/search-box/index.umd.cjs +1 -0
- package/designer/section/index.esm.js +83 -78
- package/designer/section/index.umd.cjs +1 -1
- package/designer/smoke-detector/index.css +1 -0
- package/designer/smoke-detector/index.esm.js +178 -0
- package/designer/smoke-detector/index.umd.cjs +1 -0
- package/designer/sort-condition-editor/index.esm.js +138 -0
- package/designer/sort-condition-editor/index.umd.cjs +1 -0
- package/designer/splitter/index.esm.js +1120 -0
- package/designer/splitter/index.umd.cjs +1 -0
- package/designer/step/index.esm.js +226 -0
- package/designer/step/index.umd.cjs +1 -0
- package/designer/switch/index.esm.js +10 -10
- package/designer/switch/index.umd.cjs +1 -1
- package/designer/tabs/index.css +1 -1
- package/designer/tabs/index.esm.js +2447 -2698
- package/designer/tabs/index.umd.cjs +2 -2
- package/designer/text/index.esm.js +147 -0
- package/designer/text/index.umd.cjs +1 -0
- package/designer/time-picker/index.esm.js +101 -100
- package/designer/time-picker/index.umd.cjs +1 -1
- package/designer/transfer/index.esm.js +254 -0
- package/designer/transfer/index.umd.cjs +1 -0
- package/designer/tree-grid/index.esm.js +473 -810
- package/designer/tree-grid/index.umd.cjs +1 -1
- package/designer/tree-view/index.esm.js +313 -0
- package/designer/tree-view/index.umd.cjs +1 -0
- package/designer/uploader/index.esm.js +1190 -0
- package/designer/uploader/index.umd.cjs +2 -0
- package/designer/verify-detail/index.esm.js +258 -0
- package/designer/verify-detail/index.umd.cjs +1 -0
- package/designer/video/index.esm.js +136 -0
- package/designer/video/index.umd.cjs +1 -0
- package/designer/weather/index.css +1 -0
- package/designer/weather/index.esm.js +6244 -0
- package/designer/weather/index.umd.cjs +14 -0
- package/farris.all.esm.js +69941 -70514
- package/farris.all.umd.cjs +117 -117
- package/index.css +1 -1
- package/locales/filter-bar/ui/en.json +2 -1
- package/locales/filter-bar/ui/zh-CHS.json +2 -1
- package/locales/filter-bar/ui/zh-CHT.json +2 -1
- package/locales/query-solution/ui/en.json +1 -1
- package/locales/query-solution/ui/zh-CHS.json +1 -1
- package/locales/query-solution/ui/zh-CHT.json +1 -1
- package/locales/ui/en.json +3 -2
- package/locales/ui/zh-CHS.json +3 -2
- package/locales/ui/zh-CHT.json +3 -2
- package/package.json +1 -1
- package/types/accordion/designer.d.ts +44 -0
- package/types/accordion/src/accordion.props.d.ts +0 -1
- package/types/accordion/src/components/accordion-item.props.d.ts +0 -1
- package/types/avatar/designer.d.ts +29 -0
- package/types/avatar/src/avatar.props.d.ts +0 -1
- package/types/avatar/src/property-config/avatar.property-config.d.ts +1 -1
- package/types/{expression-editor/index.d.ts → binding-selector/designer.d.ts} +6 -6
- package/types/binding-selector/index.d.ts +0 -54
- package/types/binding-selector/src/binding-selector.props.d.ts +0 -1
- package/types/button-group/designer.d.ts +29 -0
- package/types/button-group/index.d.ts +15 -0
- package/types/button-group/src/button-group.props.d.ts +0 -1
- package/types/calendar/src/calendar.props.d.ts +1 -0
- package/types/calendar/src/components/month/month-view.component.d.ts +6 -6
- package/types/calendar/src/composition/use-calendar-events.d.ts +1 -1
- package/types/calendar/src/composition/use-locales.d.ts +1 -0
- package/types/calendar/src/property-config/calendar.property-config.d.ts +2 -0
- package/types/capsule/src/capsule-item.component.d.ts +6 -6
- package/types/checkbox/designer.d.ts +2 -0
- package/types/checkbox-group/designer.d.ts +2 -0
- package/types/code-editor/designer.d.ts +5 -0
- package/types/code-editor/index.d.ts +0 -1
- package/types/code-editor/src/code-textbox.component.d.ts +6 -6
- package/types/code-editor/src/code-textbox.props.d.ts +0 -2
- package/types/color-picker/designer.d.ts +29 -0
- package/types/color-picker/index.d.ts +0 -15
- package/types/color-picker/src/color-picker.props.d.ts +0 -1
- package/types/combo-list/designer.d.ts +29 -0
- package/types/combo-list/src/combo-list.props.d.ts +1 -0
- package/types/combo-list/src/designer/combo-list.design.props.d.ts +6 -0
- package/types/combo-tree/designer.d.ts +5 -0
- package/types/combo-tree/src/combo-tree.props.d.ts +0 -1
- package/types/combo-tree/src/components/tree-container.component.d.ts +7 -7
- package/types/comment/src/comment.props.d.ts +4 -0
- package/types/comment/src/designer/comment.design.props.d.ts +4 -0
- package/types/common/index.d.ts +1 -0
- package/types/common/utils/use-mobile.d.ts +1 -0
- package/types/component/designer.d.ts +35 -0
- package/types/component/index.d.ts +0 -2
- package/types/component/src/component.props.d.ts +0 -8
- package/types/component/src/composition/field-tree-builder.d.ts +1 -0
- package/types/components.d.ts +2 -6
- package/types/condition/designer.d.ts +56 -0
- package/types/condition/index.d.ts +0 -55
- package/types/content-container/index.d.ts +3 -2
- package/types/content-container/src/content-container.props.d.ts +1 -0
- package/types/data-grid/designer.d.ts +2 -0
- package/types/data-grid/index.d.ts +5 -2
- package/types/data-grid/src/data-grid.component.d.ts +2 -1
- package/types/data-grid/src/designer/grid-field-editor.props.d.ts +1 -0
- package/types/data-view/composition/types.d.ts +7 -1
- package/types/data-view/composition/use-mobile.d.ts +3 -0
- package/types/data-view/designer/property-config/use-command-option.d.ts +11 -0
- package/types/data-view/index.d.ts +1 -0
- package/types/designer-canvas/src/composition/designer-canvas-changed.d.ts +3 -3
- package/types/designer-canvas/src/composition/dg-control.d.ts +8 -0
- package/types/designer-outline/src/designer-outline.component.d.ts +3 -3
- package/types/designer-outline/src/types.d.ts +5 -1
- package/types/drawer/designer.d.ts +12 -0
- package/types/drawer/src/designer/drawer-toolbar.design.props.d.ts +12 -0
- package/types/drawer/src/designer/drawer.design.component.d.ts +8 -0
- package/types/drawer/src/designer/drawer.design.props.d.ts +4 -0
- package/types/drawer/src/schema/schema-mapper.d.ts +1 -0
- package/types/drawer/src/schema/schema-resolver.d.ts +1 -0
- package/types/dropdown/designer.d.ts +6 -0
- package/types/dropdown/index.d.ts +27 -6
- package/types/dropdown/src/dropdown.item.component.d.ts +2 -2
- package/types/dropdown/src/dropdown.props.d.ts +0 -1
- package/types/dynamic-form/designer.d.ts +3 -1
- package/types/dynamic-form/index.d.ts +4 -3
- package/types/dynamic-form/src/component/dynamic-form-label/dynamic-form-label.component.d.ts +6 -6
- package/types/dynamic-form/src/composition/use-input-type-resolver.d.ts +11 -0
- package/types/dynamic-resolver/index.d.ts +3 -0
- package/types/dynamic-resolver/src/props-resolver.d.ts +2 -0
- package/types/dynamic-resolver/src/resolver/property-config/property-config-resolver-design.d.ts +1 -1
- package/types/dynamic-resolver/src/resolver/property-config/property-config-resolver.d.ts +1 -1
- package/types/dynamic-resolver/src/resolver/property-config/use-property-config-resolver.d.ts +2 -2
- package/types/dynamic-resolver/src/resolver/schema/schema-resolver-design.d.ts +1 -1
- package/types/dynamic-resolver/src/resolver/schema/schema-resolver.d.ts +1 -1
- package/types/dynamic-view/src/components/maps.d.ts +883 -1
- package/types/dynamic-view/src/dynamic-view.component.d.ts +1 -1
- package/types/dynamic-view/src/types.d.ts +4 -0
- package/types/expression-editor/designer.d.ts +9 -0
- package/types/field-selector/index.d.ts +2 -1
- package/types/fieldset/index.d.ts +3 -2
- package/types/fieldset/src/fieldset.props.d.ts +1 -0
- package/types/filter-bar/src/composition/types.d.ts +1 -1
- package/types/filter-bar/src/composition/use-size.d.ts +2 -2
- package/types/filter-bar/src/locale/locale.d.ts +1 -0
- package/types/filter-condition-editor/designer.d.ts +10 -0
- package/types/filter-condition-editor/index.d.ts +0 -9
- package/types/filter-condition-editor/src/components/filter-condition-grid.component.d.ts +12 -12
- package/types/filter-condition-editor/src/components/sort-editor-grid.component.d.ts +12 -12
- package/types/filter-condition-editor/src/filter-condition-editor.props.d.ts +0 -1
- package/types/html-template/designer.d.ts +31 -0
- package/types/html-template/src/designer/html-template.design.props.d.ts +9 -0
- package/types/html-template/src/html-template.props.d.ts +2 -0
- package/types/image-cropper/designer.d.ts +4 -0
- package/types/image-cropper/src/image-cropper.props.d.ts +0 -1
- package/types/index.d.ts +0 -1
- package/types/input-group/designer.d.ts +2 -0
- package/types/json-editor/designer.d.ts +5 -0
- package/types/json-editor/src/components/editable-combo/editable-combo.component.d.ts +3 -3
- package/types/json-editor/src/components/editable-combo/popup-container.component.d.ts +3 -3
- package/types/json-editor/src/json-editor.props.d.ts +0 -1
- package/types/language-textbox/index.d.ts +6 -6
- package/types/language-textbox/src/language-textbox.component.d.ts +2 -2
- package/types/language-textbox/src/language-textbox.props.d.ts +1 -0
- package/types/layout/index.d.ts +1 -0
- package/types/layout/src/components/layout-pane.props.d.ts +0 -1
- package/types/layout/src/layout.props.d.ts +0 -1
- package/types/list-nav/index.d.ts +24 -5
- package/types/list-nav/src/list-nav.props.d.ts +0 -1
- package/types/list-view/index.d.ts +1 -0
- package/types/list-view/src/composition/use-draggable.d.ts +1 -1
- package/types/list-view/src/designer/list-view.design.props.d.ts +1 -0
- package/types/list-view/src/list-view-table.props.d.ts +1 -0
- package/types/loading/index.d.ts +6 -6
- package/types/loading/src/loading.component.d.ts +3 -3
- package/types/lookup/index.d.ts +1 -1
- package/types/lookup/src/components/popup-container.component.d.ts +6 -6
- package/types/lookup/src/lookup.props.d.ts +1 -0
- package/types/lookup/src/property-config/external-lookup.property-config.d.ts +1 -0
- package/types/lookup/src/property-config/lookup.property-config.d.ts +1 -0
- package/types/menu-lookup/designer.d.ts +5 -0
- package/types/menu-lookup/src/menu-lookup.props.d.ts +0 -1
- package/types/message-box/index.d.ts +6 -6
- package/types/message-box/src/message-box.component.d.ts +3 -3
- package/types/modal/designer.d.ts +2 -0
- package/types/modal/index.d.ts +30 -24
- package/types/modal/src/modal.component.d.ts +15 -12
- package/types/modal/src/modal.props.d.ts +4 -0
- package/types/nav/designer.d.ts +6 -0
- package/types/nav/index.d.ts +24 -20
- package/types/nav/src/nav.props.d.ts +0 -1
- package/types/notify/index.d.ts +3 -3
- package/types/notify/src/notify.component.d.ts +2 -2
- package/types/number-range/designer.d.ts +29 -0
- package/types/number-range/src/number-range.props.d.ts +0 -1
- package/types/number-spinner/src/composition/types.d.ts +1 -0
- package/types/order/designer.d.ts +6 -0
- package/types/order/index.d.ts +36 -5
- package/types/order/src/designer/order.design.component.d.ts +1 -1
- package/types/order/src/order.props.d.ts +0 -1
- package/types/page-footer/designer.d.ts +6 -0
- package/types/page-footer/index.d.ts +0 -2
- package/types/page-footer/src/page-footer.props.d.ts +0 -1
- package/types/page-header/index.d.ts +3 -2
- package/types/page-header/src/designer/page-header.design.props.d.ts +20 -0
- package/types/page-header/src/page-header.props.d.ts +2 -0
- package/types/pagination/designer.d.ts +29 -0
- package/types/pagination/index.d.ts +15 -0
- package/types/pagination/src/pagination.props.d.ts +0 -1
- package/types/popover/index.d.ts +3 -3
- package/types/popover/src/composition/use-resize.d.ts +1 -1
- package/types/popover/src/popover.component.d.ts +2 -2
- package/types/progress/designer.d.ts +29 -0
- package/types/progress/src/progress.props.d.ts +0 -1
- package/types/property-panel/src/property-panel.component.d.ts +3 -3
- package/types/query-solution/index.d.ts +4 -4
- package/types/query-solution/src/composition/types.d.ts +8 -2
- package/types/query-solution/src/composition/use-header.d.ts +2 -2
- package/types/query-solution/src/composition/use-solution-utils.d.ts +1 -1
- package/types/query-solution/src/designer/query-solution-config/composition/use-util.d.ts +1 -1
- package/types/query-solution/src/designer/query-solution-config/query-solution-config.props.d.ts +1 -0
- package/types/query-solution/src/designer/solution-preset-config/solution-preset.props.d.ts +1 -0
- package/types/query-solution/src/query-solution.props.d.ts +1 -0
- package/types/radio-group/designer.d.ts +4 -1
- package/types/radio-group/src/designer/item-collection-editor.props.d.ts +1 -0
- package/types/response-layout/index.d.ts +3 -2
- package/types/response-layout/src/component/response-layout-item.props.d.ts +1 -0
- package/types/response-layout/src/property-config/response-layout-splitter/response-layout-splitter.props.d.ts +1 -0
- package/types/response-layout/src/response-layout.props.d.ts +1 -0
- package/types/response-toolbar/designer.d.ts +2 -1
- package/types/response-toolbar/src/designer/response-toolbar.design.props.d.ts +1 -0
- package/types/search-box/designer.d.ts +52 -0
- package/types/search-box/index.d.ts +1 -17
- package/types/search-box/src/components/search-box-container.component.d.ts +3 -3
- package/types/search-box/src/search-box.props.d.ts +0 -1
- package/types/section/designer.d.ts +1 -0
- package/types/smoke-detector/designer.d.ts +6 -0
- package/types/smoke-detector/index.d.ts +0 -2
- package/types/smoke-detector/src/smoke-detector.props.d.ts +0 -1
- package/types/sort-condition-editor/designer.d.ts +9 -0
- package/types/sort-condition-editor/index.d.ts +2 -7
- package/types/sort-condition-editor/src/sort-condition-editor.props.d.ts +0 -1
- package/types/splitter/designer.d.ts +32 -0
- package/types/splitter/index.d.ts +1 -0
- package/types/splitter/src/components/splitter-pane.props.d.ts +0 -1
- package/types/splitter/src/splitter.props.d.ts +0 -1
- package/types/step/designer.d.ts +6 -0
- package/types/tabs/designer.d.ts +1 -0
- package/types/tabs/index.d.ts +0 -1
- package/types/tabs/src/composition/types.d.ts +1 -0
- package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +1 -0
- package/types/tags/index.d.ts +3 -3
- package/types/tags/src/tags.component.d.ts +1 -1
- package/types/text/designer.d.ts +6 -0
- package/types/text/index.d.ts +24 -20
- package/types/text/src/text.props.d.ts +0 -1
- package/types/time-picker/src/components/time.component.d.ts +3 -3
- package/types/transfer/designer.d.ts +35 -0
- package/types/transfer/src/transfer.props.d.ts +0 -1
- package/types/tree-view/designer.d.ts +29 -0
- package/types/tree-view/src/tree-view.props.d.ts +0 -1
- package/types/uploader/designer.d.ts +141 -0
- package/types/uploader/index.d.ts +6 -6
- package/types/uploader/src/components/upload-progress.component.d.ts +3 -3
- package/types/uploader/src/uploader.component.d.ts +3 -3
- package/types/uploader/src/uploader.props.d.ts +0 -1
- package/types/verify-detail/designer.d.ts +6 -0
- package/types/verify-detail/index.d.ts +58 -5
- package/types/verify-detail/src/designer/verify-detail.design.component.d.ts +8 -8
- package/types/verify-detail/src/verify-detail.props.d.ts +0 -1
- package/types/video/designer.d.ts +6 -0
- package/types/video/index.d.ts +24 -20
- package/types/video/src/video.props.d.ts +0 -1
- package/components/sort-condition-editor/index.css +0 -1
- package/package.zip +0 -0
- package/types/designer-toolbox/index.d.ts +0 -3
- package/types/designer-toolbox/src/toolbox.component.d.ts +0 -14
- package/types/designer-toolbox/src/toolbox.props.d.ts +0 -29
- package/types/designer-toolbox/src/types.d.ts +0 -21
- package/types/designer.d.ts +0 -13
- package/types/flow-canvas/index.d.ts +0 -3
- package/types/flow-canvas/src/components/flow-node-item.component.d.ts +0 -8
- package/types/flow-canvas/src/components/flow-node-item.props.d.ts +0 -3
- package/types/flow-canvas/src/composition/types.d.ts +0 -42
- package/types/flow-canvas/src/composition/use-bezier-curve.d.ts +0 -2
- package/types/flow-canvas/src/composition/use-connections.d.ts +0 -2
- package/types/flow-canvas/src/composition/use-curve.d.ts +0 -4
- package/types/flow-canvas/src/composition/use-drawing-bezier.d.ts +0 -2
- package/types/flow-canvas/src/composition/use-drawing.d.ts +0 -4
- package/types/flow-canvas/src/flow-canvas.component.d.ts +0 -8
- package/types/flow-canvas/src/flow-canvas.props.d.ts +0 -3
- package/types/layout/src/designer/layout-pane-use-designer-rules.d.ts +0 -2
- package/types/layout/src/designer/layout-pane.design.component.d.ts +0 -8
- package/types/layout/src/designer/layout-use-designer-rules.d.ts +0 -2
- package/types/layout/src/designer/layout.design.component.d.ts +0 -8
- package/types/layout/src/schema/schema-mapper.d.ts +0 -2
- package/types/layout/src/schema/schema-resolver.d.ts +0 -2
- package/types/list-nav/src/designer/use-designer-rules.d.ts +0 -2
- package/types/list-nav/src/property-config/list-nav.property-config.d.ts +0 -8
- package/types/list-nav/src/schema/schema-mapper.d.ts +0 -2
- package/types/list-nav/src/schema/schema-resolver.d.ts +0 -2
- /package/{components → designer}/condition/index.css +0 -0
- /package/{components → designer}/uploader/index.css +0 -0
- /package/types/{list-nav/src/designer/list-nav.design.component.d.ts → dynamic-form/src/component/form-control/form-control.component.d.ts} +0 -0
|
@@ -0,0 +1,1190 @@
|
|
|
1
|
+
var ge = Object.defineProperty;
|
|
2
|
+
var we = (e, t, n) => t in e ? ge(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
+
var L = (e, t, n) => we(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
+
import be, { uploaderProps as de } from "../../components/uploader/index.esm.js";
|
|
5
|
+
import { defineComponent as U, toRefs as pe, ref as T, watch as O, createVNode as i, inject as R, getCurrentInstance as Ce, onMounted as oe, onUnmounted as le, Fragment as V, computed as E, reactive as xe, createApp as Te, Transition as Fe, mergeProps as Se, onBeforeMount as Ie, resolveComponent as Z, createTextVNode as N } from "vue";
|
|
6
|
+
import { useDateFormat as Ee, withInstall as Be } from "../../components/common/index.esm.js";
|
|
7
|
+
import { LocaleService as ee } from "../../components/locale/index.esm.js";
|
|
8
|
+
import { useDesignerComponent as De } from "../../components/designer-canvas/index.esm.js";
|
|
9
|
+
import { resolveAppearance as He, createPropsResolver as Pe } from "../../components/dynamic-resolver/index.esm.js";
|
|
10
|
+
const Me = {
|
|
11
|
+
// 是否被选中
|
|
12
|
+
checked: { type: Boolean, default: !1 },
|
|
13
|
+
// 进度条状态 默认'normal'
|
|
14
|
+
id: { type: String, default: "" },
|
|
15
|
+
// 禁用
|
|
16
|
+
disabled: { type: Boolean, default: !1 }
|
|
17
|
+
}, Ne = {
|
|
18
|
+
/**
|
|
19
|
+
* 按钮文本
|
|
20
|
+
*/
|
|
21
|
+
selectText: { type: String, default: "选择文件" },
|
|
22
|
+
/**
|
|
23
|
+
* 禁用
|
|
24
|
+
*/
|
|
25
|
+
disabled: { type: Boolean, default: !1 },
|
|
26
|
+
/**
|
|
27
|
+
* 启用多选
|
|
28
|
+
*/
|
|
29
|
+
enableMulti: { type: Boolean, default: !0 },
|
|
30
|
+
/**
|
|
31
|
+
* 允许上传类型
|
|
32
|
+
*/
|
|
33
|
+
accept: { type: String, default: "*" },
|
|
34
|
+
/**
|
|
35
|
+
* 配置对象
|
|
36
|
+
*/
|
|
37
|
+
options: { type: Object, default: {} },
|
|
38
|
+
/**
|
|
39
|
+
* 已上传附件个数
|
|
40
|
+
*/
|
|
41
|
+
uploadedCount: { type: Number, default: 0 },
|
|
42
|
+
/**
|
|
43
|
+
* 发起服务器端请求,某个组件使用的特殊的参数
|
|
44
|
+
*/
|
|
45
|
+
extendConfig: { type: Object, default: {} },
|
|
46
|
+
/**
|
|
47
|
+
* 附件服务器端服务注入的Token
|
|
48
|
+
*/
|
|
49
|
+
uploadServerToken: { type: String, default: "" }
|
|
50
|
+
}, ke = /* @__PURE__ */ U({
|
|
51
|
+
name: "FPreviewCheckbox",
|
|
52
|
+
props: Me,
|
|
53
|
+
emits: ["checkedChange"],
|
|
54
|
+
setup(e, t) {
|
|
55
|
+
const {
|
|
56
|
+
disabled: n
|
|
57
|
+
} = pe(e), a = T(e.checked), s = (l) => {
|
|
58
|
+
l.stopPropagation(), n.value || (a.value = !a.value, t.emit("checkedChange", {
|
|
59
|
+
checked: a.value,
|
|
60
|
+
id: e.id
|
|
61
|
+
}));
|
|
62
|
+
};
|
|
63
|
+
return O(() => e.checked, (l) => {
|
|
64
|
+
a.value = l;
|
|
65
|
+
}), () => i("div", {
|
|
66
|
+
class: "preview-checkbox d-inline-flex align-middle"
|
|
67
|
+
}, [i("div", {
|
|
68
|
+
class: "custom-control custom-checkbox f-checkradio-single m-0"
|
|
69
|
+
}, [i("input", {
|
|
70
|
+
title: "custom-control-input",
|
|
71
|
+
class: "custom-control-input",
|
|
72
|
+
type: "checkbox",
|
|
73
|
+
disabled: n.value,
|
|
74
|
+
checked: a.value
|
|
75
|
+
}, null), i("label", {
|
|
76
|
+
class: "custom-control-label",
|
|
77
|
+
onClick: (l) => s(l),
|
|
78
|
+
onMousedown: (l) => l.stopPropagation()
|
|
79
|
+
}, null)])]);
|
|
80
|
+
}
|
|
81
|
+
}), Ae = /* @__PURE__ */ U({
|
|
82
|
+
name: "FFileSelect",
|
|
83
|
+
props: Ne,
|
|
84
|
+
emits: ["change", "stateChange"],
|
|
85
|
+
setup(e, t) {
|
|
86
|
+
const n = R("uploaderService");
|
|
87
|
+
n.setUploadContext(t);
|
|
88
|
+
const a = Ce(), s = T("*");
|
|
89
|
+
let l;
|
|
90
|
+
const c = () => {
|
|
91
|
+
l.files && (t.emit("change", l.files), n.handleFiles(l.files), l.value = null);
|
|
92
|
+
};
|
|
93
|
+
function p() {
|
|
94
|
+
l.value = null, n.reset();
|
|
95
|
+
}
|
|
96
|
+
O(() => e.disabled, () => {
|
|
97
|
+
p();
|
|
98
|
+
}), O(() => e.uploadedCount, (u) => {
|
|
99
|
+
n.setOptions({
|
|
100
|
+
uploadedCount: u
|
|
101
|
+
});
|
|
102
|
+
}), O(() => e.extendConfig, (u) => {
|
|
103
|
+
n.setExtendServerConfig(u);
|
|
104
|
+
});
|
|
105
|
+
function F(u) {
|
|
106
|
+
u && u.stopPropagation(), l.click();
|
|
107
|
+
}
|
|
108
|
+
function w(u) {
|
|
109
|
+
n.handleUploadEvent(u);
|
|
110
|
+
}
|
|
111
|
+
return oe(() => {
|
|
112
|
+
var u, C;
|
|
113
|
+
l = (u = a == null ? void 0 : a.proxy) == null ? void 0 : u.$refs.uploadInput, p(), n.setOptions(e.options), n.setExtendServerConfig(e.extendConfig), s.value = (((C = e.options) == null ? void 0 : C.allowedContentTypes) || ["*"]).join(",");
|
|
114
|
+
}), le(() => {
|
|
115
|
+
}), t.expose({
|
|
116
|
+
handleUploadEvent: w
|
|
117
|
+
}), () => i(V, null, [i("input", {
|
|
118
|
+
ref: "uploadInput",
|
|
119
|
+
type: "file",
|
|
120
|
+
class: "ffileupload--browser",
|
|
121
|
+
disabled: e.disabled,
|
|
122
|
+
multiple: e.enableMulti,
|
|
123
|
+
accept: s.value,
|
|
124
|
+
onChange: () => c(),
|
|
125
|
+
style: "width: 10px",
|
|
126
|
+
title: "uploadInput"
|
|
127
|
+
}, null), i("div", {
|
|
128
|
+
class: ["upload-container", e.disabled ? "f-state-disabled" : ""],
|
|
129
|
+
onClick: (u) => F(u),
|
|
130
|
+
title: e.selectText
|
|
131
|
+
}, [i("i", {
|
|
132
|
+
class: "f-icon f-icon-upload upload-icon",
|
|
133
|
+
style: "top: 2px;position: relative;"
|
|
134
|
+
}, null), e.selectText])]);
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
var te = /* @__PURE__ */ ((e) => (e[e.Queue = 0] = "Queue", e[e.Uploading = 1] = "Uploading", e[e.Done = 2] = "Done", e[e.Cancelled = 3] = "Cancelled", e[e.Remove = 4] = "Remove", e[e.Error = 5] = "Error", e))(te || {});
|
|
138
|
+
class Oe {
|
|
139
|
+
constructor(t = {}, n = {}) {
|
|
140
|
+
/**
|
|
141
|
+
* 上传配置
|
|
142
|
+
*/
|
|
143
|
+
L(this, "uploadConfig");
|
|
144
|
+
/**
|
|
145
|
+
* 删除配置
|
|
146
|
+
*/
|
|
147
|
+
L(this, "removeConfig");
|
|
148
|
+
const a = { type: "config", url: "", timeout: 0, headers: null, data: {} };
|
|
149
|
+
this.uploadConfig = Object.assign({}, a, t), this.removeConfig = Object.assign({}, a, n);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
function fe(e, t) {
|
|
153
|
+
const { formatTo: n } = Ee();
|
|
154
|
+
return n(e, t);
|
|
155
|
+
}
|
|
156
|
+
function re(e, t) {
|
|
157
|
+
if (!t)
|
|
158
|
+
return "";
|
|
159
|
+
let n = "";
|
|
160
|
+
return e.indexOf(".") === -1 && t.hasOwnProperty(e) ? n = t[e] : n = e.split(".").reduce((a, s) => a ? a[s] : null, t), n;
|
|
161
|
+
}
|
|
162
|
+
function Re(e) {
|
|
163
|
+
return (t, n) => {
|
|
164
|
+
if (!t.hasOwnProperty(e) || t[e] === void 0 || t[e] === null)
|
|
165
|
+
return 1;
|
|
166
|
+
if (!n.hasOwnProperty(e) || n[e] === void 0 || n[e] === null)
|
|
167
|
+
return -1;
|
|
168
|
+
if (e !== "createTime") {
|
|
169
|
+
let l = "", c = "";
|
|
170
|
+
return e.indexOf(".") > -1 ? (l = re(e, t), c = re(e, n)) : (l = t[e], c = n[e]), l > c ? 1 : -1;
|
|
171
|
+
}
|
|
172
|
+
const a = new Date(t[e]), s = new Date(n[e]);
|
|
173
|
+
return a.getTime() > s.getTime() ? -1 : 1;
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
function je(e) {
|
|
177
|
+
return (e || []).findIndex((n) => n === "*") === -1;
|
|
178
|
+
}
|
|
179
|
+
function ze(e) {
|
|
180
|
+
return e !== "0 Byte";
|
|
181
|
+
}
|
|
182
|
+
function ne(e) {
|
|
183
|
+
if (e === 0)
|
|
184
|
+
return "0 Byte";
|
|
185
|
+
const t = 1024, n = ["Bytes", "KB", "MB", "GB", "TB", "PB"], a = Math.floor(Math.log(e) / Math.log(t));
|
|
186
|
+
return parseFloat((e / t ** a).toFixed(2)) + " " + n[a];
|
|
187
|
+
}
|
|
188
|
+
function Le(e, t) {
|
|
189
|
+
return e && (e.hasOwnProperty("allowedContentTypes") && (t.allowedContentTypes = e.allowedContentTypes || ["*"], t.allowedContentTypes = t.allowedContentTypes && t.allowedContentTypes.length > 0 ? t.allowedContentTypes : ["*"]), e.hasOwnProperty("maxUploads") && (t.maxUploads = e.maxUploads || 0), e.hasOwnProperty("maxFileSize") && (t.maxFileSize = ne(1024 * 1024 * (parseInt(String(e.maxFileSize), 10) || 1)))), t;
|
|
190
|
+
}
|
|
191
|
+
function ce(e) {
|
|
192
|
+
const t = [];
|
|
193
|
+
return e.forEach((n) => {
|
|
194
|
+
const a = { id: "", name: "", size: 0, type: "", extend: null, extendHeaders: null, createTime: "" };
|
|
195
|
+
for (const s in a) {
|
|
196
|
+
const l = s.replace("extend", "response").replace("createTime", "lastModifiedDate");
|
|
197
|
+
n.hasOwnProperty(l) && (l === "lastModifiedDate" ? a[s] = fe(n[l], "yyyy-MM-dd HH:mm:ss") : a[s] = n[l]);
|
|
198
|
+
}
|
|
199
|
+
t.push(a);
|
|
200
|
+
}), t;
|
|
201
|
+
}
|
|
202
|
+
function Ue(e) {
|
|
203
|
+
if (e)
|
|
204
|
+
return e.split(`
|
|
205
|
+
`).map((t) => t.split(/: */, 2)).filter((t) => t[0]).reduce((t, n) => (t[n[0]] = n[1], t), {});
|
|
206
|
+
}
|
|
207
|
+
function ue(e) {
|
|
208
|
+
return new Date(e * 1e3).toISOString().substr(11, 8);
|
|
209
|
+
}
|
|
210
|
+
class $e extends Oe {
|
|
211
|
+
upload(t, n, a, s) {
|
|
212
|
+
const l = t[0];
|
|
213
|
+
return new Promise((c, p) => {
|
|
214
|
+
var H, f;
|
|
215
|
+
const F = n.url || a.url || "", w = n.method || "POST", u = n.data || {}, C = n.headers || {}, v = new XMLHttpRequest(), B = (/* @__PURE__ */ new Date()).getTime();
|
|
216
|
+
let x = ((H = l.progress) == null ? void 0 : H.data) && l.progress.data.startTime || B, S = 0, y = null;
|
|
217
|
+
v.upload.addEventListener("progress", (m) => {
|
|
218
|
+
var I;
|
|
219
|
+
if (m.lengthComputable) {
|
|
220
|
+
const b = Math.round(m.loaded * 100 / m.total), k = (/* @__PURE__ */ new Date()).getTime() - B;
|
|
221
|
+
S = Math.round(m.loaded / k * 1e3), x = ((I = l.progress) == null ? void 0 : I.data) && l.progress.data.startTime || (/* @__PURE__ */ new Date()).getTime(), y = Math.ceil((m.total - m.loaded) / S), l.progress = {
|
|
222
|
+
status: te.Uploading,
|
|
223
|
+
data: {
|
|
224
|
+
percentage: b,
|
|
225
|
+
speed: S,
|
|
226
|
+
speedHuman: `${ne(S)}/s`,
|
|
227
|
+
startTime: x,
|
|
228
|
+
endTime: null,
|
|
229
|
+
eta: y,
|
|
230
|
+
etaHuman: ue(y)
|
|
231
|
+
}
|
|
232
|
+
}, s({ type: "uploading", files: [l] });
|
|
233
|
+
}
|
|
234
|
+
}, !1), v.upload.addEventListener("error", (m) => {
|
|
235
|
+
p(m);
|
|
236
|
+
}), v.onreadystatechange = () => {
|
|
237
|
+
if (v.readyState === XMLHttpRequest.DONE) {
|
|
238
|
+
const m = Math.round(l.size / ((/* @__PURE__ */ new Date()).getTime() - x) * 1e3);
|
|
239
|
+
l.progress = {
|
|
240
|
+
status: te.Done,
|
|
241
|
+
data: {
|
|
242
|
+
percentage: 100,
|
|
243
|
+
speed: m,
|
|
244
|
+
speedHuman: `${ne(m)}/s`,
|
|
245
|
+
startTime: x,
|
|
246
|
+
endTime: (/* @__PURE__ */ new Date()).getTime(),
|
|
247
|
+
eta: y,
|
|
248
|
+
etaHuman: ue(y || 0)
|
|
249
|
+
}
|
|
250
|
+
}, l.responseStatus = v.status;
|
|
251
|
+
try {
|
|
252
|
+
l.response = JSON.parse(v.response);
|
|
253
|
+
} catch {
|
|
254
|
+
l.response = v.response;
|
|
255
|
+
}
|
|
256
|
+
l.responseHeaders = Ue(v.getAllResponseHeaders()), c({ type: "done", files: [l] });
|
|
257
|
+
}
|
|
258
|
+
}, v.open(w, F, !0), v.withCredentials = !!n.withCredentials;
|
|
259
|
+
try {
|
|
260
|
+
const m = l.nativeFile;
|
|
261
|
+
Object.keys(C).forEach((b) => v.setRequestHeader(b, C[b]));
|
|
262
|
+
let I;
|
|
263
|
+
n.includeWebKitFormBoundary !== !1 ? (Object.keys(u).forEach((b) => {
|
|
264
|
+
var k;
|
|
265
|
+
return (k = l.form) == null ? void 0 : k.append(b, u[b]);
|
|
266
|
+
}), (f = l.form) == null || f.append(n.fieldName || "file", m, m.name), I = l.form) : I = m, v.send(I);
|
|
267
|
+
} catch (m) {
|
|
268
|
+
p(m);
|
|
269
|
+
}
|
|
270
|
+
return () => {
|
|
271
|
+
v.abort();
|
|
272
|
+
};
|
|
273
|
+
});
|
|
274
|
+
}
|
|
275
|
+
// 删除附件
|
|
276
|
+
remove(t, n, a, s) {
|
|
277
|
+
return new Promise((l, c) => {
|
|
278
|
+
l({ type: "removed", files: t });
|
|
279
|
+
});
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
const Ve = {
|
|
283
|
+
showCloseButton: { type: Boolean, default: !0 },
|
|
284
|
+
position: { type: String, default: "top-center" },
|
|
285
|
+
timeout: { type: Number, default: 3e3 },
|
|
286
|
+
theme: { type: String, default: "bootstrap" },
|
|
287
|
+
left: { type: Number },
|
|
288
|
+
right: { type: Number },
|
|
289
|
+
top: { type: Number },
|
|
290
|
+
bottom: { type: Number },
|
|
291
|
+
id: { type: String },
|
|
292
|
+
animate: { type: String, default: "fadeIn" },
|
|
293
|
+
options: { type: Object },
|
|
294
|
+
safeHtml: { type: Boolean, default: !0 }
|
|
295
|
+
}, _e = {
|
|
296
|
+
showCloseButton: { type: Boolean, default: !0 },
|
|
297
|
+
animate: { type: String, default: "fadeIn" },
|
|
298
|
+
options: { type: Object }
|
|
299
|
+
}, ie = /* @__PURE__ */ U({
|
|
300
|
+
name: "Toast",
|
|
301
|
+
props: _e,
|
|
302
|
+
emits: ["close", "click"],
|
|
303
|
+
setup: (e, t) => {
|
|
304
|
+
const n = T(e.animate), a = "fadeOut", s = E(() => e.options), l = T(!1), c = E(() => s.value.title && s.value.message), p = E(() => !s.value.title && s.value.message), F = E(() => {
|
|
305
|
+
const f = {
|
|
306
|
+
animated: l.value,
|
|
307
|
+
toast: !0,
|
|
308
|
+
"toast--only-content": !c.value
|
|
309
|
+
};
|
|
310
|
+
return f[e.animate] = !1, f[a] = l.value, f["toasty-type-" + s.value.type] = !0, s.value.theme && (f[s.value.theme] = !0), f;
|
|
311
|
+
}), w = E(() => {
|
|
312
|
+
const I = `f-icon-${s.value && s.value.type ? s.value.type.replace("toasty-type-", "") : "default"}`, b = {
|
|
313
|
+
"f-icon": !0
|
|
314
|
+
};
|
|
315
|
+
return b[I] = !0, b;
|
|
316
|
+
}), u = E(() => s.value.title || s.value.message), C = E(() => e.showCloseButton), v = E(() => !!s.value.buttons || !!t.slots.default), B = E(() => ee.getLocale() === "en" ? {
|
|
317
|
+
wordBreak: "keep-all",
|
|
318
|
+
overflowWrap: "break-word"
|
|
319
|
+
} : {});
|
|
320
|
+
function x(f) {
|
|
321
|
+
f.stopPropagation(), f.preventDefault(), l.value = !1, setTimeout(() => {
|
|
322
|
+
t.emit("close", s.value);
|
|
323
|
+
}, 200);
|
|
324
|
+
}
|
|
325
|
+
function S(f, m) {
|
|
326
|
+
}
|
|
327
|
+
function y(f) {
|
|
328
|
+
return `f-preten-link ${f.customClass ? f.customClass : ""}`;
|
|
329
|
+
}
|
|
330
|
+
O(n, () => {
|
|
331
|
+
n.value;
|
|
332
|
+
});
|
|
333
|
+
const H = () => {
|
|
334
|
+
var f;
|
|
335
|
+
return i(V, null, [i("div", {
|
|
336
|
+
class: "after-toast-msg text-right"
|
|
337
|
+
}, [!t.slots.default && ((f = s.value.buttons) == null ? void 0 : f.map((m) => i("span", {
|
|
338
|
+
class: y(m),
|
|
339
|
+
onClick: (I) => void 0
|
|
340
|
+
}, [m.text]))), t.slots.default && t.slots.default()])]);
|
|
341
|
+
};
|
|
342
|
+
return () => i("div", {
|
|
343
|
+
class: F.value,
|
|
344
|
+
style: "min-height:44px"
|
|
345
|
+
}, [C.value && i("button", {
|
|
346
|
+
title: ee.getLocaleValue("messageBox.close"),
|
|
347
|
+
class: "toast-close f-btn-icon f-bare",
|
|
348
|
+
onClick: x
|
|
349
|
+
}, [i("span", {
|
|
350
|
+
class: "f-icon modal_close"
|
|
351
|
+
}, null)]), u.value && i("section", {
|
|
352
|
+
class: "modal-tips"
|
|
353
|
+
}, [!c.value && i("div", {
|
|
354
|
+
class: "float-left modal-tips-iconwrap"
|
|
355
|
+
}, [i("span", {
|
|
356
|
+
class: w.value
|
|
357
|
+
}, null)]), i("div", {
|
|
358
|
+
class: "modal-tips-content"
|
|
359
|
+
}, [c.value && i(V, null, [i("h5", {
|
|
360
|
+
class: "toast-title modal-tips-title",
|
|
361
|
+
innerHTML: s.value.title
|
|
362
|
+
}, null), i("p", {
|
|
363
|
+
class: "toast-msg",
|
|
364
|
+
innerHTML: s.value.message,
|
|
365
|
+
style: B.value
|
|
366
|
+
}, null), v.value && H()]), p.value && (s.value.buttons ? i("div", {
|
|
367
|
+
class: "toast-title-btns-wrapper d-flex"
|
|
368
|
+
}, [i("h5", {
|
|
369
|
+
class: "toast-title modal-tips-title only-toast-msg",
|
|
370
|
+
style: B.value,
|
|
371
|
+
innerHTML: s.value.message
|
|
372
|
+
}, null), i("div", {
|
|
373
|
+
class: "after-toast-title text-right ml-auto"
|
|
374
|
+
}, [H()])]) : i("h5", {
|
|
375
|
+
class: "toast-title modal-tips-title only-toast-msg",
|
|
376
|
+
style: B.value,
|
|
377
|
+
innerHTML: s.value.message
|
|
378
|
+
}, null))])])]);
|
|
379
|
+
}
|
|
380
|
+
}), $ = /* @__PURE__ */ U({
|
|
381
|
+
name: "Notify",
|
|
382
|
+
props: Ve,
|
|
383
|
+
emits: ["close", "empty"],
|
|
384
|
+
setup(e, t) {
|
|
385
|
+
const n = E(() => ({
|
|
386
|
+
"farris-notify": !0
|
|
387
|
+
})), a = {
|
|
388
|
+
left: 12,
|
|
389
|
+
right: 12,
|
|
390
|
+
top: 20,
|
|
391
|
+
bottom: 12
|
|
392
|
+
}, s = T(), l = T(e.options), c = T(e.showCloseButton), p = E(() => e.position || "bottom-right"), F = E(() => e.timeout != null ? e.timeout : 3e3), w = E(() => {
|
|
393
|
+
const v = e.bottom ? e.bottom : a.bottom, B = e.top ? e.top : a.top, x = {
|
|
394
|
+
transition: "all 0.2s ease",
|
|
395
|
+
left: p.value.indexOf("left") > -1 ? `${e.left ? e.left : a.left}px` : "",
|
|
396
|
+
right: p.value.indexOf("right") > -1 ? `${e.right ? e.right : a.right}px` : "",
|
|
397
|
+
top: p.value.indexOf("top") > -1 ? `${B}px` : "",
|
|
398
|
+
bottom: p.value.indexOf("bottom") > -1 ? `${v}px` : ""
|
|
399
|
+
};
|
|
400
|
+
return p.value.indexOf("center") > -1 && (x.left = "50%", x.marginLeft = "calc(-24rem / 2)", p.value === "center-center" && (x.top = "50%", x.transform = "translate(-50%, -50%)")), x;
|
|
401
|
+
});
|
|
402
|
+
function u(v) {
|
|
403
|
+
t.emit("close");
|
|
404
|
+
}
|
|
405
|
+
F.value && setTimeout(() => {
|
|
406
|
+
u();
|
|
407
|
+
}, F.value), t.expose({
|
|
408
|
+
closeToast: u,
|
|
409
|
+
container: s,
|
|
410
|
+
notifyPosition: p
|
|
411
|
+
});
|
|
412
|
+
function C(v, B) {
|
|
413
|
+
u();
|
|
414
|
+
}
|
|
415
|
+
return () => i("div", {
|
|
416
|
+
class: n.value,
|
|
417
|
+
style: w.value,
|
|
418
|
+
ref: s
|
|
419
|
+
}, [i(ie, {
|
|
420
|
+
options: l.value,
|
|
421
|
+
showCloseButton: c.value,
|
|
422
|
+
animate: e.animate,
|
|
423
|
+
onClose: (v) => C(v, l.value)
|
|
424
|
+
}, null)]);
|
|
425
|
+
}
|
|
426
|
+
});
|
|
427
|
+
class me {
|
|
428
|
+
constructor() {
|
|
429
|
+
L(this, "notifyRefs", []);
|
|
430
|
+
L(this, "globalConfig", xe({}));
|
|
431
|
+
}
|
|
432
|
+
escapeAllHtml(t) {
|
|
433
|
+
if (typeof t != "string" || !t)
|
|
434
|
+
return "";
|
|
435
|
+
const n = document.createElement("div");
|
|
436
|
+
return n.textContent = t || "", n.innerHTML.replace(/\\n/g, "<br>").replace(/\\t/g, " ").replace(/\\r/g, "");
|
|
437
|
+
}
|
|
438
|
+
createNotifyInstance(t) {
|
|
439
|
+
const n = this, s = Object.assign({
|
|
440
|
+
timeout: 3e3,
|
|
441
|
+
position: "bottom-right",
|
|
442
|
+
showCloseButton: !0,
|
|
443
|
+
safeHtml: !0
|
|
444
|
+
}, this.globalConfig, {
|
|
445
|
+
...t
|
|
446
|
+
}), l = document.createElement("div");
|
|
447
|
+
l.style.display = "contents";
|
|
448
|
+
const c = Te({
|
|
449
|
+
setup() {
|
|
450
|
+
var w;
|
|
451
|
+
const p = T();
|
|
452
|
+
function F() {
|
|
453
|
+
p.value.container.style.transform = "scale(0)", setTimeout(() => {
|
|
454
|
+
n.updateNotifyPositionForClose(s, p), c.unmount();
|
|
455
|
+
}, 220);
|
|
456
|
+
}
|
|
457
|
+
if (s.position.indexOf("top") > -1) {
|
|
458
|
+
const u = n.getNotifyInstances(s.position), C = u[u.length - 1];
|
|
459
|
+
if (C) {
|
|
460
|
+
const v = C.value.container.getBoundingClientRect();
|
|
461
|
+
s.top = v.bottom;
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
return s.safeHtml && ((w = s.options) != null && w.message) && (s.options.message = n.escapeAllHtml(s.options.message)), le(() => {
|
|
465
|
+
document.body.removeChild(l);
|
|
466
|
+
}), oe(() => {
|
|
467
|
+
n.updateNotifyPositionForCreate(s, p);
|
|
468
|
+
}), () => i(Fe, {
|
|
469
|
+
mode: "out-in",
|
|
470
|
+
name: "fade",
|
|
471
|
+
appear: !0
|
|
472
|
+
}, {
|
|
473
|
+
default: () => [i($, Se({
|
|
474
|
+
ref: p
|
|
475
|
+
}, s, {
|
|
476
|
+
onClose: F
|
|
477
|
+
}), null)]
|
|
478
|
+
});
|
|
479
|
+
}
|
|
480
|
+
});
|
|
481
|
+
return c.provide("NotifyService", this), document.body.appendChild(l), c.use(ee.i18n), c.mount(l), c;
|
|
482
|
+
}
|
|
483
|
+
getNotifyInstances(t) {
|
|
484
|
+
return this.notifyRefs.filter((n) => n.value.notifyPosition === t);
|
|
485
|
+
}
|
|
486
|
+
updateNotifyPositionForCreate(t, n) {
|
|
487
|
+
if (this.notifyRefs && this.notifyRefs.length) {
|
|
488
|
+
const a = window.innerHeight;
|
|
489
|
+
t.position.indexOf("bottom") > -1 && this.getNotifyInstances(t.position).forEach((s) => {
|
|
490
|
+
const l = s.value.container.getBoundingClientRect();
|
|
491
|
+
s.value.container.style.bottom = l.height + a - l.bottom + "px";
|
|
492
|
+
});
|
|
493
|
+
}
|
|
494
|
+
this.notifyRefs = [...this.notifyRefs, n];
|
|
495
|
+
}
|
|
496
|
+
updateNotifyPositionForClose(t, n) {
|
|
497
|
+
const a = this.notifyRefs.indexOf(n);
|
|
498
|
+
if (t.position.indexOf("top") > -1) {
|
|
499
|
+
const s = this.getNotifyInstances(t.position), l = s.indexOf(n);
|
|
500
|
+
s.slice(l + 1).forEach((c) => {
|
|
501
|
+
c.value.container.style.top = c.value.container.offsetTop - c.value.container.offsetHeight + "px";
|
|
502
|
+
});
|
|
503
|
+
}
|
|
504
|
+
a > -1 && this.notifyRefs.splice(a, 1);
|
|
505
|
+
}
|
|
506
|
+
show(t) {
|
|
507
|
+
return this.createNotifyInstance(t);
|
|
508
|
+
}
|
|
509
|
+
buildNotifyProps(t, n) {
|
|
510
|
+
let a = "", s = "", l, c, p;
|
|
511
|
+
typeof n == "string" ? a = n : n && (a = n.message || "", s = n.title || "", c = n.position || null, p = n.showCloseButton != null ? n.showCloseButton : null, l = n.timeout != null ? n.timeout : null);
|
|
512
|
+
const w = {
|
|
513
|
+
options: {
|
|
514
|
+
type: t,
|
|
515
|
+
message: a,
|
|
516
|
+
title: s
|
|
517
|
+
}
|
|
518
|
+
};
|
|
519
|
+
return c != null && (w.position = c), p != null && (w.showCloseButton = p), l != null && (w.timeout = l), w;
|
|
520
|
+
}
|
|
521
|
+
info(t) {
|
|
522
|
+
const n = this.buildNotifyProps("info", t);
|
|
523
|
+
return this.show(n);
|
|
524
|
+
}
|
|
525
|
+
success(t) {
|
|
526
|
+
const n = this.buildNotifyProps("success", t);
|
|
527
|
+
return this.show(n);
|
|
528
|
+
}
|
|
529
|
+
warning(t) {
|
|
530
|
+
const n = this.buildNotifyProps("warning", t);
|
|
531
|
+
return this.show(n);
|
|
532
|
+
}
|
|
533
|
+
error(t) {
|
|
534
|
+
const n = this.buildNotifyProps("error", t);
|
|
535
|
+
return this.show(n);
|
|
536
|
+
}
|
|
537
|
+
close(t) {
|
|
538
|
+
t && t.unmount();
|
|
539
|
+
}
|
|
540
|
+
closeAll() {
|
|
541
|
+
this.notifyRefs.forEach((t) => {
|
|
542
|
+
t == null || t.value.closeToast();
|
|
543
|
+
}), this.notifyRefs.length = 0;
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
const Ke = Symbol("NOTIFY_SERVICE_TOKEN");
|
|
547
|
+
$.install = (e) => {
|
|
548
|
+
e.component($.name, $), e.component(ie.name, ie);
|
|
549
|
+
const t = new me();
|
|
550
|
+
e.provide(Ke, t), e.provide("FNotifyService", t);
|
|
551
|
+
};
|
|
552
|
+
const qe = (e = "") => {
|
|
553
|
+
let t;
|
|
554
|
+
return e && R(e, null) && (t = R(e)), t || (t = new me()), t;
|
|
555
|
+
}, Qe = (e = "") => {
|
|
556
|
+
let t;
|
|
557
|
+
if (e && R(e, null)) {
|
|
558
|
+
const n = R(e);
|
|
559
|
+
n && n() && (t = n());
|
|
560
|
+
}
|
|
561
|
+
return t || (t = new $e()), t;
|
|
562
|
+
}, Xe = {
|
|
563
|
+
getNotify: qe,
|
|
564
|
+
getServerAPI: Qe
|
|
565
|
+
};
|
|
566
|
+
function Ye(e, t, n) {
|
|
567
|
+
const a = Xe.getNotify(e.notifyServiceToken), s = T(e.fileInfos), {
|
|
568
|
+
disabled: l,
|
|
569
|
+
uploadVisible: c,
|
|
570
|
+
uploadDisabled: p,
|
|
571
|
+
previewVisible: F,
|
|
572
|
+
orderField: w,
|
|
573
|
+
previewEnableMulti: u,
|
|
574
|
+
downloadButtonDisable: C,
|
|
575
|
+
previewColumns: v,
|
|
576
|
+
uploadEnableMulti: B,
|
|
577
|
+
previewButtonDisable: x
|
|
578
|
+
} = pe(e), S = T(!1), y = T([]), H = E(() => y.value.length), f = T([]), m = T("");
|
|
579
|
+
function I(o) {
|
|
580
|
+
(!o.length || y.value.length !== o.length) && (S.value = !1);
|
|
581
|
+
const d = [...o.map((h) => (h.hasOwnProperty("size") || (h.size = void 0), h.hasOwnProperty("createTime") || (h.createTime = void 0), u.value && (h.checked = !!y.value.find((M) => M.id === h.id) || S.value), h))];
|
|
582
|
+
return d.sort(Re(w.value)), u.value && (y.value = [...d].filter((h) => h.checked)), d;
|
|
583
|
+
}
|
|
584
|
+
const b = T(I(s.value));
|
|
585
|
+
O(() => e.fileInfos, (o) => {
|
|
586
|
+
b.value = I(o);
|
|
587
|
+
});
|
|
588
|
+
const k = (o, r) => {
|
|
589
|
+
o.stopImmediatePropagation(), t.emit("fileDownloadEvent", { fileInfos: [r], name: "" });
|
|
590
|
+
}, K = (o, r) => {
|
|
591
|
+
o.stopImmediatePropagation(), !x.value && t.emit("filePreviewEvent", r);
|
|
592
|
+
}, q = (o, r, d) => {
|
|
593
|
+
r.checked && (y.value = y.value.filter((h) => h.id !== r.id)), t.emit("fileRemoveEvent", r), d.handleUploadEvent({ type: "remove", file: r });
|
|
594
|
+
}, Q = (o, r = "preview") => o.formatter ? !0 : r === "preview" ? ["state", "name", "action", "size", "createTime"].findIndex((h) => h === o.field) > -1 : r === "upload" ? ["state", "name", "size"].findIndex((h) => h === o.field) > -1 : !1, X = (o) => !(o.field === "state" && (p.value || !c.value)), Y = (o) => o.lastIndexOf(".") > 0 ? o.substring(0, o.lastIndexOf(".")) : "", G = (o) => {
|
|
595
|
+
if (o.stopImmediatePropagation(), H.value > 1) {
|
|
596
|
+
let r = "";
|
|
597
|
+
r = Y(y.value[0].name), t.emit("fileDownloadEvent", {
|
|
598
|
+
fileInfos: y.value,
|
|
599
|
+
name: r
|
|
600
|
+
});
|
|
601
|
+
}
|
|
602
|
+
}, j = (o) => {
|
|
603
|
+
o.stopImmediatePropagation(), t.emit("fileRemoveEvent", y.value);
|
|
604
|
+
}, W = (o) => {
|
|
605
|
+
const r = b.value;
|
|
606
|
+
o.checked ? (r.forEach((d) => {
|
|
607
|
+
d.checked = !0;
|
|
608
|
+
}), y.value = [...b.value], S.value = !0) : (y.value = [], r.forEach((d) => {
|
|
609
|
+
d.checked = !1;
|
|
610
|
+
}), S.value = !1), t.emit("previewMultiSelectedEvent", y.value);
|
|
611
|
+
}, z = (o, r) => {
|
|
612
|
+
o && (o.stopImmediatePropagation(), o.stopPropagation()), (!m.value || r.id !== m.value) && (m.value = r.id, t.emit("selectedEvent", r));
|
|
613
|
+
}, g = (o) => {
|
|
614
|
+
const r = y.value.findIndex((M) => M.id === o.id), d = r > -1, h = b.value.find((M) => M.id === o.id);
|
|
615
|
+
h && (h.checked = o.checked), o.checked && !d && h && y.value.push(h), !o.checked && d && y.value.splice(r, 1), b.value.length > 0 && (y.value.length === b.value.length ? S.value = !0 : S.value = !1), z(null, h), t.emit("previewMultiSelectedEvent", y.value);
|
|
616
|
+
}, D = (o) => {
|
|
617
|
+
var r;
|
|
618
|
+
(r = n == null ? void 0 : n.value) == null || r.handleUploadEvent(o);
|
|
619
|
+
}, J = (o) => {
|
|
620
|
+
D({ type: "upload", file: o });
|
|
621
|
+
}, P = (o, r) => {
|
|
622
|
+
let d = [];
|
|
623
|
+
o.files && o.files.length > 0 ? d = o.files : typeof o.file < "u" && (d = [o.file]), r = r || o.type, d.map((h) => {
|
|
624
|
+
const M = f.value.findIndex((A) => {
|
|
625
|
+
var ae;
|
|
626
|
+
return typeof h < "u" && ((ae = A == null ? void 0 : A.file) == null ? void 0 : ae.id) === h.id;
|
|
627
|
+
});
|
|
628
|
+
M > -1 && (f.value[M] = { type: r, file: h });
|
|
629
|
+
});
|
|
630
|
+
}, he = (o) => {
|
|
631
|
+
if (o.files) {
|
|
632
|
+
const r = o.files.map((d) => d.id);
|
|
633
|
+
f.value = f.value.filter((d) => !(r.findIndex((M) => {
|
|
634
|
+
var A;
|
|
635
|
+
return M === ((A = d == null ? void 0 : d.file) == null ? void 0 : A.id);
|
|
636
|
+
}) > -1)), D({
|
|
637
|
+
type: "hide",
|
|
638
|
+
id: r.join(",")
|
|
639
|
+
});
|
|
640
|
+
}
|
|
641
|
+
}, se = (o) => {
|
|
642
|
+
let r = "warning";
|
|
643
|
+
(o.type === "cancelled" || o.type === "removed") && (r = "success");
|
|
644
|
+
const d = o.hasOwnProperty("message") ? o.message : "";
|
|
645
|
+
a.show({
|
|
646
|
+
options: { type: r, message: d },
|
|
647
|
+
position: "top-center"
|
|
648
|
+
});
|
|
649
|
+
}, ye = (o) => {
|
|
650
|
+
if (o.type === "addedToQueue" && typeof o.file < "u")
|
|
651
|
+
f.value.push({ type: o.type, file: o.file }), J(o.file);
|
|
652
|
+
else if (o.type === "start")
|
|
653
|
+
P(o, "start");
|
|
654
|
+
else if (o.type === "done") {
|
|
655
|
+
P(o, "done");
|
|
656
|
+
const r = (o.files || []).map((d) => ({
|
|
657
|
+
checked: !1,
|
|
658
|
+
id: d.id,
|
|
659
|
+
name: d.name,
|
|
660
|
+
size: d.size,
|
|
661
|
+
createTime: fe(/* @__PURE__ */ new Date(), "yyyy-MM-dd HH:mm:ss")
|
|
662
|
+
}));
|
|
663
|
+
s.value = [...r, ...b.value], he(o), t.emit("fUploadDoneEvent", ce(o.files || [])), t.emit("uploadDoneEvent", ce(o.files || []));
|
|
664
|
+
} else if (o.type === "cancelled" || o.type === "removed" || o.type === "error") {
|
|
665
|
+
const r = s.value.filter((d) => o.files && o.files.findIndex((h) => d.id === h.id) < 0);
|
|
666
|
+
s.value = [...r], se(o);
|
|
667
|
+
} else o.type === "rejected" && typeof o.file < "u" && se(o);
|
|
668
|
+
};
|
|
669
|
+
return le(() => {
|
|
670
|
+
}), {
|
|
671
|
+
disabled: l,
|
|
672
|
+
uploadVisible: c,
|
|
673
|
+
uploadDisabled: p,
|
|
674
|
+
downloadButtonDisable: C,
|
|
675
|
+
previewVisible: F,
|
|
676
|
+
previewColumns: v,
|
|
677
|
+
uploadFiles: f,
|
|
678
|
+
innerFileInfos: b,
|
|
679
|
+
previewEnableMulti: u,
|
|
680
|
+
previewMultiSelectedLength: H,
|
|
681
|
+
previewSelectAllBtnChecked: S,
|
|
682
|
+
uploadEnableMulti: B,
|
|
683
|
+
previewCurrentId: m,
|
|
684
|
+
multiFileRemoveHandler: j,
|
|
685
|
+
previewMultiSelectChangeHandler: g,
|
|
686
|
+
fileMultiDownloadHandler: G,
|
|
687
|
+
selectOrCancelAllHandler: W,
|
|
688
|
+
hasColumnHtmlFunc: Q,
|
|
689
|
+
showPreviewStateColumn: X,
|
|
690
|
+
rowSelectedHandler: z,
|
|
691
|
+
fileDownloadHandler: k,
|
|
692
|
+
filePreviewHandler: K,
|
|
693
|
+
fileRemoveHandler: q,
|
|
694
|
+
handleStateChange: ye
|
|
695
|
+
};
|
|
696
|
+
}
|
|
697
|
+
const _ = /* @__PURE__ */ U({
|
|
698
|
+
name: "FUploaderDesign",
|
|
699
|
+
components: {
|
|
700
|
+
"f-preview-checkbox": ke,
|
|
701
|
+
"f-file-select": Ae
|
|
702
|
+
},
|
|
703
|
+
props: de,
|
|
704
|
+
emits: ["filePreviewEvent", "fileDownloadEvent", "previewMultiSelectedEvent", "selectedEvent", "fileRemoveEvent", "fUploadDoneEvent", "uploadDoneEvent"],
|
|
705
|
+
setup(e, t) {
|
|
706
|
+
const n = T(e.customInfo), a = Le(e.uploadOptions, {
|
|
707
|
+
// 允许上传的文件类型
|
|
708
|
+
allowedContentTypes: ["*"],
|
|
709
|
+
// 默认不限制附件上传个数
|
|
710
|
+
maxUploads: 0,
|
|
711
|
+
// 单位KB,默认是12M
|
|
712
|
+
maxFileSize: "12MB"
|
|
713
|
+
}), s = T(null), l = [{
|
|
714
|
+
id: "attach01",
|
|
715
|
+
name: ""
|
|
716
|
+
}, {
|
|
717
|
+
id: "attach02",
|
|
718
|
+
name: ""
|
|
719
|
+
}], {
|
|
720
|
+
disabled: c,
|
|
721
|
+
uploadVisible: p,
|
|
722
|
+
uploadDisabled: F,
|
|
723
|
+
downloadButtonDisable: w,
|
|
724
|
+
previewVisible: u,
|
|
725
|
+
previewColumns: C,
|
|
726
|
+
previewEnableMulti: v,
|
|
727
|
+
previewCurrentId: B,
|
|
728
|
+
showPreviewStateColumn: x
|
|
729
|
+
} = Ye(e, t, s);
|
|
730
|
+
function S() {
|
|
731
|
+
var g;
|
|
732
|
+
return je((a == null ? void 0 : a.allowedContentTypes) || []) ? i("li", null, [i("span", null, [N("支持类型:")]), i("span", {
|
|
733
|
+
class: "support-info--item-detail",
|
|
734
|
+
style: "margin-right:4px;"
|
|
735
|
+
}, [(g = a.allowedContentTypes) == null ? void 0 : g.join(""), N(",")])]) : null;
|
|
736
|
+
}
|
|
737
|
+
function y() {
|
|
738
|
+
return ze((a == null ? void 0 : a.maxFileSize) || "") ? i("li", null, [i("span", null, [N("单个文件限制:")]), i("span", {
|
|
739
|
+
class: "support-info--item-detail"
|
|
740
|
+
}, [a.maxFileSize, N(", ")])]) : null;
|
|
741
|
+
}
|
|
742
|
+
function H() {
|
|
743
|
+
return ((a == null ? void 0 : a.maxUploads) || 0) > 0 ? i("li", null, [i("span", null, [N("文件总数限制:")]), i("span", {
|
|
744
|
+
class: "support-info--item-detail"
|
|
745
|
+
}, [a.maxUploads, N("个")])]) : null;
|
|
746
|
+
}
|
|
747
|
+
function f() {
|
|
748
|
+
return p.value && !F.value && !c.value ? i("div", {
|
|
749
|
+
class: "ffileupload--support-info"
|
|
750
|
+
}, [n.value ? i("ul", {
|
|
751
|
+
class: "support-info--wrapper"
|
|
752
|
+
}, [i("li", null, [i("span", {
|
|
753
|
+
class: "support-info--item-detail",
|
|
754
|
+
innerHTML: n.value
|
|
755
|
+
}, null)])]) : i("ul", {
|
|
756
|
+
class: "support-info--wrapper"
|
|
757
|
+
}, [S(), y(), H()])]) : null;
|
|
758
|
+
}
|
|
759
|
+
function m(g) {
|
|
760
|
+
return i("div", {
|
|
761
|
+
class: "uploadAndpreview--title-container"
|
|
762
|
+
}, [i("div", {
|
|
763
|
+
class: "ffilepreview--item-icon"
|
|
764
|
+
}, [i("span", {
|
|
765
|
+
class: "ffilepreview--filetype-icon"
|
|
766
|
+
}, null)]), i("div", {
|
|
767
|
+
class: "uploadAndpreview--right"
|
|
768
|
+
}, [i("span", {
|
|
769
|
+
class: "ffilepreview--preview-block"
|
|
770
|
+
}, null)])]);
|
|
771
|
+
}
|
|
772
|
+
function I(g) {
|
|
773
|
+
return i("div", {
|
|
774
|
+
class: "uploadAndpreview--filesize-container"
|
|
775
|
+
}, [i("span", {
|
|
776
|
+
class: "ffilepreview--preview-block"
|
|
777
|
+
}, null)]);
|
|
778
|
+
}
|
|
779
|
+
function b() {
|
|
780
|
+
return i("div", {
|
|
781
|
+
class: "uploadAndpreview--state-container"
|
|
782
|
+
}, [i("p", {
|
|
783
|
+
class: "upload-state--uploaded"
|
|
784
|
+
}, [i("i", {
|
|
785
|
+
class: "f-icon f-icon-success text-success"
|
|
786
|
+
}, null), i("span", null, [N("已上传")])])]);
|
|
787
|
+
}
|
|
788
|
+
function k(g) {
|
|
789
|
+
return i("div", {
|
|
790
|
+
class: "uploadAndpreview--action-container"
|
|
791
|
+
}, [w.value ? "" : i("button", {
|
|
792
|
+
class: "btn preview-btn",
|
|
793
|
+
title: "下载"
|
|
794
|
+
}, [i("span", {
|
|
795
|
+
class: "f-icon f-icon-enclosure_download"
|
|
796
|
+
}, null)]), e.previewButtonDisable ? "" : i("button", {
|
|
797
|
+
class: "btn preview-btn",
|
|
798
|
+
title: "预览"
|
|
799
|
+
}, [i("span", {
|
|
800
|
+
class: "f-icon f-icon-enclosure_browse"
|
|
801
|
+
}, null)]), e.deleteButtonDisable ? "" : i("button", {
|
|
802
|
+
class: "btn preview-btn",
|
|
803
|
+
title: "删除"
|
|
804
|
+
}, [i("span", {
|
|
805
|
+
class: "f-icon f-icon-enclosure_delete",
|
|
806
|
+
style: "top: -1px"
|
|
807
|
+
}, null)])]);
|
|
808
|
+
}
|
|
809
|
+
function K(g) {
|
|
810
|
+
return i("div", {
|
|
811
|
+
class: "uploadAndpreview--date-container"
|
|
812
|
+
}, [N(" "), i("span", {
|
|
813
|
+
class: "ffilepreview--preview-block"
|
|
814
|
+
}, null)]);
|
|
815
|
+
}
|
|
816
|
+
function q(g, D, J) {
|
|
817
|
+
let P = null;
|
|
818
|
+
if (g = g || "preview", g === "preview" && D)
|
|
819
|
+
switch (J.field) {
|
|
820
|
+
case "state":
|
|
821
|
+
P = b();
|
|
822
|
+
break;
|
|
823
|
+
case "name":
|
|
824
|
+
P = m();
|
|
825
|
+
break;
|
|
826
|
+
case "action":
|
|
827
|
+
P = k();
|
|
828
|
+
break;
|
|
829
|
+
case "size":
|
|
830
|
+
P = I();
|
|
831
|
+
break;
|
|
832
|
+
case "createTime":
|
|
833
|
+
P = K();
|
|
834
|
+
break;
|
|
835
|
+
default:
|
|
836
|
+
P = i("span", {
|
|
837
|
+
class: "ffilepreview--preview-block"
|
|
838
|
+
}, null);
|
|
839
|
+
}
|
|
840
|
+
return P;
|
|
841
|
+
}
|
|
842
|
+
function Q() {
|
|
843
|
+
return p.value ? i("div", {
|
|
844
|
+
class: "header--left-container"
|
|
845
|
+
}, [i(Z("f-file-select"), {
|
|
846
|
+
ref: s,
|
|
847
|
+
disabled: F.value,
|
|
848
|
+
selectText: e.selectText
|
|
849
|
+
}, null)]) : null;
|
|
850
|
+
}
|
|
851
|
+
function X() {
|
|
852
|
+
return (!w.value || !e.deleteButtonDisable) && u.value ? i("div", {
|
|
853
|
+
class: "header--right-container"
|
|
854
|
+
}, [w.value ? null : i("button", {
|
|
855
|
+
class: "btn btn-primary f-btn-ml",
|
|
856
|
+
disabled: !0
|
|
857
|
+
}, [N("下载")]), e.deleteButtonDisable.value ? null : i("button", {
|
|
858
|
+
class: "btn btn-secondary f-btn-ml",
|
|
859
|
+
disabled: !0
|
|
860
|
+
}, [N("删除")])]) : null;
|
|
861
|
+
}
|
|
862
|
+
function Y() {
|
|
863
|
+
return C.value.map((g) => x(g) ? i("th", {
|
|
864
|
+
style: {
|
|
865
|
+
width: g.width ? g.width + "px" : "auto"
|
|
866
|
+
},
|
|
867
|
+
class: [!c.value && g.checkbox && g.checkbox ? "td--hascheckbox" : ""]
|
|
868
|
+
}, [!c.value && v.value && g.checkbox ? i(Z("f-preview-checkbox"), {
|
|
869
|
+
class: "preview-checkbox",
|
|
870
|
+
id: "previewMultiBtn"
|
|
871
|
+
}, null) : null, g.title]) : null);
|
|
872
|
+
}
|
|
873
|
+
function G() {
|
|
874
|
+
return l.map((g) => i("tr", {
|
|
875
|
+
class: ["uploadAndpreview--preview-item", B.value === g.id ? "uploadAndpreview--currentfile" : ""],
|
|
876
|
+
id: "uploadAndpreview--preview-item" + g.id
|
|
877
|
+
}, [C.value.map((D) => x(D) ? i("td", {
|
|
878
|
+
class: [!c.value && D.checkbox && D.checkbox ? "td--hascheckbox" : ""]
|
|
879
|
+
}, [!c.value && v.value && D.checkbox ? i(Z("f-preview-checkbox"), {
|
|
880
|
+
class: "preview-checkbox"
|
|
881
|
+
}, null) : null, q("preview", g, D)]) : null)]));
|
|
882
|
+
}
|
|
883
|
+
Ie(() => {
|
|
884
|
+
});
|
|
885
|
+
const j = T(), W = R("design-item-context"), z = De(j, W);
|
|
886
|
+
return oe(() => {
|
|
887
|
+
j.value.componentInstance = z;
|
|
888
|
+
}), t.expose(z.value), () => i("div", {
|
|
889
|
+
class: "fv-upload-and-preview",
|
|
890
|
+
ref: j
|
|
891
|
+
}, [u.value || p.value ? i(V, null, [c.value ? null : i("div", {
|
|
892
|
+
class: "uploadAndpreview--header"
|
|
893
|
+
}, [Q(), X()]), i("div", {
|
|
894
|
+
class: "uploadAndpreview--content"
|
|
895
|
+
}, [i("table", {
|
|
896
|
+
class: "table table-bordered uploadAndpreview--table"
|
|
897
|
+
}, [i("thead", null, [Y()]), i("tbody", null, [G()])])]), f()]) : null]);
|
|
898
|
+
}
|
|
899
|
+
}), Ge = "https://json-schema.org/draft/2020-12/schema", We = "https://farris-design.gitee.io/uploader.schema.json", Je = "uploader", Ze = "A Farris Component", et = "object", tt = {
|
|
900
|
+
id: {
|
|
901
|
+
description: "The unique identifier for uploader",
|
|
902
|
+
type: "string"
|
|
903
|
+
},
|
|
904
|
+
type: {
|
|
905
|
+
description: "The type string of uploader",
|
|
906
|
+
type: "string",
|
|
907
|
+
default: "uploader"
|
|
908
|
+
},
|
|
909
|
+
appearance: {
|
|
910
|
+
description: "",
|
|
911
|
+
type: "object",
|
|
912
|
+
properties: {
|
|
913
|
+
class: {
|
|
914
|
+
type: "string"
|
|
915
|
+
},
|
|
916
|
+
style: {
|
|
917
|
+
type: "string"
|
|
918
|
+
}
|
|
919
|
+
},
|
|
920
|
+
default: {}
|
|
921
|
+
},
|
|
922
|
+
binding: {
|
|
923
|
+
description: "",
|
|
924
|
+
type: "object",
|
|
925
|
+
default: {}
|
|
926
|
+
},
|
|
927
|
+
disable: {
|
|
928
|
+
type: "boolean",
|
|
929
|
+
default: !1
|
|
930
|
+
},
|
|
931
|
+
placeholder: {
|
|
932
|
+
description: "",
|
|
933
|
+
type: "string",
|
|
934
|
+
default: ""
|
|
935
|
+
},
|
|
936
|
+
readonly: {
|
|
937
|
+
description: "",
|
|
938
|
+
type: "boolean",
|
|
939
|
+
default: !1
|
|
940
|
+
},
|
|
941
|
+
tabindex: {
|
|
942
|
+
description: "",
|
|
943
|
+
type: "number",
|
|
944
|
+
default: -1
|
|
945
|
+
},
|
|
946
|
+
visible: {
|
|
947
|
+
description: "",
|
|
948
|
+
type: "boolean",
|
|
949
|
+
default: !0
|
|
950
|
+
}
|
|
951
|
+
}, nt = [
|
|
952
|
+
"id",
|
|
953
|
+
"type"
|
|
954
|
+
], it = {
|
|
955
|
+
$schema: Ge,
|
|
956
|
+
$id: We,
|
|
957
|
+
title: Je,
|
|
958
|
+
description: Ze,
|
|
959
|
+
type: et,
|
|
960
|
+
properties: tt,
|
|
961
|
+
required: nt
|
|
962
|
+
}, ot = /* @__PURE__ */ new Map([
|
|
963
|
+
["appearance", He]
|
|
964
|
+
]);
|
|
965
|
+
function lt(e, t, n) {
|
|
966
|
+
return t;
|
|
967
|
+
}
|
|
968
|
+
const st = "uploader", at = "A Farris Component", rt = "object", ct = {
|
|
969
|
+
basic: {
|
|
970
|
+
description: "Basic Infomation",
|
|
971
|
+
title: "基本信息",
|
|
972
|
+
properties: {
|
|
973
|
+
id: {
|
|
974
|
+
description: "组件标识",
|
|
975
|
+
title: "标识",
|
|
976
|
+
type: "string",
|
|
977
|
+
readonly: !0
|
|
978
|
+
},
|
|
979
|
+
type: {
|
|
980
|
+
description: "组件类型",
|
|
981
|
+
title: "控件类型",
|
|
982
|
+
type: "select",
|
|
983
|
+
editor: {
|
|
984
|
+
type: "waiting for modification",
|
|
985
|
+
enum: []
|
|
986
|
+
}
|
|
987
|
+
}
|
|
988
|
+
}
|
|
989
|
+
},
|
|
990
|
+
appearance: {
|
|
991
|
+
description: "外观",
|
|
992
|
+
title: "外观",
|
|
993
|
+
properties: {
|
|
994
|
+
contentFill: {
|
|
995
|
+
description: "内容填充",
|
|
996
|
+
title: "内容填充",
|
|
997
|
+
type: "boolean"
|
|
998
|
+
}
|
|
999
|
+
}
|
|
1000
|
+
},
|
|
1001
|
+
server: {
|
|
1002
|
+
description: "服务器配置",
|
|
1003
|
+
title: "服务器配置",
|
|
1004
|
+
properties: {
|
|
1005
|
+
rootId: {
|
|
1006
|
+
description: "附件服务器根目录",
|
|
1007
|
+
title: "附件服务器根目录",
|
|
1008
|
+
type: "string"
|
|
1009
|
+
},
|
|
1010
|
+
formId: {
|
|
1011
|
+
description: "必填,根据【附件信息】业务字段所在位置区分:1、在子表,二级目录建议绑定主表ID。2:在主表:二级目录建议填写当前表数据ID",
|
|
1012
|
+
title: "二级目录",
|
|
1013
|
+
type: "string"
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
1016
|
+
},
|
|
1017
|
+
upload: {
|
|
1018
|
+
description: "上传配置",
|
|
1019
|
+
title: "上传配置",
|
|
1020
|
+
properties: {
|
|
1021
|
+
uploadVisible: {
|
|
1022
|
+
description: "上传按钮是否可见",
|
|
1023
|
+
title: "上传是否可见",
|
|
1024
|
+
type: "boolean"
|
|
1025
|
+
},
|
|
1026
|
+
uploadDisabled: {
|
|
1027
|
+
description: "禁用时,上传按钮可见,但不可用",
|
|
1028
|
+
title: "上传是否禁用",
|
|
1029
|
+
type: "boolean"
|
|
1030
|
+
},
|
|
1031
|
+
allowEmpty: {
|
|
1032
|
+
description: "运行时是否允许不上传附件",
|
|
1033
|
+
title: "是否允许为空",
|
|
1034
|
+
type: "boolean"
|
|
1035
|
+
},
|
|
1036
|
+
uploadSelectText: {
|
|
1037
|
+
description: "选择文件按钮文本",
|
|
1038
|
+
title: "选择文件按钮文本",
|
|
1039
|
+
type: "string"
|
|
1040
|
+
},
|
|
1041
|
+
uploadOptions: {
|
|
1042
|
+
description: "附件上传配置",
|
|
1043
|
+
title: "附件上传配置",
|
|
1044
|
+
type: "cascade",
|
|
1045
|
+
isExpand: !0,
|
|
1046
|
+
properties: {
|
|
1047
|
+
maxUploads: {
|
|
1048
|
+
description: "值为0时表示不限制上传个数",
|
|
1049
|
+
title: "最大上传个数",
|
|
1050
|
+
type: "number"
|
|
1051
|
+
},
|
|
1052
|
+
maxFileSize: {
|
|
1053
|
+
description: "单个附件最大值(MB)",
|
|
1054
|
+
title: "单个附件最大值(MB)",
|
|
1055
|
+
type: "number"
|
|
1056
|
+
},
|
|
1057
|
+
allowedContentTypes: {
|
|
1058
|
+
description: "允许上传附件类型",
|
|
1059
|
+
title: "允许上传附件类型",
|
|
1060
|
+
type: "string"
|
|
1061
|
+
},
|
|
1062
|
+
notAllowedCharsInFileName: {
|
|
1063
|
+
description: "文件名禁用字符",
|
|
1064
|
+
title: "文件名禁用字符",
|
|
1065
|
+
type: "string"
|
|
1066
|
+
}
|
|
1067
|
+
}
|
|
1068
|
+
},
|
|
1069
|
+
enableUploadedCount: {
|
|
1070
|
+
description: "是否启用已上传个数限制",
|
|
1071
|
+
title: "是否启用已上传个数限制",
|
|
1072
|
+
type: "select",
|
|
1073
|
+
editor: {
|
|
1074
|
+
type: "waiting for modification",
|
|
1075
|
+
enum: []
|
|
1076
|
+
}
|
|
1077
|
+
},
|
|
1078
|
+
uploadEnableMulti: {
|
|
1079
|
+
description: "是否启用多选附件上传",
|
|
1080
|
+
title: "是否启用多选附件上传",
|
|
1081
|
+
type: "select",
|
|
1082
|
+
editor: {
|
|
1083
|
+
type: "waiting for modification",
|
|
1084
|
+
enum: []
|
|
1085
|
+
}
|
|
1086
|
+
},
|
|
1087
|
+
enableSliceUpload: {
|
|
1088
|
+
description: "是否启用分片上传",
|
|
1089
|
+
title: "是否启用分片上传",
|
|
1090
|
+
type: "select",
|
|
1091
|
+
editor: {
|
|
1092
|
+
type: "waiting for modification",
|
|
1093
|
+
enum: []
|
|
1094
|
+
}
|
|
1095
|
+
},
|
|
1096
|
+
chunkSize: {
|
|
1097
|
+
description: "分片上传时,每片的大小。单位:M",
|
|
1098
|
+
title: "分片大小(M)",
|
|
1099
|
+
type: "number"
|
|
1100
|
+
}
|
|
1101
|
+
}
|
|
1102
|
+
},
|
|
1103
|
+
preview: {
|
|
1104
|
+
description: "附件预览",
|
|
1105
|
+
title: "附件预览",
|
|
1106
|
+
properties: {
|
|
1107
|
+
previewVisible: {
|
|
1108
|
+
description: "预览是否可见",
|
|
1109
|
+
title: "预览是否可见",
|
|
1110
|
+
type: "boolean"
|
|
1111
|
+
},
|
|
1112
|
+
previewReadonly: {
|
|
1113
|
+
description: "预览是否只读",
|
|
1114
|
+
title: "预览是否只读",
|
|
1115
|
+
type: "boolean"
|
|
1116
|
+
},
|
|
1117
|
+
fieldIdKey: {
|
|
1118
|
+
description: "附件ID字段",
|
|
1119
|
+
title: "附件ID字段",
|
|
1120
|
+
type: "string",
|
|
1121
|
+
editor: {
|
|
1122
|
+
type: "field-selector"
|
|
1123
|
+
}
|
|
1124
|
+
},
|
|
1125
|
+
fileNameKey: {
|
|
1126
|
+
description: "附件名称字段",
|
|
1127
|
+
title: "附件名称字段",
|
|
1128
|
+
type: "string",
|
|
1129
|
+
editor: {
|
|
1130
|
+
type: "field-selector"
|
|
1131
|
+
}
|
|
1132
|
+
},
|
|
1133
|
+
previewEnableMulti: {
|
|
1134
|
+
description: "是否启用批量操作",
|
|
1135
|
+
title: "是否启用批量操作",
|
|
1136
|
+
type: "boolean"
|
|
1137
|
+
},
|
|
1138
|
+
noDelete: {
|
|
1139
|
+
description: "是否禁止删除附件",
|
|
1140
|
+
title: "是否禁止删除附件",
|
|
1141
|
+
type: "boolean"
|
|
1142
|
+
},
|
|
1143
|
+
noPreview: {
|
|
1144
|
+
description: "是否禁止预览",
|
|
1145
|
+
title: "是否禁止预览",
|
|
1146
|
+
type: "boolean"
|
|
1147
|
+
},
|
|
1148
|
+
previewDateFormat: {
|
|
1149
|
+
description: "附件上传时间字段的格式化设置,请注意此属性仅针对附件上传时间一个字段,若有自定义预览列,请在预览列编辑器中单独设置时间格式。",
|
|
1150
|
+
title: "附件上传时间格式化",
|
|
1151
|
+
type: "select",
|
|
1152
|
+
editor: {
|
|
1153
|
+
type: "waiting for modification",
|
|
1154
|
+
enum: []
|
|
1155
|
+
}
|
|
1156
|
+
},
|
|
1157
|
+
fileSortOrderKey: {
|
|
1158
|
+
description: "排序字段",
|
|
1159
|
+
title: "排序字段",
|
|
1160
|
+
type: "string"
|
|
1161
|
+
},
|
|
1162
|
+
orderType: {
|
|
1163
|
+
description: "排序类型",
|
|
1164
|
+
title: "排序类型",
|
|
1165
|
+
type: "select",
|
|
1166
|
+
editor: {
|
|
1167
|
+
type: "waiting for modification",
|
|
1168
|
+
enum: []
|
|
1169
|
+
}
|
|
1170
|
+
}
|
|
1171
|
+
}
|
|
1172
|
+
}
|
|
1173
|
+
}, ut = {
|
|
1174
|
+
title: st,
|
|
1175
|
+
description: at,
|
|
1176
|
+
type: rt,
|
|
1177
|
+
categories: ct
|
|
1178
|
+
}, ve = Pe(de, it, ot, lt, ut);
|
|
1179
|
+
_.register = (e, t, n, a) => {
|
|
1180
|
+
e.uploader = be, t.uploader = ve;
|
|
1181
|
+
};
|
|
1182
|
+
_.registerDesigner = (e, t, n) => {
|
|
1183
|
+
e.uploader = _, t.uploader = ve;
|
|
1184
|
+
};
|
|
1185
|
+
const gt = Be(_);
|
|
1186
|
+
export {
|
|
1187
|
+
_ as FUploaderDesign,
|
|
1188
|
+
gt as default,
|
|
1189
|
+
ve as propsResolver
|
|
1190
|
+
};
|