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/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<a href="https://devui.design/
|
|
3
|
-
<img alt="DevUI Logo" src="https://
|
|
2
|
+
<a href="https://devui.design/" target="_blank" rel="noopener noreferrer">
|
|
3
|
+
<img alt="DevUI Logo" src="https://vue-devui.github.io/assets/logo.svg" width="180" style="max-width:100%;">
|
|
4
4
|
</a>
|
|
5
5
|
</p>
|
|
6
6
|
|
|
@@ -33,7 +33,7 @@ var __publicField = (obj, key, value) => {
|
|
|
33
33
|
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
34
34
|
return value;
|
|
35
35
|
};
|
|
36
|
-
import { ref, nextTick, defineComponent, watch, provide, reactive, toRefs, createVNode, onUnmounted, Transition, mergeProps, unref, Comment, Text, h, Fragment, inject, withDirectives, cloneVNode, computed, onMounted, Teleport, createTextVNode, onBeforeUnmount, render, resolveDirective, vShow, resolveDynamicComponent, isVNode } from "vue";
|
|
36
|
+
import { ref, nextTick, defineComponent, watch, provide, reactive, toRefs, createVNode, onUnmounted, Transition, mergeProps, unref, Comment, Text, h, Fragment, inject, withDirectives, cloneVNode, computed, onMounted, Teleport, createTextVNode, onBeforeUnmount, render, getCurrentInstance, resolveDirective, vShow, resolveDynamicComponent, isVNode } from "vue";
|
|
37
37
|
import { offset, autoPlacement, arrow, shift, computePosition } from "@floating-ui/dom";
|
|
38
38
|
const defaultFormatter = (item) => {
|
|
39
39
|
if (typeof item === "string") {
|
|
@@ -1582,7 +1582,7 @@ var lodash = { exports: {} };
|
|
|
1582
1582
|
function baseAt(object4, paths) {
|
|
1583
1583
|
var index2 = -1, length = paths.length, result2 = Array2(length), skip = object4 == null;
|
|
1584
1584
|
while (++index2 < length) {
|
|
1585
|
-
result2[index2] = skip ? undefined$1 :
|
|
1585
|
+
result2[index2] = skip ? undefined$1 : get2(object4, paths[index2]);
|
|
1586
1586
|
}
|
|
1587
1587
|
return result2;
|
|
1588
1588
|
}
|
|
@@ -2027,7 +2027,7 @@ var lodash = { exports: {} };
|
|
|
2027
2027
|
return matchesStrictComparable(toKey(path), srcValue);
|
|
2028
2028
|
}
|
|
2029
2029
|
return function(object4) {
|
|
2030
|
-
var objValue =
|
|
2030
|
+
var objValue = get2(object4, path);
|
|
2031
2031
|
return objValue === undefined$1 && objValue === srcValue ? hasIn(object4, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
|
|
2032
2032
|
};
|
|
2033
2033
|
}
|
|
@@ -4760,7 +4760,7 @@ var lodash = { exports: {} };
|
|
|
4760
4760
|
function functionsIn(object4) {
|
|
4761
4761
|
return object4 == null ? [] : baseFunctions(object4, keysIn(object4));
|
|
4762
4762
|
}
|
|
4763
|
-
function
|
|
4763
|
+
function get2(object4, path, defaultValue) {
|
|
4764
4764
|
var result2 = object4 == null ? undefined$1 : baseGet(object4, path);
|
|
4765
4765
|
return result2 === undefined$1 ? defaultValue : result2;
|
|
4766
4766
|
}
|
|
@@ -5615,7 +5615,7 @@ var lodash = { exports: {} };
|
|
|
5615
5615
|
lodash2.forInRight = forInRight;
|
|
5616
5616
|
lodash2.forOwn = forOwn;
|
|
5617
5617
|
lodash2.forOwnRight = forOwnRight;
|
|
5618
|
-
lodash2.get =
|
|
5618
|
+
lodash2.get = get2;
|
|
5619
5619
|
lodash2.gt = gt;
|
|
5620
5620
|
lodash2.gte = gte;
|
|
5621
5621
|
lodash2.has = has;
|
|
@@ -8368,12 +8368,32 @@ const loadingDirective = {
|
|
|
8368
8368
|
toggleLoading(el, binding);
|
|
8369
8369
|
}
|
|
8370
8370
|
};
|
|
8371
|
+
const camelize = (name) => name.substring(1).replace(/^\S/, (s) => s.toLocaleLowerCase());
|
|
8372
|
+
function get(object4, path) {
|
|
8373
|
+
const keys = path.split(".");
|
|
8374
|
+
let result = object4;
|
|
8375
|
+
keys.forEach((key) => {
|
|
8376
|
+
var _a;
|
|
8377
|
+
result = (_a = result[key]) != null ? _a : "";
|
|
8378
|
+
});
|
|
8379
|
+
return result;
|
|
8380
|
+
}
|
|
8381
|
+
function createI18nTranslate(name, app, newPrefix) {
|
|
8382
|
+
const prefix = newPrefix || camelize(name) + ".";
|
|
8383
|
+
return (path) => {
|
|
8384
|
+
const messages2 = app == null ? void 0 : app.appContext.config.globalProperties.langMessages.value;
|
|
8385
|
+
const message = get(messages2, prefix + path) || get(messages2, path);
|
|
8386
|
+
return message;
|
|
8387
|
+
};
|
|
8388
|
+
}
|
|
8371
8389
|
var DAutoCompleteDropdown = defineComponent({
|
|
8372
8390
|
name: "DAutoCompleteDropdown",
|
|
8373
8391
|
directives: {
|
|
8374
8392
|
dLoading: loadingDirective
|
|
8375
8393
|
},
|
|
8376
8394
|
setup(props, ctx2) {
|
|
8395
|
+
const app = getCurrentInstance();
|
|
8396
|
+
const t = createI18nTranslate("DAutoCompleteDropdown", app);
|
|
8377
8397
|
const propsData = inject(DropdownPropsKey);
|
|
8378
8398
|
const {
|
|
8379
8399
|
visible,
|
|
@@ -8424,7 +8444,7 @@ var DAutoCompleteDropdown = defineComponent({
|
|
|
8424
8444
|
"class": noDataNs.b()
|
|
8425
8445
|
}, [ctx2.slots.searchingTemplate()])]), latestSource.value && !modelValue.value && createVNode("li", {
|
|
8426
8446
|
"class": ns2.e("popup-tips")
|
|
8427
|
-
}, [
|
|
8447
|
+
}, [t("latestInput")]), !showNoResultItemTemplate.value && !(searchStatus == null ? void 0 : searchStatus.value) && searchList != null && searchList.value.length > 0 && searchList.value.map((item, index2) => {
|
|
8428
8448
|
return createVNode("li", {
|
|
8429
8449
|
"onClick": () => onSelect(item),
|
|
8430
8450
|
"class": [dropdownItemNs.b(), selectedIndex.value === index2 && "selected", {
|
|
@@ -8638,6 +8658,7 @@ function useIconDom(props, ctx2) {
|
|
|
8638
8658
|
var Icon = defineComponent({
|
|
8639
8659
|
name: "DIcon",
|
|
8640
8660
|
props: iconProps,
|
|
8661
|
+
emits: ["click"],
|
|
8641
8662
|
setup(props, ctx2) {
|
|
8642
8663
|
const {
|
|
8643
8664
|
disabled,
|
|
@@ -8653,10 +8674,10 @@ var Icon = defineComponent({
|
|
|
8653
8674
|
[ns2.m("operable")]: operable.value
|
|
8654
8675
|
}));
|
|
8655
8676
|
const onClick = (e) => {
|
|
8656
|
-
e.stopImmediatePropagation();
|
|
8657
8677
|
if (disabled.value) {
|
|
8658
|
-
|
|
8678
|
+
return;
|
|
8659
8679
|
}
|
|
8680
|
+
ctx2.emit("click", e);
|
|
8660
8681
|
};
|
|
8661
8682
|
return () => {
|
|
8662
8683
|
var _a, _b, _c, _d;
|