qidian-vue-ui 1.1.21 → 1.1.22
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/package.json +1 -1
- package/dist/_virtual/_commonjsHelpers.mjs +0 -7
- package/dist/_virtual/_commonjsHelpers.mjs.map +0 -1
- package/dist/_virtual/_plugin-vue_export-helper.mjs +0 -11
- package/dist/_virtual/_plugin-vue_export-helper.mjs.map +0 -1
- package/dist/_virtual/dayjs.min.mjs +0 -8
- package/dist/_virtual/dayjs.min.mjs.map +0 -1
- package/dist/_virtual/dayjs.min2.mjs +0 -5
- package/dist/_virtual/dayjs.min2.mjs.map +0 -1
- package/dist/components/auto-tooltip/index.d.ts +0 -2
- package/dist/components/auto-tooltip/index.vue.d.ts +0 -25
- package/dist/components/auto-tooltip/index.vue.mjs +0 -8
- package/dist/components/auto-tooltip/index.vue.mjs.map +0 -1
- package/dist/components/auto-tooltip/index.vue2.mjs +0 -81
- package/dist/components/auto-tooltip/index.vue2.mjs.map +0 -1
- package/dist/components/auto-tooltip/types.d.ts +0 -9
- package/dist/components/avatar/index.d.ts +0 -2
- package/dist/components/avatar/index.vue.d.ts +0 -17
- package/dist/components/avatar/index.vue.mjs +0 -8
- package/dist/components/avatar/index.vue.mjs.map +0 -1
- package/dist/components/avatar/index.vue2.mjs +0 -107
- package/dist/components/avatar/index.vue2.mjs.map +0 -1
- package/dist/components/avatar/props.d.ts +0 -5
- package/dist/components/avatar/props.mjs +0 -11
- package/dist/components/avatar/props.mjs.map +0 -1
- package/dist/components/avatar/types.d.ts +0 -9
- package/dist/components/card/index.d.ts +0 -2
- package/dist/components/card/index.vue.d.ts +0 -15
- package/dist/components/card/index.vue.mjs +0 -8
- package/dist/components/card/index.vue.mjs.map +0 -1
- package/dist/components/card/index.vue2.mjs +0 -89
- package/dist/components/card/index.vue2.mjs.map +0 -1
- package/dist/components/card/props.d.ts +0 -3
- package/dist/components/card/props.mjs +0 -7
- package/dist/components/card/props.mjs.map +0 -1
- package/dist/components/card/types.d.ts +0 -4
- package/dist/components/config-provider/config.d.ts +0 -8
- package/dist/components/config-provider/config.mjs +0 -15
- package/dist/components/config-provider/config.mjs.map +0 -1
- package/dist/components/config-provider/index.d.ts +0 -217
- package/dist/components/config-provider/index.mjs +0 -98
- package/dist/components/config-provider/index.mjs.map +0 -1
- package/dist/components/config-provider/types.d.ts +0 -82
- package/dist/components/config-provider/useConfig.d.ts +0 -241
- package/dist/components/config-provider/useConfig.mjs +0 -26
- package/dist/components/config-provider/useConfig.mjs.map +0 -1
- package/dist/components/config-renderer/compute.d.ts +0 -8
- package/dist/components/config-renderer/compute.mjs +0 -68
- package/dist/components/config-renderer/compute.mjs.map +0 -1
- package/dist/components/config-renderer/index.d.ts +0 -4
- package/dist/components/config-renderer/index.vue.d.ts +0 -7
- package/dist/components/config-renderer/index.vue.mjs +0 -126
- package/dist/components/config-renderer/index.vue.mjs.map +0 -1
- package/dist/components/config-renderer/index.vue2.mjs +0 -5
- package/dist/components/config-renderer/index.vue2.mjs.map +0 -1
- package/dist/components/config-renderer/types.d.ts +0 -39
- package/dist/components/config-renderer/utils.d.ts +0 -15
- package/dist/components/config-renderer/utils.mjs +0 -49
- package/dist/components/config-renderer/utils.mjs.map +0 -1
- package/dist/components/crud/define.d.ts +0 -5
- package/dist/components/crud/define.mjs +0 -11
- package/dist/components/crud/define.mjs.map +0 -1
- package/dist/components/crud/index.d.ts +0 -5
- package/dist/components/crud/list.vue.d.ts +0 -29
- package/dist/components/crud/list.vue.mjs +0 -8
- package/dist/components/crud/list.vue.mjs.map +0 -1
- package/dist/components/crud/list.vue2.mjs +0 -199
- package/dist/components/crud/list.vue2.mjs.map +0 -1
- package/dist/components/crud/props.d.ts +0 -70
- package/dist/components/crud/props.mjs +0 -37
- package/dist/components/crud/props.mjs.map +0 -1
- package/dist/components/crud/search.vue.d.ts +0 -44
- package/dist/components/crud/search.vue.mjs +0 -8
- package/dist/components/crud/search.vue.mjs.map +0 -1
- package/dist/components/crud/search.vue2.mjs +0 -98
- package/dist/components/crud/search.vue2.mjs.map +0 -1
- package/dist/components/crud/table.vue.d.ts +0 -35
- package/dist/components/crud/table.vue.mjs +0 -8
- package/dist/components/crud/table.vue.mjs.map +0 -1
- package/dist/components/crud/table.vue2.mjs +0 -1041
- package/dist/components/crud/table.vue2.mjs.map +0 -1
- package/dist/components/crud/types.d.ts +0 -70
- package/dist/components/dialog/form.vue.d.ts +0 -22
- package/dist/components/dialog/form.vue.mjs +0 -175
- package/dist/components/dialog/form.vue.mjs.map +0 -1
- package/dist/components/dialog/form.vue2.mjs +0 -5
- package/dist/components/dialog/form.vue2.mjs.map +0 -1
- package/dist/components/dialog/index.d.ts +0 -3
- package/dist/components/dialog/index.vue.d.ts +0 -35
- package/dist/components/dialog/index.vue.mjs +0 -111
- package/dist/components/dialog/index.vue.mjs.map +0 -1
- package/dist/components/dialog/index.vue3.mjs +0 -6
- package/dist/components/dialog/index.vue3.mjs.map +0 -1
- package/dist/components/dialog/props.d.ts +0 -58
- package/dist/components/dialog/props.mjs +0 -26
- package/dist/components/dialog/props.mjs.map +0 -1
- package/dist/components/dialog/types.d.ts +0 -18
- package/dist/components/dict/checkbox-group.vue.d.ts +0 -15
- package/dist/components/dict/checkbox-group.vue.mjs +0 -8
- package/dist/components/dict/checkbox-group.vue.mjs.map +0 -1
- package/dist/components/dict/checkbox-group.vue2.mjs +0 -78
- package/dist/components/dict/checkbox-group.vue2.mjs.map +0 -1
- package/dist/components/dict/index.d.ts +0 -5
- package/dist/components/dict/props.d.ts +0 -32
- package/dist/components/dict/props.mjs +0 -40
- package/dist/components/dict/props.mjs.map +0 -1
- package/dist/components/dict/radio-group.vue.d.ts +0 -13
- package/dist/components/dict/radio-group.vue.mjs +0 -8
- package/dist/components/dict/radio-group.vue.mjs.map +0 -1
- package/dist/components/dict/radio-group.vue2.mjs +0 -60
- package/dist/components/dict/radio-group.vue2.mjs.map +0 -1
- package/dist/components/dict/select.vue.d.ts +0 -31
- package/dist/components/dict/select.vue.mjs +0 -166
- package/dist/components/dict/select.vue.mjs.map +0 -1
- package/dist/components/dict/select.vue2.mjs +0 -5
- package/dist/components/dict/select.vue2.mjs.map +0 -1
- package/dist/components/dict/tag.vue.d.ts +0 -40
- package/dist/components/dict/tag.vue.mjs +0 -8
- package/dist/components/dict/tag.vue.mjs.map +0 -1
- package/dist/components/dict/tag.vue2.mjs +0 -98
- package/dist/components/dict/tag.vue2.mjs.map +0 -1
- package/dist/components/dict/types.d.ts +0 -22
- package/dist/components/form/config.d.ts +0 -3
- package/dist/components/form/config.mjs +0 -5
- package/dist/components/form/config.mjs.map +0 -1
- package/dist/components/form/index.d.ts +0 -5
- package/dist/components/form/index.vue.d.ts +0 -30
- package/dist/components/form/index.vue.mjs +0 -187
- package/dist/components/form/index.vue.mjs.map +0 -1
- package/dist/components/form/index.vue2.mjs +0 -5
- package/dist/components/form/index.vue2.mjs.map +0 -1
- package/dist/components/form/item.vue.d.ts +0 -23
- package/dist/components/form/item.vue.mjs +0 -8
- package/dist/components/form/item.vue.mjs.map +0 -1
- package/dist/components/form/item.vue2.mjs +0 -106
- package/dist/components/form/item.vue2.mjs.map +0 -1
- package/dist/components/form/props.d.ts +0 -45
- package/dist/components/form/props.mjs +0 -43
- package/dist/components/form/props.mjs.map +0 -1
- package/dist/components/form/types.d.ts +0 -26
- package/dist/components/grid/config.d.ts +0 -15
- package/dist/components/grid/config.mjs +0 -27
- package/dist/components/grid/config.mjs.map +0 -1
- package/dist/components/grid/index.d.ts +0 -4
- package/dist/components/grid/index.vue.d.ts +0 -19
- package/dist/components/grid/index.vue.mjs +0 -8
- package/dist/components/grid/index.vue.mjs.map +0 -1
- package/dist/components/grid/index.vue2.mjs +0 -58
- package/dist/components/grid/index.vue2.mjs.map +0 -1
- package/dist/components/grid/item.vue.d.ts +0 -18
- package/dist/components/grid/item.vue.mjs +0 -8
- package/dist/components/grid/item.vue.mjs.map +0 -1
- package/dist/components/grid/item.vue2.mjs +0 -73
- package/dist/components/grid/item.vue2.mjs.map +0 -1
- package/dist/components/grid/types.d.ts +0 -12
- package/dist/components/index.d.ts +0 -14
- package/dist/components/office/index.d.ts +0 -1
- package/dist/components/office/pdf/config.d.ts +0 -6
- package/dist/components/office/pdf/config.mjs +0 -9
- package/dist/components/office/pdf/config.mjs.map +0 -1
- package/dist/components/office/pdf/hooks/useZoom.d.ts +0 -21
- package/dist/components/office/pdf/hooks/useZoom.mjs +0 -200
- package/dist/components/office/pdf/hooks/useZoom.mjs.map +0 -1
- package/dist/components/office/pdf/index.d.ts +0 -2
- package/dist/components/office/pdf/index.vue.d.ts +0 -11
- package/dist/components/office/pdf/index.vue.mjs +0 -8
- package/dist/components/office/pdf/index.vue.mjs.map +0 -1
- package/dist/components/office/pdf/index.vue2.mjs +0 -322
- package/dist/components/office/pdf/index.vue2.mjs.map +0 -1
- package/dist/components/office/pdf/types.d.ts +0 -17
- package/dist/components/org/index.d.ts +0 -2
- package/dist/components/org/select/index.vue.d.ts +0 -28
- package/dist/components/org/select/index.vue.mjs +0 -273
- package/dist/components/org/select/index.vue.mjs.map +0 -1
- package/dist/components/org/select/index.vue3.mjs +0 -6
- package/dist/components/org/select/index.vue3.mjs.map +0 -1
- package/dist/components/org/select/props.d.ts +0 -22
- package/dist/components/org/select/props.mjs +0 -19
- package/dist/components/org/select/props.mjs.map +0 -1
- package/dist/components/org/select/types.d.ts +0 -22
- package/dist/components/service/index.d.ts +0 -4
- package/dist/components/service/list.vue.d.ts +0 -26
- package/dist/components/service/list.vue.mjs +0 -8
- package/dist/components/service/list.vue.mjs.map +0 -1
- package/dist/components/service/list.vue2.mjs +0 -251
- package/dist/components/service/list.vue2.mjs.map +0 -1
- package/dist/components/service/props.d.ts +0 -58
- package/dist/components/service/props.mjs +0 -66
- package/dist/components/service/props.mjs.map +0 -1
- package/dist/components/service/select.vue.d.ts +0 -30
- package/dist/components/service/select.vue.mjs +0 -8
- package/dist/components/service/select.vue.mjs.map +0 -1
- package/dist/components/service/select.vue2.mjs +0 -407
- package/dist/components/service/select.vue2.mjs.map +0 -1
- package/dist/components/service/table.vue.d.ts +0 -29
- package/dist/components/service/table.vue.mjs +0 -8
- package/dist/components/service/table.vue.mjs.map +0 -1
- package/dist/components/service/table.vue2.mjs +0 -693
- package/dist/components/service/table.vue2.mjs.map +0 -1
- package/dist/components/service/types.d.ts +0 -44
- package/dist/components/upload/config.d.ts +0 -4
- package/dist/components/upload/config.mjs +0 -37
- package/dist/components/upload/config.mjs.map +0 -1
- package/dist/components/upload/index.d.ts +0 -3
- package/dist/components/upload/index.vue.d.ts +0 -21
- package/dist/components/upload/index.vue.mjs +0 -8
- package/dist/components/upload/index.vue.mjs.map +0 -1
- package/dist/components/upload/index.vue2.mjs +0 -526
- package/dist/components/upload/index.vue2.mjs.map +0 -1
- package/dist/components/upload/props.d.ts +0 -27
- package/dist/components/upload/props.mjs +0 -32
- package/dist/components/upload/props.mjs.map +0 -1
- package/dist/components/upload/types.d.ts +0 -43
- package/dist/directive/hasPermi.d.ts +0 -12
- package/dist/directive/hasPermi.mjs +0 -33
- package/dist/directive/hasPermi.mjs.map +0 -1
- package/dist/directive/hasRole.d.ts +0 -12
- package/dist/directive/hasRole.mjs +0 -33
- package/dist/directive/hasRole.mjs.map +0 -1
- package/dist/directive/index.d.ts +0 -2
- package/dist/hooks/index.d.ts +0 -6
- package/dist/hooks/useAgentChat/index.d.ts +0 -15
- package/dist/hooks/useAgentChat/index.mjs +0 -202
- package/dist/hooks/useAgentChat/index.mjs.map +0 -1
- package/dist/hooks/useAgentChat/types.d.ts +0 -46
- package/dist/hooks/useDict/index.d.ts +0 -18
- package/dist/hooks/useDict/index.mjs +0 -137
- package/dist/hooks/useDict/index.mjs.map +0 -1
- package/dist/hooks/useDict/types.d.ts +0 -13
- package/dist/hooks/useDisabled.d.ts +0 -5
- package/dist/hooks/useDisabled.mjs +0 -18
- package/dist/hooks/useDisabled.mjs.map +0 -1
- package/dist/hooks/useModal.d.ts +0 -35
- package/dist/hooks/useModal.mjs +0 -179
- package/dist/hooks/useModal.mjs.map +0 -1
- package/dist/hooks/useReadonly.d.ts +0 -5
- package/dist/hooks/useReadonly.mjs +0 -18
- package/dist/hooks/useReadonly.mjs.map +0 -1
- package/dist/hooks/useUserAvatar/index.d.ts +0 -5
- package/dist/hooks/useUserAvatar/index.mjs +0 -38
- package/dist/hooks/useUserAvatar/index.mjs.map +0 -1
- package/dist/hooks/useUserAvatar/types.d.ts +0 -3
- package/dist/index.d.ts +0 -5
- package/dist/index.mjs +0 -99
- package/dist/index.mjs.map +0 -1
- package/dist/locales/en-US.d.ts +0 -316
- package/dist/locales/en-US.mjs +0 -71
- package/dist/locales/en-US.mjs.map +0 -1
- package/dist/locales/zh-CN.d.ts +0 -316
- package/dist/locales/zh-CN.mjs +0 -68
- package/dist/locales/zh-CN.mjs.map +0 -1
- package/dist/locales/zh-TW.d.ts +0 -316
- package/dist/locales/zh-TW.mjs +0 -68
- package/dist/locales/zh-TW.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@microsoft_fetch-event-source@2.0.1/node_modules/@microsoft/fetch-event-source/lib/esm/fetch.mjs +0 -90
- package/dist/node_modules/.pnpm/@microsoft_fetch-event-source@2.0.1/node_modules/@microsoft/fetch-event-source/lib/esm/fetch.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@microsoft_fetch-event-source@2.0.1/node_modules/@microsoft/fetch-event-source/lib/esm/parse.mjs +0 -110
- package/dist/node_modules/.pnpm/@microsoft_fetch-event-source@2.0.1/node_modules/@microsoft/fetch-event-source/lib/esm/parse.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@vueuse_core@14.0.0_vue@3.5.22_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.mjs +0 -62
- package/dist/node_modules/.pnpm/@vueuse_core@14.0.0_vue@3.5.22_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@vueuse_shared@14.0.0_vue@3.5.22_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.mjs +0 -67
- package/dist/node_modules/.pnpm/@vueuse_shared@14.0.0_vue@3.5.22_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.mjs.map +0 -1
- package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/dayjs.min.mjs +0 -287
- package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/dayjs.min.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_DataView.mjs +0 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_DataView.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Hash.mjs +0 -22
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Hash.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_ListCache.mjs +0 -22
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_ListCache.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Map.mjs +0 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Map.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_MapCache.mjs +0 -22
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_MapCache.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Promise.mjs +0 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Promise.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Set.mjs +0 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Set.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Stack.mjs +0 -19
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Stack.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.mjs +0 -6
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Uint8Array.mjs +0 -6
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Uint8Array.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_WeakMap.mjs +0 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_WeakMap.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_apply.mjs +0 -17
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_apply.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayEach.mjs +0 -13
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayEach.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayFilter.mjs +0 -14
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayFilter.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayLikeKeys.mjs +0 -25
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayLikeKeys.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayMap.mjs +0 -11
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayMap.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayPush.mjs +0 -11
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayPush.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assignMergeValue.mjs +0 -11
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assignMergeValue.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assignValue.mjs +0 -14
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assignValue.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assocIndexOf.mjs +0 -14
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assocIndexOf.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseAssignValue.mjs +0 -17
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseAssignValue.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseClone.mjs +0 -75
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseClone.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseCreate.mjs +0 -22
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseCreate.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFor.mjs +0 -6
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFor.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGet.mjs +0 -14
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGet.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetAllKeys.mjs +0 -10
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetAllKeys.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.mjs +0 -15
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsArguments.mjs +0 -10
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsArguments.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsMap.mjs +0 -10
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsMap.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNative.mjs +0 -23
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNative.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsSet.mjs +0 -10
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsSet.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsTypedArray.mjs +0 -15
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsTypedArray.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeys.mjs +0 -20
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeys.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeysIn.mjs +0 -21
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeysIn.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMerge.mjs +0 -28
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMerge.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMergeDeep.mjs +0 -62
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMergeDeep.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseRest.mjs +0 -10
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseRest.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseSet.mjs +0 -32
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseSet.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseSetToString.mjs +0 -15
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseSetToString.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTimes.mjs +0 -11
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTimes.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseToString.mjs +0 -22
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseToString.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUnary.mjs +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUnary.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_castPath.mjs +0 -14
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_castPath.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneArrayBuffer.mjs +0 -10
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneArrayBuffer.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneBuffer.mjs +0 -17
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneBuffer.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneDataView.mjs +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneDataView.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneRegExp.mjs +0 -10
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneRegExp.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneSymbol.mjs +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneSymbol.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneTypedArray.mjs +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneTypedArray.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copyArray.mjs +0 -12
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copyArray.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copyObject.mjs +0 -24
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copyObject.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_coreJsData.mjs +0 -6
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_coreJsData.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createAssigner.mjs +0 -24
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createAssigner.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createBaseFor.mjs +0 -16
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createBaseFor.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_defineProperty.mjs +0 -13
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_defineProperty.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.mjs +0 -5
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getAllKeys.mjs +0 -10
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getAllKeys.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMapData.mjs +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMapData.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getNative.mjs +0 -10
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getNative.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getPrototype.mjs +0 -6
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getPrototype.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.mjs +0 -26
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getSymbols.mjs +0 -18
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getSymbols.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getTag.mjs +0 -35
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getTag.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getValue.mjs +0 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getValue.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashClear.mjs +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashClear.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashDelete.mjs +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashDelete.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashGet.mjs +0 -16
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashGet.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashHas.mjs +0 -11
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashHas.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashSet.mjs +0 -12
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashSet.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneArray.mjs +0 -14
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneArray.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneByTag.mjs +0 -44
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneByTag.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneObject.mjs +0 -10
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneObject.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isIndex.mjs +0 -11
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isIndex.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isIterateeCall.mjs +0 -18
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isIterateeCall.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKey.mjs +0 -17
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKey.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKeyable.mjs +0 -8
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKeyable.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isMasked.mjs +0 -12
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isMasked.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isPrototype.mjs +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isPrototype.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheClear.mjs +0 -8
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheClear.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheDelete.mjs +0 -21
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheDelete.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheGet.mjs +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheGet.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheHas.mjs +0 -8
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheHas.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheSet.mjs +0 -15
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheSet.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheClear.mjs +0 -15
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheClear.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheDelete.mjs +0 -10
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheDelete.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheGet.mjs +0 -8
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheGet.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheHas.mjs +0 -8
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheHas.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheSet.mjs +0 -11
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheSet.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_memoizeCapped.mjs +0 -16
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_memoizeCapped.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeCreate.mjs +0 -6
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeCreate.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeys.mjs +0 -6
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeys.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeysIn.mjs +0 -13
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeysIn.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nodeUtil.mjs +0 -19
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nodeUtil.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.mjs +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_overArg.mjs +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_overArg.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_overRest.mjs +0 -22
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_overRest.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.mjs +0 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_safeGet.mjs +0 -13
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_safeGet.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setToString.mjs +0 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setToString.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_shortOut.mjs +0 -21
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_shortOut.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackClear.mjs +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackClear.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackDelete.mjs +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackDelete.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackGet.mjs +0 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackGet.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackHas.mjs +0 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackHas.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackSet.mjs +0 -23
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackSet.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stringToPath.mjs +0 -17
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stringToPath.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toKey.mjs +0 -12
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toKey.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toSource.mjs +0 -19
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toSource.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/cloneDeep.mjs +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/cloneDeep.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/constant.mjs +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/constant.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/eq.mjs +0 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/eq.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/get.mjs +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/get.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/identity.mjs +0 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/identity.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArguments.mjs +0 -14
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArguments.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArray.mjs +0 -5
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArray.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArrayLike.mjs +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArrayLike.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArrayLikeObject.mjs +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArrayLikeObject.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isBoolean.mjs +0 -10
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isBoolean.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isBuffer.mjs +0 -12
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isBuffer.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isFunction.mjs +0 -14
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isFunction.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isLength.mjs +0 -8
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isLength.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isMap.mjs +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isMap.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isNumber.mjs +0 -10
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isNumber.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.mjs +0 -8
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.mjs +0 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isPlainObject.mjs +0 -23
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isPlainObject.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSet.mjs +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSet.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSymbol.mjs +0 -10
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSymbol.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isTypedArray.mjs +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isTypedArray.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keys.mjs +0 -10
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keys.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keysIn.mjs +0 -10
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keysIn.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/memoize.mjs +0 -23
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/memoize.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/merge.mjs +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/merge.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/set.mjs +0 -8
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/set.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubArray.mjs +0 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubArray.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubFalse.mjs +0 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubFalse.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toPlainObject.mjs +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toPlainObject.mjs.map +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toString.mjs +0 -8
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toString.mjs.map +0 -1
- package/dist/node_modules/.pnpm/pdfjs-dist@5.4.394/node_modules/pdfjs-dist/build/pdf.mjs +0 -25810
- package/dist/node_modules/.pnpm/pdfjs-dist@5.4.394/node_modules/pdfjs-dist/build/pdf.mjs.map +0 -1
- package/dist/node_modules/.pnpm/pdfjs-dist@5.4.394/node_modules/pdfjs-dist/build/pdf.sandbox.mjs +0 -5
- package/dist/node_modules/.pnpm/pdfjs-dist@5.4.394/node_modules/pdfjs-dist/build/pdf.sandbox.mjs.map +0 -1
- package/dist/node_modules/.pnpm/pdfjs-dist@5.4.394/node_modules/pdfjs-dist/build/pdf.worker.mjs +0 -5
- package/dist/node_modules/.pnpm/pdfjs-dist@5.4.394/node_modules/pdfjs-dist/build/pdf.worker.mjs.map +0 -1
- package/dist/node_modules/.pnpm/pdfjs-dist@5.4.394/node_modules/pdfjs-dist/web/pdf_viewer.mjs +0 -8940
- package/dist/node_modules/.pnpm/pdfjs-dist@5.4.394/node_modules/pdfjs-dist/web/pdf_viewer.mjs.map +0 -1
- package/dist/node_modules/.pnpm/tdesign-vue-next@1.17.1_vue@3.5.22_typescript@5.9.3_/node_modules/tdesign-vue-next/es/_chunks/dep-0f6107c9.mjs +0 -316
- package/dist/node_modules/.pnpm/tdesign-vue-next@1.17.1_vue@3.5.22_typescript@5.9.3_/node_modules/tdesign-vue-next/es/_chunks/dep-0f6107c9.mjs.map +0 -1
- package/dist/node_modules/.pnpm/tdesign-vue-next@1.17.1_vue@3.5.22_typescript@5.9.3_/node_modules/tdesign-vue-next/es/_chunks/dep-4d4f98d8.mjs +0 -330
- package/dist/node_modules/.pnpm/tdesign-vue-next@1.17.1_vue@3.5.22_typescript@5.9.3_/node_modules/tdesign-vue-next/es/_chunks/dep-4d4f98d8.mjs.map +0 -1
- package/dist/node_modules/.pnpm/tdesign-vue-next@1.17.1_vue@3.5.22_typescript@5.9.3_/node_modules/tdesign-vue-next/es/_chunks/dep-8c6ad426.mjs +0 -10
- package/dist/node_modules/.pnpm/tdesign-vue-next@1.17.1_vue@3.5.22_typescript@5.9.3_/node_modules/tdesign-vue-next/es/_chunks/dep-8c6ad426.mjs.map +0 -1
- package/dist/node_modules/.pnpm/tdesign-vue-next@1.17.1_vue@3.5.22_typescript@5.9.3_/node_modules/tdesign-vue-next/es/_chunks/dep-c68053ef.mjs +0 -17
- package/dist/node_modules/.pnpm/tdesign-vue-next@1.17.1_vue@3.5.22_typescript@5.9.3_/node_modules/tdesign-vue-next/es/_chunks/dep-c68053ef.mjs.map +0 -1
- package/dist/node_modules/.pnpm/tdesign-vue-next@1.17.1_vue@3.5.22_typescript@5.9.3_/node_modules/tdesign-vue-next/es/locale/en_US.mjs +0 -287
- package/dist/node_modules/.pnpm/tdesign-vue-next@1.17.1_vue@3.5.22_typescript@5.9.3_/node_modules/tdesign-vue-next/es/locale/en_US.mjs.map +0 -1
- package/dist/node_modules/.pnpm/tdesign-vue-next@1.17.1_vue@3.5.22_typescript@5.9.3_/node_modules/tdesign-vue-next/es/locale/zh_TW.mjs +0 -328
- package/dist/node_modules/.pnpm/tdesign-vue-next@1.17.1_vue@3.5.22_typescript@5.9.3_/node_modules/tdesign-vue-next/es/locale/zh_TW.mjs.map +0 -1
- package/dist/qidian-vue-ui.css +0 -6054
- package/dist/utils/auth.d.ts +0 -6
- package/dist/utils/auth.mjs +0 -67
- package/dist/utils/auth.mjs.map +0 -1
- package/dist/utils/index.d.ts +0 -2
- package/dist/utils/time.d.ts +0 -2
- package/dist/utils/time.mjs +0 -30
- package/dist/utils/time.mjs.map +0 -1
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { ComputedRef, Ref } from 'vue';
|
|
2
|
-
import type { QdComputeFunction, QdAsyncComputeOptions } from './types';
|
|
3
|
-
export declare function qdCompute<T = unknown>(fn: QdComputeFunction<T>): QdComputeFunction<T>;
|
|
4
|
-
export declare function qdAsyncCompute<T = unknown>(options: QdAsyncComputeOptions<T>): QdAsyncComputeOptions<T>;
|
|
5
|
-
export declare function qdUseComputeValue<T = unknown>(computeFn: QdComputeFunction<T> | QdAsyncComputeOptions<T>, context: Ref<Record<string, unknown>> | ComputedRef<Record<string, unknown>>): {
|
|
6
|
-
result: Ref<T, T>;
|
|
7
|
-
loading: Ref<boolean, boolean>;
|
|
8
|
-
};
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { ref, watch, computed } from "vue";
|
|
2
|
-
import { to } from "qidian-shared";
|
|
3
|
-
const watchHandleMap = /* @__PURE__ */ new Map();
|
|
4
|
-
function qdCompute(fn) {
|
|
5
|
-
fn.__qdCompute = true;
|
|
6
|
-
fn.__qdId = `qd_compute_${Date.now()}_${Math.random().toString(36).slice(2, 9)}`;
|
|
7
|
-
return fn;
|
|
8
|
-
}
|
|
9
|
-
function qdAsyncCompute(options) {
|
|
10
|
-
options.__qdAsyncCompute = true;
|
|
11
|
-
options.__qdId = `qd_async_${Date.now()}_${Math.random().toString(36).slice(2, 9)}`;
|
|
12
|
-
return options;
|
|
13
|
-
}
|
|
14
|
-
function qdUseComputeValue(computeFn, context) {
|
|
15
|
-
const computeId = computeFn.__qdId;
|
|
16
|
-
if (!computeId) {
|
|
17
|
-
throw new Error("[configRenderer.qdUseComputeValue] 计算函数必须具有 ID");
|
|
18
|
-
}
|
|
19
|
-
watchHandleMap.get(computeId)?.();
|
|
20
|
-
let watchHandle;
|
|
21
|
-
const result = ref();
|
|
22
|
-
const loading = ref(false);
|
|
23
|
-
if ("__qdCompute" in computeFn) {
|
|
24
|
-
watchHandle = watch(
|
|
25
|
-
context,
|
|
26
|
-
(newValue) => {
|
|
27
|
-
result.value = computeFn(newValue);
|
|
28
|
-
},
|
|
29
|
-
{ immediate: true, deep: true }
|
|
30
|
-
);
|
|
31
|
-
} else {
|
|
32
|
-
const asyncCompute = computeFn;
|
|
33
|
-
const { asyncFn, watch: watchFn } = asyncCompute;
|
|
34
|
-
if (watchFn) {
|
|
35
|
-
const watchValue = computed(() => watchFn(context.value));
|
|
36
|
-
watchHandle = watch(
|
|
37
|
-
watchValue,
|
|
38
|
-
async (newValue) => {
|
|
39
|
-
loading.value = true;
|
|
40
|
-
try {
|
|
41
|
-
result.value = await asyncFn(newValue, context.value);
|
|
42
|
-
} finally {
|
|
43
|
-
loading.value = false;
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
{ immediate: true }
|
|
47
|
-
);
|
|
48
|
-
} else {
|
|
49
|
-
loading.value = true;
|
|
50
|
-
(async () => {
|
|
51
|
-
const watchValue = context.value;
|
|
52
|
-
const [asyncErr, value] = await to(asyncFn(watchValue, context.value));
|
|
53
|
-
loading.value = false;
|
|
54
|
-
if (asyncErr) return asyncErr;
|
|
55
|
-
result.value = value;
|
|
56
|
-
})();
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
if (watchHandle) watchHandleMap.set(computeId, watchHandle);
|
|
60
|
-
const res = { result, loading };
|
|
61
|
-
return res;
|
|
62
|
-
}
|
|
63
|
-
export {
|
|
64
|
-
qdAsyncCompute,
|
|
65
|
-
qdCompute,
|
|
66
|
-
qdUseComputeValue
|
|
67
|
-
};
|
|
68
|
-
//# sourceMappingURL=compute.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"compute.mjs","sources":["../../../src/components/config-renderer/compute.ts"],"sourcesContent":["import type { ComputedRef, Ref, WatchHandle } from 'vue'\nimport type { QdComputeFunction, QdAsyncComputeOptions } from './types'\nimport { computed, watch, ref } from 'vue'\nimport { to } from 'qidian-shared'\n\nconst watchHandleMap = new Map<string, WatchHandle>()\n\nexport function qdCompute<T = unknown>(fn: QdComputeFunction<T>) {\n fn.__qdCompute = true\n fn.__qdId = `qd_compute_${Date.now()}_${Math.random().toString(36).slice(2, 9)}`\n return fn\n}\n\nexport function qdAsyncCompute<T = unknown>(options: QdAsyncComputeOptions<T>) {\n options.__qdAsyncCompute = true\n options.__qdId = `qd_async_${Date.now()}_${Math.random().toString(36).slice(2, 9)}`\n return options\n}\n\nexport function qdUseComputeValue<T = unknown>(\n computeFn: QdComputeFunction<T> | QdAsyncComputeOptions<T>,\n context: Ref<Record<string, unknown>> | ComputedRef<Record<string, unknown>>\n) {\n const computeId = computeFn.__qdId\n if (!computeId) {\n throw new Error('[configRenderer.qdUseComputeValue] 计算函数必须具有 ID')\n }\n\n watchHandleMap.get(computeId)?.()\n let watchHandle: WatchHandle | undefined\n const result = ref<T>() as Ref<T>\n const loading = ref(false)\n\n if ('__qdCompute' in computeFn) {\n watchHandle = watch(\n context,\n (newValue) => {\n result.value = computeFn(newValue)\n },\n { immediate: true, deep: true }\n )\n } else {\n // qdAsyncCompute\n const asyncCompute = computeFn as QdAsyncComputeOptions<T>\n const { asyncFn, watch: watchFn } = asyncCompute\n\n if (watchFn) {\n // 有 watch 监听\n const watchValue = computed(() => watchFn(context.value))\n\n watchHandle = watch(\n watchValue,\n async (newValue: unknown) => {\n loading.value = true\n try {\n result.value = await asyncFn(newValue, context.value)\n } finally {\n loading.value = false\n }\n },\n { immediate: true }\n )\n } else {\n // 只执行一次\n loading.value = true\n ;(async () => {\n const watchValue = context.value\n\n const [asyncErr, value] = await to(asyncFn(watchValue, context.value))\n loading.value = false\n if (asyncErr) return asyncErr\n\n result.value = value\n })()\n }\n }\n\n if (watchHandle) watchHandleMap.set(computeId, watchHandle)\n const res = { result, loading }\n\n return res\n}\n"],"names":[],"mappings":";;AAKA,MAAM,qCAAqB,IAAA;AAEpB,SAAS,UAAuB,IAA0B;AAC/D,KAAG,cAAc;AACjB,KAAG,SAAS,cAAc,KAAK,IAAA,CAAK,IAAI,KAAK,OAAA,EAAS,SAAS,EAAE,EAAE,MAAM,GAAG,CAAC,CAAC;AAC9E,SAAO;AACT;AAEO,SAAS,eAA4B,SAAmC;AAC7E,UAAQ,mBAAmB;AAC3B,UAAQ,SAAS,YAAY,KAAK,IAAA,CAAK,IAAI,KAAK,OAAA,EAAS,SAAS,EAAE,EAAE,MAAM,GAAG,CAAC,CAAC;AACjF,SAAO;AACT;AAEO,SAAS,kBACd,WACA,SACA;AACA,QAAM,YAAY,UAAU;AAC5B,MAAI,CAAC,WAAW;AACd,UAAM,IAAI,MAAM,gDAAgD;AAAA,EAClE;AAEA,iBAAe,IAAI,SAAS,IAAA;AAC5B,MAAI;AACJ,QAAM,SAAS,IAAA;AACf,QAAM,UAAU,IAAI,KAAK;AAEzB,MAAI,iBAAiB,WAAW;AAC9B,kBAAc;AAAA,MACZ;AAAA,MACA,CAAC,aAAa;AACZ,eAAO,QAAQ,UAAU,QAAQ;AAAA,MACnC;AAAA,MACA,EAAE,WAAW,MAAM,MAAM,KAAA;AAAA,IAAK;AAAA,EAElC,OAAO;AAEL,UAAM,eAAe;AACrB,UAAM,EAAE,SAAS,OAAO,QAAA,IAAY;AAEpC,QAAI,SAAS;AAEX,YAAM,aAAa,SAAS,MAAM,QAAQ,QAAQ,KAAK,CAAC;AAExD,oBAAc;AAAA,QACZ;AAAA,QACA,OAAO,aAAsB;AAC3B,kBAAQ,QAAQ;AAChB,cAAI;AACF,mBAAO,QAAQ,MAAM,QAAQ,UAAU,QAAQ,KAAK;AAAA,UACtD,UAAA;AACE,oBAAQ,QAAQ;AAAA,UAClB;AAAA,QACF;AAAA,QACA,EAAE,WAAW,KAAA;AAAA,MAAK;AAAA,IAEtB,OAAO;AAEL,cAAQ,QAAQ;AACf,OAAC,YAAY;AACZ,cAAM,aAAa,QAAQ;AAE3B,cAAM,CAAC,UAAU,KAAK,IAAI,MAAM,GAAG,QAAQ,YAAY,QAAQ,KAAK,CAAC;AACrE,gBAAQ,QAAQ;AAChB,YAAI,SAAU,QAAO;AAErB,eAAO,QAAQ;AAAA,MACjB,GAAA;AAAA,IACF;AAAA,EACF;AAEA,MAAI,YAAa,gBAAe,IAAI,WAAW,WAAW;AAC1D,QAAM,MAAM,EAAE,QAAQ,QAAA;AAEtB,SAAO;AACT;"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { default as QdConfigRenderer } from './index.vue';
|
|
2
|
-
export { qdCompute, qdAsyncCompute, qdUseComputeValue } from './compute';
|
|
3
|
-
export { resolveVModelBinding, parseVModelPath, getValueByPath, setValueByPath } from './utils';
|
|
4
|
-
export type { QdComponentResolver, QdComputeFunction, QdAsyncFunction, QdWatchFunction, QdAsyncComputeOptions, QdConfigValue, Qd2ConfigValue, QdConfigSlotProps, QdComponentConfig, QdConfigRendererProps } from './types';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { QdConfigRendererProps } from './types';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<QdConfigRendererProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3
|
-
ifRenderChange: (args_0: boolean) => any;
|
|
4
|
-
}, string, import("vue").PublicProps, Readonly<QdConfigRendererProps> & Readonly<{
|
|
5
|
-
onIfRenderChange?: ((args_0: boolean) => any) | undefined;
|
|
6
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
-
export default _default;
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, h, resolveComponent, watch, createBlock, createCommentVNode, openBlock, resolveDynamicComponent, normalizeProps, mergeProps, createSlots, renderList, withCtx } from "vue";
|
|
2
|
-
import { qdUseComputeValue } from "./compute.mjs";
|
|
3
|
-
import { resolveVModelBinding } from "./utils.mjs";
|
|
4
|
-
import { isEmpty } from "qidian-shared";
|
|
5
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
|
-
...{
|
|
7
|
-
name: "QdConfigRenderer"
|
|
8
|
-
},
|
|
9
|
-
__name: "index",
|
|
10
|
-
props: {
|
|
11
|
-
config: {},
|
|
12
|
-
context: {},
|
|
13
|
-
fnInjectCtx: { type: Boolean }
|
|
14
|
-
},
|
|
15
|
-
emits: ["ifRenderChange"],
|
|
16
|
-
setup(__props, { emit: __emit }) {
|
|
17
|
-
const props = __props;
|
|
18
|
-
const emit = __emit;
|
|
19
|
-
let initialized = false;
|
|
20
|
-
const currentContext = computed(() => props.config.context || props.context || {});
|
|
21
|
-
const reIfRender = computed(() => {
|
|
22
|
-
const ifRender = props.config.ifRender;
|
|
23
|
-
if (isEmpty(ifRender)) return true;
|
|
24
|
-
if (ifRender?.__qdCompute || ifRender?.__qdAsyncCompute) {
|
|
25
|
-
const { result } = qdUseComputeValue(
|
|
26
|
-
ifRender,
|
|
27
|
-
currentContext
|
|
28
|
-
);
|
|
29
|
-
return result.value;
|
|
30
|
-
}
|
|
31
|
-
return ifRender;
|
|
32
|
-
});
|
|
33
|
-
const resolvedComponent = computed(() => {
|
|
34
|
-
const { is, render } = props.config;
|
|
35
|
-
if (render) {
|
|
36
|
-
return () => render(h, currentContext.value);
|
|
37
|
-
}
|
|
38
|
-
if (!is) return "div";
|
|
39
|
-
if (typeof is === "string") {
|
|
40
|
-
if (is === is.toLowerCase()) {
|
|
41
|
-
return is;
|
|
42
|
-
}
|
|
43
|
-
const resolved = resolveComponent(is);
|
|
44
|
-
if (resolved !== is) return resolved;
|
|
45
|
-
return is;
|
|
46
|
-
}
|
|
47
|
-
return is;
|
|
48
|
-
});
|
|
49
|
-
const componentProps = computed(() => {
|
|
50
|
-
const config = props.config;
|
|
51
|
-
const componentProps2 = {};
|
|
52
|
-
Object.entries(config).forEach(([key, value]) => {
|
|
53
|
-
if (key.startsWith("vModel") && typeof value === "string") {
|
|
54
|
-
const propName = key.slice(6);
|
|
55
|
-
const defaultKey = "default" + (key === "vModel" ? "ModelValue" : propName.charAt(0).toUpperCase() + key.slice(7));
|
|
56
|
-
const defaultValue = config[defaultKey];
|
|
57
|
-
const vModelBinding = resolveVModelBinding(
|
|
58
|
-
currentContext.value,
|
|
59
|
-
value,
|
|
60
|
-
initialized ? void 0 : defaultValue
|
|
61
|
-
);
|
|
62
|
-
if (key === "vModel") {
|
|
63
|
-
componentProps2.modelValue = vModelBinding.modelValue;
|
|
64
|
-
componentProps2["onUpdate:modelValue"] = vModelBinding["onUpdate:modelValue"];
|
|
65
|
-
} else {
|
|
66
|
-
const lowerFirst = propName.charAt(0).toLowerCase() + propName.slice(1);
|
|
67
|
-
componentProps2[lowerFirst] = vModelBinding.modelValue;
|
|
68
|
-
componentProps2[`onUpdate:${lowerFirst}`] = vModelBinding["onUpdate:modelValue"];
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
initialized = true;
|
|
73
|
-
Object.entries(config).forEach(([key, value]) => {
|
|
74
|
-
if (["is", "context", "slots", "ifRender"].includes(key)) return;
|
|
75
|
-
if (key.startsWith("vModel")) return;
|
|
76
|
-
if (key.startsWith("default")) {
|
|
77
|
-
const propName = key.slice(7);
|
|
78
|
-
const vModelKey = "vModel" + (propName === "ModelValue" ? "" : propName.charAt(0).toUpperCase() + propName.slice(1));
|
|
79
|
-
if (config[vModelKey]) return;
|
|
80
|
-
}
|
|
81
|
-
if (value?.__qdCompute || value?.__qdAsyncCompute) {
|
|
82
|
-
const { result } = qdUseComputeValue(
|
|
83
|
-
value,
|
|
84
|
-
currentContext
|
|
85
|
-
);
|
|
86
|
-
componentProps2[key] = result.value;
|
|
87
|
-
} else if (props.fnInjectCtx && typeof value === "function" && key.startsWith("on")) {
|
|
88
|
-
componentProps2[key] = (...args) => {
|
|
89
|
-
return value(currentContext.value, ...args);
|
|
90
|
-
};
|
|
91
|
-
} else {
|
|
92
|
-
componentProps2[key] = value;
|
|
93
|
-
}
|
|
94
|
-
});
|
|
95
|
-
return componentProps2;
|
|
96
|
-
});
|
|
97
|
-
watch(
|
|
98
|
-
reIfRender,
|
|
99
|
-
(newV, oldV) => {
|
|
100
|
-
if (newV === oldV) return;
|
|
101
|
-
emit("ifRenderChange", newV);
|
|
102
|
-
},
|
|
103
|
-
{ immediate: true }
|
|
104
|
-
);
|
|
105
|
-
return (_ctx, _cache) => {
|
|
106
|
-
return reIfRender.value !== false ? (openBlock(), createBlock(resolveDynamicComponent(resolvedComponent.value), normalizeProps(mergeProps({ key: 0 }, componentProps.value)), createSlots({ _: 2 }, [
|
|
107
|
-
renderList(__props.config.slots, (slotConfig, slotName) => {
|
|
108
|
-
return {
|
|
109
|
-
name: slotName,
|
|
110
|
-
fn: withCtx((slotProps) => [
|
|
111
|
-
slotConfig ? (openBlock(), createBlock(_sfc_main, mergeProps({
|
|
112
|
-
key: 0,
|
|
113
|
-
config: slotConfig,
|
|
114
|
-
context: slotConfig.context || currentContext.value
|
|
115
|
-
}, slotProps), null, 16, ["config", "context"])) : createCommentVNode("", true)
|
|
116
|
-
])
|
|
117
|
-
};
|
|
118
|
-
})
|
|
119
|
-
]), 1040)) : createCommentVNode("", true);
|
|
120
|
-
};
|
|
121
|
-
}
|
|
122
|
-
});
|
|
123
|
-
export {
|
|
124
|
-
_sfc_main as default
|
|
125
|
-
};
|
|
126
|
-
//# sourceMappingURL=index.vue.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.vue.mjs","sources":["../../../src/components/config-renderer/index.vue"],"sourcesContent":["<template>\n <component :is=\"resolvedComponent\" v-bind=\"componentProps\" v-if=\"reIfRender !== false\">\n <template\n v-for=\"(slotConfig, slotName) in config.slots\"\n :key=\"slotName\"\n #[slotName]=\"slotProps\"\n >\n <qd-config-renderer\n v-if=\"slotConfig\"\n :config=\"slotConfig\"\n :context=\"slotConfig.context || currentContext\"\n v-bind=\"slotProps\"\n />\n </template>\n </component>\n</template>\n\n<script setup lang=\"ts\">\n import type { QdConfigRendererProps, QdComputeFunction, QdAsyncComputeOptions } from './types'\n import { computed, resolveComponent, h, watch } from 'vue'\n import { qdUseComputeValue } from './compute'\n import { resolveVModelBinding } from './utils'\n import QdConfigRenderer from './index.vue'\n import { isEmpty } from 'qidian-shared'\n\n defineOptions({\n name: 'QdConfigRenderer'\n })\n\n const props = withDefaults(defineProps<QdConfigRendererProps>(), {})\n const emit = defineEmits<{ ifRenderChange: [boolean] }>()\n\n let initialized = false\n const currentContext = computed(() => props.config.context || props.context || {})\n\n // 处理 ifRender\n const reIfRender = computed(() => {\n const ifRender = props.config.ifRender\n if (isEmpty(ifRender)) return true\n\n if (\n (ifRender as QdComputeFunction<boolean>)?.__qdCompute ||\n (ifRender as QdAsyncComputeOptions<boolean>)?.__qdAsyncCompute\n ) {\n const { result } = qdUseComputeValue(\n ifRender as QdComputeFunction<boolean> | QdAsyncComputeOptions<boolean>,\n currentContext\n )\n return result.value\n }\n\n return ifRender as boolean\n })\n\n // 解析组件\n const resolvedComponent = computed(() => {\n const { is, render } = props.config\n\n // 优先使用 render 函数\n if (render) {\n return () => render(h, currentContext.value)\n }\n\n if (!is) return 'div'\n\n if (typeof is === 'string') {\n // 对于原生 HTML 标签(小写),直接返回\n if (is === is.toLowerCase()) {\n return is\n }\n\n // 尝试解析为注册的组件\n const resolved = resolveComponent(is)\n if (resolved !== is) return resolved\n return is\n }\n\n return is\n })\n\n // 处理动态属性\n const componentProps = computed(() => {\n const config = props.config\n const componentProps: Record<string, unknown> = {}\n\n // 处理 vModel 开头的属性\n Object.entries(config).forEach(([key, value]) => {\n if (key.startsWith('vModel') && typeof value === 'string') {\n const propName = key.slice(6) // 移除 'vModel' 前缀\n // 获取对应的默认值,比如 vModel -> defaultModelValue, vModelValue -> defaultValue\n const defaultKey =\n 'default' +\n (key === 'vModel' ? 'ModelValue' : propName.charAt(0).toUpperCase() + key.slice(7))\n const defaultValue = config[defaultKey]\n const vModelBinding = resolveVModelBinding(\n currentContext.value,\n value,\n initialized ? undefined : defaultValue\n )\n\n if (key === 'vModel') {\n componentProps.modelValue = vModelBinding.modelValue\n componentProps['onUpdate:modelValue'] = vModelBinding['onUpdate:modelValue']\n } else {\n // 处理其他 vModel 属性,如 vModelValue -> value\n const lowerFirst = propName.charAt(0).toLowerCase() + propName.slice(1)\n componentProps[lowerFirst] = vModelBinding.modelValue\n componentProps[`onUpdate:${lowerFirst}`] = vModelBinding['onUpdate:modelValue']\n }\n }\n })\n initialized = true\n\n // 处理其他属性\n Object.entries(config).forEach(([key, value]) => {\n if (['is', 'context', 'slots', 'ifRender'].includes(key)) return\n if (key.startsWith('vModel')) return\n\n // 检查是否为 vModel 对应的默认值配置\n if (key.startsWith('default')) {\n // 反向查找对应的 vModelKey\n const propName = key.slice(7) // 移除 'default' 前缀\n const vModelKey =\n 'vModel' +\n (propName === 'ModelValue' ? '' : propName.charAt(0).toUpperCase() + propName.slice(1))\n if (config[vModelKey]) return // 只有当存在对应的 vModel 配置时才跳过\n }\n\n // 处理动态计算的值\n if (\n (value as QdComputeFunction)?.__qdCompute ||\n (value as QdAsyncComputeOptions)?.__qdAsyncCompute\n ) {\n const { result } = qdUseComputeValue(\n value as QdComputeFunction | QdAsyncComputeOptions,\n currentContext\n )\n componentProps[key] = result.value\n } else if (props.fnInjectCtx && typeof value === 'function' && key.startsWith('on')) {\n componentProps[key] = (...args: unknown[]) => {\n return value(currentContext.value, ...args)\n }\n } else {\n componentProps[key] = value\n }\n })\n\n return componentProps\n })\n\n watch(\n reIfRender,\n (newV, oldV) => {\n if (newV === oldV) return\n\n emit('ifRenderChange', newV)\n },\n { immediate: true }\n )\n</script>\n"],"names":["componentProps","_createBlock","_resolveDynamicComponent","_normalizeProps","_mergeProps","_createSlots","_renderList","_withCtx","_openBlock","QdConfigRenderer"],"mappings":";;;;;;;;;;;;;;;;AA6BE,UAAM,QAAQ;AACd,UAAM,OAAO;AAEb,QAAI,cAAc;AAClB,UAAM,iBAAiB,SAAS,MAAM,MAAM,OAAO,WAAW,MAAM,WAAW,EAAE;AAGjF,UAAM,aAAa,SAAS,MAAM;AAChC,YAAM,WAAW,MAAM,OAAO;AAC9B,UAAI,QAAQ,QAAQ,EAAG,QAAO;AAE9B,UACG,UAAyC,eACzC,UAA6C,kBAC9C;AACA,cAAM,EAAE,WAAW;AAAA,UACjB;AAAA,UACA;AAAA,QAAA;AAEF,eAAO,OAAO;AAAA,MAChB;AAEA,aAAO;AAAA,IACT,CAAC;AAGD,UAAM,oBAAoB,SAAS,MAAM;AACvC,YAAM,EAAE,IAAI,OAAA,IAAW,MAAM;AAG7B,UAAI,QAAQ;AACV,eAAO,MAAM,OAAO,GAAG,eAAe,KAAK;AAAA,MAC7C;AAEA,UAAI,CAAC,GAAI,QAAO;AAEhB,UAAI,OAAO,OAAO,UAAU;AAE1B,YAAI,OAAO,GAAG,eAAe;AAC3B,iBAAO;AAAA,QACT;AAGA,cAAM,WAAW,iBAAiB,EAAE;AACpC,YAAI,aAAa,GAAI,QAAO;AAC5B,eAAO;AAAA,MACT;AAEA,aAAO;AAAA,IACT,CAAC;AAGD,UAAM,iBAAiB,SAAS,MAAM;AACpC,YAAM,SAAS,MAAM;AACrB,YAAMA,kBAA0C,CAAA;AAGhD,aAAO,QAAQ,MAAM,EAAE,QAAQ,CAAC,CAAC,KAAK,KAAK,MAAM;AAC/C,YAAI,IAAI,WAAW,QAAQ,KAAK,OAAO,UAAU,UAAU;AACzD,gBAAM,WAAW,IAAI,MAAM,CAAC;AAE5B,gBAAM,aACJ,aACC,QAAQ,WAAW,eAAe,SAAS,OAAO,CAAC,EAAE,YAAA,IAAgB,IAAI,MAAM,CAAC;AACnF,gBAAM,eAAe,OAAO,UAAU;AACtC,gBAAM,gBAAgB;AAAA,YACpB,eAAe;AAAA,YACf;AAAA,YACA,cAAc,SAAY;AAAA,UAAA;AAG5B,cAAI,QAAQ,UAAU;AACpBA,4BAAe,aAAa,cAAc;AAC1CA,4BAAe,qBAAqB,IAAI,cAAc,qBAAqB;AAAA,UAC7E,OAAO;AAEL,kBAAM,aAAa,SAAS,OAAO,CAAC,EAAE,gBAAgB,SAAS,MAAM,CAAC;AACtEA,4BAAe,UAAU,IAAI,cAAc;AAC3CA,4BAAe,YAAY,UAAU,EAAE,IAAI,cAAc,qBAAqB;AAAA,UAChF;AAAA,QACF;AAAA,MACF,CAAC;AACD,oBAAc;AAGd,aAAO,QAAQ,MAAM,EAAE,QAAQ,CAAC,CAAC,KAAK,KAAK,MAAM;AAC/C,YAAI,CAAC,MAAM,WAAW,SAAS,UAAU,EAAE,SAAS,GAAG,EAAG;AAC1D,YAAI,IAAI,WAAW,QAAQ,EAAG;AAG9B,YAAI,IAAI,WAAW,SAAS,GAAG;AAE7B,gBAAM,WAAW,IAAI,MAAM,CAAC;AAC5B,gBAAM,YACJ,YACC,aAAa,eAAe,KAAK,SAAS,OAAO,CAAC,EAAE,YAAA,IAAgB,SAAS,MAAM,CAAC;AACvF,cAAI,OAAO,SAAS,EAAG;AAAA,QACzB;AAGA,YACG,OAA6B,eAC7B,OAAiC,kBAClC;AACA,gBAAM,EAAE,WAAW;AAAA,YACjB;AAAA,YACA;AAAA,UAAA;AAEFA,0BAAe,GAAG,IAAI,OAAO;AAAA,QAC/B,WAAW,MAAM,eAAe,OAAO,UAAU,cAAc,IAAI,WAAW,IAAI,GAAG;AACnFA,0BAAe,GAAG,IAAI,IAAI,SAAoB;AAC5C,mBAAO,MAAM,eAAe,OAAO,GAAG,IAAI;AAAA,UAC5C;AAAA,QACF,OAAO;AACLA,0BAAe,GAAG,IAAI;AAAA,QACxB;AAAA,MACF,CAAC;AAED,aAAOA;AAAAA,IACT,CAAC;AAED;AAAA,MACE;AAAA,MACA,CAAC,MAAM,SAAS;AACd,YAAI,SAAS,KAAM;AAEnB,aAAK,kBAAkB,IAAI;AAAA,MAC7B;AAAA,MACA,EAAE,WAAW,KAAA;AAAA,IAAK;;aA5J6C,WAAA,UAAU,sBAA3EC,YAaYC,wBAbI,kBAAA,KAAiB,GAAAC,eAAAC,WAAA,EAAA,KAAA,EAAA,GAAU,eAAA,KAAc,CAAA,GAAAC,YAAA,EAAA,GAAA,KAAA;AAAA,QAEpBC,WAAA,QAAA,OAAO,OAAK,CAArC,YAAY,aAAQ;;kBAE3B;AAAA,YAED,IAAAC,QAAA,CAFa,cAAS;AAAA,cAGd,cADRC,UAAA,GAAAP,YAKEQ,WALFL,WAKE;AAAA;gBAHC,QAAQ;AAAA,gBACR,SAAS,WAAW,WAAW,eAAA;AAAA,cAAA,GACxB,SAAS,GAAA,MAAA,IAAA,CAAA,UAAA,SAAA,CAAA;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.vue2.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import type { Component, VNode, h } from 'vue';
|
|
2
|
-
export type QdComponentResolver = string | Component | VNode;
|
|
3
|
-
export type QdComponentRender = (vueH: typeof h, context: Record<string, unknown>) => VNode;
|
|
4
|
-
export type QdComputeFunction<T = unknown> = ((context: Record<string, unknown>) => T) & {
|
|
5
|
-
__qdCompute?: true;
|
|
6
|
-
__qdId?: string;
|
|
7
|
-
};
|
|
8
|
-
export type QdAsyncFunction<T = unknown> = (watchValue: unknown, context: Record<string, unknown>) => Promise<T>;
|
|
9
|
-
export type QdWatchFunction<T = unknown> = (context: Record<string, unknown>) => T;
|
|
10
|
-
export interface QdAsyncComputeOptions<T = unknown> {
|
|
11
|
-
asyncFn: QdAsyncFunction<T>;
|
|
12
|
-
watch?: QdWatchFunction<T>;
|
|
13
|
-
__qdAsyncCompute?: true;
|
|
14
|
-
__qdExecuted?: boolean;
|
|
15
|
-
__qdId?: string;
|
|
16
|
-
}
|
|
17
|
-
export type QdConfigValue<T = unknown> = T | QdComputeFunction<T> | QdAsyncComputeOptions<T>;
|
|
18
|
-
export type Qd2ConfigValue<T> = {
|
|
19
|
-
[K in keyof T]: T[K] extends (...args: never[]) => unknown ? QdConfigValue<T[K]> : QdConfigValue<T[K]>;
|
|
20
|
-
};
|
|
21
|
-
export interface QdConfigSlotProps {
|
|
22
|
-
[slotName: string]: QdComponentConfig;
|
|
23
|
-
}
|
|
24
|
-
export interface QdComponentConfig {
|
|
25
|
-
is?: QdComponentResolver;
|
|
26
|
-
render?: QdComponentRender;
|
|
27
|
-
context?: Record<string, unknown>;
|
|
28
|
-
options?: QdConfigValue;
|
|
29
|
-
slots?: QdConfigSlotProps;
|
|
30
|
-
ifRender?: QdConfigValue<boolean>;
|
|
31
|
-
[key: `vModel${string}`]: string;
|
|
32
|
-
[key: `default${string}`]: unknown;
|
|
33
|
-
[key: string]: QdConfigValue;
|
|
34
|
-
}
|
|
35
|
-
export interface QdConfigRendererProps {
|
|
36
|
-
config: QdComponentConfig;
|
|
37
|
-
context?: Record<string, unknown>;
|
|
38
|
-
fnInjectCtx?: boolean;
|
|
39
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export interface VModelPath {
|
|
2
|
-
path: string;
|
|
3
|
-
keys: string[];
|
|
4
|
-
}
|
|
5
|
-
export declare function parseVModelPath(path: string): VModelPath;
|
|
6
|
-
export declare function getValueByPath(obj: Record<string, unknown>, path: string): unknown;
|
|
7
|
-
export declare function setValueByPath(obj: Record<string, unknown>, path: string, value: unknown): void;
|
|
8
|
-
export declare function createVModelBinding(context: Record<string, unknown>, vModelPath?: string, defaultValue?: unknown): {
|
|
9
|
-
modelValue: unknown;
|
|
10
|
-
'onUpdate:modelValue': undefined;
|
|
11
|
-
} | {
|
|
12
|
-
modelValue: unknown;
|
|
13
|
-
'onUpdate:modelValue': (value: unknown) => void;
|
|
14
|
-
};
|
|
15
|
-
export declare function resolveVModelBinding(context: Record<string, unknown>, vModel?: string, defaultValue?: unknown): Record<string, unknown>;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import get from "../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/get.mjs";
|
|
2
|
-
import set from "../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/set.mjs";
|
|
3
|
-
function parseVModelPath(path) {
|
|
4
|
-
return {
|
|
5
|
-
path,
|
|
6
|
-
keys: path.split(".")
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
|
-
function getValueByPath(obj, path) {
|
|
10
|
-
return get(obj, path);
|
|
11
|
-
}
|
|
12
|
-
function setValueByPath(obj, path, value) {
|
|
13
|
-
set(obj, path, value);
|
|
14
|
-
}
|
|
15
|
-
function createVModelBinding(context, vModelPath, defaultValue) {
|
|
16
|
-
if (!vModelPath) {
|
|
17
|
-
return {
|
|
18
|
-
modelValue: defaultValue,
|
|
19
|
-
"onUpdate:modelValue": void 0
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
const currentValue = getValueByPath(context, vModelPath);
|
|
23
|
-
if (currentValue === void 0 && defaultValue !== void 0) {
|
|
24
|
-
setValueByPath(context, vModelPath, defaultValue);
|
|
25
|
-
}
|
|
26
|
-
return {
|
|
27
|
-
modelValue: currentValue !== void 0 ? currentValue : defaultValue,
|
|
28
|
-
"onUpdate:modelValue": (value) => {
|
|
29
|
-
setValueByPath(context, vModelPath, value);
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
function resolveVModelBinding(context, vModel, defaultValue) {
|
|
34
|
-
const bindings = {};
|
|
35
|
-
if (vModel) {
|
|
36
|
-
const vModelBinding = createVModelBinding(context, vModel, defaultValue);
|
|
37
|
-
bindings.modelValue = vModelBinding.modelValue;
|
|
38
|
-
bindings["onUpdate:modelValue"] = vModelBinding["onUpdate:modelValue"];
|
|
39
|
-
}
|
|
40
|
-
return bindings;
|
|
41
|
-
}
|
|
42
|
-
export {
|
|
43
|
-
createVModelBinding,
|
|
44
|
-
getValueByPath,
|
|
45
|
-
parseVModelPath,
|
|
46
|
-
resolveVModelBinding,
|
|
47
|
-
setValueByPath
|
|
48
|
-
};
|
|
49
|
-
//# sourceMappingURL=utils.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.mjs","sources":["../../../src/components/config-renderer/utils.ts"],"sourcesContent":["import { get, set } from 'lodash-es'\n\nexport interface VModelPath {\n path: string\n keys: string[]\n}\n\nexport function parseVModelPath(path: string): VModelPath {\n return {\n path,\n keys: path.split('.')\n }\n}\n\nexport function getValueByPath(obj: Record<string, unknown>, path: string): unknown {\n return get(obj, path)\n}\n\nexport function setValueByPath(obj: Record<string, unknown>, path: string, value: unknown): void {\n set(obj, path, value)\n}\n\nexport function createVModelBinding(\n context: Record<string, unknown>,\n vModelPath?: string,\n defaultValue?: unknown\n) {\n if (!vModelPath) {\n return {\n modelValue: defaultValue,\n 'onUpdate:modelValue': undefined\n }\n }\n\n const currentValue = getValueByPath(context, vModelPath)\n\n // 如果 context 中没有值,则初始化为默认值\n if (currentValue === undefined && defaultValue !== undefined) {\n setValueByPath(context, vModelPath, defaultValue)\n }\n\n return {\n modelValue: currentValue !== undefined ? currentValue : defaultValue,\n 'onUpdate:modelValue': (value: unknown) => {\n setValueByPath(context, vModelPath, value)\n }\n }\n}\n\nexport function resolveVModelBinding(\n context: Record<string, unknown>,\n vModel?: string,\n defaultValue?: unknown\n) {\n const bindings: Record<string, unknown> = {}\n\n if (vModel) {\n const vModelBinding = createVModelBinding(context, vModel, defaultValue)\n bindings.modelValue = vModelBinding.modelValue\n bindings['onUpdate:modelValue'] = vModelBinding['onUpdate:modelValue']\n }\n\n return bindings\n}\n"],"names":[],"mappings":";;AAOO,SAAS,gBAAgB,MAA0B;AACxD,SAAO;AAAA,IACL;AAAA,IACA,MAAM,KAAK,MAAM,GAAG;AAAA,EAAA;AAExB;AAEO,SAAS,eAAe,KAA8B,MAAuB;AAClF,SAAO,IAAI,KAAK,IAAI;AACtB;AAEO,SAAS,eAAe,KAA8B,MAAc,OAAsB;AAC/F,MAAI,KAAK,MAAM,KAAK;AACtB;AAEO,SAAS,oBACd,SACA,YACA,cACA;AACA,MAAI,CAAC,YAAY;AACf,WAAO;AAAA,MACL,YAAY;AAAA,MACZ,uBAAuB;AAAA,IAAA;AAAA,EAE3B;AAEA,QAAM,eAAe,eAAe,SAAS,UAAU;AAGvD,MAAI,iBAAiB,UAAa,iBAAiB,QAAW;AAC5D,mBAAe,SAAS,YAAY,YAAY;AAAA,EAClD;AAEA,SAAO;AAAA,IACL,YAAY,iBAAiB,SAAY,eAAe;AAAA,IACxD,uBAAuB,CAAC,UAAmB;AACzC,qBAAe,SAAS,YAAY,KAAK;AAAA,IAC3C;AAAA,EAAA;AAEJ;AAEO,SAAS,qBACd,SACA,QACA,cACA;AACA,QAAM,WAAoC,CAAA;AAE1C,MAAI,QAAQ;AACV,UAAM,gBAAgB,oBAAoB,SAAS,QAAQ,YAAY;AACvE,aAAS,aAAa,cAAc;AACpC,aAAS,qBAAqB,IAAI,cAAc,qBAAqB;AAAA,EACvE;AAEA,SAAO;AACT;"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { QdCrudListProps, QdCrudTableProps } from './types';
|
|
2
|
-
import type { TableRowData } from 'tdesign-vue-next';
|
|
3
|
-
import type { ServicePageParams, ServicePagination } from 'qidian-shared';
|
|
4
|
-
export declare function defineQdCrudTable<D extends TableRowData = TableRowData, R = unknown, P = ServicePageParams, TP = P, Pag extends ServicePagination = ServicePagination>(config: QdCrudTableProps<D, R, P, TP, Pag>): QdCrudTableProps<D, R, P, TP, Pag>;
|
|
5
|
-
export declare function defineQdCrudList<D extends TableRowData = TableRowData, R = unknown, P = ServicePageParams, TP = P, Pag extends ServicePagination = ServicePagination>(config: QdCrudListProps<D, R, P, TP, Pag>): QdCrudListProps<D, R, P, TP, Pag>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"define.mjs","sources":["../../../src/components/crud/define.ts"],"sourcesContent":["import type { QdCrudListProps, QdCrudTableProps } from './types'\nimport type { TableRowData } from 'tdesign-vue-next'\nimport type { ServicePageParams, ServicePagination } from 'qidian-shared'\n\n/**\n * 定义 CRUD Table 配置,提供类型推导\n */\nexport function defineQdCrudTable<\n D extends TableRowData = TableRowData,\n R = unknown,\n P = ServicePageParams,\n TP = P,\n Pag extends ServicePagination = ServicePagination\n>(config: QdCrudTableProps<D, R, P, TP, Pag>): QdCrudTableProps<D, R, P, TP, Pag> {\n return config\n}\n\n/**\n * 定义 CRUD List 配置,提供类型推导\n */\nexport function defineQdCrudList<\n D extends TableRowData = TableRowData,\n R = unknown,\n P = ServicePageParams,\n TP = P,\n Pag extends ServicePagination = ServicePagination\n>(config: QdCrudListProps<D, R, P, TP, Pag>): QdCrudListProps<D, R, P, TP, Pag> {\n return config\n}"],"names":[],"mappings":"AAOO,SAAS,kBAMd,QAAgF;AAChF,SAAO;AACT;AAKO,SAAS,iBAMd,QAA8E;AAC9E,SAAO;AACT;"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { default as QdCrudTable } from './table.vue';
|
|
2
|
-
export { default as QdCrudList } from './list.vue';
|
|
3
|
-
export { default as QdCrudSearch } from './search.vue';
|
|
4
|
-
export { defineQdCrudTable, defineQdCrudList } from './define';
|
|
5
|
-
export type { QdCrudTableProps, QdCrudTableInstanceFunctions, QdCrudListProps, QdCrudListInstanceFunctions } from './types';
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type { TableRowData } from 'tdesign-vue-next';
|
|
2
|
-
import type { ServicePageParams, ServicePagination } from 'qidian-shared';
|
|
3
|
-
import type { QdCrudListInstanceFunctions, QdCrudListProps } from './types';
|
|
4
|
-
declare const _default: <D extends TableRowData = TableRowData, R = unknown, P = ServicePageParams, TP = P, Pag extends ServicePagination = ServicePagination>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
6
|
-
readonly "onUpdate:data"?: ((args_0: D[] | undefined) => any) | undefined;
|
|
7
|
-
readonly "onUpdate:searchData"?: ((args_0: import("tdesign-vue-next").Data | undefined) => any) | undefined;
|
|
8
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:data" | "onUpdate:searchData"> & QdCrudListProps<D, R, P, TP, Pag> & Partial<{}>> & import("vue").PublicProps;
|
|
9
|
-
expose(exposed: import("vue").ShallowUnwrapRef<QdCrudListInstanceFunctions<D, R, P, TP, Pag>>): void;
|
|
10
|
-
attrs: any;
|
|
11
|
-
slots: {
|
|
12
|
-
[x: string]: ((props: any) => any) | undefined;
|
|
13
|
-
} & {
|
|
14
|
-
[x: string]: ((props: any) => any) | undefined;
|
|
15
|
-
} & {
|
|
16
|
-
actions?: (props: {}) => any;
|
|
17
|
-
} & {
|
|
18
|
-
default?: (props: {
|
|
19
|
-
data: D[];
|
|
20
|
-
}) => any;
|
|
21
|
-
};
|
|
22
|
-
emit: ((evt: "update:data", args_0: D[] | undefined) => void) & ((evt: "update:searchData", args_0: import("tdesign-vue-next").Data | undefined) => void);
|
|
23
|
-
}>) => import("vue").VNode & {
|
|
24
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
25
|
-
};
|
|
26
|
-
export default _default;
|
|
27
|
-
type __VLS_PrettifyLocal<T> = {
|
|
28
|
-
[K in keyof T]: T[K];
|
|
29
|
-
} & {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import _sfc_main from "./list.vue2.mjs";
|
|
2
|
-
/* empty css */
|
|
3
|
-
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const list = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-66a035f0"]]);
|
|
5
|
-
export {
|
|
6
|
-
list as default
|
|
7
|
-
};
|
|
8
|
-
//# sourceMappingURL=list.vue.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list.vue.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -1,199 +0,0 @@
|
|
|
1
|
-
import { defineComponent, mergeDefaults, computed, useTemplateRef, onMounted, createElementBlock, openBlock, normalizeClass, createCommentVNode, createVNode, createBlock, mergeProps, unref, isRef, createSlots, withCtx, createTextVNode, toDisplayString, renderList, renderSlot, normalizeProps, guardReactiveProps, nextTick } from "vue";
|
|
2
|
-
import { extractSlotsWithPrefix } from "qidian-shared";
|
|
3
|
-
import { Space, Button } from "tdesign-vue-next";
|
|
4
|
-
import { useVModels } from "../../node_modules/.pnpm/@vueuse_core@14.0.0_vue@3.5.22_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.mjs";
|
|
5
|
-
import { qdCrudListProps } from "./props.mjs";
|
|
6
|
-
import "tdesign-icons-vue-next";
|
|
7
|
-
import { useConfig } from "../config-provider/useConfig.mjs";
|
|
8
|
-
/* empty css */
|
|
9
|
-
import QdServiceList from "../service/list.vue.mjs";
|
|
10
|
-
/* empty css */
|
|
11
|
-
import QdCrudSearch from "./search.vue.mjs";
|
|
12
|
-
const _hoisted_1 = {
|
|
13
|
-
key: 0,
|
|
14
|
-
class: "qd-crud-list__header"
|
|
15
|
-
};
|
|
16
|
-
const _hoisted_2 = {
|
|
17
|
-
key: 1,
|
|
18
|
-
class: "qd-crud-list__toolbar"
|
|
19
|
-
};
|
|
20
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
21
|
-
__name: "list",
|
|
22
|
-
props: /* @__PURE__ */ mergeDefaults({
|
|
23
|
-
search: {},
|
|
24
|
-
searchData: {},
|
|
25
|
-
data: {},
|
|
26
|
-
loading: {
|
|
27
|
-
type: Boolean
|
|
28
|
-
},
|
|
29
|
-
loadingProps: {},
|
|
30
|
-
scroll: {},
|
|
31
|
-
loadingWithData: {
|
|
32
|
-
type: Boolean
|
|
33
|
-
},
|
|
34
|
-
asyncLoading: {},
|
|
35
|
-
footer: {},
|
|
36
|
-
header: {},
|
|
37
|
-
layout: {},
|
|
38
|
-
size: {},
|
|
39
|
-
split: {
|
|
40
|
-
type: Boolean
|
|
41
|
-
},
|
|
42
|
-
stripe: {
|
|
43
|
-
type: Boolean
|
|
44
|
-
},
|
|
45
|
-
onBefore: {
|
|
46
|
-
type: Function
|
|
47
|
-
},
|
|
48
|
-
onAfter: {
|
|
49
|
-
type: Function
|
|
50
|
-
},
|
|
51
|
-
onSuccess: {
|
|
52
|
-
type: Function
|
|
53
|
-
},
|
|
54
|
-
onError: {
|
|
55
|
-
type: Function
|
|
56
|
-
},
|
|
57
|
-
service: {
|
|
58
|
-
type: Function
|
|
59
|
-
},
|
|
60
|
-
manual: {
|
|
61
|
-
type: Boolean
|
|
62
|
-
},
|
|
63
|
-
transformParams: {
|
|
64
|
-
type: Function
|
|
65
|
-
},
|
|
66
|
-
transformRes: {
|
|
67
|
-
type: Function
|
|
68
|
-
},
|
|
69
|
-
pagination: {}
|
|
70
|
-
}, qdCrudListProps),
|
|
71
|
-
emits: ["update:searchData", "update:data"],
|
|
72
|
-
setup(__props, {
|
|
73
|
-
expose: __expose,
|
|
74
|
-
emit: __emit
|
|
75
|
-
}) {
|
|
76
|
-
const props = __props;
|
|
77
|
-
const emit = __emit;
|
|
78
|
-
const {
|
|
79
|
-
data,
|
|
80
|
-
searchData
|
|
81
|
-
} = useVModels(props, emit, {
|
|
82
|
-
passive: true
|
|
83
|
-
});
|
|
84
|
-
const {
|
|
85
|
-
t
|
|
86
|
-
} = useConfig("crud");
|
|
87
|
-
const reProps = computed(() => {
|
|
88
|
-
const {
|
|
89
|
-
data: data2,
|
|
90
|
-
searchData: inSearchData,
|
|
91
|
-
search,
|
|
92
|
-
transformParams,
|
|
93
|
-
...serviceListOptions
|
|
94
|
-
} = props;
|
|
95
|
-
const mergedTransformParams = (params) => {
|
|
96
|
-
const merged = {
|
|
97
|
-
...params,
|
|
98
|
-
...searchData.value
|
|
99
|
-
};
|
|
100
|
-
if (transformParams) return transformParams(merged);
|
|
101
|
-
return merged;
|
|
102
|
-
};
|
|
103
|
-
return {
|
|
104
|
-
searchOptions: search,
|
|
105
|
-
serviceListOptions: {
|
|
106
|
-
...serviceListOptions,
|
|
107
|
-
transformParams: mergedTransformParams
|
|
108
|
-
},
|
|
109
|
-
models: {
|
|
110
|
-
data: data2,
|
|
111
|
-
searchData: inSearchData
|
|
112
|
-
}
|
|
113
|
-
};
|
|
114
|
-
});
|
|
115
|
-
const searchRef = useTemplateRef("search");
|
|
116
|
-
const listRef = useTemplateRef("list");
|
|
117
|
-
function handleSearch() {
|
|
118
|
-
}
|
|
119
|
-
async function handleResetSearch() {
|
|
120
|
-
searchRef.value?.reset();
|
|
121
|
-
await nextTick();
|
|
122
|
-
searchRef.value?.submit();
|
|
123
|
-
}
|
|
124
|
-
function triggerSearch({
|
|
125
|
-
validateResult
|
|
126
|
-
}) {
|
|
127
|
-
if (validateResult !== true) return;
|
|
128
|
-
listRef.value?.refresh();
|
|
129
|
-
}
|
|
130
|
-
const expose = {};
|
|
131
|
-
onMounted(() => {
|
|
132
|
-
Object.assign(expose, listRef.value);
|
|
133
|
-
});
|
|
134
|
-
__expose(expose);
|
|
135
|
-
return (_ctx, _cache) => {
|
|
136
|
-
return openBlock(), createElementBlock("div", {
|
|
137
|
-
class: normalizeClass(["qd-crud-list", reProps.value.serviceListOptions.scroll?.target ? "qd-crud-list--has-scroll-target" : ""])
|
|
138
|
-
}, [reProps.value.searchOptions?.items?.length || _ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_1, [reProps.value.searchOptions?.items?.length ? (openBlock(), createBlock(QdCrudSearch, mergeProps({
|
|
139
|
-
key: 0,
|
|
140
|
-
ref: "search",
|
|
141
|
-
data: unref(searchData),
|
|
142
|
-
"onUpdate:data": _cache[0] || (_cache[0] = ($event) => isRef(searchData) ? searchData.value = $event : null)
|
|
143
|
-
}, reProps.value.searchOptions, {
|
|
144
|
-
"on-submit": triggerSearch
|
|
145
|
-
}), createSlots({
|
|
146
|
-
"form-footer": withCtx(() => [createVNode(unref(Space), {
|
|
147
|
-
align: "center",
|
|
148
|
-
size: "small"
|
|
149
|
-
}, {
|
|
150
|
-
default: withCtx(() => [createVNode(unref(Button), {
|
|
151
|
-
type: "submit",
|
|
152
|
-
onClick: handleSearch
|
|
153
|
-
}, {
|
|
154
|
-
default: withCtx(() => [createTextVNode(toDisplayString(unref(t)("searchText")), 1)]),
|
|
155
|
-
_: 1
|
|
156
|
-
}), createVNode(unref(Button), {
|
|
157
|
-
variant: "outline",
|
|
158
|
-
onClick: handleResetSearch
|
|
159
|
-
}, {
|
|
160
|
-
default: withCtx(() => [createTextVNode(toDisplayString(unref(t)("resetText")), 1)]),
|
|
161
|
-
_: 1
|
|
162
|
-
})]),
|
|
163
|
-
_: 1
|
|
164
|
-
})]),
|
|
165
|
-
_: 2
|
|
166
|
-
}, [renderList(unref(extractSlotsWithPrefix)(_ctx.$slots, "search"), (item) => {
|
|
167
|
-
return {
|
|
168
|
-
name: item.filterName,
|
|
169
|
-
fn: withCtx((slotProps) => [renderSlot(_ctx.$slots, item.originalName, normalizeProps(guardReactiveProps(slotProps)), void 0, true)])
|
|
170
|
-
};
|
|
171
|
-
})]), 1040, ["data"])) : createCommentVNode("", true), _ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_2, [createVNode(unref(Space), {
|
|
172
|
-
align: "center",
|
|
173
|
-
size: "small"
|
|
174
|
-
}, {
|
|
175
|
-
default: withCtx(() => [renderSlot(_ctx.$slots, "actions", {}, void 0, true)]),
|
|
176
|
-
_: 3
|
|
177
|
-
})])) : createCommentVNode("", true)])) : createCommentVNode("", true), createVNode(unref(QdServiceList), mergeProps({
|
|
178
|
-
ref: "list",
|
|
179
|
-
data: unref(data),
|
|
180
|
-
"onUpdate:data": _cache[1] || (_cache[1] = ($event) => isRef(data) ? data.value = $event : null)
|
|
181
|
-
}, reProps.value.serviceListOptions), createSlots({
|
|
182
|
-
_: 2
|
|
183
|
-
}, [_ctx.$slots.default ? {
|
|
184
|
-
name: "default",
|
|
185
|
-
fn: withCtx((slotProps) => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps)), void 0, true)]),
|
|
186
|
-
key: "0"
|
|
187
|
-
} : void 0, renderList(unref(extractSlotsWithPrefix)(_ctx.$slots, "list"), (item) => {
|
|
188
|
-
return {
|
|
189
|
-
name: item.filterName,
|
|
190
|
-
fn: withCtx((slotProps) => [renderSlot(_ctx.$slots, item.originalName, normalizeProps(guardReactiveProps(slotProps)), void 0, true)])
|
|
191
|
-
};
|
|
192
|
-
})]), 1040, ["data"])], 2);
|
|
193
|
-
};
|
|
194
|
-
}
|
|
195
|
-
});
|
|
196
|
-
export {
|
|
197
|
-
_sfc_main as default
|
|
198
|
-
};
|
|
199
|
-
//# sourceMappingURL=list.vue2.mjs.map
|