@vrojs/element-plus 0.0.1 → 0.0.3
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/dist/index.d.ts +16 -0
- package/dist/index.js +88 -0
- package/dist/locale/index.d.ts +3 -0
- package/dist/locale/index.js +7 -0
- package/dist/locale/lang/zh-cn.d.ts +47 -0
- package/dist/locale/lang/zh-cn.js +49 -0
- package/dist/locale/types.d.ts +7 -0
- package/dist/locale/types.js +1 -0
- package/dist/locale/useLocale.d.ts +53 -0
- package/dist/locale/useLocale.js +24 -0
- package/dist/style/css.js +4 -0
- package/dist/style/deps.js +26 -0
- package/dist/style/index.css +1 -0
- package/dist/style/index.js +30 -0
- package/dist/utils/datePickerValueFormat.d.ts +1 -0
- package/dist/utils/datePickerValueFormat.js +9 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.js +6 -0
- package/dist/vro-el-checkbox-group/index.d.ts +122 -0
- package/dist/vro-el-checkbox-group/index.js +9 -0
- package/dist/vro-el-checkbox-group/style/css.d.ts +0 -0
- package/dist/vro-el-checkbox-group/style/css.js +3 -0
- package/dist/vro-el-checkbox-group/style/deps.d.ts +0 -0
- package/dist/vro-el-checkbox-group/style/deps.js +2 -0
- package/dist/vro-el-checkbox-group/style/index.d.ts +0 -0
- package/dist/vro-el-checkbox-group/style/index.js +5 -0
- package/dist/vro-el-checkbox-group/types.d.ts +50 -0
- package/dist/vro-el-checkbox-group/types.js +16 -0
- package/dist/vro-el-checkbox-group/vro-el-checkbox-group.vue.d.ts +115 -0
- package/dist/vro-el-checkbox-group/vro-el-checkbox-group.vue.js +34 -0
- package/dist/vro-el-checkbox-group/vro-el-checkbox-group.vue2.js +4 -0
- package/dist/vro-el-config-provider/index.d.ts +46 -0
- package/dist/vro-el-config-provider/index.js +9 -0
- package/dist/vro-el-config-provider/style/css.d.ts +0 -0
- package/dist/vro-el-config-provider/style/css.js +3 -0
- package/dist/vro-el-config-provider/style/deps.d.ts +0 -0
- package/dist/vro-el-config-provider/style/deps.js +1 -0
- package/dist/vro-el-config-provider/style/index.d.ts +0 -0
- package/dist/vro-el-config-provider/style/index.js +3 -0
- package/dist/vro-el-config-provider/types.d.ts +14 -0
- package/dist/vro-el-config-provider/types.js +13 -0
- package/dist/vro-el-config-provider/vro-el-config-provider.vue.d.ts +29 -0
- package/dist/vro-el-config-provider/vro-el-config-provider.vue.js +17 -0
- package/dist/vro-el-config-provider/vro-el-config-provider.vue2.js +4 -0
- package/dist/vro-el-file-upload/index.d.ts +44 -0
- package/dist/vro-el-file-upload/index.js +12 -0
- package/dist/vro-el-file-upload/style/css.d.ts +0 -0
- package/dist/vro-el-file-upload/style/css.js +4 -0
- package/dist/vro-el-file-upload/style/deps.d.ts +0 -0
- package/dist/vro-el-file-upload/style/deps.js +2 -0
- package/dist/vro-el-file-upload/style/index.css +1 -0
- package/dist/vro-el-file-upload/style/index.d.ts +0 -0
- package/dist/vro-el-file-upload/style/index.js +6 -0
- package/dist/vro-el-file-upload/types.d.ts +39 -0
- package/dist/vro-el-file-upload/types.js +35 -0
- package/dist/vro-el-file-upload/utils.d.ts +2 -0
- package/dist/vro-el-file-upload/utils.js +6 -0
- package/dist/vro-el-file-upload/vro-el-file-upload.vue.d.ts +36 -0
- package/dist/vro-el-file-upload/vro-el-file-upload.vue.js +86 -0
- package/dist/vro-el-file-upload/vro-el-file-upload.vue2.js +4 -0
- package/dist/vro-el-icon/index.d.ts +82 -0
- package/dist/vro-el-icon/index.js +9 -0
- package/dist/vro-el-icon/style/css.d.ts +0 -0
- package/dist/vro-el-icon/style/css.js +3 -0
- package/dist/vro-el-icon/style/deps.d.ts +0 -0
- package/dist/vro-el-icon/style/deps.js +1 -0
- package/dist/vro-el-icon/style/index.d.ts +0 -0
- package/dist/vro-el-icon/style/index.js +4 -0
- package/dist/vro-el-icon/types.d.ts +20 -0
- package/dist/vro-el-icon/types.js +11 -0
- package/dist/vro-el-icon/vro-el-icon.vue.d.ts +53 -0
- package/dist/vro-el-icon/vro-el-icon.vue.js +33 -0
- package/dist/vro-el-icon/vro-el-icon.vue2.js +4 -0
- package/dist/vro-el-image-upload/index.d.ts +50 -0
- package/dist/vro-el-image-upload/index.js +12 -0
- package/dist/vro-el-image-upload/style/css.d.ts +0 -0
- package/dist/vro-el-image-upload/style/css.js +4 -0
- package/dist/vro-el-image-upload/style/deps.d.ts +0 -0
- package/dist/vro-el-image-upload/style/deps.js +4 -0
- package/dist/vro-el-image-upload/style/index.css +1 -0
- package/dist/vro-el-image-upload/style/index.d.ts +0 -0
- package/dist/vro-el-image-upload/style/index.js +8 -0
- package/dist/vro-el-image-upload/types.d.ts +38 -0
- package/dist/vro-el-image-upload/types.js +25 -0
- package/dist/vro-el-image-upload/utils.d.ts +2 -0
- package/dist/vro-el-image-upload/utils.js +6 -0
- package/dist/vro-el-image-upload/vro-el-image-upload.vue.d.ts +42 -0
- package/dist/vro-el-image-upload/vro-el-image-upload.vue.js +126 -0
- package/dist/vro-el-image-upload/vro-el-image-upload.vue2.js +4 -0
- package/dist/vro-el-radio-group/index.d.ts +79 -0
- package/dist/vro-el-radio-group/index.js +9 -0
- package/dist/vro-el-radio-group/style/css.d.ts +0 -0
- package/dist/vro-el-radio-group/style/css.js +3 -0
- package/dist/vro-el-radio-group/style/deps.d.ts +0 -0
- package/dist/vro-el-radio-group/style/deps.js +2 -0
- package/dist/vro-el-radio-group/style/index.d.ts +0 -0
- package/dist/vro-el-radio-group/style/index.js +5 -0
- package/dist/vro-el-radio-group/types.d.ts +38 -0
- package/dist/vro-el-radio-group/types.js +25 -0
- package/dist/vro-el-radio-group/vro-el-radio-group.vue.d.ts +72 -0
- package/dist/vro-el-radio-group/vro-el-radio-group.vue.js +34 -0
- package/dist/vro-el-radio-group/vro-el-radio-group.vue2.js +4 -0
- package/dist/vro-el-schema-filter/index.d.ts +596 -0
- package/dist/vro-el-schema-filter/index.js +9 -0
- package/dist/vro-el-schema-filter/style/css.d.ts +0 -0
- package/dist/vro-el-schema-filter/style/css.js +16 -0
- package/dist/vro-el-schema-filter/style/deps.d.ts +0 -0
- package/dist/vro-el-schema-filter/style/deps.js +22 -0
- package/dist/vro-el-schema-filter/style/index.css +1 -0
- package/dist/vro-el-schema-filter/style/index.d.ts +0 -0
- package/dist/vro-el-schema-filter/style/index.js +38 -0
- package/dist/vro-el-schema-filter/types.d.ts +41 -0
- package/dist/vro-el-schema-filter/types.js +26 -0
- package/dist/vro-el-schema-filter/vro-el-schema-filter.vue.d.ts +983 -0
- package/dist/vro-el-schema-filter/vro-el-schema-filter.vue.js +71 -0
- package/dist/vro-el-schema-filter/vro-el-schema-filter.vue2.js +4 -0
- package/dist/vro-el-schema-form/defineVroElSchemaFormCreateField.d.ts +2 -0
- package/dist/vro-el-schema-form/defineVroElSchemaFormCreateField.js +9 -0
- package/dist/vro-el-schema-form/defineVroElSchemaFormFieldTrigger.d.ts +9 -0
- package/dist/vro-el-schema-form/defineVroElSchemaFormFieldTrigger.js +6 -0
- package/dist/vro-el-schema-form/index.d.ts +563 -0
- package/dist/vro-el-schema-form/index.js +17 -0
- package/dist/vro-el-schema-form/style/css.d.ts +0 -0
- package/dist/vro-el-schema-form/style/css.js +14 -0
- package/dist/vro-el-schema-form/style/deps.d.ts +0 -0
- package/dist/vro-el-schema-form/style/deps.js +22 -0
- package/dist/vro-el-schema-form/style/index.css +1 -0
- package/dist/vro-el-schema-form/style/index.d.ts +0 -0
- package/dist/vro-el-schema-form/style/index.js +36 -0
- package/dist/vro-el-schema-form/types.d.ts +114 -0
- package/dist/vro-el-schema-form/types.js +42 -0
- package/dist/vro-el-schema-form/useVroElSchemaForm.d.ts +908 -0
- package/dist/vro-el-schema-form/useVroElSchemaForm.js +31 -0
- package/dist/vro-el-schema-form/vro-el-schema-form.vue.d.ts +391 -0
- package/dist/vro-el-schema-form/vro-el-schema-form.vue.js +120 -0
- package/dist/vro-el-schema-form/vro-el-schema-form.vue2.js +4 -0
- package/dist/vro-el-schema-form/vroElSchemaFormFieldManager.d.ts +2 -0
- package/dist/vro-el-schema-form/vroElSchemaFormFieldManager.js +32 -0
- package/dist/vro-el-schema-form-dialog/function-call.d.ts +3 -0
- package/dist/vro-el-schema-form-dialog/function-call.js +17 -0
- package/dist/vro-el-schema-form-dialog/index.d.ts +2182 -0
- package/dist/vro-el-schema-form-dialog/index.js +18 -0
- package/dist/vro-el-schema-form-dialog/injection.d.ts +9 -0
- package/dist/vro-el-schema-form-dialog/injection.js +9 -0
- package/dist/vro-el-schema-form-dialog/style/css.d.ts +0 -0
- package/dist/vro-el-schema-form-dialog/style/css.js +18 -0
- package/dist/vro-el-schema-form-dialog/style/deps.d.ts +0 -0
- package/dist/vro-el-schema-form-dialog/style/deps.js +24 -0
- package/dist/vro-el-schema-form-dialog/style/index.css +1 -0
- package/dist/vro-el-schema-form-dialog/style/index.d.ts +0 -0
- package/dist/vro-el-schema-form-dialog/style/index.js +42 -0
- package/dist/vro-el-schema-form-dialog/types.d.ts +79 -0
- package/dist/vro-el-schema-form-dialog/types.js +59 -0
- package/dist/vro-el-schema-form-dialog/useVroElSchemaFormDialog.d.ts +14 -0
- package/dist/vro-el-schema-form-dialog/useVroElSchemaFormDialog.js +18 -0
- package/dist/vro-el-schema-form-dialog/vro-el-schema-form-dialog.vue.d.ts +1794 -0
- package/dist/vro-el-schema-form-dialog/vro-el-schema-form-dialog.vue.js +135 -0
- package/dist/vro-el-schema-form-dialog/vro-el-schema-form-dialog.vue2.js +4 -0
- package/dist/vro-el-select/index.d.ts +259 -0
- package/dist/vro-el-select/index.js +9 -0
- package/dist/vro-el-select/style/css.d.ts +0 -0
- package/dist/vro-el-select/style/css.js +3 -0
- package/dist/vro-el-select/style/deps.d.ts +0 -0
- package/dist/vro-el-select/style/deps.js +2 -0
- package/dist/vro-el-select/style/index.d.ts +0 -0
- package/dist/vro-el-select/style/index.js +5 -0
- package/dist/vro-el-select/types.d.ts +105 -0
- package/dist/vro-el-select/types.js +16 -0
- package/dist/vro-el-select/vro-el-select.vue.d.ts +252 -0
- package/dist/vro-el-select/vro-el-select.vue.js +30 -0
- package/dist/vro-el-select/vro-el-select.vue2.js +4 -0
- package/dist/vro-el-skeleton/index.d.ts +154 -0
- package/dist/vro-el-skeleton/index.js +9 -0
- package/dist/vro-el-skeleton/style/css.d.ts +0 -0
- package/dist/vro-el-skeleton/style/css.js +5 -0
- package/dist/vro-el-skeleton/style/deps.d.ts +0 -0
- package/dist/vro-el-skeleton/style/deps.js +3 -0
- package/dist/vro-el-skeleton/style/index.css +1 -0
- package/dist/vro-el-skeleton/style/index.d.ts +0 -0
- package/dist/vro-el-skeleton/style/index.js +8 -0
- package/dist/vro-el-skeleton/types.d.ts +72 -0
- package/{src/vro-el-skeleton/types.ts → dist/vro-el-skeleton/types.js} +15 -29
- package/dist/vro-el-skeleton/vro-el-skeleton.vue.d.ts +95 -0
- package/dist/vro-el-skeleton/vro-el-skeleton.vue.js +85 -0
- package/dist/vro-el-skeleton/vro-el-skeleton.vue2.js +4 -0
- package/dist/vro-el-tags/index.d.ts +223 -0
- package/dist/vro-el-tags/index.js +9 -0
- package/dist/vro-el-tags/style/css.d.ts +0 -0
- package/dist/vro-el-tags/style/css.js +3 -0
- package/dist/vro-el-tags/style/deps.d.ts +0 -0
- package/dist/vro-el-tags/style/deps.js +3 -0
- package/dist/vro-el-tags/style/index.d.ts +0 -0
- package/dist/vro-el-tags/style/index.js +6 -0
- package/dist/vro-el-tags/types.d.ts +18 -0
- package/dist/vro-el-tags/types.js +19 -0
- package/dist/vro-el-tags/vro-el-tags.vue.d.ts +217 -0
- package/dist/vro-el-tags/vro-el-tags.vue.js +62 -0
- package/dist/vro-el-tags/vro-el-tags.vue2.js +4 -0
- package/dist/vro-el-tree/index.d.ts +86 -0
- package/dist/vro-el-tree/index.js +9 -0
- package/dist/vro-el-tree/style/css.d.ts +0 -0
- package/dist/vro-el-tree/style/css.js +4 -0
- package/dist/vro-el-tree/style/deps.d.ts +0 -0
- package/dist/vro-el-tree/style/deps.js +1 -0
- package/dist/vro-el-tree/style/index.css +1 -0
- package/dist/vro-el-tree/style/index.d.ts +0 -0
- package/dist/vro-el-tree/style/index.js +5 -0
- package/dist/vro-el-tree/types.d.ts +32 -0
- package/dist/vro-el-tree/types.js +26 -0
- package/dist/vro-el-tree/vro-el-tree.vue.d.ts +52 -0
- package/dist/vro-el-tree/vro-el-tree.vue.js +56 -0
- package/dist/vro-el-tree/vro-el-tree.vue2.js +4 -0
- package/dist/vro-el-with-config/index.d.ts +32 -0
- package/dist/vro-el-with-config/index.js +9 -0
- package/dist/vro-el-with-config/style/css.d.ts +0 -0
- package/dist/vro-el-with-config/style/css.js +4 -0
- package/dist/vro-el-with-config/style/deps.d.ts +0 -0
- package/dist/vro-el-with-config/style/deps.js +1 -0
- package/dist/vro-el-with-config/style/index.d.ts +0 -0
- package/dist/vro-el-with-config/style/index.js +5 -0
- package/dist/vro-el-with-config/types.d.ts +15 -0
- package/dist/vro-el-with-config/types.js +14 -0
- package/dist/vro-el-with-config/vro-el-with-config.vue.d.ts +25 -0
- package/dist/vro-el-with-config/vro-el-with-config.vue.js +32 -0
- package/dist/vro-el-with-config/vro-el-with-config.vue2.js +4 -0
- package/package.json +18 -12
- package/src/index.ts +0 -13
- package/src/locale/index.ts +0 -3
- package/src/locale/lang/zh-cn.ts +0 -22
- package/src/locale/types.ts +0 -8
- package/src/locale/useLocale.ts +0 -42
- package/src/style/base.scss +0 -2
- package/src/style/css.ts +0 -2
- package/src/style/deps.ts +0 -9
- package/src/style/index.scss +0 -12
- package/src/style/index.ts +0 -2
- package/src/utils/datePickerValueFormat.ts +0 -6
- package/src/utils/index.ts +0 -2
- package/src/vro-el-checkbox-group/README.md +0 -83
- package/src/vro-el-checkbox-group/index.ts +0 -16
- package/src/vro-el-checkbox-group/style/css.ts +0 -2
- package/src/vro-el-checkbox-group/style/deps.ts +0 -2
- package/src/vro-el-checkbox-group/style/index.scss +0 -1
- package/src/vro-el-checkbox-group/style/index.ts +0 -2
- package/src/vro-el-checkbox-group/types.ts +0 -18
- package/src/vro-el-checkbox-group/vro-el-checkbox-group.vue +0 -33
- package/src/vro-el-config-provider/README.md +0 -65
- package/src/vro-el-config-provider/index.ts +0 -16
- package/src/vro-el-config-provider/style/css.ts +0 -2
- package/src/vro-el-config-provider/style/index.ts +0 -2
- package/src/vro-el-config-provider/types.ts +0 -18
- package/src/vro-el-config-provider/vro-el-config-provider.vue +0 -19
- package/src/vro-el-file-upload/README.md +0 -89
- package/src/vro-el-file-upload/index.ts +0 -17
- package/src/vro-el-file-upload/style/css.ts +0 -2
- package/src/vro-el-file-upload/style/deps.ts +0 -2
- package/src/vro-el-file-upload/style/index.scss +0 -30
- package/src/vro-el-file-upload/style/index.ts +0 -2
- package/src/vro-el-file-upload/types.ts +0 -50
- package/src/vro-el-file-upload/utils.ts +0 -7
- package/src/vro-el-file-upload/vro-el-file-upload.vue +0 -95
- package/src/vro-el-icon/README.md +0 -68
- package/src/vro-el-icon/index.ts +0 -16
- package/src/vro-el-icon/style/css.ts +0 -2
- package/src/vro-el-icon/style/deps.ts +0 -1
- package/src/vro-el-icon/style/index.scss +0 -1
- package/src/vro-el-icon/style/index.ts +0 -2
- package/src/vro-el-icon/types.ts +0 -12
- package/src/vro-el-icon/vro-el-icon.vue +0 -28
- package/src/vro-el-image-upload/README.md +0 -99
- package/src/vro-el-image-upload/index.ts +0 -17
- package/src/vro-el-image-upload/style/css.ts +0 -2
- package/src/vro-el-image-upload/style/deps.ts +0 -4
- package/src/vro-el-image-upload/style/index.scss +0 -55
- package/src/vro-el-image-upload/style/index.ts +0 -2
- package/src/vro-el-image-upload/types.ts +0 -42
- package/src/vro-el-image-upload/utils.ts +0 -7
- package/src/vro-el-image-upload/vro-el-image-upload.vue +0 -134
- package/src/vro-el-schema-form-dialog/README.md +0 -64
- package/src/vro-el-schema-form-dialog/function-call.ts +0 -12
- package/src/vro-el-schema-form-dialog/index.ts +0 -17
- package/src/vro-el-schema-form-dialog/style/css.ts +0 -2
- package/src/vro-el-schema-form-dialog/style/index.scss +0 -1
- package/src/vro-el-schema-form-dialog/style/index.ts +0 -2
- package/src/vro-el-schema-form-dialog/types.ts +0 -5
- package/src/vro-el-schema-form-dialog/vro-el-schema-form-dialog.vue +0 -32
- package/src/vro-el-select/README.md +0 -83
- package/src/vro-el-select/index.ts +0 -16
- package/src/vro-el-select/style/css.ts +0 -2
- package/src/vro-el-select/style/deps.ts +0 -2
- package/src/vro-el-select/style/index.scss +0 -1
- package/src/vro-el-select/style/index.ts +0 -2
- package/src/vro-el-select/types.ts +0 -18
- package/src/vro-el-select/vro-el-select.vue +0 -33
- package/src/vro-el-skeleton/README.md +0 -128
- package/src/vro-el-skeleton/index.ts +0 -16
- package/src/vro-el-skeleton/style/css.ts +0 -3
- package/src/vro-el-skeleton/style/deps.ts +0 -3
- package/src/vro-el-skeleton/style/index.scss +0 -24
- package/src/vro-el-skeleton/style/index.ts +0 -2
- package/src/vro-el-skeleton/vro-el-skeleton.vue +0 -73
- package/src/vro-el-with-config/README.md +0 -75
- package/src/vro-el-with-config/index.ts +0 -16
- package/src/vro-el-with-config/style/css.ts +0 -3
- package/src/vro-el-with-config/style/deps.ts +0 -2
- package/src/vro-el-with-config/style/index.ts +0 -2
- package/src/vro-el-with-config/types.ts +0 -18
- package/src/vro-el-with-config/vro-el-with-config.vue +0 -48
- /package/{src/vro-el-config-provider/style/deps.ts → dist/style/base.css} +0 -0
- /package/{src/vro-el-config-provider/style/index.scss → dist/style/css.d.ts} +0 -0
- /package/{src/vro-el-schema-form-dialog/style/deps.ts → dist/style/deps.d.ts} +0 -0
- /package/{src/vro-el-with-config/style/index.scss → dist/style/index.d.ts} +0 -0
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
import { nextTick } from 'vue';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
+
modelValue: {
|
|
4
|
+
type: import('vue').PropType<string[]>;
|
|
5
|
+
default: () => never[];
|
|
6
|
+
};
|
|
7
|
+
disabled: {
|
|
8
|
+
type: BooleanConstructor;
|
|
9
|
+
default: boolean;
|
|
10
|
+
};
|
|
11
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
|
+
"update:modelValue": (...args: any[]) => void;
|
|
13
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
14
|
+
modelValue: {
|
|
15
|
+
type: import('vue').PropType<string[]>;
|
|
16
|
+
default: () => never[];
|
|
17
|
+
};
|
|
18
|
+
disabled: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
22
|
+
}>> & Readonly<{
|
|
23
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
24
|
+
}>, {
|
|
25
|
+
disabled: boolean;
|
|
26
|
+
modelValue: string[];
|
|
27
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
28
|
+
inputRef: ({
|
|
29
|
+
$: import('vue').ComponentInternalInstance;
|
|
30
|
+
$data: {};
|
|
31
|
+
$props: {
|
|
32
|
+
readonly id?: string | undefined;
|
|
33
|
+
readonly size?: import('element-plus').ComponentSize | undefined;
|
|
34
|
+
readonly disabled?: boolean | undefined;
|
|
35
|
+
readonly modelValue?: string | number | null | undefined | undefined;
|
|
36
|
+
readonly modelModifiers?: import('element-plus').InputModelModifiers | undefined;
|
|
37
|
+
readonly maxlength?: string | number | undefined;
|
|
38
|
+
readonly minlength?: string | number | undefined;
|
|
39
|
+
readonly type?: import('element-plus').InputType | undefined;
|
|
40
|
+
readonly resize?: "none" | "both" | "horizontal" | "vertical" | undefined;
|
|
41
|
+
readonly autosize?: import('element-plus').InputAutoSize | undefined;
|
|
42
|
+
readonly autocomplete?: string | undefined;
|
|
43
|
+
readonly formatter?: ((value: string) => string) | undefined;
|
|
44
|
+
readonly parser?: ((value: string) => string) | undefined;
|
|
45
|
+
readonly placeholder?: string | undefined;
|
|
46
|
+
readonly form?: string | undefined;
|
|
47
|
+
readonly readonly?: boolean | undefined;
|
|
48
|
+
readonly clearable?: boolean | undefined;
|
|
49
|
+
readonly clearIcon?: import('element-plus/es/utils/vue/icon.mjs').IconPropType | undefined;
|
|
50
|
+
readonly showPassword?: boolean | undefined;
|
|
51
|
+
readonly showWordLimit?: boolean | undefined;
|
|
52
|
+
readonly wordLimitPosition?: "inside" | "outside" | undefined;
|
|
53
|
+
readonly suffixIcon?: import('element-plus/es/utils/vue/icon.mjs').IconPropType | undefined;
|
|
54
|
+
readonly prefixIcon?: import('element-plus/es/utils/vue/icon.mjs').IconPropType | undefined;
|
|
55
|
+
readonly containerRole?: string | undefined;
|
|
56
|
+
readonly tabindex?: string | number | undefined;
|
|
57
|
+
readonly validateEvent?: boolean | undefined;
|
|
58
|
+
readonly inputStyle?: import('vue').StyleValue;
|
|
59
|
+
readonly autofocus?: boolean | undefined;
|
|
60
|
+
readonly rows?: number | undefined;
|
|
61
|
+
readonly ariaLabel?: string | undefined;
|
|
62
|
+
readonly inputmode?: "search" | "text" | "email" | "tel" | "url" | "decimal" | "none" | "numeric" | undefined;
|
|
63
|
+
readonly name?: string | undefined;
|
|
64
|
+
readonly countGraphemes?: ((value: string) => number) | undefined;
|
|
65
|
+
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined | undefined;
|
|
66
|
+
readonly onInput?: ((value: string) => any) | undefined | undefined;
|
|
67
|
+
readonly onChange?: ((value: string, evt?: Event | undefined) => any) | undefined | undefined;
|
|
68
|
+
readonly onFocus?: ((evt: FocusEvent) => any) | undefined | undefined;
|
|
69
|
+
readonly onBlur?: ((evt: FocusEvent) => any) | undefined | undefined;
|
|
70
|
+
readonly onClear?: ((evt: MouseEvent | undefined) => any) | undefined | undefined;
|
|
71
|
+
readonly onMouseleave?: ((evt: MouseEvent) => any) | undefined | undefined;
|
|
72
|
+
readonly onMouseenter?: ((evt: MouseEvent) => any) | undefined | undefined;
|
|
73
|
+
readonly onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined | undefined;
|
|
74
|
+
readonly onCompositionstart?: ((evt: CompositionEvent) => any) | undefined | undefined;
|
|
75
|
+
readonly onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined | undefined;
|
|
76
|
+
readonly onCompositionend?: ((evt: CompositionEvent) => any) | undefined | undefined;
|
|
77
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
78
|
+
$attrs: {
|
|
79
|
+
[x: string]: unknown;
|
|
80
|
+
};
|
|
81
|
+
$refs: {
|
|
82
|
+
[x: string]: unknown;
|
|
83
|
+
};
|
|
84
|
+
$slots: Readonly<{
|
|
85
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
86
|
+
}>;
|
|
87
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
88
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
89
|
+
$host: Element | null;
|
|
90
|
+
$emit: ((event: "input", value: string) => void) & ((event: "clear", evt: MouseEvent | undefined) => void) & ((event: "blur", evt: FocusEvent) => void) & ((event: "change", value: string, evt?: Event | undefined) => void) & ((event: "compositionend", evt: CompositionEvent) => void) & ((event: "compositionstart", evt: CompositionEvent) => void) & ((event: "compositionupdate", evt: CompositionEvent) => void) & ((event: "focus", evt: FocusEvent) => void) & ((event: "keydown", evt: Event | KeyboardEvent) => void) & ((event: "mouseenter", evt: MouseEvent) => void) & ((event: "mouseleave", evt: MouseEvent) => void) & ((event: "update:modelValue", value: string) => void);
|
|
91
|
+
$el: any;
|
|
92
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('element-plus').InputProps> & Readonly<{
|
|
93
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
94
|
+
onInput?: ((value: string) => any) | undefined;
|
|
95
|
+
onChange?: ((value: string, evt?: Event | undefined) => any) | undefined;
|
|
96
|
+
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
|
97
|
+
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
98
|
+
onClear?: ((evt: MouseEvent | undefined) => any) | undefined;
|
|
99
|
+
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
100
|
+
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
|
101
|
+
onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined;
|
|
102
|
+
onCompositionstart?: ((evt: CompositionEvent) => any) | undefined;
|
|
103
|
+
onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined;
|
|
104
|
+
onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
|
|
105
|
+
}>, {
|
|
106
|
+
input: import('vue').ShallowRef<HTMLInputElement | undefined, HTMLInputElement | undefined>;
|
|
107
|
+
textarea: import('vue').ShallowRef<HTMLTextAreaElement | undefined, HTMLTextAreaElement | undefined>;
|
|
108
|
+
ref: import('vue').ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
|
|
109
|
+
textareaStyle: import('vue').ComputedRef<import('vue').StyleValue>;
|
|
110
|
+
autosize: import('vue').Ref<import('element-plus').InputAutoSize | undefined, import('element-plus').InputAutoSize | undefined>;
|
|
111
|
+
isComposing: import('vue').Ref<boolean, boolean>;
|
|
112
|
+
passwordVisible: import('vue').Ref<boolean, boolean>;
|
|
113
|
+
focus: () => void | undefined;
|
|
114
|
+
blur: () => void | undefined;
|
|
115
|
+
select: () => void;
|
|
116
|
+
clear: (evt?: MouseEvent) => void;
|
|
117
|
+
resizeTextarea: () => void;
|
|
118
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
119
|
+
"update:modelValue": (value: string) => void;
|
|
120
|
+
input: (value: string) => void;
|
|
121
|
+
change: (value: string, evt?: Event | undefined) => void;
|
|
122
|
+
focus: (evt: FocusEvent) => void;
|
|
123
|
+
blur: (evt: FocusEvent) => void;
|
|
124
|
+
clear: (evt: MouseEvent | undefined) => void;
|
|
125
|
+
mouseleave: (evt: MouseEvent) => void;
|
|
126
|
+
mouseenter: (evt: MouseEvent) => void;
|
|
127
|
+
keydown: (evt: Event | KeyboardEvent) => void;
|
|
128
|
+
compositionstart: (evt: CompositionEvent) => void;
|
|
129
|
+
compositionupdate: (evt: CompositionEvent) => void;
|
|
130
|
+
compositionend: (evt: CompositionEvent) => void;
|
|
131
|
+
}, string, {
|
|
132
|
+
disabled: boolean;
|
|
133
|
+
modelValue: string | number | null;
|
|
134
|
+
modelModifiers: import('element-plus').InputModelModifiers;
|
|
135
|
+
type: import('element-plus').InputType;
|
|
136
|
+
autocomplete: string;
|
|
137
|
+
clearIcon: import('element-plus/es/utils/vue/icon.mjs').IconPropType;
|
|
138
|
+
wordLimitPosition: "inside" | "outside";
|
|
139
|
+
tabindex: string | number;
|
|
140
|
+
validateEvent: boolean;
|
|
141
|
+
inputStyle: string | false | import('vue').CSSProperties | import('vue').StyleValue[] | null;
|
|
142
|
+
rows: number;
|
|
143
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
144
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
145
|
+
created?: (() => void) | (() => void)[];
|
|
146
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
147
|
+
mounted?: (() => void) | (() => void)[];
|
|
148
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
149
|
+
updated?: (() => void) | (() => void)[];
|
|
150
|
+
activated?: (() => void) | (() => void)[];
|
|
151
|
+
deactivated?: (() => void) | (() => void)[];
|
|
152
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
153
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
154
|
+
destroyed?: (() => void) | (() => void)[];
|
|
155
|
+
unmounted?: (() => void) | (() => void)[];
|
|
156
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
157
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
158
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
159
|
+
};
|
|
160
|
+
$forceUpdate: () => void;
|
|
161
|
+
$nextTick: typeof nextTick;
|
|
162
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
163
|
+
} & Readonly<{
|
|
164
|
+
disabled: boolean;
|
|
165
|
+
modelValue: string | number | null;
|
|
166
|
+
modelModifiers: import('element-plus').InputModelModifiers;
|
|
167
|
+
type: import('element-plus').InputType;
|
|
168
|
+
autocomplete: string;
|
|
169
|
+
clearIcon: import('element-plus/es/utils/vue/icon.mjs').IconPropType;
|
|
170
|
+
wordLimitPosition: "inside" | "outside";
|
|
171
|
+
tabindex: string | number;
|
|
172
|
+
validateEvent: boolean;
|
|
173
|
+
inputStyle: string | false | import('vue').CSSProperties | import('vue').StyleValue[] | null;
|
|
174
|
+
rows: number;
|
|
175
|
+
}> & Omit<Readonly<import('element-plus').InputProps> & Readonly<{
|
|
176
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
177
|
+
onInput?: ((value: string) => any) | undefined;
|
|
178
|
+
onChange?: ((value: string, evt?: Event | undefined) => any) | undefined;
|
|
179
|
+
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
|
180
|
+
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
181
|
+
onClear?: ((evt: MouseEvent | undefined) => any) | undefined;
|
|
182
|
+
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
183
|
+
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
|
184
|
+
onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined;
|
|
185
|
+
onCompositionstart?: ((evt: CompositionEvent) => any) | undefined;
|
|
186
|
+
onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined;
|
|
187
|
+
onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
|
|
188
|
+
}>, "input" | "select" | "textarea" | "clear" | "type" | "blur" | "focus" | "disabled" | "modelValue" | "ref" | "validateEvent" | "tabindex" | "autocomplete" | "clearIcon" | "inputStyle" | "modelModifiers" | "autosize" | "wordLimitPosition" | "rows" | "textareaStyle" | "isComposing" | "passwordVisible" | "resizeTextarea"> & import('vue').ShallowUnwrapRef<{
|
|
189
|
+
input: import('vue').ShallowRef<HTMLInputElement | undefined, HTMLInputElement | undefined>;
|
|
190
|
+
textarea: import('vue').ShallowRef<HTMLTextAreaElement | undefined, HTMLTextAreaElement | undefined>;
|
|
191
|
+
ref: import('vue').ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
|
|
192
|
+
textareaStyle: import('vue').ComputedRef<import('vue').StyleValue>;
|
|
193
|
+
autosize: import('vue').Ref<import('element-plus').InputAutoSize | undefined, import('element-plus').InputAutoSize | undefined>;
|
|
194
|
+
isComposing: import('vue').Ref<boolean, boolean>;
|
|
195
|
+
passwordVisible: import('vue').Ref<boolean, boolean>;
|
|
196
|
+
focus: () => void | undefined;
|
|
197
|
+
blur: () => void | undefined;
|
|
198
|
+
select: () => void;
|
|
199
|
+
clear: (evt?: MouseEvent) => void;
|
|
200
|
+
resizeTextarea: () => void;
|
|
201
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
202
|
+
$slots: {
|
|
203
|
+
prepend?: (props: {}) => any;
|
|
204
|
+
} & {
|
|
205
|
+
prefix?: (props: {}) => any;
|
|
206
|
+
} & {
|
|
207
|
+
suffix?: (props: {}) => any;
|
|
208
|
+
} & {
|
|
209
|
+
'password-icon'?: (props: {
|
|
210
|
+
visible: boolean;
|
|
211
|
+
}) => any;
|
|
212
|
+
} & {
|
|
213
|
+
append?: (props: {}) => any;
|
|
214
|
+
};
|
|
215
|
+
}) | null;
|
|
216
|
+
}, HTMLDivElement>;
|
|
217
|
+
export default _default;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { defineComponent as h, ref as r, createElementBlock as f, openBlock as o, createBlock as i, createCommentVNode as E, Fragment as T, renderList as B, unref as a, withCtx as v, createTextVNode as V, toDisplayString as g, withKeys as w, nextTick as I } from "vue";
|
|
2
|
+
import { Plus as $ } from "@element-plus/icons-vue";
|
|
3
|
+
import { ElTag as x, ElInput as K, ElButton as L } from "element-plus";
|
|
4
|
+
import { useLocale as N } from "../locale/useLocale.js";
|
|
5
|
+
import { vroElTagsProps as P } from "./types.js";
|
|
6
|
+
const R = { class: "vro-el-tags" }, q = /* @__PURE__ */ h({
|
|
7
|
+
name: "VroElTags",
|
|
8
|
+
__name: "vro-el-tags",
|
|
9
|
+
props: P,
|
|
10
|
+
emits: ["update:modelValue"],
|
|
11
|
+
setup(k, { emit: C }) {
|
|
12
|
+
const m = C, c = k, { t: b } = N(), n = r(""), u = r(!1), d = r(), y = (e) => {
|
|
13
|
+
const t = c.modelValue.filter((l, s) => s !== e);
|
|
14
|
+
m("update:modelValue", t);
|
|
15
|
+
}, _ = () => {
|
|
16
|
+
u.value = !0, I(() => {
|
|
17
|
+
d.value?.input?.focus();
|
|
18
|
+
});
|
|
19
|
+
}, p = () => {
|
|
20
|
+
const e = [...c.modelValue], t = n.value.trim();
|
|
21
|
+
t && e.push(t), m("update:modelValue", e), u.value = !1, n.value = "";
|
|
22
|
+
};
|
|
23
|
+
return (e, t) => (o(), f("div", R, [
|
|
24
|
+
(o(!0), f(T, null, B(e.modelValue, (l, s) => (o(), i(a(x), {
|
|
25
|
+
key: `${l}-${s}`,
|
|
26
|
+
class: "vro-el-tag",
|
|
27
|
+
size: "large",
|
|
28
|
+
closable: !e.disabled,
|
|
29
|
+
"disable-transitions": !1,
|
|
30
|
+
onClose: (z) => y(s)
|
|
31
|
+
}, {
|
|
32
|
+
default: v(() => [
|
|
33
|
+
V(g(l), 1)
|
|
34
|
+
]),
|
|
35
|
+
_: 2
|
|
36
|
+
}, 1032, ["closable", "onClose"]))), 128)),
|
|
37
|
+
u.value ? (o(), i(a(K), {
|
|
38
|
+
key: 0,
|
|
39
|
+
ref_key: "inputRef",
|
|
40
|
+
ref: d,
|
|
41
|
+
modelValue: n.value,
|
|
42
|
+
"onUpdate:modelValue": t[0] || (t[0] = (l) => n.value = l),
|
|
43
|
+
class: "vro-el-tag-input",
|
|
44
|
+
onKeyup: w(p, ["enter"]),
|
|
45
|
+
onBlur: p
|
|
46
|
+
}, null, 8, ["modelValue"])) : e.disabled ? E("", !0) : (o(), i(a(L), {
|
|
47
|
+
key: 1,
|
|
48
|
+
class: "vro-el-tag-btn",
|
|
49
|
+
icon: a($),
|
|
50
|
+
onClick: _
|
|
51
|
+
}, {
|
|
52
|
+
default: v(() => [
|
|
53
|
+
V(g(a(b)("tags.addText")), 1)
|
|
54
|
+
]),
|
|
55
|
+
_: 1
|
|
56
|
+
}, 8, ["icon"]))
|
|
57
|
+
]));
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
export {
|
|
61
|
+
q as default
|
|
62
|
+
};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
export * from './types';
|
|
2
|
+
export declare const VroElTree: import('@vrojs/base').WithInstall<{
|
|
3
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
4
|
+
modelValue: {
|
|
5
|
+
type: import('vue').PropType<import('./types').VroElTreeKey[]>;
|
|
6
|
+
default: () => never[];
|
|
7
|
+
};
|
|
8
|
+
options: {
|
|
9
|
+
type: import('vue').PropType<import('./types').VroElTreeOption[]>;
|
|
10
|
+
default: () => never[];
|
|
11
|
+
};
|
|
12
|
+
rootId: {
|
|
13
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
}>> & Readonly<{
|
|
17
|
+
"onUpdate:modelValue"?: ((value: import('./types').VroElTreeKey[]) => any) | undefined;
|
|
18
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
19
|
+
"update:modelValue": (value: import('./types').VroElTreeKey[]) => any;
|
|
20
|
+
}, import('vue').PublicProps, {
|
|
21
|
+
modelValue: import('./types').VroElTreeKey[];
|
|
22
|
+
options: import('./types').VroElTreeOption[];
|
|
23
|
+
rootId: string | number;
|
|
24
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
25
|
+
P: {};
|
|
26
|
+
B: {};
|
|
27
|
+
D: {};
|
|
28
|
+
C: {};
|
|
29
|
+
M: {};
|
|
30
|
+
Defaults: {};
|
|
31
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
32
|
+
modelValue: {
|
|
33
|
+
type: import('vue').PropType<import('./types').VroElTreeKey[]>;
|
|
34
|
+
default: () => never[];
|
|
35
|
+
};
|
|
36
|
+
options: {
|
|
37
|
+
type: import('vue').PropType<import('./types').VroElTreeOption[]>;
|
|
38
|
+
default: () => never[];
|
|
39
|
+
};
|
|
40
|
+
rootId: {
|
|
41
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
44
|
+
}>> & Readonly<{
|
|
45
|
+
"onUpdate:modelValue"?: ((value: import('./types').VroElTreeKey[]) => any) | undefined;
|
|
46
|
+
}>, {}, {}, {}, {}, {
|
|
47
|
+
modelValue: import('./types').VroElTreeKey[];
|
|
48
|
+
options: import('./types').VroElTreeOption[];
|
|
49
|
+
rootId: string | number;
|
|
50
|
+
}>;
|
|
51
|
+
__isFragment?: never;
|
|
52
|
+
__isTeleport?: never;
|
|
53
|
+
__isSuspense?: never;
|
|
54
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
55
|
+
modelValue: {
|
|
56
|
+
type: import('vue').PropType<import('./types').VroElTreeKey[]>;
|
|
57
|
+
default: () => never[];
|
|
58
|
+
};
|
|
59
|
+
options: {
|
|
60
|
+
type: import('vue').PropType<import('./types').VroElTreeOption[]>;
|
|
61
|
+
default: () => never[];
|
|
62
|
+
};
|
|
63
|
+
rootId: {
|
|
64
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
65
|
+
default: string;
|
|
66
|
+
};
|
|
67
|
+
}>> & Readonly<{
|
|
68
|
+
"onUpdate:modelValue"?: ((value: import('./types').VroElTreeKey[]) => any) | undefined;
|
|
69
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
70
|
+
"update:modelValue": (value: import('./types').VroElTreeKey[]) => any;
|
|
71
|
+
}, string, {
|
|
72
|
+
modelValue: import('./types').VroElTreeKey[];
|
|
73
|
+
options: import('./types').VroElTreeOption[];
|
|
74
|
+
rootId: string | number;
|
|
75
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
76
|
+
$slots: {
|
|
77
|
+
default?(_: any): any;
|
|
78
|
+
};
|
|
79
|
+
})>;
|
|
80
|
+
export default VroElTree;
|
|
81
|
+
export type VroElTreeInstance = InstanceType<typeof VroElTree>;
|
|
82
|
+
declare module 'vue' {
|
|
83
|
+
interface GlobalComponents {
|
|
84
|
+
VroElTree: typeof VroElTree;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "element-plus/es/components/tree/style/css";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.vro-el-tree{-webkit-user-select:none;user-select:none}
|
|
File without changes
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
export type VroElTreeKey = string | number;
|
|
3
|
+
export interface VroElTreeOption {
|
|
4
|
+
id: VroElTreeKey;
|
|
5
|
+
parentId?: VroElTreeKey;
|
|
6
|
+
children?: VroElTreeOption[];
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
}
|
|
9
|
+
export declare const vroElTreeProps: {
|
|
10
|
+
/**
|
|
11
|
+
* 选中的节点 id 列表,包含半选和全选节点。
|
|
12
|
+
*/
|
|
13
|
+
modelValue: {
|
|
14
|
+
type: PropType<VroElTreeKey[]>;
|
|
15
|
+
default: () => never[];
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* 树节点数据,节点需要包含 id,可通过 parentId 表示父级关系。
|
|
19
|
+
*/
|
|
20
|
+
options: {
|
|
21
|
+
type: PropType<VroElTreeOption[]>;
|
|
22
|
+
default: () => never[];
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* 根节点 id,用于判断顶层节点的选中链路。
|
|
26
|
+
*/
|
|
27
|
+
rootId: {
|
|
28
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export type VroElTreeProps = ExtractPropTypes<typeof vroElTreeProps>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
const e = {
|
|
2
|
+
/**
|
|
3
|
+
* 选中的节点 id 列表,包含半选和全选节点。
|
|
4
|
+
*/
|
|
5
|
+
modelValue: {
|
|
6
|
+
type: Array,
|
|
7
|
+
default: () => []
|
|
8
|
+
},
|
|
9
|
+
/**
|
|
10
|
+
* 树节点数据,节点需要包含 id,可通过 parentId 表示父级关系。
|
|
11
|
+
*/
|
|
12
|
+
options: {
|
|
13
|
+
type: Array,
|
|
14
|
+
default: () => []
|
|
15
|
+
},
|
|
16
|
+
/**
|
|
17
|
+
* 根节点 id,用于判断顶层节点的选中链路。
|
|
18
|
+
*/
|
|
19
|
+
rootId: {
|
|
20
|
+
type: [String, Number],
|
|
21
|
+
default: "-1"
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
e as vroElTreeProps
|
|
26
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { VroElTreeKey, VroElTreeOption } from './types';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
default?(_: any): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {};
|
|
8
|
+
rootEl: any;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
12
|
+
modelValue: {
|
|
13
|
+
type: import('vue').PropType<VroElTreeKey[]>;
|
|
14
|
+
default: () => never[];
|
|
15
|
+
};
|
|
16
|
+
options: {
|
|
17
|
+
type: import('vue').PropType<VroElTreeOption[]>;
|
|
18
|
+
default: () => never[];
|
|
19
|
+
};
|
|
20
|
+
rootId: {
|
|
21
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
25
|
+
"update:modelValue": (value: VroElTreeKey[]) => any;
|
|
26
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
27
|
+
modelValue: {
|
|
28
|
+
type: import('vue').PropType<VroElTreeKey[]>;
|
|
29
|
+
default: () => never[];
|
|
30
|
+
};
|
|
31
|
+
options: {
|
|
32
|
+
type: import('vue').PropType<VroElTreeOption[]>;
|
|
33
|
+
default: () => never[];
|
|
34
|
+
};
|
|
35
|
+
rootId: {
|
|
36
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
39
|
+
}>> & Readonly<{
|
|
40
|
+
"onUpdate:modelValue"?: ((value: VroElTreeKey[]) => any) | undefined;
|
|
41
|
+
}>, {
|
|
42
|
+
modelValue: VroElTreeKey[];
|
|
43
|
+
options: VroElTreeOption[];
|
|
44
|
+
rootId: string | number;
|
|
45
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
46
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
47
|
+
export default _default;
|
|
48
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
49
|
+
new (): {
|
|
50
|
+
$slots: S;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { defineComponent as I, computed as y, createBlock as v, openBlock as C, unref as V, mergeProps as E, createSlots as K, withCtx as P, renderSlot as _, normalizeProps as T, guardReactiveProps as $ } from "vue";
|
|
2
|
+
import { isUndefined as a } from "@daysnap/utils";
|
|
3
|
+
import { ElTree as g } from "element-plus";
|
|
4
|
+
import { vroElTreeProps as B } from "./types.js";
|
|
5
|
+
const N = /* @__PURE__ */ I({
|
|
6
|
+
name: "VroElTree",
|
|
7
|
+
__name: "vro-el-tree",
|
|
8
|
+
props: B,
|
|
9
|
+
emits: ["update:modelValue"],
|
|
10
|
+
setup(u, { emit: p }) {
|
|
11
|
+
const f = p, h = u, i = y(() => {
|
|
12
|
+
const { modelValue: r, options: t, rootId: o } = h, { childIds: e, mapping: d } = l(t), k = r.reduce(
|
|
13
|
+
(s, n) => (s[n] = !0, s),
|
|
14
|
+
{}
|
|
15
|
+
), c = (s) => {
|
|
16
|
+
if (s === o)
|
|
17
|
+
return !0;
|
|
18
|
+
if (!k[s])
|
|
19
|
+
return !1;
|
|
20
|
+
const n = d[s];
|
|
21
|
+
return !a(n) && c(n);
|
|
22
|
+
};
|
|
23
|
+
return e.filter(c);
|
|
24
|
+
}), m = (r, t) => {
|
|
25
|
+
const { checkedKeys: o, halfCheckedKeys: e } = t;
|
|
26
|
+
f("update:modelValue", [...e, ...o]);
|
|
27
|
+
};
|
|
28
|
+
function l(r, t = {}) {
|
|
29
|
+
const o = [];
|
|
30
|
+
return r.forEach((e) => {
|
|
31
|
+
if (a(e.parentId) || (t[e.id] = e.parentId), e.children && e.children.length > 0) {
|
|
32
|
+
const d = l(e.children ?? [], t);
|
|
33
|
+
o.push(...d.childIds);
|
|
34
|
+
} else
|
|
35
|
+
o.push(e.id);
|
|
36
|
+
}), { childIds: o, mapping: t };
|
|
37
|
+
}
|
|
38
|
+
return (r, t) => (C(), v(V(g), E(r.$attrs, {
|
|
39
|
+
class: "vro-el-tree",
|
|
40
|
+
data: r.options,
|
|
41
|
+
"default-checked-keys": i.value,
|
|
42
|
+
onCheck: m
|
|
43
|
+
}), K({ _: 2 }, [
|
|
44
|
+
r.$slots.default ? {
|
|
45
|
+
name: "default",
|
|
46
|
+
fn: P((o) => [
|
|
47
|
+
_(r.$slots, "default", T($(o)))
|
|
48
|
+
]),
|
|
49
|
+
key: "0"
|
|
50
|
+
} : void 0
|
|
51
|
+
]), 1040, ["data", "default-checked-keys"]));
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
export {
|
|
55
|
+
N as default
|
|
56
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export * from './types';
|
|
2
|
+
export declare const VroElWithConfig: import('@vrojs/base').WithInstall<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
+
elConfigProps: {
|
|
4
|
+
type: import('vue').PropType<Partial<import('element-plus').ConfigProviderProps>>;
|
|
5
|
+
default: () => {};
|
|
6
|
+
};
|
|
7
|
+
vroConfigProps: {
|
|
8
|
+
type: import('vue').PropType<Partial<import('..').VroElConfigProviderProps>>;
|
|
9
|
+
default: () => {};
|
|
10
|
+
};
|
|
11
|
+
is: import('vue').PropType<string | import('vue').Component>;
|
|
12
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
13
|
+
elConfigProps: {
|
|
14
|
+
type: import('vue').PropType<Partial<import('element-plus').ConfigProviderProps>>;
|
|
15
|
+
default: () => {};
|
|
16
|
+
};
|
|
17
|
+
vroConfigProps: {
|
|
18
|
+
type: import('vue').PropType<Partial<import('..').VroElConfigProviderProps>>;
|
|
19
|
+
default: () => {};
|
|
20
|
+
};
|
|
21
|
+
is: import('vue').PropType<string | import('vue').Component>;
|
|
22
|
+
}>> & Readonly<{}>, {
|
|
23
|
+
elConfigProps: Partial<import('element-plus').ConfigProviderProps>;
|
|
24
|
+
vroConfigProps: Partial<import('..').VroElConfigProviderProps>;
|
|
25
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>>;
|
|
26
|
+
export default VroElWithConfig;
|
|
27
|
+
export type VroElWithConfigInstance = InstanceType<typeof VroElWithConfig>;
|
|
28
|
+
declare module 'vue' {
|
|
29
|
+
interface GlobalComponents {
|
|
30
|
+
VroElWithConfig: typeof VroElWithConfig;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "element-plus/es/components/config-provider/style/css";
|
|
File without changes
|