@oiij/naive-ui 0.0.64 → 0.0.65
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/_virtual/_/plugin-vue/export-helper.js +9 -0
- package/dist/components/_utils/cssr-bem.js +7 -0
- package/dist/components/_utils/prismjs.js +16 -0
- package/dist/components/bubble/Bubble.js +67 -0
- package/dist/components/bubble/Bubble.vue.d.ts +51 -46
- package/dist/components/bubble/bubble.cssr.js +23 -0
- package/dist/components/bubble/index.d.ts +19 -15
- package/dist/components/config-providers/ConfigProviders.js +78 -0
- package/dist/components/config-providers/ConfigProviders.vue.d.ts +37 -33
- package/dist/components/config-providers/index.d.ts +28 -24
- package/dist/components/copy-button/CopyButton.js +50 -0
- package/dist/components/copy-button/CopyButton.vue.d.ts +36 -30
- package/dist/components/copy-button/index.d.ts +13 -9
- package/dist/components/data-table-plus/DataTablePlus.js +374 -0
- package/dist/components/data-table-plus/DataTablePlus.vue.d.ts +365 -351
- package/dist/components/data-table-plus/index.d.ts +54 -48
- package/dist/components/full-loading/FullLoading.js +70 -0
- package/dist/components/full-loading/FullLoading.vue.d.ts +36 -32
- package/dist/components/full-loading/full-loading.cssr.js +22 -0
- package/dist/components/full-loading/index.d.ts +16 -12
- package/dist/components/icons/MageArrowUp.js +29 -0
- package/dist/components/icons/MageCopyFill.js +21 -0
- package/dist/components/icons/MageMultiplyCircleFill.js +21 -0
- package/dist/components/icons/MageSearch.js +25 -0
- package/dist/components/index.d.ts +31 -15
- package/dist/components/preset-form/PresetForm.js +176 -0
- package/dist/components/preset-form/PresetForm.vue.d.ts +82 -72
- package/dist/components/preset-form/_utils.js +16 -0
- package/dist/components/preset-form/index.d.ts +34 -29
- package/dist/components/preset-input/PresetInput.js +87 -0
- package/dist/components/preset-input/PresetInput.vue.d.ts +20 -15
- package/dist/components/preset-input/index.d.ts +147 -145
- package/dist/components/preset-picker/PresetPicker.js +209 -0
- package/dist/components/preset-picker/PresetPicker.vue.d.ts +62 -49
- package/dist/components/preset-picker/index.d.ts +55 -49
- package/dist/components/preset-select/PresetSelect.js +274 -0
- package/dist/components/preset-select/PresetSelect.vue.d.ts +190 -180
- package/dist/components/preset-select/index.d.ts +44 -38
- package/dist/components/remote-request/RemoteRequest.js +90 -0
- package/dist/components/remote-request/RemoteRequest.vue.d.ts +55 -49
- package/dist/components/remote-request/index.d.ts +23 -17
- package/dist/components/search-input/SearchInput.js +85 -0
- package/dist/components/search-input/SearchInput.vue.d.ts +48 -2332
- package/dist/components/search-input/index.d.ts +16 -12
- package/dist/components/toggle-editor/ToggleEditor.js +44 -0
- package/dist/components/toggle-editor/ToggleEditor.vue.d.ts +18 -1157
- package/dist/components/toggle-editor/index.d.ts +1 -1
- package/dist/components/tooltip-button/TooltipButton.js +31 -0
- package/dist/components/tooltip-button/TooltipButton.vue.d.ts +33 -28
- package/dist/components/tooltip-button/index.d.ts +11 -7
- package/dist/components/transition/BaseTransition.js +30 -0
- package/dist/components/transition/BaseTransition.vue.d.ts +23 -21
- package/dist/components/transition/index.d.ts +10 -6
- package/dist/components/transition/transition.cssr.js +20 -0
- package/dist/components/type-writer/TypeWriter.js +72 -0
- package/dist/components/type-writer/TypeWriter.vue.d.ts +34 -29
- package/dist/components/type-writer/index.d.ts +12 -8
- package/dist/components/type-writer/type-writer.cssr.js +27 -0
- package/dist/components.d.ts +33 -1
- package/dist/components.js +18 -7893
- package/dist/composables/{index.d.mts → index.d.ts} +3 -3
- package/dist/composables/{useNaiveForm.d.mts → useNaiveForm.d.ts} +1 -1
- package/dist/composables/{useNaiveTheme.d.mts → useNaiveTheme.d.ts} +1 -1
- package/dist/composables/{useNaiveTheme.mjs → useNaiveTheme.js} +1 -1
- package/dist/{index.d.mts → index.d.ts} +4 -4
- package/dist/index.js +5 -0
- package/package.json +11 -10
- package/dist/components/_utils/cssr-bem.d.ts +0 -1
- package/dist/components/_utils/index.d.ts +0 -2
- package/dist/components/_utils/prismjs.d.ts +0 -1
- package/dist/components/bubble/bubble.cssr.d.ts +0 -2
- package/dist/components/full-loading/full-loading.cssr.d.ts +0 -2
- package/dist/components/icons/MageArrowUp.vue.d.ts +0 -2
- package/dist/components/icons/MageCopyFill.vue.d.ts +0 -2
- package/dist/components/icons/MageMultiplyCircleFill.vue.d.ts +0 -2
- package/dist/components/icons/MageSearch.vue.d.ts +0 -2
- package/dist/components/preset-form/_utils.d.ts +0 -8
- package/dist/components/transition/transition.cssr.d.ts +0 -13
- package/dist/components/type-writer/type-writer.cssr.d.ts +0 -2
- package/dist/index.mjs +0 -5
- /package/dist/composables/{_helper.d.mts → _helper.d.ts} +0 -0
- /package/dist/composables/{_helper.mjs → _helper.js} +0 -0
- /package/dist/composables/{useDataRequest.d.mts → useDataRequest.d.ts} +0 -0
- /package/dist/composables/{useDataRequest.mjs → useDataRequest.js} +0 -0
- /package/dist/composables/{useNaiveForm.mjs → useNaiveForm.js} +0 -0
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ClassStyle } from
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { _default } from "./SearchInput.vue.js";
|
|
2
|
+
import { ClassStyle } from "../data-table-plus/index.js";
|
|
3
|
+
import { ButtonProps, InputProps } from "naive-ui";
|
|
4
|
+
|
|
5
|
+
//#region src/components/search-input/index.d.ts
|
|
6
|
+
type SearchInputProps = {
|
|
7
|
+
value?: string | null;
|
|
8
|
+
type?: ButtonProps['type'];
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
loading?: boolean;
|
|
11
|
+
autoTrigger?: boolean | number;
|
|
12
|
+
searchButton?: 'text' | 'icon' | boolean;
|
|
13
|
+
inputProps?: InputProps & ClassStyle;
|
|
14
|
+
buttonProps?: ButtonProps & ClassStyle;
|
|
13
15
|
};
|
|
16
|
+
//#endregion
|
|
17
|
+
export { SearchInputProps };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { Fragment, createBlock, createElementBlock, createTextVNode, defineComponent, mergeModels, mergeProps, nextTick, openBlock, ref, toDisplayString, unref, useModel, useTemplateRef } from "vue";
|
|
2
|
+
import { NInput } from "naive-ui";
|
|
3
|
+
|
|
4
|
+
//#region src/components/toggle-editor/ToggleEditor.vue
|
|
5
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "ToggleEditor",
|
|
7
|
+
props: /* @__PURE__ */ mergeModels({ inputProps: {} }, {
|
|
8
|
+
"value": {},
|
|
9
|
+
"valueModifiers": {}
|
|
10
|
+
}),
|
|
11
|
+
emits: ["update:value"],
|
|
12
|
+
setup(__props) {
|
|
13
|
+
const value = useModel(__props, "value");
|
|
14
|
+
const editorFlag = ref(false);
|
|
15
|
+
const inputRef = useTemplateRef("inputRef");
|
|
16
|
+
const inputValue = ref(value.value);
|
|
17
|
+
function onClick() {
|
|
18
|
+
editorFlag.value = true;
|
|
19
|
+
nextTick(() => {
|
|
20
|
+
inputRef.value?.focus();
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
function onChange() {
|
|
24
|
+
editorFlag.value = false;
|
|
25
|
+
value.value = inputValue.value;
|
|
26
|
+
}
|
|
27
|
+
return (_ctx, _cache) => {
|
|
28
|
+
return openBlock(), createElementBlock("div", { onClick }, [editorFlag.value ? (openBlock(), createBlock(unref(NInput), mergeProps({
|
|
29
|
+
key: 0,
|
|
30
|
+
ref_key: "inputRef",
|
|
31
|
+
ref: inputRef,
|
|
32
|
+
value: inputValue.value
|
|
33
|
+
}, __props.inputProps, {
|
|
34
|
+
"onUpdate:value": _cache[0] || (_cache[0] = (val) => inputValue.value = val),
|
|
35
|
+
onChange,
|
|
36
|
+
onBlur: onChange
|
|
37
|
+
}), null, 16, ["value"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(inputValue.value), 1)], 64))]);
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
var ToggleEditor_default = _sfc_main;
|
|
42
|
+
|
|
43
|
+
//#endregion
|
|
44
|
+
export { ToggleEditor_default as default };
|