Skip to content

Commit d4ee166

Browse files
committed
feat: 适配 iview3
1 parent 27e310e commit d4ee166

File tree

64 files changed

+6630
-6182
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+6630
-6182
lines changed

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,12 @@
1414
"docs:build": "yarn workspace docs build",
1515
"lib:watch": "yarn workspace @lljj/vue-json-schema-form watch",
1616
"lib:build": "yarn workspace @lljj/vue-json-schema-form build",
17+
"lib-iview3:watch": "yarn workspace @lljj/vue2-form-iview3 watch",
18+
"lib-iview3:build": "yarn workspace @lljj/vue2-form-iview3 build",
1719
"demo:dev": "yarn workspace demo dev",
18-
"demo3:dev": "yarn workspace demo-v3 dev",
1920
"demo:build": "yarn workspace demo build",
21+
"demo3:dev": "yarn workspace demo-v3 dev",
22+
"demo3:build": "yarn workspace demo-v3 build",
2023
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 2",
2124
"clean": "lerna clean && rm -rf node_modules",
2225
"packages:diff": "lerna diff",

packages/demo/demo-v2/README.md

Lines changed: 23 additions & 0 deletions

packages/demo/demo-v2/src/pages/vue-editor/views/editor/Editor.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,10 @@
132132
import Draggable from 'vuedraggable';
133133
import VueElementForm, { schemaValidate } from '@lljj/vue-json-schema-form';
134134
135-
import * as arrayMethods from '@/_common/utils/array';
136-
import componentWithDialog from '@/_common/components/component-with-dialog';
135+
import * as arrayMethods from 'demo-common/utils/array';
136+
import componentWithDialog from 'demo-common/components/component-with-dialog';
137137
138-
import JsonPerttyPrint from '@/_common/components/JsonPerttyPrint.vue';
138+
import JsonPerttyPrint from 'demo-common/components/JsonPerttyPrint.vue';
139139
import EditorToolBar from './EditorToolBar.vue';
140140
import EditorHeader from './EditorHeader.vue';
141141
import ViewComponentWrap from './components/ViewComponentWrap.vue';
@@ -450,7 +450,7 @@ export default {
450450
}
451451
</style>
452452
<style module>
453-
@import 'variable.css';
453+
@import 'demo-common/css/variable.css';
454454
:root {
455455
--site-top-height: 80px;
456456
--tool-bar-width: 260px;

packages/demo/demo-v2/src/pages/vue-editor/views/editor/EditorHeader.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
</template>
5151

5252
<script>
53-
import BaseEditorHeader from '@/_common/components/EditorHeader.vue';
53+
import BaseEditorHeader from 'demo-common/components/EditorHeader.vue';
5454
5555
export default {
5656
name: 'EditorHeader',
@@ -109,7 +109,7 @@ export default {
109109
</script>
110110

111111
<style module>
112-
@import "variable.css";
112+
@import "demo-common/css/variable.css";
113113
.box {
114114
padding: 10px 2%;
115115
height: auto;

packages/demo/demo-v2/src/pages/vue-editor/views/editor/EditorM.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,9 @@
130130
import Draggable from 'vuedraggable';
131131
import VueElementForm, { schemaValidate } from '@lljj/vue-json-schema-form';
132132
133-
import * as arrayMethods from '@/_common/utils/array';
134-
import componentWithDialog from '@/_common/components/component-with-dialog';
135-
import JsonPerttyPrint from '@/_common/components/JsonPerttyPrint.vue';
133+
import * as arrayMethods from 'demo-common/utils/array';
134+
import componentWithDialog from 'demo-common/components/component-with-dialog';
135+
import JsonPerttyPrint from 'demo-common/components/JsonPerttyPrint.vue';
136136
137137
import EditorToolBar from './EditorToolBar.vue';
138138
import EditorHeader from './EditorHeader.vue';
@@ -443,7 +443,7 @@ export default {
443443
}
444444
</style>
445445
<style module>
446-
@import 'variable.css';
446+
@import 'demo-common/css/variable.css';
447447
:root {
448448
--site-top-height: 80px;
449449
--tool-bar-width: 260px;

packages/demo/demo-v2/src/pages/vue-editor/views/editor/EditorToolBar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export default {
8686
</script>
8787

8888
<style module>
89-
@import "variable.css";
89+
@import "demo-common/css/variable.css";
9090
.box{
9191
padding: 20px;
9292
}

packages/demo/demo-v2/src/pages/vue-editor/views/editor/common/editorData.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*/
44

55
import { getDefaultFormState } from '@lljj/vue-json-schema-form';
6-
import { genId } from '@/_common/utils/id';
6+
import { genId } from 'demo-common/utils/id';
77

88
function isEmptyObject(obj) {
99
for (const key in obj) {

packages/demo/demo-v2/src/pages/vue-editor/views/editor/common/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Created by Liu.Jun on 2019/11/28 18:37.
33
*/
44

5-
import { genId } from '@/_common/utils/id';
5+
import { genId } from 'demo-common/utils/id';
66

77

88
export function deepFreeze(obj) {

packages/demo/demo-v2/src/pages/vue-editor/views/editor/components/ViewComponentWrap.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export default {
130130
</script>
131131

132132
<style module>
133-
@import "variable.css";
133+
@import "demo-common/css/variable.css";
134134
.viewBox {
135135
/*width: 1190px;*/
136136
margin: 0 auto;

packages/demo/demo-v2/src/pages/vue-editor/views/editor/components/skeleton/skeleton.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import "variable.css";
1+
@import "demo-common/css/variable.css";
22

33
:root {
44
--color-skeleton-bg: var(--background-color-base);

0 commit comments

Comments
 (0)