vue-devui 1.0.0-rc.11 → 1.0.0-rc.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/auto-complete/index.es.js +29 -8
- package/auto-complete/index.umd.js +16 -16
- package/auto-complete/style.css +1 -1
- package/badge/index.es.js +3 -1
- package/badge/index.umd.js +1 -1
- package/button/index.es.js +3 -2
- package/button/index.umd.js +6 -6
- package/collapse/index.es.js +20 -186
- package/collapse/index.umd.js +1 -1
- package/collapse/style.css +1 -1
- package/countdown/index.es.js +56 -13
- package/countdown/index.umd.js +1 -1
- package/{date-picker → date-picker-pro}/index.d.ts +0 -0
- package/date-picker-pro/index.es.js +10856 -0
- package/date-picker-pro/index.umd.js +27 -0
- package/date-picker-pro/package.json +7 -0
- package/date-picker-pro/style.css +1 -0
- package/dropdown/index.es.js +1 -1
- package/dropdown/index.umd.js +1 -1
- package/editable-select/index.es.js +98 -56
- package/editable-select/index.umd.js +1 -1
- package/editable-select/style.css +1 -1
- package/icon/index.es.js +3 -2
- package/icon/index.umd.js +1 -1
- package/input/index.es.js +35 -8
- package/input/index.umd.js +7 -7
- package/input/style.css +1 -1
- package/modal/index.es.js +3 -2
- package/modal/index.umd.js +1 -1
- package/modal/style.css +1 -1
- package/notification/index.es.js +3 -2
- package/notification/index.umd.js +1 -1
- package/nuxt/components/DRangeDatePickerPro.js +3 -0
- package/nuxt/components/DatePickerPro.js +3 -0
- package/nuxt/components/OptionGroup.js +3 -0
- package/nuxt/components/Step.js +3 -0
- package/nuxt/components/Steps.js +3 -0
- package/nuxt/components/TimePicker.js +3 -0
- package/nuxt/components/datePickerProCommonProps.js +3 -0
- package/nuxt/components/datePickerProPanelProps.js +3 -0
- package/nuxt/components/datePickerProProps.js +3 -0
- package/nuxt/components/stepProps.js +3 -0
- package/nuxt/components/stepsProps.js +3 -0
- package/nuxt/components/timerPickerPanelProps.js +3 -0
- package/package.json +1 -1
- package/pagination/index.es.js +25 -7
- package/pagination/index.umd.js +1 -1
- package/result/index.es.js +3 -2
- package/result/index.umd.js +1 -1
- package/search/index.es.js +39 -10
- package/search/index.umd.js +7 -7
- package/search/style.css +1 -1
- package/select/index.es.js +156 -219
- package/select/index.umd.js +13 -13
- package/select/style.css +1 -1
- package/splitter/index.es.js +27 -7
- package/splitter/index.umd.js +10 -10
- package/steps/index.d.ts +7 -0
- package/steps/index.es.js +385 -0
- package/steps/index.umd.js +1 -0
- package/{date-picker → steps}/package.json +1 -1
- package/steps/style.css +1 -0
- package/style.css +1 -1
- package/table/index.es.js +542 -267
- package/table/index.umd.js +15 -15
- package/table/style.css +1 -1
- package/tabs/index.es.js +1 -1
- package/tabs/index.umd.js +1 -1
- package/tabs/style.css +1 -1
- package/time-picker/index.d.ts +7 -0
- package/{date-picker → time-picker}/index.es.js +1371 -1038
- package/time-picker/index.umd.js +27 -0
- package/time-picker/package.json +7 -0
- package/time-picker/style.css +1 -0
- package/time-select/index.es.js +157 -219
- package/time-select/index.umd.js +14 -14
- package/time-select/style.css +1 -1
- package/timeline/index.es.js +3 -2
- package/timeline/index.umd.js +1 -1
- package/tooltip/index.es.js +1 -1
- package/tooltip/index.umd.js +1 -1
- package/tree/index.es.js +186 -59
- package/tree/index.umd.js +16 -16
- package/tree/style.css +1 -1
- package/upload/index.es.js +51 -25
- package/upload/index.umd.js +1 -1
- package/upload/style.css +1 -1
- package/vue-devui.es.js +3963 -1421
- package/vue-devui.umd.js +23 -23
- package/date-picker/index.umd.js +0 -27
- package/date-picker/style.css +0 -1
- package/nuxt/components/DatePicker.js +0 -3
- package/nuxt/components/StickSlider.js +0 -3
package/search/index.es.js
CHANGED
|
@@ -29,7 +29,7 @@ var __objRest = (source, exclude) => {
|
|
|
29
29
|
}
|
|
30
30
|
return target;
|
|
31
31
|
};
|
|
32
|
-
import { computed, ref, watch, defineComponent, toRefs, createVNode, resolveDynamicComponent, mergeProps, provide, reactive, onUnmounted, Transition, unref, nextTick, Comment, Text, h, Fragment, inject, withDirectives, cloneVNode, onMounted, Teleport, createTextVNode, onBeforeUnmount, shallowRef, resolveComponent } from "vue";
|
|
32
|
+
import { computed, ref, watch, defineComponent, toRefs, createVNode, resolveDynamicComponent, mergeProps, provide, reactive, onUnmounted, Transition, unref, nextTick, Comment, Text, h, Fragment, inject, withDirectives, cloneVNode, onMounted, Teleport, createTextVNode, onBeforeUnmount, getCurrentInstance, shallowRef, resolveComponent } from "vue";
|
|
33
33
|
import { offset, autoPlacement, arrow, shift, computePosition } from "@floating-ui/dom";
|
|
34
34
|
const searchProps = {
|
|
35
35
|
size: {
|
|
@@ -38,7 +38,7 @@ const searchProps = {
|
|
|
38
38
|
},
|
|
39
39
|
placeholder: {
|
|
40
40
|
type: String,
|
|
41
|
-
default: "
|
|
41
|
+
default: ""
|
|
42
42
|
},
|
|
43
43
|
maxLength: {
|
|
44
44
|
type: Number,
|
|
@@ -1222,7 +1222,7 @@ var lodash = { exports: {} };
|
|
|
1222
1222
|
function baseAt(object4, paths) {
|
|
1223
1223
|
var index2 = -1, length = paths.length, result2 = Array2(length), skip = object4 == null;
|
|
1224
1224
|
while (++index2 < length) {
|
|
1225
|
-
result2[index2] = skip ? undefined$1 :
|
|
1225
|
+
result2[index2] = skip ? undefined$1 : get2(object4, paths[index2]);
|
|
1226
1226
|
}
|
|
1227
1227
|
return result2;
|
|
1228
1228
|
}
|
|
@@ -1667,7 +1667,7 @@ var lodash = { exports: {} };
|
|
|
1667
1667
|
return matchesStrictComparable(toKey(path), srcValue);
|
|
1668
1668
|
}
|
|
1669
1669
|
return function(object4) {
|
|
1670
|
-
var objValue =
|
|
1670
|
+
var objValue = get2(object4, path);
|
|
1671
1671
|
return objValue === undefined$1 && objValue === srcValue ? hasIn(object4, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
|
|
1672
1672
|
};
|
|
1673
1673
|
}
|
|
@@ -4400,7 +4400,7 @@ var lodash = { exports: {} };
|
|
|
4400
4400
|
function functionsIn(object4) {
|
|
4401
4401
|
return object4 == null ? [] : baseFunctions(object4, keysIn(object4));
|
|
4402
4402
|
}
|
|
4403
|
-
function
|
|
4403
|
+
function get2(object4, path, defaultValue) {
|
|
4404
4404
|
var result2 = object4 == null ? undefined$1 : baseGet(object4, path);
|
|
4405
4405
|
return result2 === undefined$1 ? defaultValue : result2;
|
|
4406
4406
|
}
|
|
@@ -5255,7 +5255,7 @@ var lodash = { exports: {} };
|
|
|
5255
5255
|
lodash2.forInRight = forInRight;
|
|
5256
5256
|
lodash2.forOwn = forOwn;
|
|
5257
5257
|
lodash2.forOwnRight = forOwnRight;
|
|
5258
|
-
lodash2.get =
|
|
5258
|
+
lodash2.get = get2;
|
|
5259
5259
|
lodash2.gt = gt;
|
|
5260
5260
|
lodash2.gte = gte;
|
|
5261
5261
|
lodash2.has = has;
|
|
@@ -5721,6 +5721,7 @@ function useIconDom(props, ctx) {
|
|
|
5721
5721
|
var Icon = defineComponent({
|
|
5722
5722
|
name: "DIcon",
|
|
5723
5723
|
props: iconProps,
|
|
5724
|
+
emits: ["click"],
|
|
5724
5725
|
setup(props, ctx) {
|
|
5725
5726
|
const {
|
|
5726
5727
|
disabled,
|
|
@@ -5736,10 +5737,10 @@ var Icon = defineComponent({
|
|
|
5736
5737
|
[ns2.m("operable")]: operable.value
|
|
5737
5738
|
}));
|
|
5738
5739
|
const onClick = (e) => {
|
|
5739
|
-
e.stopImmediatePropagation();
|
|
5740
5740
|
if (disabled.value) {
|
|
5741
|
-
|
|
5741
|
+
return;
|
|
5742
5742
|
}
|
|
5743
|
+
ctx.emit("click", e);
|
|
5743
5744
|
};
|
|
5744
5745
|
return () => {
|
|
5745
5746
|
var _a, _b, _c, _d;
|
|
@@ -5785,6 +5786,10 @@ const inputProps = {
|
|
|
5785
5786
|
clearable: {
|
|
5786
5787
|
type: Boolean,
|
|
5787
5788
|
default: false
|
|
5789
|
+
},
|
|
5790
|
+
placeholder: {
|
|
5791
|
+
type: String,
|
|
5792
|
+
default: ""
|
|
5788
5793
|
}
|
|
5789
5794
|
};
|
|
5790
5795
|
const formItemProps = {
|
|
@@ -8091,6 +8096,7 @@ function useInputEvent(isFocus, props, ctx, focus) {
|
|
|
8091
8096
|
}
|
|
8092
8097
|
};
|
|
8093
8098
|
const onInput = (e) => {
|
|
8099
|
+
ctx.emit("input", e.target.value);
|
|
8094
8100
|
ctx.emit("update:modelValue", e.target.value);
|
|
8095
8101
|
};
|
|
8096
8102
|
const onChange = (e) => {
|
|
@@ -8123,12 +8129,32 @@ function useInputFunction(input2) {
|
|
|
8123
8129
|
return { select, focus, blur };
|
|
8124
8130
|
}
|
|
8125
8131
|
var input = "";
|
|
8132
|
+
const camelize = (name) => name.substring(1).replace(/^\S/, (s) => s.toLocaleLowerCase());
|
|
8133
|
+
function get(object4, path) {
|
|
8134
|
+
const keys = path.split(".");
|
|
8135
|
+
let result = object4;
|
|
8136
|
+
keys.forEach((key) => {
|
|
8137
|
+
var _a;
|
|
8138
|
+
result = (_a = result[key]) != null ? _a : "";
|
|
8139
|
+
});
|
|
8140
|
+
return result;
|
|
8141
|
+
}
|
|
8142
|
+
function createI18nTranslate(name, app, newPrefix) {
|
|
8143
|
+
const prefix = newPrefix || camelize(name) + ".";
|
|
8144
|
+
return (path) => {
|
|
8145
|
+
const messages2 = app == null ? void 0 : app.appContext.config.globalProperties.langMessages.value;
|
|
8146
|
+
const message = get(messages2, prefix + path) || get(messages2, path);
|
|
8147
|
+
return message;
|
|
8148
|
+
};
|
|
8149
|
+
}
|
|
8126
8150
|
var DInput = defineComponent({
|
|
8127
8151
|
name: "DInput",
|
|
8128
8152
|
inheritAttrs: false,
|
|
8129
8153
|
props: inputProps,
|
|
8130
8154
|
emits: ["update:modelValue", "focus", "blur", "input", "change", "keydown", "clear"],
|
|
8131
8155
|
setup(props, ctx) {
|
|
8156
|
+
const app = getCurrentInstance();
|
|
8157
|
+
const t = createI18nTranslate("DInput", app);
|
|
8132
8158
|
const formItemContext = inject(FORM_ITEM_TOKEN, void 0);
|
|
8133
8159
|
const {
|
|
8134
8160
|
modelValue
|
|
@@ -8194,7 +8220,8 @@ var DInput = defineComponent({
|
|
|
8194
8220
|
"ref": input2,
|
|
8195
8221
|
"value": modelValue.value,
|
|
8196
8222
|
"disabled": inputDisabled.value,
|
|
8197
|
-
"class": ns2.e("inner")
|
|
8223
|
+
"class": ns2.e("inner"),
|
|
8224
|
+
"placeholder": props.placeholder || t("placeholder")
|
|
8198
8225
|
}, otherAttrs, {
|
|
8199
8226
|
"type": props.showPassword ? passwordVisible.value ? "text" : "password" : "text",
|
|
8200
8227
|
"onInput": onInput,
|
|
@@ -8229,6 +8256,8 @@ var Search = defineComponent({
|
|
|
8229
8256
|
props: searchProps,
|
|
8230
8257
|
emits: ["update:modelValue", "search"],
|
|
8231
8258
|
setup(props, ctx) {
|
|
8259
|
+
const app = getCurrentInstance();
|
|
8260
|
+
const t = createI18nTranslate("DSearch", app);
|
|
8232
8261
|
const ns2 = useNamespace("search");
|
|
8233
8262
|
const isFocus = ref(false);
|
|
8234
8263
|
const rootClasses = getRootClass(props, isFocus);
|
|
@@ -8261,7 +8290,7 @@ var Search = defineComponent({
|
|
|
8261
8290
|
disabled: props.disabled,
|
|
8262
8291
|
autoFocus: props.autoFocus,
|
|
8263
8292
|
modelValue: keywords.value,
|
|
8264
|
-
placeholder: props.placeholder,
|
|
8293
|
+
placeholder: props.placeholder || t("placeholder"),
|
|
8265
8294
|
onKeydown: onInputKeydown,
|
|
8266
8295
|
"onUpdate:modelValue": onInputUpdate,
|
|
8267
8296
|
onFocus,
|