Skip to content

Commit

Permalink
Deploying to main from @ hellof2e/quark-design@fd8285b 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanqi9675 committed Jan 25, 2024
1 parent 802f6e5 commit 53a91f9
Show file tree
Hide file tree
Showing 125 changed files with 57,842 additions and 3 deletions.
1 change: 1 addition & 0 deletions demo/assets/component-legacy.bab36e0b.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions demo/assets/component.01ad1bda.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { L as Locale, d as defineComponent } from "./mobile.d5f0d4bc.js";
const isFunction = (val) => typeof val === "function";
const getPropByPath = (obj, keyPath) => {
try {
return keyPath.split(".").reduce((prev, curr) => prev[curr], obj);
} catch (error) {
return "";
}
};
function createComponent(name) {
const componentName = "quark-" + name;
return {
componentName,
translate(keyPath, ...args) {
const languages = Locale.languages();
const text = getPropByPath(languages, `${name.replace("-", "")}.${keyPath}`) || getPropByPath(languages, keyPath);
return isFunction(text) ? text(...args) : text;
},
createDemo: function(_component) {
_component.baseName = name;
_component.name = "demo-" + name;
return defineComponent(_component);
}
};
}
export { createComponent as c };
1 change: 1 addition & 0 deletions demo/assets/demo-legacy.0294b1f9.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions demo/assets/demo-legacy.0618b068.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions demo/assets/demo-legacy.0822535f.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions demo/assets/demo-legacy.083c4536.js

Large diffs are not rendered by default.

Loading

0 comments on commit 53a91f9

Please sign in to comment.